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

feat 权益入参及跳转逻辑

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