提交 49c57538 编写于 作者: 张磊's avatar 张磊

lz-insurance

上级 97308f1c
...@@ -33,3 +33,11 @@ export const getLanZhouFlag = (externalOrderNo) => { ...@@ -33,3 +33,11 @@ export const getLanZhouFlag = (externalOrderNo) => {
withCredentials: true, withCredentials: true,
}); });
}; };
export const createOrderSz = (data) => {
return request({
url: '/tis/insurance/middleware/create/order/sz',
method: 'POST',
withCredentials: true,
data,
});
};
...@@ -131,6 +131,11 @@ const routerConfig = [ ...@@ -131,6 +131,11 @@ const routerConfig = [
name: 'sz-public', name: 'sz-public',
component: () => import('@/views/sz-public/index.vue'), component: () => import('@/views/sz-public/index.vue'),
}, },
{
path: '/sz-public-new',
name: 'sz-public-new',
component: () => import('@/views/sz-public-new/index.vue'),
},
{ {
path: '/entitlement', path: '/entitlement',
name: 'entitlement', name: 'entitlement',
......
...@@ -59,8 +59,6 @@ ...@@ -59,8 +59,6 @@
:path="`pagesInsurance/all-entrance/index?channelSource=insurance_channel&projectEquityNo=${item.projectEquityNo}&yunOrderNo=${item.yunOrderNoFirst_self}&detectionKind=${item.detectionKind}&tradeDetectionServiceRecordId=${item.tradeDetectionServiceRecordId}`" :path="`pagesInsurance/all-entrance/index?channelSource=insurance_channel&projectEquityNo=${item.projectEquityNo}&yunOrderNo=${item.yunOrderNoFirst_self}&detectionKind=${item.detectionKind}&tradeDetectionServiceRecordId=${item.tradeDetectionServiceRecordId}`"
:env-version="envVersion" :env-version="envVersion"
:extra-data="openWebAppConfig.extraData" :extra-data="openWebAppConfig.extraData"
@error="handleErrorFn"
@launch="handleLaunchFn"
> >
<script type="text/wxtag-template"> <script type="text/wxtag-template">
<style>.btn {color: #00bda5;text-align: center;line-height: 36px; width:100%; height: 100%;}</style> <div class="btn">{{ item.btnTxt }}</div> <style>.btn {color: #00bda5;text-align: center;line-height: 36px; width:100%; height: 100%;}</style> <div class="btn">{{ item.btnTxt }}</div>
...@@ -128,38 +126,13 @@ ...@@ -128,38 +126,13 @@
}, },
mounted() { mounted() {
// const { query:
// {
// project_equity_no = 'RDSZ20230602011',
// external_order_no = 'SZ202306011000938751'
// }
// } = this.$route;
const {externalOrderNo, projectEquityNo} = this.$route.query; const {externalOrderNo, projectEquityNo} = this.$route.query;
this.externalOrderNo = externalOrderNo; this.externalOrderNo = externalOrderNo || '';
this.projectEquityNo = projectEquityNo; this.projectEquityNo = projectEquityNo;
this.getBanner(6, projectEquityNo); this.getBanner(6, projectEquityNo);
this.getEntitlementList(externalOrderNo, projectEquityNo); this.getEntitlementList(externalOrderNo, projectEquityNo);
this.monitorMiniProgram(); this.monitorMiniProgram();
}, },
// updated() {
// const self = this;
// var launchBtn0 = document.getElementById('launch-btn0');
// if(launchBtn0) {
// launchBtn0.addEventListener('launch', function (e) {
// console.log('success-launch-updated0', e);
// setTimeout(() => {self.showDialog = true;}, 3000);
// });
// }
// var launchBtn1 = document.getElementById('launch-btn1');
// if(launchBtn1) {
// launchBtn1.addEventListener('launch', function (e) {
// console.log('success-launch-updated1', e);
// setTimeout(() => {self.showDialog = true;}, 3000);
// });
// }
// },
methods:{ methods:{
getBanner(pageType, yunOrderNo) { getBanner(pageType, yunOrderNo) {
...@@ -268,11 +241,7 @@ ...@@ -268,11 +241,7 @@
} }
} }
// detectionKind 1 早早检(快检) 0 or null DNA甲基化(早筛)
r.title = r.detectionKind == 1 ? '癌症早早检权益领取' : '癌症早检权益领取'; r.title = r.detectionKind == 1 ? '癌症早早检权益领取' : '癌症早检权益领取';
// r.btnTxt = (r.statusCode == '0905' || r.statusCode == '0101' || r.statusCode == '0102' || r.statusCode == '0902') ? '查看结果' : r.statusCode == '0202' ? '预约详情' :
// r.statusCode == '0104' ? '去支付' : r.statusCode == '0201' ? '去预约' : '检测详情';
return r; return r;
}); });
arr.map((item, index) => { arr.map((item, index) => {
......
<template> <template>
<div /> <div class="sz-appoint">
</div>
</template> </template>
<script> <script>
import { getLanZhouFlag } from '@/api/question'; import { getLanZhouFlag} from '@/api/question';
export default { export default {
data() { data() {
return { return {
...@@ -11,6 +12,15 @@ export default { ...@@ -11,6 +12,15 @@ export default {
externalOrderNo: '', externalOrderNo: '',
}; };
}, },
computed: {
canSubmit() {
return (
this.dectionForm.beneficiaryIdNum &&
this.dectionForm.beneficiaryName &&
this.dectionForm.beneficiaryPhone
);
},
},
mounted() { mounted() {
const {externalOrderNo} = this.$route.query; const {externalOrderNo} = this.$route.query;
this.getJumpPageStatus(externalOrderNo); this.getJumpPageStatus(externalOrderNo);
...@@ -28,6 +38,8 @@ export default { ...@@ -28,6 +38,8 @@ export default {
if(flag == 1) { if(flag == 1) {
url = '/entitlement'; url = '/entitlement';
} }
this.$loading.hide();
console.log(externalOrderNo, flag, projectEquityNo, url);
this.$router.push( this.$router.push(
{ {
path: url, path: url,
...@@ -39,11 +51,18 @@ export default { ...@@ -39,11 +51,18 @@ export default {
); );
} }
}); });
} },
} }
}; };
</script> </script>
<style> <style lang="scss" scoped>
.sz-appoint {
width: 100%;
height: 100vh;
overflow: auto;
box-sizing: border-box;
color: #ffffff;
background: #F3FCFF;
}
</style> </style>
此差异已折叠。
...@@ -119,8 +119,6 @@ ...@@ -119,8 +119,6 @@
if(document.visibilityState == 'visible') { if(document.visibilityState == 'visible') {
that.getEntitlementList(); that.getEntitlementList();
} }
if(document.visibilityState == 'hidden') {
}
}); });
}, },
handleErrorFn(e) { handleErrorFn(e) {
...@@ -163,16 +161,17 @@ ...@@ -163,16 +161,17 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.insurance-sz{ .insurance-sz{
<<<<<<< HEAD
// height: 1772px; // height: 1772px;
// display: flex; // display: flex;
// justify-content: center; // justify-content: center;
// align-items: center; // align-items: center;
padding-bottom: 70px; padding-bottom: 70px;
height: 712px; height: 712px;
=======
height: 100vh;
>>>>>>> 33a93f3 (lz-insurance)
background: #fff; background: #fff;
// .text{
// }
.bottom{ .bottom{
position: fixed; position: fixed;
bottom: 0; bottom: 0;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册