diff --git a/src/assets/js/utils/jump.js b/src/assets/js/utils/jump.js index 970c162bb..ff194e444 100644 --- a/src/assets/js/utils/jump.js +++ b/src/assets/js/utils/jump.js @@ -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 diff --git a/src/views/YB_APP/mine.vue b/src/views/YB_APP/mine.vue index de2e928b6..66fefb21d 100644 --- a/src/views/YB_APP/mine.vue +++ b/src/views/YB_APP/mine.vue @@ -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{ diff --git a/src/views/YB_APP/service.vue b/src/views/YB_APP/service.vue index 2dfb22157..871767f8f 100644 --- a/src/views/YB_APP/service.vue +++ b/src/views/YB_APP/service.vue @@ -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 }, }, }