mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-15 19:56:45 +08:00
【国富人寿】建议书跳转链接拼接订单号 并区分投保与建议书链接传递的数据
This commit is contained in:
@@ -33,14 +33,18 @@ export default {
|
|||||||
jump(index) {
|
jump(index) {
|
||||||
if (index === this.current || index == 2) return
|
if (index === this.current || index == 2) return
|
||||||
if (this.moveOn) {
|
if (this.moveOn) {
|
||||||
|
let thisMyUrl = this.routerInfos[index]
|
||||||
|
if (this.$route.query.proposalOrderNo) {
|
||||||
|
thisMyUrl = this.routerInfos[index] + '?proposalOrderNo=' + this.$route.query.proposalOrderNo
|
||||||
|
}
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + `/#/${this.routerInfos[index]}`,
|
url: location.origin + '/#/' + thisMyUrl,
|
||||||
needRefresh: '1'
|
needRefresh: '1'
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: `/${this.routerInfos[index]}`
|
path: '/' + thisMyUrl
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,27 +27,27 @@ function getSearchString (key) {
|
|||||||
}
|
}
|
||||||
return obj[key]
|
return obj[key]
|
||||||
}
|
}
|
||||||
let apiVersion = 'v2'
|
let apiVersion = 'v1'
|
||||||
var ua = window.navigator.userAgent.toLowerCase()
|
// var ua = window.navigator.userAgent.toLowerCase()
|
||||||
//通过正则表达式匹配ua中是否含有MicroMessenger字符串, 在微信
|
// //通过正则表达式匹配ua中是否含有MicroMessenger字符串, 在微信
|
||||||
if (localStorage.getItem('apiVersion')) {
|
// if (localStorage.getItem('apiVersion')) {
|
||||||
apiVersion = localStorage.getItem('apiVersion')
|
// apiVersion = localStorage.getItem('apiVersion')
|
||||||
} else {
|
// } else {
|
||||||
if (ua.match(/MicroMessenger/i) == 'micromessenger') {
|
// if (ua.match(/MicroMessenger/i) == 'micromessenger') {
|
||||||
//report/reportList数据报表页面在浏览器可以打开了,但在微信或企业微信中打开不了,接口请求不需要token
|
// //report/reportList数据报表页面在浏览器可以打开了,但在微信或企业微信中打开不了,接口请求不需要token
|
||||||
if (window.location.href.indexOf('apiVersion') > 0) {
|
// if (window.location.href.indexOf('apiVersion') > 0) {
|
||||||
apiVersion = getSearchString('apiVersion') == 'V3' ? 'v3' : 'v2';//url中apiVersion没有时,为v2
|
// apiVersion = getSearchString('apiVersion') == 'V3' ? 'v3' : 'v2';//url中apiVersion没有时,为v2
|
||||||
} else {
|
// } else {
|
||||||
apiVersion = 'v3'
|
// apiVersion = 'v3'
|
||||||
}
|
// }
|
||||||
} else {
|
// } else {
|
||||||
// 在app
|
// // 在app
|
||||||
if (navigator.userAgent.indexOf('JZG_') > 0) {
|
// if (navigator.userAgent.indexOf('JZG_') > 0) {
|
||||||
apiVersion = navigator.userAgent.split('JZG_')[1].split('/')[0].split('_')[1] == 'V3' ? 'v3' : 'v2'
|
// apiVersion = navigator.userAgent.split('JZG_')[1].split('/')[0].split('_')[1] == 'V3' ? 'v3' : 'v2'
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
window.localStorage.setItem('apiVersion', apiVersion)
|
// window.localStorage.setItem('apiVersion', apiVersion)
|
||||||
}
|
// }
|
||||||
// 可以多个接口域名,按需添加
|
// 可以多个接口域名,按需添加
|
||||||
console.log('环境:', process.env.VUE_APP_FLAG)
|
console.log('环境:', process.env.VUE_APP_FLAG)
|
||||||
switch (process.env.VUE_APP_FLAG) {
|
switch (process.env.VUE_APP_FLAG) {
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -121,7 +121,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
getDetail({
|
getDetail({
|
||||||
orderNo: this.$route.query.orderNo
|
orderNo: this.$route.query.proposalOrderNo
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
this.recommendType = res.content[0].recmdDTO?res.content[0].recmdDTO.recommendType:'';
|
this.recommendType = res.content[0].recmdDTO?res.content[0].recmdDTO.recommendType:'';
|
||||||
@@ -219,6 +219,12 @@ export default {
|
|||||||
|
|
||||||
if (this.list.length == 0) {
|
if (this.list.length == 0) {
|
||||||
this.$dialog({ message: '暂无可选产品!' }).then(() => {
|
this.$dialog({ message: '暂无可选产品!' }).then(() => {
|
||||||
|
let thismyurl = ''
|
||||||
|
if (this.$route.query.orderNo) {
|
||||||
|
thismyurl = '?orderNo=' + this.$route.query.orderNo
|
||||||
|
} else if (this.$route.query.proposalOrderNo) {
|
||||||
|
thismyurl = '?proposalOrderNo=' + this.$route.query.proposalOrderNo
|
||||||
|
}
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'goBack',
|
flag: 'goBack',
|
||||||
// extra: {
|
// extra: {
|
||||||
@@ -226,7 +232,7 @@ export default {
|
|||||||
// },
|
// },
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
type: 1,
|
type: 1,
|
||||||
path: '/common/selectedProduct'
|
path: '/common/selectedProduct' + thismyurl
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@@ -289,6 +295,12 @@ export default {
|
|||||||
|
|
||||||
if (this.list.length == 0) {
|
if (this.list.length == 0) {
|
||||||
this.$dialog({ message: '暂无可选产品!' }).then(() => {
|
this.$dialog({ message: '暂无可选产品!' }).then(() => {
|
||||||
|
let thismyurl = ''
|
||||||
|
if (this.$route.query.orderNo) {
|
||||||
|
thismyurl = '?orderNo=' + this.$route.query.orderNo
|
||||||
|
} else if (this.$route.query.proposalOrderNo) {
|
||||||
|
thismyurl = '?proposalOrderNo=' + this.$route.query.proposalOrderNo
|
||||||
|
}
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'goBack',
|
flag: 'goBack',
|
||||||
// extra: {
|
// extra: {
|
||||||
@@ -296,7 +308,7 @@ export default {
|
|||||||
// },
|
// },
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
type: 1,
|
type: 1,
|
||||||
path: '/common/selectedProduct'
|
path: '/common/selectedProduct' + thismyurl
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@@ -518,13 +530,19 @@ export default {
|
|||||||
},
|
},
|
||||||
//页面跳转
|
//页面跳转
|
||||||
jumpTo() {
|
jumpTo() {
|
||||||
|
let thismyurl = ''
|
||||||
|
if (this.$route.query.orderNo) {
|
||||||
|
thismyurl = '?orderNo=' + this.$route.query.orderNo
|
||||||
|
} else if (this.$route.query.proposalOrderNo) {
|
||||||
|
thismyurl = '?proposalOrderNo=' + this.$route.query.proposalOrderNo
|
||||||
|
}
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + '/#/common/calculatePremium?orderNo=' + this.$route.query.orderNo
|
url: location.origin + '/#/common/calculatePremium' + thismyurl
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: '/common/calculatePremium?orderNo=' + this.$route.query.orderNo
|
path: '/common/calculatePremium' + thismyurl
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ export default {
|
|||||||
loadingType: 'spinner',
|
loadingType: 'spinner',
|
||||||
message: '加载中……'
|
message: '加载中……'
|
||||||
})
|
})
|
||||||
resultData = await orderDetail({ orderNo: this.$CacheUtils.getLocItem('orderNo'), isMerge: '1' })
|
resultData = await orderDetail({ orderNo: this.$route.query.orderNo, isMerge: '1' })
|
||||||
}
|
}
|
||||||
if (resultData.result == 0) {
|
if (resultData.result == 0) {
|
||||||
if( resultData.orderDTO ) {
|
if( resultData.orderDTO ) {
|
||||||
@@ -348,7 +348,7 @@ export default {
|
|||||||
resultData = await deleteProposal({
|
resultData = await deleteProposal({
|
||||||
orderDTO: {
|
orderDTO: {
|
||||||
orderInfoDTO: {
|
orderInfoDTO: {
|
||||||
orderNo: this.$CacheUtils.getLocItem('proposalNo')
|
orderNo: this.$route.query.proposalOrderNo
|
||||||
},
|
},
|
||||||
insuredDTOs: [
|
insuredDTOs: [
|
||||||
{
|
{
|
||||||
@@ -368,7 +368,7 @@ export default {
|
|||||||
id: this.chooseProducts[index].insuanceId,
|
id: this.chooseProducts[index].insuanceId,
|
||||||
orderDTO: {
|
orderDTO: {
|
||||||
orderInfoDTO: {
|
orderInfoDTO: {
|
||||||
orderNo: this.$CacheUtils.getLocItem('orderNo')
|
orderNo: this.$route.query.orderNo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -508,13 +508,19 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
let thismyurl = ''
|
||||||
|
if (this.$route.query.orderNo) {
|
||||||
|
thismyurl = '?orderNo=' + this.$route.query.orderNo
|
||||||
|
} else if (this.$route.query.proposalOrderNo) {
|
||||||
|
thismyurl = '?proposalOrderNo=' + this.$route.query.proposalOrderNo
|
||||||
|
}
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + '/#/common/mainRiskList'
|
url: location.origin + '/#/common/mainRiskList' + thismyurl
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: '/common/mainRiskList'
|
path: '/common/mainRiskList' + thismyurl
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -525,7 +531,7 @@ export default {
|
|||||||
param = {
|
param = {
|
||||||
orderDTO: {
|
orderDTO: {
|
||||||
orderInfoDTO: {
|
orderInfoDTO: {
|
||||||
orderNo: this.$CacheUtils.getLocItem('orderNo'),
|
orderNo: this.$route.query.orderNo?this.$route.query.orderNo:this.$route.query.proposalOrderNo,
|
||||||
activeType: this.activityList[this.active_radio].isKmh,
|
activeType: this.activityList[this.active_radio].isKmh,
|
||||||
activityCode: this.activityList[this.active_radio].activityCode,
|
activityCode: this.activityList[this.active_radio].activityCode,
|
||||||
cvaliDate : this.activityList[this.active_radio].cvaildateStr
|
cvaliDate : this.activityList[this.active_radio].cvaildateStr
|
||||||
@@ -537,7 +543,7 @@ export default {
|
|||||||
param = {
|
param = {
|
||||||
orderDTO: {
|
orderDTO: {
|
||||||
orderInfoDTO: {
|
orderInfoDTO: {
|
||||||
orderNo: this.$CacheUtils.getLocItem('orderNo'),
|
orderNo: this.$route.query.orderNo?this.$route.query.orderNo:this.$route.query.proposalOrderNo,
|
||||||
activeType: this.activityList[this.active_sqy_radio].isKmh,
|
activeType: this.activityList[this.active_sqy_radio].isKmh,
|
||||||
activityCode: this.activityList[this.active_sqy_radio].activityCode,
|
activityCode: this.activityList[this.active_sqy_radio].activityCode,
|
||||||
cvaliDate : this.activityList[this.active_sqy_radio].cvaildateStr
|
cvaliDate : this.activityList[this.active_sqy_radio].cvaildateStr
|
||||||
@@ -555,13 +561,19 @@ export default {
|
|||||||
// localStorage.setItem('active_type', type=='KMH'?this.active_radio == '1'?'KMH':'':type=='SQY'?this.active_sqy_radio=='1'?'SQY':'':'')
|
// localStorage.setItem('active_type', type=='KMH'?this.active_radio == '1'?'KMH':'':type=='SQY'?this.active_sqy_radio=='1'?'SQY':'':'')
|
||||||
// localStorage.setItem('active_type', this.activityList[this.active_sqy_radio].isKmh)
|
// localStorage.setItem('active_type', this.activityList[this.active_sqy_radio].isKmh)
|
||||||
if (res.result == 0) {
|
if (res.result == 0) {
|
||||||
|
let thismyurl = ''
|
||||||
|
if (this.$route.query.orderNo) {
|
||||||
|
thismyurl = '?orderNo=' + this.$route.query.orderNo
|
||||||
|
} else if (this.$route.query.proposalOrderNo) {
|
||||||
|
thismyurl = '?proposalOrderNo=' + this.$route.query.proposalOrderNo
|
||||||
|
}
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + '/#/common/mainRiskList'
|
url: location.origin + '/#/common/mainRiskList' + thismyurl
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: '/common/mainRiskList'
|
path: '/common/mainRiskList' + thismyurl
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
@@ -584,7 +596,12 @@ export default {
|
|||||||
return showFlag
|
return showFlag
|
||||||
},
|
},
|
||||||
nextPageShow() {
|
nextPageShow() {
|
||||||
let routerUrl = '/sale/beneficiary'
|
let thismyurl = ''
|
||||||
|
if (this.$route.query.orderNo) {
|
||||||
|
thismyurl = '/sale/beneficiary?orderNo=' + this.$route.query.orderNo
|
||||||
|
} else if (this.$route.query.proposalOrderNo) {
|
||||||
|
thismyurl = '/sale/beneficiary?proposalOrderNo=' + this.$route.query.proposalOrderNo
|
||||||
|
}
|
||||||
localStorage.beneficiaryInfo = ''
|
localStorage.beneficiaryInfo = ''
|
||||||
localStorage.fromAddBeneficiaryInfo = ''
|
localStorage.fromAddBeneficiaryInfo = ''
|
||||||
localStorage.removeItem('applicant')
|
localStorage.removeItem('applicant')
|
||||||
@@ -592,11 +609,11 @@ export default {
|
|||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
forbidSwipeBack: '1',
|
forbidSwipeBack: '1',
|
||||||
url: location.origin + '/#' + routerUrl,
|
url: location.origin + '/#' + thismyurl,
|
||||||
needRefresh: '1'
|
needRefresh: '1'
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: routerUrl
|
path: thismyurl
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
async echoInfo() {
|
async echoInfo() {
|
||||||
// 从编辑页面过来时localstorage存在orderNo
|
// 从编辑页面过来时localstorage存在orderNo
|
||||||
const orderNo = this.$CacheUtils.getLocItem('proposalNo')
|
const orderNo = this.$route.query.proposalOrderNo
|
||||||
if (orderNo) {
|
if (orderNo) {
|
||||||
let proposalInfoDTO = {
|
let proposalInfoDTO = {
|
||||||
orderNo: orderNo
|
orderNo: orderNo
|
||||||
|
|||||||
@@ -221,7 +221,7 @@ export default {
|
|||||||
saveProposal(params).then(res => {
|
saveProposal(params).then(res => {
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
this.$CacheUtils.setLocItem('proposalNo', res.content.orderNo)
|
this.$CacheUtils.setLocItem('proposalNo', res.content.orderNo)
|
||||||
let url = `/proposal/proposalInfo?proposalNo=${res.content.orderNo}`
|
let url = `/proposal/proposalInfo?proposalOrderNo=${res.content.orderNo}`
|
||||||
//调用保存接口
|
//调用保存接口
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
|
|||||||
@@ -193,11 +193,11 @@ export default {
|
|||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
forbidSwipeBack: '1',
|
forbidSwipeBack: '1',
|
||||||
url: location.origin + `/#/sale/notifyingMessage`,
|
url: location.origin + `/#/sale/notifyingMessage?orderNo=` + this.$route.query.orderNo,
|
||||||
needRefresh: '1'
|
needRefresh: '1'
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: `/sale/notifyingMessage`
|
path: `/sale/notifyingMessage?orderNo=` + this.$route.query.orderNo
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -499,32 +499,32 @@ export default {
|
|||||||
localStorage.isFrom = 'sale'
|
localStorage.isFrom = 'sale'
|
||||||
localStorage.removeItem('changeCard')
|
localStorage.removeItem('changeCard')
|
||||||
if(orderStatus == '01'){ //已签名待客户确认, 跳到签名确认页面
|
if(orderStatus == '01'){ //已签名待客户确认, 跳到签名确认页面
|
||||||
url = '/sale/SignatureConfirmation?edit=1'
|
url = '/sale/SignatureConfirmation?edit=1&orderNo='+orderNo
|
||||||
}else if(orderStatus == '43'){//未签名待客户确认, 跳到签名确认页面
|
}else if(orderStatus == '43'){//未签名待客户确认, 跳到签名确认页面
|
||||||
url = '/sale/SignatureConfirmation?edit=1'
|
url = '/sale/SignatureConfirmation?edit=1&orderNo='+orderNo
|
||||||
}else if(orderStatus == '35'){//投保人保存成功, 跳到被保险人页面
|
}else if(orderStatus == '35'){//投保人保存成功, 跳到被保险人页面
|
||||||
url = '/sale/insuredPerson?edit=1'
|
url = '/sale/insuredPerson?edit=1&orderNo='+orderNo
|
||||||
}else if(orderStatus == '36'){//被保险人保存成功, 跳到已选产品列表
|
}else if(orderStatus == '36'){//被保险人保存成功, 跳到已选产品列表
|
||||||
url = '/common/selectedProduct?edit=1'
|
url = '/common/selectedProduct?edit=1&orderNo='+orderNo
|
||||||
}else if(orderStatus == '37'){//受益人保存成功, 跳到告知信息--
|
}else if(orderStatus == '37'){//受益人保存成功, 跳到告知信息--
|
||||||
url = '/sale/NotifyingMessage?edit=1'
|
url = '/sale/NotifyingMessage?edit=1&orderNo='+orderNo
|
||||||
}else if(orderStatus == '38'){ //账户信息保存成功, 跳到附件管理--
|
}else if(orderStatus == '38'){ //账户信息保存成功, 跳到附件管理--
|
||||||
url = '/sale/AttachmentManagement?edit=1'
|
url = '/sale/AttachmentManagement?edit=1&orderNo='+orderNo
|
||||||
}else if(orderStatus == '39'){ //险种信息保存成功, 跳到已选产品列表
|
}else if(orderStatus == '39'){ //险种信息保存成功, 跳到已选产品列表
|
||||||
url = '/common/selectedProduct?edit=1'
|
url = '/common/selectedProduct?edit=1&orderNo='+orderNo
|
||||||
}else if(orderStatus == '40'){//告知信息保存成功, 跳到风险测评--
|
}else if(orderStatus == '40'){//告知信息保存成功, 跳到风险测评--
|
||||||
if( order.riskEvaluationDTO.isShowEvaluationPoint == '0'){
|
if( order.riskEvaluationDTO.isShowEvaluationPoint == '0'){
|
||||||
url = '/sale/AccountInformation?edit=1'
|
url = '/sale/AccountInformation?edit=1&orderNo='+orderNo
|
||||||
}else {
|
}else {
|
||||||
url = '/sale/answerPage?edit=1'
|
url = '/sale/answerPage?edit=1&orderNo='+orderNo
|
||||||
}
|
}
|
||||||
}else if(orderStatus == ''){//跳到投保人
|
}else if(orderStatus == ''){//跳到投保人
|
||||||
url = '/sale/insuredInfo?edit=1'
|
url = '/sale/insuredInfo?edit=1&orderNo='+orderNo
|
||||||
}else if(orderStatus == '44'){//建议书转投保, 跳到投保人
|
}else if(orderStatus == '44'){//建议书转投保, 跳到投保人
|
||||||
url = '/sale/insuredInfo?edit=1'
|
url = '/sale/insuredInfo?edit=1&orderNo='+orderNo
|
||||||
}else if(orderStatus == '62'){//风险测评保存成功, 跳到账户信息--
|
}else if(orderStatus == '62'){//风险测评保存成功, 跳到账户信息--
|
||||||
// url = '/sale/AccountInformation?edit=1'
|
// url = '/sale/AccountInformation?edit=1'
|
||||||
url = '/sale/answerSuccess?edit=1'
|
url = '/sale/answerSuccess?edit=1&orderNo='+orderNo
|
||||||
}
|
}
|
||||||
// switch (orderStatus) {
|
// switch (orderStatus) {
|
||||||
// case '01': //已签名待客户确认, 跳到签名确认页面
|
// case '01': //已签名待客户确认, 跳到签名确认页面
|
||||||
|
|||||||
Reference in New Issue
Block a user