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

Merge branch 'feature/qiao' into 'release'

Feature/qiao

See merge request !289
...@@ -36,3 +36,11 @@ export const projectMaterial = () => { ...@@ -36,3 +36,11 @@ export const projectMaterial = () => {
withCredentials: true, withCredentials: true,
}); });
}; };
export const getRequestParm = (requestParm) => {
return request({
url: `/tis/insurance/common/shaoxing/requestParm?requestParm=${requestParm}`,
method: 'get',
withCredentials: true,
});
};
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
</template> </template>
<script> <script>
import { getBanner } from '@/api/entitlement'; import { getBanner, getRequestParm } from '@/api/entitlement';
import { uploadPointData } from '@/api/question'; import { uploadPointData } from '@/api/question';
import { isWeixin } from '@/utils/index'; import { isWeixin } from '@/utils/index';
...@@ -116,15 +116,16 @@ export default { ...@@ -116,15 +116,16 @@ export default {
}); });
} }
}, },
mounted() { async mounted() {
document.title = this.headerInfo.title; document.title = this.headerInfo.title;
const { const {
externalOrderNo = '', externalOrderNo = '',
projectEquityNo = '', projectEquityNo = '',
rightsNo = '',
channelCode = '', channelCode = '',
userInfo = '', userInfo = '',
requestParm = '',
} = this.$route.query; } = this.$route.query;
let { rightsNo = '', identity = '' } = this.$route.query;
// 兰州项目 // 兰州项目
if ( if (
...@@ -135,11 +136,18 @@ export default { ...@@ -135,11 +136,18 @@ export default {
window.location.href = url; window.location.href = url;
return; return;
} }
if (requestParm) {
const result = await getRequestParm(requestParm);
if (result.code === '000000') {
rightsNo = result.data.rightsNo;
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}`; this.openWebAppConfigPositive.path = `pagesInsurance/health-card/index?channelCode=${channelCode}&projectEquityNo=${projectEquityNo}&externalOrderNo=${externalOrderNo}&rightsNo=${rightsNo}&userInfo=${userInfo}&identity=${identity}`;
if (channelCode) uploadPointData({ channelCode }); if (channelCode) uploadPointData({ channelCode });
this.$sendBuriedData( this.$sendBuriedData(
{ {
...@@ -151,6 +159,7 @@ export default { ...@@ -151,6 +159,7 @@ export default {
rightsNo: rightsNo, rightsNo: rightsNo,
userInfo: userInfo, userInfo: userInfo,
channelCode: channelCode, channelCode: channelCode,
identity: identity,
}, },
}, },
'enter' 'enter'
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册