[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') { if (data.trigger == 'left_button_click') {
// eslint-disable-next-line no-undef if(JSON.parse(localStorage.device).source == "ios"){
EWebBridge.webCallAppInJs('webview_closed',{}) this.$jump({
// return flag: 'service'
// this.$jump({ })
// flag: 'home' return
// }) }
this.$jump({
flag: 'home'
})
} }
}, },
getList() { getList() {

View File

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

View File

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