Commit b6d8d3c1 by 穆启卓

支付成功弹框显示

parent e8a23299
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<div class="func-btn" @click="goOtherPage('GoXCX')">提交今日步数</div> <div class="func-btn" @click="goOtherPage('GoXCX')">提交今日步数</div>
<div class="next-func-btn" v-if="next_signup" @click="joinNextGame()">报名下一期</div> <div class="next-func-btn" v-if="next_signup" @click="joinNextGame()">报名下一期</div>
<!-- 报名成功弹框 --> <!-- 报名成功弹框 -->
<div class="game-status-popup" v-if="false"> <div class="game-status-popup" v-if="userHavePaidGame">
<div class="game-status-container"> <div class="game-status-container">
<img class="status-icon" src="../images/HaveJoinedGame/pop_bmcg_title.png"> <img class="status-icon" src="../images/HaveJoinedGame/pop_bmcg_title.png">
<img class="join-success-banner" src="../images/HaveJoinedGame/pop_bmcg_img.png"> <img class="join-success-banner" src="../images/HaveJoinedGame/pop_bmcg_img.png">
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</div> </div>
<div class="popup-text2">注:微信暂不支持小程序实时更新步数</div> <div class="popup-text2">注:微信暂不支持小程序实时更新步数</div>
<div class="popup-btn1 green-btn">邀请好友来参赛</div> <div class="popup-btn1 green-btn">邀请好友来参赛</div>
<img class="close-btn" src="../images/common/pop_ic_close.png"> <img class="close-btn" src="../images/common/pop_ic_close.png" @click="closePayPopup()">
</div> </div>
</div> </div>
<!-- 恭喜达标弹框 --> <!-- 恭喜达标弹框 -->
...@@ -124,12 +124,17 @@ export default { ...@@ -124,12 +124,17 @@ export default {
total_signup: 0, total_signup: 0,
target_steps: 0, target_steps: 0,
record_list: [], record_list: [],
popupData: {} popupData: {},
userHavePaidGame: false
}; };
}, },
created() { created() {
this.getPageData(); this.getPageData();
this.isPopup(); this.isPopup();
if (sessionStorage.getItem('userHavePaidGame') === 'true') {
sessionStorage.setItem('userHavePaidGame', 'false');
this.userHavePaidGame = true;
}
}, },
methods: { methods: {
joinNextGame() { joinNextGame() {
...@@ -140,6 +145,9 @@ export default { ...@@ -140,6 +145,9 @@ export default {
} }
}); });
}, },
closePayPopup() {
this.userHavePaidGame = false;
},
closePopup() { closePopup() {
this.popupData.window = false; this.popupData.window = false;
}, },
......
...@@ -174,6 +174,7 @@ ...@@ -174,6 +174,7 @@
this.showModal("温馨提示", "报名成功", { this.showModal("温馨提示", "报名成功", {
scb: () => { scb: () => {
sessionStorage.setItem('userHaveJoinGame', 'true') sessionStorage.setItem('userHaveJoinGame', 'true')
sessionStorage.setItem('userHavePaidGame', 'true');
this.$router.push({name: "HaveJoinedGame"}) this.$router.push({name: "HaveJoinedGame"})
} }
}) })
......
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