From 68ee2b6ebb3be8cabe4f57d24186ad8228f33903 Mon Sep 17 00:00:00 2001 From: 夏洋涛 <1027869635@qq.com> Date: Wed, 9 Aug 2023 16:50:04 +0800 Subject: [PATCH] feat:浙学码对接完成 --- src/views/Home/ZXCode.vue | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) 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