测试修改弹窗不出现问题
This commit is contained in:
parent
9b1799b98a
commit
4aa41032ff
@ -24,10 +24,10 @@
|
|||||||
<div class="user-img" v-else>
|
<div class="user-img" v-else>
|
||||||
<img :src="item.imgSrc" alt="">
|
<img :src="item.imgSrc" alt="">
|
||||||
</div>
|
</div>
|
||||||
<div class="user-name">User name</div>
|
<div class="user-name">{{ item.nickname }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<div class="records">+8</div>
|
<div class="records">{{ item.score }}</div>
|
||||||
<div class="icon">
|
<div class="icon">
|
||||||
<img src="./../../assets/common/Icon_Points.png" alt="">
|
<img src="./../../assets/common/Icon_Points.png" alt="">
|
||||||
</div>
|
</div>
|
||||||
|
@ -100,7 +100,6 @@ export default {
|
|||||||
clearInterval(serTimeId)
|
clearInterval(serTimeId)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log(JSON.stringify(data))
|
|
||||||
// alert(`领取成功, 播放动画, 并显示奖励: ${JSON.stringify(data)}`)
|
// alert(`领取成功, 播放动画, 并显示奖励: ${JSON.stringify(data)}`)
|
||||||
cc.mainAnim.setCurrPos(getTotalUsed)
|
cc.mainAnim.setCurrPos(getTotalUsed)
|
||||||
cc.mainAnim.setData(step)
|
cc.mainAnim.setData(step)
|
||||||
|
@ -98,10 +98,12 @@ export default {
|
|||||||
this.boxId = this.$route.params.boxId.split("id=")[1];
|
this.boxId = this.$route.params.boxId.split("id=")[1];
|
||||||
this.boxCode = this.$route.params.box.split("box=")[1];
|
this.boxCode = this.$route.params.box.split("box=")[1];
|
||||||
// this.$axios.all([this.getBoxData(),this.getHelpBoxLog(),this.helpConfirm(),this.initBoxState(this.boxCode,this.boxId)])
|
// this.$axios.all([this.getBoxData(),this.getHelpBoxLog(),this.helpConfirm(),this.initBoxState(this.boxCode,this.boxId)])
|
||||||
this.getBoxData()
|
if(this.token) {
|
||||||
this.getHelpBoxLog()
|
this.getBoxData()
|
||||||
this.helpConfirm()
|
this.getHelpBoxLog()
|
||||||
this.initBoxState(this.boxCode,this.boxId)
|
this.helpConfirm()
|
||||||
|
this.initBoxState(this.boxCode,this.boxId)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 宝箱信息接口
|
// 宝箱信息接口
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="explore">
|
<div class="explore">
|
||||||
<div class="explore-zill">
|
<div class="explore-zill">
|
||||||
<gameView ref="stepId" :stepAmount="stepAmount" :getTotalUsed="getTotalUsed" @awardDialog="awardDialog1" />
|
<gameView ref="stepId" :stepAmount="stepAmount" :getTotalUsed="getTotalUsed" @awardDialog="exploreAwardDialog" />
|
||||||
</div>
|
</div>
|
||||||
<div class="explore-desc" v-if="navIndex == 0 || navIndex == 2">
|
<div class="explore-desc" v-if="navIndex == 0 || navIndex == 2">
|
||||||
<div class="explore-desc-logo">
|
<div class="explore-desc-logo">
|
||||||
@ -839,14 +839,18 @@ export default {
|
|||||||
|
|
||||||
// 探索
|
// 探索
|
||||||
async exploreCli(amount) {
|
async exploreCli(amount) {
|
||||||
this.$refs.stepId.sendOneAction(this.getTotalUsed, amount)
|
if(this.token) {
|
||||||
|
this.$refs.stepId.sendOneAction(this.getTotalUsed, amount)
|
||||||
|
} else {
|
||||||
|
this.walletDialogVisible = true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// 探索奖励
|
// 探索奖励
|
||||||
awardDialog1(val) {
|
exploreAwardDialog(val) {
|
||||||
this.awardData = val
|
this.awardData = val
|
||||||
this.eventName = 'explore_event'
|
this.eventName = 'explore_event'
|
||||||
if(this.awardData.chest.length > 0) {
|
if(this.awardData.chests.length > 0) {
|
||||||
this.level1 = []
|
this.level1 = []
|
||||||
this.level2 = []
|
this.level2 = []
|
||||||
this.level3 = []
|
this.level3 = []
|
||||||
@ -868,6 +872,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.ExploreDialogVisible = true
|
this.ExploreDialogVisible = true
|
||||||
|
this.getGameStat()
|
||||||
},
|
},
|
||||||
|
|
||||||
// 宝箱助力奖励
|
// 宝箱助力奖励
|
||||||
@ -930,6 +935,7 @@ export default {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
alert(`领取成功, 获得积分: ${data.score}`)
|
alert(`领取成功, 获得积分: ${data.score}`)
|
||||||
|
this.$message.success(data.ticket)
|
||||||
this.$refs.renewCheck.renewCheckInit()
|
this.$refs.renewCheck.renewCheckInit()
|
||||||
this.getGameStat();
|
this.getGameStat();
|
||||||
localStorage.removeItem(storeageKey)
|
localStorage.removeItem(storeageKey)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user