【银保app】修改页面跳转地址拼接方式

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2022-11-16 15:25:37 +08:00
parent bee3c77d4e
commit 23010937e6
3 changed files with 10 additions and 9 deletions

View File

@@ -2,7 +2,12 @@
export default function jump(options) { export default function jump(options) {
// eslint-disable // eslint-disable
if (window.WebViewJavascriptBridge && options.flag) { if (window.WebViewJavascriptBridge && options.flag) {
if (options.flag == 'h5' || options.flag == 'service' || options.flag == 'home' || options.flag == 'mine' || options.flag == 'message' || options.flag == 'setting') { if (options.flag == 'h5' ||
options.flag == 'service' ||
options.flag == 'home' ||
options.flag == 'mine' ||
options.flag == 'message' ||
options.flag == 'setting' ) {
EWebBridge.webCallAppInJs('bridge', { EWebBridge.webCallAppInJs('bridge', {
flag: options.flag, flag: options.flag,
extra: options.extra extra: options.extra

View File

@@ -149,14 +149,13 @@ export default {
}, },
pageJump(data){ pageJump(data){
if(data.name != '设置'){ if(data.name != '设置'){
let thisRoute = data.route.substring(data.route.lastIndexOf("/#")+2)
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
url: location.origin + '/#'+ thisRoute, url: location.origin + data.route,
}, },
routerInfo: { routerInfo: {
path: thisRoute, path: data.route,
}, },
}) })
}else{ }else{

View File

@@ -132,18 +132,15 @@ export default {
}) })
}, },
pageJump(data){ pageJump(data){
let thisRoute = data.route.substring(data.route.lastIndexOf("/#")+2)
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
url: location.origin + '/#'+ thisRoute, url: location.origin + data.route,
}, },
routerInfo: { routerInfo: {
path: thisRoute, path: data.route,
}, },
}) })
// window.location.href = data.route
}, },
}, },
} }