Commit 0547cc53 by hank

图片更换弹层替换

parent 10641e60
......@@ -37,7 +37,7 @@ export default {
bottom: 0;
width: 100%;
background: rgba(0, 0, 0, 0.7);
z-index: 1000000;
z-index: 10000;
.fucengBox {
width: 100%;
......
<template>
<div class="fuceng" v-if="isShow">
<div class="fucengBox2">
<div class="close" @click="closeFuceng"></div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
isShow: true
}
},
created() {
if(localStorage.getItem('fucengBox2')) {
this.isShow = false
}
},
mounted() {
var modal = document.getElementsByClassName('fucengBox2')[0];
modal.addEventListener('touchmove', function (e) {
e.preventDefault();
}, false)
},
methods: {
closeFuceng() {
// console.log(123123);
localStorage.setItem('fucengBox2', 1)
this.isShow = false
}
}
}
</script>
<style lang="scss" scoped>
.fuceng {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
z-index: 1000;
.fucengBox2 {
width: 9rem;
height: 12.5rem;
background: url("~@/pages/index/assets/images/Fuceng.png") no-repeat center;
background-size: contain;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
.close {
width: 1.5rem;
height: 1.5rem;
position: absolute;
bottom: 30px;
left: 50%;
transform: translate(-50%, 0);
}
}
}
</style>
......@@ -33,7 +33,7 @@ var wrapHref = weburl + h5Url + '/index.html';
var indexHref = weburl + h5Url + '/index.html';
// 个人中心地址
var userCenterHref = weburl + h5Url + '/user.html';
var shareImg = weburl + h5Url + '/static/share.jpg';
var shareImg = weburl + h5Url + '/static/share.png';
var signHref = 'http://mr-static.maxrocky.com/h5/wanda/dzgp/index.html'
export default{
server,
......
......@@ -122,6 +122,7 @@
<a v-show="tabActive !== 3" :href="userCenter" class="user"></a>
<mt-actionsheet :actions="wangqiTitle" v-model="wangqiList"></mt-actionsheet>
<Fuceng v-if="fucengButton=== 'close'?false:true"></Fuceng>
<Fuceng2 ></Fuceng2>
</div>
</template>
......@@ -129,6 +130,7 @@
import Cardcommon from '../../components/Cardcommon';
import CardPrize from '../../components/CardPrize';
import Fuceng from '../../components/Fuceng';
import Fuceng2 from '../../components/Fuceng2';
import axios from 'axios';
import { clearTimeout, clearInterval, clearImmediate } from 'timers';
import { MessageBox, Toast } from 'mint-ui';
......@@ -844,6 +846,7 @@ export default {
PrizeBox,
TypeBox,
Fuceng,
Fuceng2,
ruwei,
Swipe,
SwipeItem
......

77.3 KB | W: | H:

191 KB | W: | H:

src/pages/index/assets/images/Fuceng.png
src/pages/index/assets/images/Fuceng.png
src/pages/index/assets/images/Fuceng.png
src/pages/index/assets/images/Fuceng.png
  • 2-up
  • Swipe
  • Onion skin

127 KB | W: | H:

251 KB | W: | H:

src/pages/index/assets/images/banner.png
src/pages/index/assets/images/banner.png
src/pages/index/assets/images/banner.png
src/pages/index/assets/images/banner.png
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment