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

Merge branch 'feature/qiao' into 'release'

Feature/qiao

See merge request !291
...@@ -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,
}); });
}; };
...@@ -125,6 +125,8 @@ export default { ...@@ -125,6 +125,8 @@ export default {
channelCode = '', channelCode = '',
userInfo = '', userInfo = '',
requestParm = '', requestParm = '',
token = '',
param = '',
} = this.$route.query; } = this.$route.query;
let { rightsNo = '', identity = '' } = this.$route.query; let { rightsNo = '', identity = '' } = this.$route.query;
...@@ -137,18 +139,24 @@ export default { ...@@ -137,18 +139,24 @@ export default {
window.location.href = url; window.location.href = url;
return; return;
} }
if (requestParm) { let cardNo = '';
const result = await getRequestParm(requestParm); if (requestParm || param) {
const params = {
requestParm,
cardNo: param,
};
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 || '';
cardNo = result.data.cardNo || '';
} }
} }
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}`; 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(
{ {
...@@ -161,6 +169,7 @@ export default { ...@@ -161,6 +169,7 @@ export default {
userInfo: userInfo, userInfo: userInfo,
channelCode: channelCode, channelCode: channelCode,
identity: identity, identity: identity,
token: token,
}, },
}, },
'enter' 'enter'
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册