diff --git a/src/views/home/boxBtm.vue b/src/views/home/boxBtm.vue
index 6c83f81..8495dca 100644
--- a/src/views/home/boxBtm.vue
+++ b/src/views/home/boxBtm.vue
@@ -24,10 +24,10 @@
-
+8
+
{{ item.score }}
diff --git a/src/views/home/gameView.vue b/src/views/home/gameView.vue
index 52ae331..db130a2 100644
--- a/src/views/home/gameView.vue
+++ b/src/views/home/gameView.vue
@@ -100,7 +100,6 @@ export default {
clearInterval(serTimeId)
}
} else {
- console.log(JSON.stringify(data))
// alert(`领取成功, 播放动画, 并显示奖励: ${JSON.stringify(data)}`)
cc.mainAnim.setCurrPos(getTotalUsed)
cc.mainAnim.setData(step)
diff --git a/src/views/home/helpDialog.vue b/src/views/home/helpDialog.vue
index 9f2d0bc..48bf051 100644
--- a/src/views/home/helpDialog.vue
+++ b/src/views/home/helpDialog.vue
@@ -98,10 +98,12 @@ export default {
this.boxId = this.$route.params.boxId.split("id=")[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.getBoxData()
- this.getHelpBoxLog()
- this.helpConfirm()
- this.initBoxState(this.boxCode,this.boxId)
+ if(this.token) {
+ this.getBoxData()
+ this.getHelpBoxLog()
+ this.helpConfirm()
+ this.initBoxState(this.boxCode,this.boxId)
+ }
},
methods: {
// 宝箱信息接口
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 2369c7e..426744f 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -65,7 +65,7 @@
-
+
@@ -839,14 +839,18 @@ export default {
// 探索
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.eventName = 'explore_event'
- if(this.awardData.chest.length > 0) {
+ if(this.awardData.chests.length > 0) {
this.level1 = []
this.level2 = []
this.level3 = []
@@ -868,6 +872,7 @@ export default {
}
this.ExploreDialogVisible = true
+ this.getGameStat()
},
// 宝箱助力奖励
@@ -930,6 +935,7 @@ export default {
}
} else {
alert(`领取成功, 获得积分: ${data.score}`)
+ this.$message.success(data.ticket)
this.$refs.renewCheck.renewCheckInit()
this.getGameStat();
localStorage.removeItem(storeageKey)