修改邀请链接参数

This commit is contained in:
yuyongdong 2024-04-16 20:26:52 +08:00
parent 468dc301da
commit b46bede28f
2 changed files with 13 additions and 12 deletions

View File

@ -108,20 +108,15 @@ export default {
mounted() { mounted() {
this.token = getToken() this.token = getToken()
if(this.$route.params.name) { if(this.$route.params.name) {
if(this.$route.params.boxId.split("id=")[1] != 'undefined') { if(this.$route.params.code.split("=")[0] == 'box') {
this.boxId = this.$route.params.boxId.split("id=")[1]; this.boxCode = this.$route.params.code.split("box=")[1];
this.boxCode = this.$route.params.box.split("box=")[1];
this.getBoxData() this.getBoxData()
if(this.token) { if(this.token) {
this.getHelpBoxLog() this.getHelpBoxLog()
// this.helpConfirm() this.initBoxState(this.boxCode)
this.initBoxState(this.boxCode,this.boxId)
} }
// } else {
// this.$emit('handleClose')
} }
} }
}, },
methods: { methods: {
// //

View File

@ -750,8 +750,10 @@ export default {
this.initData() this.initData()
this.$nextTick(() => { this.$nextTick(() => {
if (this.$route.params.code) { if (this.$route.params.code) {
if(this.$route.params.code.split("=")[0] == 'box') { if (this.$route.params.code.split("=")[0] == "box") {
this.helpDialogVisible = true if(this.$route.params.code.split("=").split[1]) {
this.helpDialogVisible = true;
}
} }
} }
}); });
@ -772,8 +774,12 @@ export default {
this.myInviteCount = this.userData.inviteCount this.myInviteCount = this.userData.inviteCount
this.myEnhanceCount = this.userData.enhanceCount this.myEnhanceCount = this.userData.enhanceCount
this.inWhiteList = this.userData.inWhiteList this.inWhiteList = this.userData.inWhiteList
if(this.$route.params.name) { if (this.$route.params.code) {
this.helpConfirm() if(this.$route.params.code.split("=")[0] == 'new') {
if (this.$route.params.code.split("new=")[1] != "undefined") {
this.helpConfirm()
}
}
} }
} else { } else {