mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-22 03:36:44 +08:00
Merge branch 'feature/GFRS-597【电投页面优化】' into dev
# Conflicts: # src/views/ebiz/sale/NotifyingMessage.vue
This commit is contained in:
@@ -89,6 +89,18 @@ export default {
|
|||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
let str = location.hash
|
||||||
|
let i = str.search(/AttachmentManagement/i)
|
||||||
|
if (i !== -1 && pageIndex != 7 && pageIndex != 8) {
|
||||||
|
this.$dialog
|
||||||
|
.confirm({
|
||||||
|
className: 'dialog-delete',
|
||||||
|
title: '提示',
|
||||||
|
message: '离开此页可能会丢失部分数据,是否确认离开?',
|
||||||
|
cancelButtonColor: '#E9332E',
|
||||||
|
confirmButtonColor: '#FFFFFF'
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
@@ -97,6 +109,20 @@ export default {
|
|||||||
},
|
},
|
||||||
routerInfo: { path: url }
|
routerInfo: { path: url }
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
return
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$jump({
|
||||||
|
flag: 'h5',
|
||||||
|
extra: {
|
||||||
|
forbidSwipeBack: '1',
|
||||||
|
url: location.origin + `/#${url}`
|
||||||
|
},
|
||||||
|
routerInfo: { path: url }
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
selectTab() {
|
selectTab() {
|
||||||
let endIndex = location.hash.indexOf('?', 1)
|
let endIndex = location.hash.indexOf('?', 1)
|
||||||
|
|||||||
@@ -234,7 +234,33 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
appCallBack() {
|
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: '电子投保单列表',
|
||||||
|
url: location.origin + `/#/sale/list`
|
||||||
|
},
|
||||||
|
routerInfo: {
|
||||||
|
path: `/sale/list`,
|
||||||
|
type: '1'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
return
|
||||||
|
})
|
||||||
|
} else {
|
||||||
this.isclear = true
|
this.isclear = true
|
||||||
// 筛选按钮的点击事件
|
// 筛选按钮的点击事件
|
||||||
this.isclear = true
|
this.isclear = true
|
||||||
@@ -246,6 +272,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.isScan = false
|
this.isScan = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 单选框选中
|
// 单选框选中
|
||||||
clickRadio(val) {
|
clickRadio(val) {
|
||||||
@@ -373,7 +400,6 @@ export default {
|
|||||||
}
|
}
|
||||||
saveInformation(data).then(res => {
|
saveInformation(data).then(res => {
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
localStorage.salePageFlag = '8' //当前后台接口及前端代码不完善,仅调试观察现象使用,调试完成后删除
|
|
||||||
window.localStorage.setItem('accountInformationRadio', that.radio)
|
window.localStorage.setItem('accountInformationRadio', that.radio)
|
||||||
|
|
||||||
that.$jump({
|
that.$jump({
|
||||||
@@ -425,6 +451,8 @@ export default {
|
|||||||
localStorage.setItem('isAutoPay', res.orderDTO.orderAccountDTO.isAutoPay)
|
localStorage.setItem('isAutoPay', res.orderDTO.orderAccountDTO.isAutoPay)
|
||||||
localStorage.setItem('isAutoRenewal', res.orderDTO.orderAccountDTO.isAutoRenewal)
|
localStorage.setItem('isAutoRenewal', res.orderDTO.orderAccountDTO.isAutoRenewal)
|
||||||
localStorage.setItem('isRenew', res.orderDTO.orderAccountDTO.isRenew)
|
localStorage.setItem('isRenew', res.orderDTO.orderAccountDTO.isRenew)
|
||||||
|
} else {
|
||||||
|
localStorage.setItem('salePageFlag', this.salePageFlag)
|
||||||
}
|
}
|
||||||
this.productNo = res.orderDTO.insuredDTOs[0].riskDTOLst[0].mainRiskCode
|
this.productNo = res.orderDTO.insuredDTOs[0].riskDTOLst[0].mainRiskCode
|
||||||
//计算年龄
|
//计算年龄
|
||||||
@@ -462,19 +490,14 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
document.body.style.backgroundColor = '#F5F5F5'
|
document.body.style.backgroundColor = '#F5F5F5'
|
||||||
|
setTimeout(() => {
|
||||||
|
EWebBridge.webCallAppInJs('webview_left_button', {
|
||||||
|
img: this.$assetsUrl + 'images/del-close@3x.png',
|
||||||
|
intercept: '1' //是否拦截原生返回事件 1是 其他否
|
||||||
|
})
|
||||||
|
}, 100)
|
||||||
// 筛选按钮的点击事件
|
// 筛选按钮的点击事件
|
||||||
window.appCallBack = this.appCallBack
|
window.appCallBack = this.appCallBack
|
||||||
if (!this.$route.query.edit) {
|
|
||||||
//如果不是编辑/导航条跳转进来的
|
|
||||||
localStorage.setItem('salePageFlag', this.salePageFlag)
|
|
||||||
} else if (this.$route.query.edit && !this.$route.query.salePageFlag) {
|
|
||||||
//如果从保单列表点击编辑按钮进入
|
|
||||||
this.salePageFlag = '6'
|
|
||||||
localStorage.setItem('salePageFlag', this.salePageFlag)
|
|
||||||
} else if (this.$route.query.salePageFlag) {
|
|
||||||
//如果是从导航栏点击进入
|
|
||||||
this.salePageFlag = localStorage.salePageFlag
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
beforeRouteLeave(to, from, next) {
|
beforeRouteLeave(to, from, next) {
|
||||||
document.body.style.backgroundColor = ''
|
document.body.style.backgroundColor = ''
|
||||||
|
|||||||
@@ -385,6 +385,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
setTimeout(() => {
|
||||||
|
EWebBridge.webCallAppInJs('webview_left_button', {
|
||||||
|
// img: this.$assetsUrl + 'images/del-close@3x.png',
|
||||||
|
intercept: '1' //是否拦截原生返回事件 1是 其他否
|
||||||
|
})
|
||||||
|
}, 100)
|
||||||
|
window.appCallBack = this.appCallBack
|
||||||
if (!this.$route.query.edit) {
|
if (!this.$route.query.edit) {
|
||||||
//如果不是编辑/导航条跳转进来的
|
//如果不是编辑/导航条跳转进来的
|
||||||
localStorage.setItem('salePageFlag', this.salePageFlag)
|
localStorage.setItem('salePageFlag', this.salePageFlag)
|
||||||
@@ -534,6 +541,35 @@ export default {
|
|||||||
next()
|
next()
|
||||||
},
|
},
|
||||||
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: '电子投保单列表',
|
||||||
|
url: location.origin + `/#/sale/list`
|
||||||
|
},
|
||||||
|
routerInfo: {
|
||||||
|
path: `/sale/list`,
|
||||||
|
type: '1'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
return
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
// 删除图片前
|
// 删除图片前
|
||||||
beforeDelete(file, detail) {
|
beforeDelete(file, detail) {
|
||||||
let that = this
|
let that = this
|
||||||
@@ -971,7 +1007,6 @@ export default {
|
|||||||
window.localStorage.removeItem('bankCardUrlPath')
|
window.localStorage.removeItem('bankCardUrlPath')
|
||||||
window.localStorage.removeItem('bankCardUrlInsured')
|
window.localStorage.removeItem('bankCardUrlInsured')
|
||||||
window.localStorage.removeItem('bankCardUrlInsuredPath')
|
window.localStorage.removeItem('bankCardUrlInsuredPath')
|
||||||
localStorage.salePageFlag = '8' //当前后台接口及前端代码不完善,仅调试观察现象使用,调试完成后删除
|
|
||||||
that.$jump({
|
that.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
|
|||||||
@@ -86,13 +86,14 @@ export default {
|
|||||||
this.beneficiaries = this.beneficiaries.concat(JSON.parse(localStorage.beneficiaryInfo))
|
this.beneficiaries = this.beneficiaries.concat(JSON.parse(localStorage.beneficiaryInfo))
|
||||||
this.type = '2'
|
this.type = '2'
|
||||||
console.log(this.beneficiaries)
|
console.log(this.beneficiaries)
|
||||||
}
|
} else {
|
||||||
//如果是从编辑/导航进来
|
|
||||||
if (this.$route.query.edit) {
|
|
||||||
getOrderDetail({ orderNo: localStorage.orderNo }).then(res => {
|
getOrderDetail({ orderNo: localStorage.orderNo }).then(res => {
|
||||||
if (res.result == 0) {
|
if (res.result == 0) {
|
||||||
this.$utils.intLocalStorage(res)
|
this.$utils.intLocalStorage(res)
|
||||||
this.type = res.orderDTO.orderInfoDTO.bnfFlag == '1' ? '2' : '1' //bnfFlag 0-法定受益人 1-指定受益人
|
this.type = res.orderDTO.orderInfoDTO.bnfFlag == '1' ? '2' : '1' //bnfFlag 0-法定受益人 1-指定受益人
|
||||||
|
if (res.orderDTO.orderInfoDTO.bnfFlag == null) {
|
||||||
|
localStorage.setItem('salePageFlag', this.salePageFlag)
|
||||||
|
}
|
||||||
if (res.orderDTO.insuredDTOs[0].bnfDTOs !== null) {
|
if (res.orderDTO.insuredDTOs[0].bnfDTOs !== null) {
|
||||||
this.beneficiaries = this.beneficiaries.concat(res.orderDTO.insuredDTOs[0].bnfDTOs)
|
this.beneficiaries = this.beneficiaries.concat(res.orderDTO.insuredDTOs[0].bnfDTOs)
|
||||||
localStorage.beneficiaryInfo = JSON.stringify(res.orderDTO.insuredDTOs[0].bnfDTOs)
|
localStorage.beneficiaryInfo = JSON.stringify(res.orderDTO.insuredDTOs[0].bnfDTOs)
|
||||||
@@ -101,25 +102,16 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
|
||||||
localStorage.setItem('salePageFlag', this.salePageFlag)
|
|
||||||
}
|
}
|
||||||
if (this.$route.query.edit && !this.$route.query.salePageFlag) {
|
|
||||||
//如果从保单列表点击编辑按钮进入
|
|
||||||
this.salePageFlag = '4'
|
|
||||||
localStorage.setItem('salePageFlag', this.salePageFlag)
|
|
||||||
} else if (this.$route.query.salePageFlag) {
|
|
||||||
//如果是从导航栏点击进入
|
|
||||||
this.salePageFlag = localStorage.salePageFlag
|
|
||||||
}
|
|
||||||
|
|
||||||
this.insuredPerson = JSON.parse(localStorage.saleInsuredPersonInfo).name
|
this.insuredPerson = JSON.parse(localStorage.saleInsuredPersonInfo).name
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
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'
|
||||||
},
|
},
|
||||||
@@ -193,20 +185,16 @@ export default {
|
|||||||
if (res.result == 0) {
|
if (res.result == 0) {
|
||||||
localStorage.removeItem('applicant')
|
localStorage.removeItem('applicant')
|
||||||
localStorage.removeItem('fromAddBeneficiaryInfo')
|
localStorage.removeItem('fromAddBeneficiaryInfo')
|
||||||
if (!this.$route.query.salePageFlag) {
|
|
||||||
//不是从导航栏进入
|
|
||||||
localStorage.salePageFlag = '5'
|
|
||||||
}
|
|
||||||
//页面跳转
|
//页面跳转
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
forbidSwipeBack: '1',
|
forbidSwipeBack: '1',
|
||||||
url: location.origin + '/#/sale/notifyingMessage',
|
url: location.origin + `/#/sale/notifyingMessage`,
|
||||||
needRefresh: '1'
|
needRefresh: '1'
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: '/sale/notifyingMessage'
|
path: `/sale/notifyingMessage`
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -496,25 +496,31 @@ export default {
|
|||||||
//国家/地区
|
//国家/地区
|
||||||
this.userInfo.nativeplace = '1'
|
this.userInfo.nativeplace = '1'
|
||||||
this.$utils.intLocalStorage(res)
|
this.$utils.intLocalStorage(res)
|
||||||
|
|
||||||
|
if (this.$route.query.edit && !this.$route.query.salePageFlag) {
|
||||||
|
//如果从保单列表点击编辑按钮进入
|
||||||
|
this.salePageFlag = '1'
|
||||||
|
localStorage.setItem('salePageFlag', this.salePageFlag)
|
||||||
|
} else {
|
||||||
|
//从导航栏进入
|
||||||
|
this.homeName = getAreaName([
|
||||||
|
{ code: res.orderDTO.appntDTO.homeProvince },
|
||||||
|
{ code: res.orderDTO.appntDTO.homeCity },
|
||||||
|
{ code: res.orderDTO.appntDTO.homeArea }
|
||||||
|
]) //获取家庭地址
|
||||||
|
this.census = getAreaName([{ code: res.orderDTO.appntDTO.householdProvince }, { code: res.orderDTO.appntDTO.householdCity }]) //获取户籍
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
localStorage.setItem('salePageFlag', this.salePageFlag)
|
localStorage.setItem('salePageFlag', this.salePageFlag)
|
||||||
localStorage.setItem('saleInsuredInfo', '')
|
localStorage.setItem('saleInsuredInfo', '')
|
||||||
}
|
}
|
||||||
if (this.$route.query.edit && !this.$route.query.salePageFlag) {
|
|
||||||
//如果从保单列表点击编辑按钮进入
|
|
||||||
this.salePageFlag = '1'
|
|
||||||
localStorage.setItem('salePageFlag', this.salePageFlag)
|
|
||||||
} else if (this.$route.query.salePageFlag) {
|
|
||||||
//如果是从导航栏点击进入
|
|
||||||
this.salePageFlag = localStorage.salePageFlag
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
setTimeout(() => {
|
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)
|
}, 100)
|
||||||
@@ -980,18 +986,17 @@ export default {
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
// on confirm
|
// on confirm
|
||||||
|
|
||||||
this.save('isShow=1')
|
this.save()
|
||||||
console.log('success')
|
// this.save('isShow=1')
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
// on cancel
|
|
||||||
return
|
return
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.save()
|
this.save()
|
||||||
},
|
},
|
||||||
async save(str = '') {
|
async save() {
|
||||||
let params = {
|
let params = {
|
||||||
orderType: 'APPNT_ORDER',
|
orderType: 'APPNT_ORDER',
|
||||||
orderDTO: {
|
orderDTO: {
|
||||||
@@ -1003,22 +1008,18 @@ export default {
|
|||||||
appntDTO: {}
|
appntDTO: {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// let params = {
|
let str = ''
|
||||||
// operateType: 'authmobile',
|
|
||||||
// type: 'H5',
|
|
||||||
// system: 'agentApp',
|
|
||||||
// operateCodeType: '0'
|
|
||||||
// }
|
|
||||||
|
|
||||||
params.orderDTO.appntDTO = this.userInfo
|
params.orderDTO.appntDTO = this.userInfo
|
||||||
let resultData = await saveOrUpdateOrderInfo(params)
|
let resultData = await saveOrUpdateOrderInfo(params)
|
||||||
if (resultData.result == 0) {
|
if (resultData.result == 0) {
|
||||||
//deleteFlag 0-该页面修改了信息且修改的信息影响到后面流程,后台进行了删除数据的操作
|
//deleteFlag 0-该页面修改了信息且修改的信息影响到后面流程,后台进行了删除数据的操作
|
||||||
if (resultData.deleteFlag === '0') {
|
if (resultData.deleteFlag == '0') {
|
||||||
localStorage.salePageFlag = '2'
|
localStorage.salePageFlag = '2'
|
||||||
} else if (!this.$route.query.salePageFlag) {
|
} else if (!this.$route.query.salePageFlag) {
|
||||||
//如果从保单列表编辑按钮进入
|
//如果从保单列表编辑按钮或者新增保单进入
|
||||||
localStorage.salePageFlag = '2'
|
localStorage.salePageFlag = '2'
|
||||||
|
} else {
|
||||||
|
str = 'edit=1&salePageFlag=2'
|
||||||
}
|
}
|
||||||
localStorage.orderNo = resultData.orderNo
|
localStorage.orderNo = resultData.orderNo
|
||||||
// localStorage.insuredDetail = JSON.stringify(this.userInfo)
|
// localStorage.insuredDetail = JSON.stringify(this.userInfo)
|
||||||
|
|||||||
@@ -681,9 +681,6 @@ export default {
|
|||||||
//如果从保单列表点击编辑按钮进入
|
//如果从保单列表点击编辑按钮进入
|
||||||
this.salePageFlag = '2'
|
this.salePageFlag = '2'
|
||||||
localStorage.setItem('salePageFlag', this.salePageFlag)
|
localStorage.setItem('salePageFlag', this.salePageFlag)
|
||||||
} else if (this.$route.query.salePageFlag) {
|
|
||||||
//如果是从导航栏点击进入
|
|
||||||
this.salePageFlag = localStorage.salePageFlag
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -1366,17 +1363,20 @@ export default {
|
|||||||
delete this.userInfo.mediaDTOS
|
delete this.userInfo.mediaDTOS
|
||||||
}
|
}
|
||||||
params.orderDTO.insuredDTOs = [this.userInfo]
|
params.orderDTO.insuredDTOs = [this.userInfo]
|
||||||
|
let str = ''
|
||||||
let resultData = await saveOrUpdateOrderInfo(params)
|
let resultData = await saveOrUpdateOrderInfo(params)
|
||||||
if (resultData.result == 0) {
|
if (resultData.result == 0) {
|
||||||
localStorage.salePageFlag = '3'
|
localStorage.salePageFlag = '3'
|
||||||
// localStorage.relationToAppnt = this.userInfo.relationToAppnt
|
// localStorage.relationToAppnt = this.userInfo.relationToAppnt
|
||||||
|
|
||||||
//deleteFlag 0-该页面修改了信息且修改的信息影响到后面流程,后台进行了删除数据的操作
|
//deleteFlag 0-该页面修改了信息且修改的信息影响到后面流程,后台进行了删除数据的操作
|
||||||
if (resultData.deleteFlag === '0') {
|
if (resultData.deleteFlag == '0') {
|
||||||
localStorage.salePageFlag = '3'
|
localStorage.salePageFlag = '3'
|
||||||
} else if (!this.$route.query.salePageFlag) {
|
} else if (!this.$route.query.salePageFlag) {
|
||||||
//如果从保单列表编辑按钮进入
|
//如果从保单列表编辑按钮/新增保单进入
|
||||||
localStorage.salePageFlag = '3'
|
localStorage.salePageFlag = '3'
|
||||||
|
} else {
|
||||||
|
str = 'edit=1&salePageFlag=3'
|
||||||
}
|
}
|
||||||
localStorage.isFrom = 'sale'
|
localStorage.isFrom = 'sale'
|
||||||
//清理计时器
|
//清理计时器
|
||||||
@@ -1388,10 +1388,10 @@ export default {
|
|||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
forbidSwipeBack: '1',
|
forbidSwipeBack: '1',
|
||||||
url: location.origin + '/#/common/selectedProduct'
|
url: location.origin + `/#/common/selectedProduct?${str}`
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: '/common/selectedProduct'
|
path: `/common/selectedProduct?${str}`
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -240,10 +240,13 @@ export default {
|
|||||||
//this.information()
|
//this.information()
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
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
|
||||||
document.body.style.backgroundColor = '#F5F5F5'
|
document.body.style.backgroundColor = '#F5F5F5'
|
||||||
if (!this.$route.query.edit) {
|
if (!this.$route.query.edit) {
|
||||||
//如果不是编辑/导航条跳转进来的
|
//如果不是编辑/导航条跳转进来的
|
||||||
|
|||||||
@@ -316,7 +316,7 @@ export default {
|
|||||||
appntSignStatus: '', //投保人电子签名状态
|
appntSignStatus: '', //投保人电子签名状态
|
||||||
insuredSignStatus: '', //被保险人电子签名状态
|
insuredSignStatus: '', //被保险人电子签名状态
|
||||||
changeCard: localStorage.changeCard,
|
changeCard: localStorage.changeCard,
|
||||||
salePageFlag: '8'
|
salePageFlag: '-10'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -1092,17 +1092,8 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
if (!this.$route.query.edit) {
|
//若进入签名页,则不允许回到签名页前面的页面
|
||||||
//如果不是编辑/导航条跳转进来的
|
|
||||||
localStorage.setItem('salePageFlag', this.salePageFlag)
|
localStorage.setItem('salePageFlag', this.salePageFlag)
|
||||||
} else if (this.$route.query.edit && !this.$route.query.salePageFlag) {
|
|
||||||
//如果从保单列表点击编辑按钮进入
|
|
||||||
this.salePageFlag = '8'
|
|
||||||
localStorage.setItem('salePageFlag', this.salePageFlag)
|
|
||||||
} else if (this.$route.query.salePageFlag) {
|
|
||||||
//如果是从导航栏点击进入
|
|
||||||
this.salePageFlag = localStorage.salePageFlag
|
|
||||||
}
|
|
||||||
let that = this
|
let that = this
|
||||||
document.title = this.changeCard ? '修改银行卡号确认' : '签名确认'
|
document.title = this.changeCard ? '修改银行卡号确认' : '签名确认'
|
||||||
// 初始化
|
// 初始化
|
||||||
|
|||||||
Reference in New Issue
Block a user