【银保app】修改首页轮播图跳转方式的判断条件

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2022-11-16 13:33:37 +08:00
parent 0b2aac5230
commit bee3c77d4e

View File

@@ -477,22 +477,22 @@ export default {
this.clickFlag = false
},
touchend(data){
let dataURL = 'https://iagentsales-test2.e-guofu.com:5100/personal-manage/BusinessCard'
if(dataURL){
let thisRoute = dataURL.slice (dataURL.lastIndexOf("/#")+2)
// let thisRoute = '/poster/posterList'
// console.log(typeof thisRoute)
// console.log(location.origin + '/#'+ thisRoute)
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#' + thisRoute,
},
routerInfo: {
path: thisRoute,
},
})
if(this.clickFlag){
let dataURL = JSON.parse(data.route).extra.url
if(dataURL){
let thisRoute = dataURL.substring(dataURL.lastIndexOf("/#")+2)
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#' + thisRoute,
},
routerInfo: {
path: thisRoute,
},
})
}
}
}
},
}