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

feat 入口增加字段

上级 00a5c1ed
...@@ -37,10 +37,11 @@ export const projectMaterial = () => { ...@@ -37,10 +37,11 @@ export const projectMaterial = () => {
}); });
}; };
export const getRequestParm = (requestParm) => { export const getRequestParm = (params) => {
return request({ return request({
url: `/tis/insurance/common/shaoxing/requestParm?requestParm=${requestParm}`, url: '/tis/insurance/common/shaoxing/requestParm',
method: 'get', method: 'get',
params,
withCredentials: true, withCredentials: true,
}); });
}; };
...@@ -126,6 +126,7 @@ export default { ...@@ -126,6 +126,7 @@ export default {
userInfo = '', userInfo = '',
requestParm = '', requestParm = '',
token = '', token = '',
cardNo = '',
} = this.$route.query; } = this.$route.query;
let { rightsNo = '', identity = '' } = this.$route.query; let { rightsNo = '', identity = '' } = this.$route.query;
...@@ -138,18 +139,22 @@ export default { ...@@ -138,18 +139,22 @@ export default {
window.location.href = url; window.location.href = url;
return; return;
} }
if (requestParm) { if (requestParm || cardNo) {
const result = await getRequestParm(requestParm); const params = {
requestParm,
cardNo,
};
const result = await getRequestParm(params);
if (result.code === '000000') { if (result.code === '000000') {
rightsNo = result.data.rightsNo; rightsNo = result.data.rightsNo;
identity = result.data.identity; identity = result.data.identity || '';
} }
} }
this.getBanner(7, rightsNo || projectEquityNo); this.getBanner(7, rightsNo || projectEquityNo);
this.getBanner2(36, rightsNo || projectEquityNo); this.getBanner2(36, rightsNo || projectEquityNo);
this.openWebAppConfigPositive.path = `pagesInsurance/health-card/index?channelCode=${channelCode}&projectEquityNo=${projectEquityNo}&externalOrderNo=${externalOrderNo}&rightsNo=${rightsNo}&userInfo=${userInfo}&identity=${identity}&token=${token}`; this.openWebAppConfigPositive.path = `pagesInsurance/health-card/index?channelCode=${channelCode}&projectEquityNo=${projectEquityNo}&externalOrderNo=${externalOrderNo}&rightsNo=${rightsNo}&userInfo=${userInfo}&identity=${identity}&token=${token}&cardNo=${cardNo}`;
if (channelCode) uploadPointData({ channelCode }); if (channelCode) uploadPointData({ channelCode });
this.$sendBuriedData( this.$sendBuriedData(
{ {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册