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: {