diff --git a/src/views/home/helpDialog.vue b/src/views/home/helpDialog.vue index 2a48901..415b71d 100644 --- a/src/views/home/helpDialog.vue +++ b/src/views/home/helpDialog.vue @@ -107,8 +107,8 @@ export default { mounted() { this.token = getToken() if(this.$route.params.name) { - if(this.$route.params.code.split("id=")[1] != 'undefined') { - this.boxCode = this.$route.params.box.split("box=")[1]; + if(this.$route.params.code.split("=")[0] == 'box') { + this.boxCode = this.$route.params.code.split("box=")[1]; this.getBoxData() if(this.token) { this.getHelpBoxLog() diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 45ebe1b..98b8a76 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -831,8 +831,10 @@ export default { this.initData(); this.$nextTick(() => { if (this.$route.params.code) { - if (this.$route.params.code.split("box=")[1] != "undefined") { - this.helpDialogVisible = true; + if (this.$route.params.code.split("=")[0] == "box") { + if(this.$route.params.code.split("=").split[1]) { + this.helpDialogVisible = true; + } } } }); @@ -853,9 +855,12 @@ export default { this.myEnhanceCount = this.userData.enhanceCount; this.inWhiteList = this.userData.inWhiteList; if (this.$route.params.code) { - if (this.$route.params.code.split("new=")[1] != "undefined") { - this.helpConfirm() + if(this.$route.params.code.split("=")[0] == 'new') { + if (this.$route.params.code.split("new=")[1] != "undefined") { + this.helpConfirm() + } } + } } else { this.walletDialogVisible = true; @@ -2040,6 +2045,21 @@ export default { color: deepskyblue; } } + &::-webkit-scrollbar { + width: 5px; + } + &::-webkit-scrollbar-track { + background: #171220; + border-radius: 2px; + } + &::-webkit-scrollbar-corner { + display: block; + } + &::-webkit-scrollbar-thumb { + height: 15px; + background: #9950fd; + border-radius: 10px; + } } .partner-list { height: 380px;