From 83e49ed8b1ab05dd332def0fba6c3703d1e91373 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期五, 11 八月 2023 16:32:28 +0800 Subject: [PATCH] Merge branch 'feature/v1.1.5开发' into develop --- uniapp/pages/rankinglist/fengqiang.vue | 22 +++++++++++++++------- 1 files changed, 15 insertions(+), 7 deletions(-) diff --git a/uniapp/pages/rankinglist/fengqiang.vue b/uniapp/pages/rankinglist/fengqiang.vue index bfff77a..5a9ad31 100644 --- a/uniapp/pages/rankinglist/fengqiang.vue +++ b/uniapp/pages/rankinglist/fengqiang.vue @@ -48,6 +48,7 @@ else{ const value = uni.getStorageSync('userInfo'); console.log(value); + //this.webviewUrl = encodeURI('http://appapitest.ushopvip.com/html/fengqiangbang.html?token='+value.token); this.webviewUrl = encodeURI('http://dfgapp.ushopvip.com/html/fengqiangbang.html?token='+value.token); } @@ -57,15 +58,22 @@ }, methods: { received(e) { - console.log(e.detail.data[0].type) - if(e.detail.data[0].type=='getToken'){ - const token = uni.getStorageSync('userInfo').token; - var currentWebview = this.$scope.$getAppWebview() - var wv = currentWebview.children()[0] - wv.evalJS('localStorage.setItem("ZZTOKEN",' + JSON.stringify(token) + ')'); + var res=e.detail.data[0]; + console.log(res); + switch(res.action) + { + case "back"://杩斿洖 + this.backLast(); + break; } }, - + backLast() + { + console.log("杩斿洖") + uni.navigateBack({ + delta: 1 + }); + }, // 鍏抽棴mui杩斿洖 clearMuiBack() { // #ifdef APP-PLUS -- Gitblit v1.9.3