From 291516c334935150ee3f123099e215e5ebb8d02d Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Fri, 17 Jun 2022 00:37:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/java110/utils/UrlUtil.js | 1 + pages/hcWebView/hcWebView.vue | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/java110/utils/UrlUtil.js b/lib/java110/utils/UrlUtil.js index 36ea0db..a1068e8 100644 --- a/lib/java110/utils/UrlUtil.js +++ b/lib/java110/utils/UrlUtil.js @@ -19,6 +19,7 @@ export function decodeUrl(_url){ _url = _url.replace("**", "?"); //已经有?了 } _url = _url.replace("!!", "#"); + _url = _url.replace("$$", "#"); _url = _url.replaceAll("@@", "&"); _url = _url.replaceAll("**", "&"); //已经有?了 diff --git a/pages/hcWebView/hcWebView.vue b/pages/hcWebView/hcWebView.vue index 9d4644f..88a81a0 100644 --- a/pages/hcWebView/hcWebView.vue +++ b/pages/hcWebView/hcWebView.vue @@ -36,7 +36,7 @@ if (_url.indexOf("http") < 0 && _url.indexOf("https") < 0) { _url = conf.mallUrl + '#' + _url; } - + _url = decodeUrl(_url) if(_url.indexOf("?")>0){ _url = _url +"&hcCommunityId="+getMallCommunityId(); }else{ @@ -48,6 +48,7 @@ // #ifndef H5 _url = _url +"&mallFrom=HC_APP" // #endif + this.url = _url; }, methods: {