From 36ce8d272a6fff36c356d568da74f4d048156f21 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Fri, 25 Jun 2021 18:46:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=89=B4=E6=9D=83=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/webView/webViewApi.js | 3 +-- pages/hcWebViewRefresh/hcWebViewRefresh.vue | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/api/webView/webViewApi.js b/api/webView/webViewApi.js index 2c780fa..426e14b 100644 --- a/api/webView/webViewApi.js +++ b/api/webView/webViewApi.js @@ -82,9 +82,8 @@ export function actionRefreshToken(that) { }); }, function(error) { //回话过期 console.log('回话已经过期'); - let _redirectUrl = conf.mallUrl + '/#/pages/mallTokenRefresh/mallTokenRefresh' let _hasOwnerUrl = window.location.origin+'/#/pages/hcWebViewRefresh/hcWebViewRefresh?java110Id='+uuid(); - let _mallAuthUrl = conf.mallUrl+"/app/userAuth/mallUserRefreshToken?redirectUrl="+_redirectUrl; + let _mallAuthUrl = conf.mallUrl+"/app/userAuth/mallUserRefreshToken?redirectUrl="+_hasOwnerUrl; wechatRefreshToken(_mallAuthUrl, '0', _hasOwnerUrl); }); } diff --git a/pages/hcWebViewRefresh/hcWebViewRefresh.vue b/pages/hcWebViewRefresh/hcWebViewRefresh.vue index caba1d3..357c875 100644 --- a/pages/hcWebViewRefresh/hcWebViewRefresh.vue +++ b/pages/hcWebViewRefresh/hcWebViewRefresh.vue @@ -28,6 +28,11 @@ }, onLoad(options) { let _key = options.key; + let _hcCode = options.hcCode; + if(isNotNull(_hcCode)){ + this.url = conf.mallUrlRefresh + "&hcCode=" + _hcCode; + return ; + } if (isNotNull(_key)) { context.onLoad(options, this._getHcCode); } else {