mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 02:16:44 +08:00
【银保app】修改页面跳转的字符串截取方式
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user