Commit 7e66e689 by 李嘉林

首页弹框

parent c69b8ab8
...@@ -39,14 +39,13 @@ export default { ...@@ -39,14 +39,13 @@ export default {
components: {}, components: {},
computed: {}, computed: {},
onShow() { onShow() {
console.log('ImproveInformation-onShow->')
this.init();
}, },
created() { created() {},
this.init(); mounted() {
console.log('ImproveInformation-created->', wx.getStorageSync('sessionid')) // this.init();
// console.log('ImproveInformation-created->', wx.getStorageSync('sessionid'))
}, },
mounted() { },
methods: { methods: {
async init() { async init() {
if (wx.getStorageSync('notPromptFlag')) { if (wx.getStorageSync('notPromptFlag')) {
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<div class="btn"> <div class="btn">
<img src="http://cdn.mayi888.com/public/png/e5922aa4-5edd-4aee-909d-4a63c3459cd9.png" alt /> <img src="http://cdn.mayi888.com/public/png/e5922aa4-5edd-4aee-909d-4a63c3459cd9.png" alt />
<span v-if="sessionId" @click="closeHandle">立即收下</span> <span v-if="sessionId" @click="closeHandle">立即收下</span>
<span v-else @click="toReceive">立即领取</span> <span v-else @click="toReceive">关闭</span>
</div> </div>
<div class="bg"> <div class="bg">
<img src="http://cdn.mayi888.com/public/png/649d4190-80a8-43b2-a2ac-b8cb83daee1f.png" alt /> <img src="http://cdn.mayi888.com/public/png/649d4190-80a8-43b2-a2ac-b8cb83daee1f.png" alt />
...@@ -157,7 +157,7 @@ export default { ...@@ -157,7 +157,7 @@ export default {
position: absolute; position: absolute;
width: 100%; width: 100%;
margin: auto; margin: auto;
top: 4%; top: 20%;
.name{ .name{
position: absolute; position: absolute;
width: 100%; width: 100%;
...@@ -250,7 +250,7 @@ export default { ...@@ -250,7 +250,7 @@ export default {
} }
.bg { .bg {
width: 95%; width: 95%;
height: 80vh; height: 70vh;
margin:0 auto; margin:0 auto;
img{ img{
width: 100%; width: 100%;
......
...@@ -1149,6 +1149,9 @@ export default { ...@@ -1149,6 +1149,9 @@ export default {
} }
} }
} }
if (!this.showgiftBag) {
this.$refs.ImproveInformation.init();
}
}); });
} }
}, 1000); }, 1000);
......
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