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

lz-insurance

上级 97308f1c
......@@ -33,3 +33,11 @@ export const getLanZhouFlag = (externalOrderNo) => {
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 = [
name: 'sz-public',
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',
name: 'entitlement',
......
......@@ -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}`"
:env-version="envVersion"
:extra-data="openWebAppConfig.extraData"
@error="handleErrorFn"
@launch="handleLaunchFn"
>
<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>
......@@ -128,38 +126,13 @@
},
mounted() {
// const { query:
// {
// project_equity_no = 'RDSZ20230602011',
// external_order_no = 'SZ202306011000938751'
// }
// } = this.$route;
const {externalOrderNo, projectEquityNo} = this.$route.query;
this.externalOrderNo = externalOrderNo;
this.externalOrderNo = externalOrderNo || '';
this.projectEquityNo = projectEquityNo;
this.getBanner(6, projectEquityNo);
this.getEntitlementList(externalOrderNo, projectEquityNo);
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:{
getBanner(pageType, yunOrderNo) {
......@@ -268,11 +241,7 @@
}
}
// detectionKind 1 早早检(快检) 0 or null DNA甲基化(早筛)
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;
});
arr.map((item, index) => {
......
<template>
<div />
<div class="sz-appoint">
</div>
</template>
<script>
import { getLanZhouFlag } from '@/api/question';
import { getLanZhouFlag} from '@/api/question';
export default {
data() {
return {
......@@ -11,6 +12,15 @@ export default {
externalOrderNo: '',
};
},
computed: {
canSubmit() {
return (
this.dectionForm.beneficiaryIdNum &&
this.dectionForm.beneficiaryName &&
this.dectionForm.beneficiaryPhone
);
},
},
mounted() {
const {externalOrderNo} = this.$route.query;
this.getJumpPageStatus(externalOrderNo);
......@@ -28,6 +38,8 @@ export default {
if(flag == 1) {
url = '/entitlement';
}
this.$loading.hide();
console.log(externalOrderNo, flag, projectEquityNo, url);
this.$router.push(
{
path: url,
......@@ -39,11 +51,18 @@ export default {
);
}
});
}
},
}
};
</script>
<style>
<style lang="scss" scoped>
.sz-appoint {
width: 100%;
height: 100vh;
overflow: auto;
box-sizing: border-box;
color: #ffffff;
background: #F3FCFF;
}
</style>
此差异已折叠。
......@@ -119,8 +119,6 @@
if(document.visibilityState == 'visible') {
that.getEntitlementList();
}
if(document.visibilityState == 'hidden') {
}
});
},
handleErrorFn(e) {
......@@ -163,16 +161,17 @@
</script>
<style lang="scss" scoped>
.insurance-sz{
<<<<<<< HEAD
// height: 1772px;
// display: flex;
// justify-content: center;
// align-items: center;
padding-bottom: 70px;
height: 712px;
=======
height: 100vh;
>>>>>>> 33a93f3 (lz-insurance)
background: #fff;
// .text{
// }
.bottom{
position: fixed;
bottom: 0;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册