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

feat 字段修改

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