[fix] 对 ios 特别处理, 电子保单列表、建议书列表、nbs列表 的返回功能

This commit is contained in:
tian.guangyuan
2020-06-01 16:56:08 +08:00
parent 816c813fc6
commit e920f55567
3 changed files with 28 additions and 17 deletions

View File

@@ -86,12 +86,15 @@ export default {
})
}
if (data.trigger == 'left_button_click') {
// eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('webview_closed',{})
// return
// this.$jump({
// flag: 'home'
// })
if(JSON.parse(localStorage.device).source == "ios"){
this.$jump({
flag: 'service'
})
return
}
this.$jump({
flag: 'home'
})
}
},
getList() {

View File

@@ -125,12 +125,15 @@ export default {
methods: {
appCallBack(data) {
if (data.trigger == 'left_button_click') {
// eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('webview_closed',{})
// this.$jump({
// flag: 'home',
// extra: {}
// })
if(JSON.parse(localStorage.device).source == "ios"){
this.$jump({
flag: 'service'
})
return
}
this.$jump({
flag: 'home'
})
}
},
//获取建议书列表

View File

@@ -203,11 +203,16 @@ export default {
methods: {
appCallBack(data) {
if (data.trigger == 'left_button_click') {
// eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('webview_closed',{})
// this.$jump({
// flag: 'home'
// })
if(JSON.parse(localStorage.device).source == "ios"){
this.$jump({
flag: 'service'
})
return
}
return
this.$jump({
flag: 'home'
})
}
},
//分页用