mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-08 03:36:43 +08:00
【银保app】修改页面跳转地址拼接方式
This commit is contained in:
@@ -2,7 +2,12 @@
|
||||
export default function jump(options) {
|
||||
// eslint-disable
|
||||
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', {
|
||||
flag: options.flag,
|
||||
extra: options.extra
|
||||
|
||||
@@ -149,14 +149,13 @@ export default {
|
||||
},
|
||||
pageJump(data){
|
||||
if(data.name != '设置'){
|
||||
let thisRoute = data.route.substring(data.route.lastIndexOf("/#")+2)
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#'+ thisRoute,
|
||||
url: location.origin + data.route,
|
||||
},
|
||||
routerInfo: {
|
||||
path: thisRoute,
|
||||
path: data.route,
|
||||
},
|
||||
})
|
||||
}else{
|
||||
|
||||
@@ -132,18 +132,15 @@ export default {
|
||||
})
|
||||
},
|
||||
pageJump(data){
|
||||
let thisRoute = data.route.substring(data.route.lastIndexOf("/#")+2)
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#'+ thisRoute,
|
||||
url: location.origin + data.route,
|
||||
},
|
||||
routerInfo: {
|
||||
path: thisRoute,
|
||||
path: data.route,
|
||||
},
|
||||
})
|
||||
|
||||
// window.location.href = data.route
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user