mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-23 20:12:53 +08:00
Merge branch 'feature/GFRS-597【电投页面优化】' into dev
# Conflicts: # src/views/ebiz/common/SelectedProduct.vue
This commit is contained in:
@@ -60,7 +60,10 @@ export default {
|
|||||||
let url = ''
|
let url = ''
|
||||||
//由 localStorage.salePageFlag 来控制是否可跳到指定页面
|
//由 localStorage.salePageFlag 来控制是否可跳到指定页面
|
||||||
console.log('点击跳转', 'pageIndex=', pageIndex, 'salePageFlag==', this.salePageFlag)
|
console.log('点击跳转', 'pageIndex=', pageIndex, 'salePageFlag==', this.salePageFlag)
|
||||||
if (this.salePageFlag < pageIndex) return
|
if (localStorage.salePageFlag == '-10' && pageIndex != 8) {
|
||||||
|
this.$toast('已到达签名确认流程,不可以回到前面的流程')
|
||||||
|
}
|
||||||
|
if (Number(this.salePageFlag) < Number(pageIndex)) return
|
||||||
switch (pageIndex) {
|
switch (pageIndex) {
|
||||||
case 1: //跳到投保人页面
|
case 1: //跳到投保人页面
|
||||||
url = `/sale/insuredInfo?edit=1&salePageFlag=${pageIndex}`
|
url = `/sale/insuredInfo?edit=1&salePageFlag=${pageIndex}`
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="background: #f5f5f5" class="select-product-container">
|
<div style="background: #f5f5f5" class="select-product-container">
|
||||||
|
<div v-if="isFrom == 'sale'">
|
||||||
<index-bar></index-bar>
|
<index-bar></index-bar>
|
||||||
|
</div>
|
||||||
<div class="mt8"></div>
|
<div class="mt8"></div>
|
||||||
<div v-for="(item, index) in chooseProducts" :key="index" class="mb20 bg-white mh15 pv15 pr15 pl10 radius5">
|
<div v-for="(item, index) in chooseProducts" :key="index" class="mb20 bg-white mh15 pv15 pr15 pl10 radius5">
|
||||||
<div class="flex mv10 align-items-c">
|
<div class="flex mv10 align-items-c">
|
||||||
@@ -60,6 +62,7 @@ export default {
|
|||||||
nextStepFlag: true,
|
nextStepFlag: true,
|
||||||
isShow: true,
|
isShow: true,
|
||||||
appntDTO: {},
|
appntDTO: {},
|
||||||
|
isFrom: localStorage.isFrom,
|
||||||
salePageFlag: '3'
|
salePageFlag: '3'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -71,10 +74,14 @@ export default {
|
|||||||
[IndexBar.name]: IndexBar
|
[IndexBar.name]: IndexBar
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
if (localStorage.isFrom == 'sale') {
|
||||||
|
setTimeout(() => {
|
||||||
EWebBridge.webCallAppInJs('webview_left_button', {
|
EWebBridge.webCallAppInJs('webview_left_button', {
|
||||||
img: this.$assetsUrl + 'images/del-close@3x.png',
|
img: this.$assetsUrl + 'images/del-close@3x.png',
|
||||||
intercept: '1' //是否拦截原生返回事件 1是 其他否
|
intercept: '1' //是否拦截原生返回事件 1是 其他否
|
||||||
})
|
})
|
||||||
|
}, 100)
|
||||||
|
}
|
||||||
window.appCallBack = this.appCallBack
|
window.appCallBack = this.appCallBack
|
||||||
document.body.style.backgroundColor = '#fff'
|
document.body.style.backgroundColor = '#fff'
|
||||||
this.getProductList()
|
this.getProductList()
|
||||||
@@ -109,7 +116,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
appCallBack(data) {
|
appCallBack(data) {
|
||||||
if (data.trigger == 'left_button_click') {
|
if (data.trigger == 'left_button_click' && localStorage.isFrom == 'sale') {
|
||||||
return this.$dialog
|
return this.$dialog
|
||||||
.confirm({
|
.confirm({
|
||||||
className: 'dialog-delete',
|
className: 'dialog-delete',
|
||||||
@@ -123,6 +130,7 @@ export default {
|
|||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
title: '电子投保单列表',
|
title: '电子投保单列表',
|
||||||
|
forbidSwipeBack: 1, //当前页面禁止右滑返回
|
||||||
url: location.origin + `/#/sale/list`
|
url: location.origin + `/#/sale/list`
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
|
|||||||
@@ -249,6 +249,7 @@ export default {
|
|||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
title: '电子投保单列表',
|
title: '电子投保单列表',
|
||||||
|
forbidSwipeBack: 1, //当前页面禁止右滑返回
|
||||||
url: location.origin + `/#/sale/list`
|
url: location.origin + `/#/sale/list`
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
|
|||||||
@@ -556,6 +556,7 @@ export default {
|
|||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
title: '电子投保单列表',
|
title: '电子投保单列表',
|
||||||
|
forbidSwipeBack: 1, //当前页面禁止右滑返回
|
||||||
url: location.origin + `/#/sale/list`
|
url: location.origin + `/#/sale/list`
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
|
|||||||
@@ -135,6 +135,7 @@ export default {
|
|||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
title: '电子投保单列表',
|
title: '电子投保单列表',
|
||||||
|
forbidSwipeBack: 1, //当前页面禁止右滑返回
|
||||||
url: location.origin + `/#/sale/list`
|
url: location.origin + `/#/sale/list`
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
|
|||||||
@@ -565,6 +565,7 @@ export default {
|
|||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
title: '电子投保单列表',
|
title: '电子投保单列表',
|
||||||
|
forbidSwipeBack:1,//当前页面禁止右滑返回
|
||||||
url: location.origin + `/#/sale/list`
|
url: location.origin + `/#/sale/list`
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
|
|||||||
@@ -1033,6 +1033,7 @@ export default {
|
|||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
title: '电子投保单列表',
|
title: '电子投保单列表',
|
||||||
|
forbidSwipeBack: 1, //当前页面禁止右滑返回
|
||||||
url: location.origin + `/#/sale/list`
|
url: location.origin + `/#/sale/list`
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
|
|||||||
@@ -276,6 +276,7 @@ export default {
|
|||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
title: '电子投保单列表',
|
title: '电子投保单列表',
|
||||||
|
forbidSwipeBack: 1, //当前页面禁止右滑返回
|
||||||
url: location.origin + `/#/sale/list`
|
url: location.origin + `/#/sale/list`
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
|
|||||||
@@ -320,6 +320,35 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
appCallBack(data) {
|
||||||
|
if (data.trigger == 'left_button_click') {
|
||||||
|
return this.$dialog
|
||||||
|
.confirm({
|
||||||
|
className: 'dialog-delete',
|
||||||
|
title: '提示',
|
||||||
|
message: '退出流程可能会丢失部分数据,是否确认退出?',
|
||||||
|
cancelButtonColor: '#E9332E',
|
||||||
|
confirmButtonColor: '#FFFFFF'
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
this.$jump({
|
||||||
|
flag: 'h5',
|
||||||
|
extra: {
|
||||||
|
title: '电子投保单列表',
|
||||||
|
forbidSwipeBack: 1, //当前页面禁止右滑返回
|
||||||
|
url: location.origin + `/#/sale/list`
|
||||||
|
},
|
||||||
|
routerInfo: {
|
||||||
|
path: `/sale/list`,
|
||||||
|
type: '1'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
return
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
// 初始化
|
// 初始化
|
||||||
async init() {
|
async init() {
|
||||||
localStorage.doubleRecordFlag = '0' //0不是双录单 1是双录单
|
localStorage.doubleRecordFlag = '0' //0不是双录单 1是双录单
|
||||||
@@ -1087,9 +1116,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
setTimeout(() => {
|
||||||
EWebBridge.webCallAppInJs('webview_left_button', {
|
EWebBridge.webCallAppInJs('webview_left_button', {
|
||||||
intercept: '1' //是否拦截原生返回事件 1是 其他否
|
intercept: '1' //是否拦截原生返回事件 1是 其他否
|
||||||
})
|
})
|
||||||
|
}, 100)
|
||||||
|
window.appCallBack = this.appCallBack
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
//若进入签名页,则不允许回到签名页前面的页面
|
//若进入签名页,则不允许回到签名页前面的页面
|
||||||
|
|||||||
Reference in New Issue
Block a user