mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-07 19:26:43 +08:00
Compare commits
5 Commits
hotfix/【20
...
feature/FC
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8dbeeb56a1 | ||
|
|
e5e28dcbad | ||
|
|
4d0823bd60 | ||
|
|
2e15f71b7d | ||
|
|
c136b1f4ca |
29
src/App.vue
29
src/App.vue
@@ -28,13 +28,30 @@ export default {
|
||||
},
|
||||
created () {
|
||||
// 在页面加载时读取sessionStorage
|
||||
if (sessionStorage.getItem('store')) {
|
||||
this.$store.replaceState(Object.assign({}, this.$store.state, JSON.parse(sessionStorage.getItem('store'))))
|
||||
// if (sessionStorage.getItem('store')) {
|
||||
// this.$store.replaceState(Object.assign({}, this.$store.state, JSON.parse(sessionStorage.getItem('store'))))
|
||||
// }
|
||||
// // 在页面刷新时将store保存到sessionStorage里
|
||||
// window.addEventListener('beforeunload', () => {
|
||||
// sessionStorage.setItem('store', JSON.stringify(this.$store.state))
|
||||
// })
|
||||
//ios刷新时vuex信息保留
|
||||
let isiOS = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
|
||||
if (isiOS) {
|
||||
//在页面刷新时将vuex里的信息保存到缓存里
|
||||
window.addEventListener("pagehide", () => {
|
||||
localStorage.setItem("store", JSON.stringify(this.$store.state))
|
||||
})
|
||||
//在页面加载时读取localStorage里的状态信息
|
||||
localStorage.getItem("store") && this.$store.replaceState(Object.assign(this.$store.state,JSON.parse(localStorage.getItem("store"))));
|
||||
} else {
|
||||
//在页面刷新时将vuex里的信息保存到缓存里
|
||||
window.addEventListener("beforeunload", () => {
|
||||
localStorage.setItem("store", JSON.stringify(this.$store.state))
|
||||
})
|
||||
//在页面加载时读取localStorage里的状态信息
|
||||
localStorage.getItem("store") && this.$store.replaceState(Object.assign(this.$store.state,JSON.parse(localStorage.getItem("store"))));
|
||||
}
|
||||
// 在页面刷新时将store保存到sessionStorage里
|
||||
window.addEventListener('beforeunload', () => {
|
||||
sessionStorage.setItem('store', JSON.stringify(this.$store.state))
|
||||
})
|
||||
},
|
||||
mounted(){
|
||||
},
|
||||
|
||||
@@ -362,4 +362,13 @@ export function getDoubleRecordProductLst(data) {
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// 指定受益人身份四要素
|
||||
export function checkAppointBnf(data) {
|
||||
return request({
|
||||
url: getUrl('/sale/bnfCheck/checkAppointBnf ', 1),
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -250,7 +250,7 @@ import idNoCheck from '@/assets/js/utils/idNoCheck'
|
||||
import { idToData } from './js/verification'
|
||||
import { selectComp } from './js/methods'
|
||||
import getAreaName from '@/assets/js/utils/getAreaNameForSale'
|
||||
import { getOrderDetail } from '@/api/ebiz/sale/sale'
|
||||
import { getOrderDetail, checkAppointBnf } from '@/api/ebiz/sale/sale'
|
||||
|
||||
let relationToInsured = [
|
||||
{ id: 2, text: '配偶' },
|
||||
@@ -1114,21 +1114,51 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
beneficiaries.push(this.userInfo)
|
||||
// 保存 新增的受益人信息 以及页面跳转字段
|
||||
localStorage.beneficiaryInfo = JSON.stringify(beneficiaries)
|
||||
localStorage.fromAddBeneficiaryInfo = true
|
||||
if (this.userInfo.asAppntAddress == true) {
|
||||
localStorage.applicant = '1'
|
||||
let thisbnfDTOs = []
|
||||
thisbnfDTOs.push(this.userInfo)
|
||||
let params = {
|
||||
orderType: 'BNF_ORDER',
|
||||
orderDTO: {
|
||||
productDTO: null,
|
||||
orderInfoDTO: {
|
||||
bnfFlag: this.bnfFlag,
|
||||
orderNo: this.$route.query.orderNo
|
||||
},
|
||||
appntDTO: {},
|
||||
insuredDTOs: [
|
||||
{
|
||||
insuredId: JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).insuredId,
|
||||
bnfDTOs: thisbnfDTOs
|
||||
}
|
||||
],
|
||||
paymentDTO: {},
|
||||
orderAccountDTO: {},
|
||||
channelDTO: null,
|
||||
orderExpandDTO: null,
|
||||
thirdOrderDTO: null
|
||||
}
|
||||
}
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/beneficiary?orderNo=' + this.$route.query.orderNo,
|
||||
needRefresh: '1'
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/beneficiary?orderNo=' + this.$route.query.orderNo
|
||||
checkAppointBnf(params).then(res=>{
|
||||
if(res.result == '0'){
|
||||
beneficiaries.push(this.userInfo)
|
||||
// 保存 新增的受益人信息 以及页面跳转字段
|
||||
localStorage.beneficiaryInfo = JSON.stringify(beneficiaries)
|
||||
localStorage.fromAddBeneficiaryInfo = true
|
||||
if (this.userInfo.asAppntAddress == true) {
|
||||
localStorage.applicant = '1'
|
||||
}
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/beneficiary?orderNo=' + this.$route.query.orderNo,
|
||||
needRefresh: '1'
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/beneficiary?orderNo=' + this.$route.query.orderNo
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user