diff --git a/src/views/Home/ZXCode.vue b/src/views/Home/ZXCode.vue index 5fd60df..72c1095 100644 --- a/src/views/Home/ZXCode.vue +++ b/src/views/Home/ZXCode.vue @@ -37,7 +37,7 @@ export default { } else { StudentDetialInfo = JSON.parse(StudentDetialInfo) this.StudentDetialInfo = StudentDetialInfo - let appId = '' + let appId = '133199' if (StudentDetialInfo.cubeUserId) { this.iframeUrl = `https://zcode-images.zjedu.com:9060/QRCode/index.html?appId=${appId}&areaCode=330600&simple=true&cubeUserId=${StudentDetialInfo.cubeUserId}` } else { @@ -47,16 +47,10 @@ export default { }, // 绑定浙学码 bindLearnCode(cubeUserId) { - this.yxAxios - .get(`${this.proxyUrl}/user/info/bindLearnCode?travelerId=${this.StudentDetialInfo.id}&cubeUserld=${cubeUserId}`) - .then((res) => { - let data = res.data - if (data.code == 1) { - // this.datalist = data.data.list - } else { - this.$toast.fail(data.message) - } - }) + let StudentDetialInfo = localStorage.getItem('StudentDetialInfo') + StudentDetialInfo = JSON.parse(StudentDetialInfo) + if (StudentDetialInfo.cubeUserId) return + this.yxAxios.get(`${this.proxyUrl}/user/info/bindLearnCode?travelerId=${this.StudentDetialInfo.id}&cubeUserId=${cubeUserId}`) }, }, } -- libgit2 0.21.0