【银保app】修改页面跳转的字符串截取方式

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2022-11-16 11:50:49 +08:00
parent a6a7691fc1
commit 523bc55a5c
4 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
export default function jump(options) {
// eslint-disable
if (window.WebViewJavascriptBridge && options.flag) {
if (options.flag == 'h5' || options.flag == 'service' || 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

View File

@@ -479,7 +479,7 @@ export default {
touchend(data){
let dataURL = JSON.parse(data.route).extra.url
if(dataURL){
let thisRoute = dataURL.slice(dataURL.lastIndexOf("/#")+2)
let thisRoute = dataURL.substring(dataURL.lastIndexOf("/#")+2)
this.$jump({
flag: 'h5',
extra: {

View File

@@ -149,7 +149,7 @@ export default {
},
pageJump(data){
if(data.name != '设置'){
let thisRoute = data.route.slice(data.route.lastIndexOf("/#")+2)
let thisRoute = data.route.substring(data.route.lastIndexOf("/#")+2)
this.$jump({
flag: 'h5',
extra: {

View File

@@ -132,7 +132,7 @@ export default {
})
},
pageJump(data){
let thisRoute = data.route.slice(data.route.lastIndexOf("/#")+2)
let thisRoute = data.route.substring(data.route.lastIndexOf("/#")+2)
this.$jump({
flag: 'h5',
extra: {