mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-21 17:06:43 +08:00
【建议书优化需求】编辑保存不生成新的主险ID问题
This commit is contained in:
committed by
liu.xiaofeng@ebiz-digits.com
parent
4c51a95b01
commit
28970c277a
@@ -180,17 +180,13 @@ export default {
|
|||||||
}
|
}
|
||||||
//建议书--右上角为退出流程键(到建议书列表)×,并清除浏览记录
|
//建议书--右上角为退出流程键(到建议书列表)×,并清除浏览记录
|
||||||
if (localStorage.isFrom == 'proposal') {
|
if (localStorage.isFrom == 'proposal') {
|
||||||
// eslint-disable-next-line no-undef
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
// eslint-disable-next-line no-undef
|
||||||
EWebBridge.webCallAppInJs('webview_right_button', {
|
EWebBridge.webCallAppInJs('webview_right_button', {
|
||||||
btns: [
|
img: this.$assetsUrl + 'images/del-close-btn@3x.png',
|
||||||
{
|
intercept: '1' //是否拦截原生返回事件 1是 其他否
|
||||||
img: this.$assetsUrl + 'images/del-close.png',
|
|
||||||
route: { flag: '', extra: {} }
|
|
||||||
}
|
|
||||||
]
|
|
||||||
})
|
})
|
||||||
}, 500)
|
}, 100)
|
||||||
}
|
}
|
||||||
window.appCallBack = this.appCallBack
|
window.appCallBack = this.appCallBack
|
||||||
document.body.style.backgroundColor = '#fff'
|
document.body.style.backgroundColor = '#fff'
|
||||||
|
|||||||
@@ -150,6 +150,13 @@ export default {
|
|||||||
window.EWebBridge.webCallAppInJs("webview_left_button",{
|
window.EWebBridge.webCallAppInJs("webview_left_button",{
|
||||||
reset:"1" //1:重制 其他值不变
|
reset:"1" //1:重制 其他值不变
|
||||||
})
|
})
|
||||||
|
setTimeout(() => {
|
||||||
|
// eslint-disable-next-line no-undef
|
||||||
|
EWebBridge.webCallAppInJs('webview_right_button', {
|
||||||
|
img: this.$assetsUrl + 'images/del-close-btn@3x.png',
|
||||||
|
intercept: '1' //是否拦截原生返回事件 1是 其他否
|
||||||
|
})
|
||||||
|
}, 100)
|
||||||
// 筛选按钮的点击事件
|
// 筛选按钮的点击事件
|
||||||
window.appCallBack = this.appCallBack
|
window.appCallBack = this.appCallBack
|
||||||
},
|
},
|
||||||
@@ -187,7 +194,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
appCallBack() {
|
appCallBack(data) {
|
||||||
// 筛选按钮的点击事件
|
// 筛选按钮的点击事件
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'navigation',
|
flag: 'navigation',
|
||||||
@@ -201,6 +208,33 @@ export default {
|
|||||||
} else if (this.currentPopupIndex == 2) {
|
} else if (this.currentPopupIndex == 2) {
|
||||||
this.occupationShowPicker = false
|
this.occupationShowPicker = false
|
||||||
}
|
}
|
||||||
|
if (data.trigger == 'right_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 + `/#/proposal/list`
|
||||||
|
},
|
||||||
|
routerInfo: {
|
||||||
|
path: `/proposal/list`,
|
||||||
|
type: '1'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
return
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
chooseOccupation() {
|
chooseOccupation() {
|
||||||
this.$jump({
|
this.$jump({
|
||||||
|
|||||||
@@ -141,6 +141,13 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init() {
|
init() {
|
||||||
|
setTimeout(() => {
|
||||||
|
// eslint-disable-next-line no-undef
|
||||||
|
EWebBridge.webCallAppInJs('webview_right_button', {
|
||||||
|
img: this.$assetsUrl + 'images/del-close-btn@3x.png',
|
||||||
|
intercept: '1' //是否拦截原生返回事件 1是 其他否
|
||||||
|
})
|
||||||
|
}, 100)
|
||||||
window.appCallBack = this.appCallBack
|
window.appCallBack = this.appCallBack
|
||||||
this.localInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
|
this.localInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
|
||||||
let { relationToAppnt, relationName } = this.localInfo
|
let { relationToAppnt, relationName } = this.localInfo
|
||||||
@@ -222,7 +229,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
appCallBack() {
|
appCallBack(data) {
|
||||||
// 筛选按钮的点击事件
|
// 筛选按钮的点击事件
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'navigation',
|
flag: 'navigation',
|
||||||
@@ -236,6 +243,33 @@ export default {
|
|||||||
} else if (this.currentPopupIndex == 2) {
|
} else if (this.currentPopupIndex == 2) {
|
||||||
this.occupationShowPicker = false
|
this.occupationShowPicker = false
|
||||||
}
|
}
|
||||||
|
if (data.trigger == 'right_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 + `/#/proposal/list`
|
||||||
|
},
|
||||||
|
routerInfo: {
|
||||||
|
path: `/proposal/list`,
|
||||||
|
type: '1'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
return
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
chooseOccupation() {
|
chooseOccupation() {
|
||||||
this.$jump({
|
this.$jump({
|
||||||
|
|||||||
Reference in New Issue
Block a user