Commit 156e4556 authored by xishifeng's avatar xishifeng

红包弹窗

parent 273d0cef
...@@ -13,7 +13,7 @@ module.exports = { ...@@ -13,7 +13,7 @@ module.exports = {
proxyTable: {}, proxyTable: {},
// Various Dev Server settings // Various Dev Server settings
host: 'localhost', // can be overwritten by process.env.HOST host: '192.168.0.74', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: true, autoOpenBrowser: true,
errorOverlay: true, errorOverlay: true,
......
<template>
<div class="red-pack-mask flex-center">
<div>
<div class="red-pack-area"></div>
<div class="close-btn-area" @click="closeClick"></div>
</div>
</div>
</template>
<script>
export default {
name: '',
components: {
},
props: {
data: {
type: Object,
default: () => ({
message: 'hello'
})
}
},
data() {
return {
}
},
watch: {
data(newValue, oldVal) {
}
},
created() {
let _this = this;
},
mounted() {
let _this = this;
},
computed: {
},
methods: {
closeClick() {
this.$emit('closeclick');
}
}
}
</script>
<style scoped>
.red-pack-mask{
position: fixed;
z-index: 670;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, .7);
}
.red-pack-area{
width: 5.92rem;
height: 6.9rem;
background: url(images/img@2x.png) no-repeat center center/5.92rem 6.9rem;
margin-bottom: 1.46rem;
}
.close-btn-area{
width: .72rem;
height: .72rem;
background: url(images/icon_close@2x.png) no-repeat center center/.72rem .72rem;
margin: 0 auto;
}
</style>
\ No newline at end of file
...@@ -86,6 +86,8 @@ ...@@ -86,6 +86,8 @@
<div class="to-five-page" v-if='isGif' @click="tabFivePage()"> <div class="to-five-page" v-if='isGif' @click="tabFivePage()">
<img :src="gif_img" class="to-five-page-img"/> <img :src="gif_img" class="to-five-page-img"/>
</div> </div>
<red-pack-mask @closeclick="showRedPackMask = false" v-if="showRedPackMask"></red-pack-mask>
</div> </div>
</template> </template>
...@@ -97,10 +99,12 @@ ...@@ -97,10 +99,12 @@
import icon_down from '@/components/shop/images/icon_down@2x.png'; import icon_down from '@/components/shop/images/icon_down@2x.png';
import icon_down02 from '@/components/shop/images/icon_down02@2x.png'; import icon_down02 from '@/components/shop/images/icon_down02@2x.png';
import paginationLoad from '@/components/publicEg/paginationLoad'; import paginationLoad from '@/components/publicEg/paginationLoad';
import redPackMask from '@/components/shop/redPackMask';
import '@/assets/js/layer041002.js'; import '@/assets/js/layer041002.js';
export default { export default {
components: { components: {
'pagination-load': paginationLoad, 'pagination-load': paginationLoad,
'red-pack-mask': redPackMask,
}, },
data: () => ({ data: () => ({
list: [], list: [],
...@@ -175,6 +179,8 @@ ...@@ -175,6 +179,8 @@
'title': '更多', 'title': '更多',
'isShow': false, 'isShow': false,
}], }],
showRedPackMask: true,//是否显示红包弹窗
}), }),
created() { created() {
let _this = this; let _this = this;
......
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 to comment