mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 20:56:45 +08:00
【银保app】修改页面跳转地址拼接方式
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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{
|
||||||
|
|||||||
@@ -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
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user