提交 a027696b 编写于 作者: zhongyao.qiao's avatar zhongyao.qiao

feat 权益入参及跳转逻辑

上级 a13bb912
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
</van-form> </van-form>
<wx-open-launch-weapp <wx-open-launch-weapp
id="checkBtn" id="checkBtn"
style="display: block;" style="display: block"
:username="openWebAppConfigPositive.username" :username="openWebAppConfigPositive.username"
:path="openWebAppConfig_without_yunorder" :path="openWebAppConfig_without_yunorder"
:env-version="envVersion" :env-version="envVersion"
...@@ -235,6 +235,7 @@ export default { ...@@ -235,6 +235,7 @@ export default {
return { return {
projectEquityNo: '', projectEquityNo: '',
externalOrderNo: '', externalOrderNo: '',
rightsNo: '',
picaWechat: window._picaWechat, picaWechat: window._picaWechat,
headerInfo: { headerInfo: {
title: '健康服务权益领取', title: '健康服务权益领取',
...@@ -267,7 +268,8 @@ export default { ...@@ -267,7 +268,8 @@ export default {
}, },
// 太保项目用户信息 // 太保项目用户信息
inherentUserInfo: null, inherentUserInfo: null,
openWebAppConfig_without_yunorder: 'pagesInsurance/all-entrance/index?insurance_without_yunorder=insurance_without_yunorder' openWebAppConfig_without_yunorder:
'pagesInsurance/all-entrance/index?insurance_without_yunorder=insurance_without_yunorder',
}; };
}, },
computed: { computed: {
...@@ -321,12 +323,14 @@ export default { ...@@ -321,12 +323,14 @@ export default {
mounted() { mounted() {
document.title = this.headerInfo.title; document.title = this.headerInfo.title;
that = this; that = this;
const { externalOrderNo, projectEquityNo, channelCode } = this.$route.query; const { externalOrderNo, projectEquityNo, rightsNo, channelCode } =
this.$route.query;
if (channelCode) { if (channelCode) {
this.uploadPointData(channelCode); this.uploadPointData(channelCode);
} }
this.projectEquityNo = projectEquityNo; this.projectEquityNo = projectEquityNo;
this.externalOrderNo = externalOrderNo || ''; this.externalOrderNo = externalOrderNo || '';
this.rightsNo = rightsNo || '';
// this.$loading.show(); // this.$loading.show();
this.getBanner(7, projectEquityNo); this.getBanner(7, projectEquityNo);
this.loadCardTypes(); this.loadCardTypes();
...@@ -343,6 +347,7 @@ export default { ...@@ -343,6 +347,7 @@ export default {
web_data: { web_data: {
projectEquityNo: projectEquityNo, projectEquityNo: projectEquityNo,
externalOrderNo: externalOrderNo, externalOrderNo: externalOrderNo,
rightsNo: rightsNo,
channelCode: channelCode || '', channelCode: channelCode || '',
}, },
}); });
...@@ -410,7 +415,7 @@ export default { ...@@ -410,7 +415,7 @@ export default {
}, },
// 创建深圳订单 // 创建深圳订单
createOrderSz() { createOrderSz() {
const { externalOrderNo, projectEquityNo } = this; const { externalOrderNo, projectEquityNo, rightsNo } = this;
const data = { const data = {
...this.dectionForm, ...this.dectionForm,
projectEquityNo, projectEquityNo,
...@@ -418,6 +423,9 @@ export default { ...@@ -418,6 +423,9 @@ export default {
if (externalOrderNo) { if (externalOrderNo) {
data['externalOrderNo'] = externalOrderNo; data['externalOrderNo'] = externalOrderNo;
} }
if (rightsNo) {
data['rightsNo'] = rightsNo;
}
createOrderSzV2(data).then((res) => { createOrderSzV2(data).then((res) => {
console.log(res); console.log(res);
if (res.code == '000000') { if (res.code == '000000') {
...@@ -428,10 +436,21 @@ export default { ...@@ -428,10 +436,21 @@ export default {
versionNumber, versionNumber,
projectEquityNo, projectEquityNo,
lanZhouOldflag, lanZhouOldflag,
// projectEquityNoNext, projectEquityNoNext,
// yunOrderNoNext, yunOrderNoNext,
rightsNo,
} = res.data; } = res.data;
if (lanZhouOldflag) { if (rightsNo) {
this.showProtocol = true;
const yo = yunOrderNoNext || yunOrderNo;
const po = projectEquityNoNext || projectEquityNo;
this.openWebAppConfigPositive.path = `pagesInsurance/all-entrance/index?channelSource=insurance_channel&projectEquityNo=${po}&yunOrderNo=${yo}&externalOrderNo=${externalOrderNo}&rightsNo=${rightsNo}`;
console.log(
'-this.openWebAppConfigPositive.path',
versionNumber,
this.openWebAppConfigPositive.path
);
} else if (lanZhouOldflag) {
const url = '/home'; const url = '/home';
const l = window.location.origin; const l = window.location.origin;
const hr = const hr =
...@@ -483,7 +502,7 @@ export default { ...@@ -483,7 +502,7 @@ export default {
console.log('handleLaunchFn', e); console.log('handleLaunchFn', e);
that.showProtocol = false; that.showProtocol = false;
}, },
initInsurancePath () { initInsurancePath() {
this.openWebAppConfig_without_yunorder = `pagesInsurance/all-entrance/index?insurance_without_yunorder=insurance_without_yunorder&projectEquityNo=${this.projectEquityNo}`; this.openWebAppConfig_without_yunorder = `pagesInsurance/all-entrance/index?insurance_without_yunorder=insurance_without_yunorder&projectEquityNo=${this.projectEquityNo}`;
}, },
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册