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

Merge branch 'feature/zl' into 'release'

Feature/zl

See merge request !248
...@@ -16,7 +16,6 @@ export const getJumpPageStatus = ({externalOrderNo, yunOrderNo, projectEquityNo} ...@@ -16,7 +16,6 @@ export const getJumpPageStatus = ({externalOrderNo, yunOrderNo, projectEquityNo}
withCredentials: true, withCredentials: true,
}); });
}; };
// https://dev-sc.yunqueyi.com/tis/insurance/create/order
export const createOrder = (data) => { export const createOrder = (data) => {
return request({ return request({
...@@ -27,11 +26,27 @@ export const createOrder = (data) => { ...@@ -27,11 +26,27 @@ export const createOrder = (data) => {
}); });
}; };
// tis/insurance/makeAppointmentStatus?yunOrderNo=PCX2023021608340000000709043 export const getLanZhouFlag = (externalOrderNo) => {
export const getAppointmentStatus = (yunOrderNo) => {
return request({ return request({
method: 'get', method: 'get',
url: `/tis/insurance/makeAppointmentStatus?yunOrderNo=${yunOrderNo}`, url: `/tis/insurance/common/lanZhou/flag/${externalOrderNo}`,
withCredentials: true, withCredentials: true,
}); });
}; };
export const createOrderSz = (data) => {
return request({
url: '/tis/insurance/middleware/create/order/sz',
method: 'POST',
withCredentials: true,
data,
});
};
export const createOrderSzV2 = (data) => {
return request({
url: '/tis/insurance/middleware/create/order/sz/v2',
method: 'POST',
withCredentials: true,
data,
});
};
...@@ -121,11 +121,21 @@ const routerConfig = [ ...@@ -121,11 +121,21 @@ const routerConfig = [
name: 'sz-home', name: 'sz-home',
component: () => import('@/views/sz-home/index.vue'), component: () => import('@/views/sz-home/index.vue'),
}, },
{
path: '/lz-home',
name: 'lz-home',
component: () => import('@/views/lz-home/index.vue'),
},
{ {
path: '/sz-public', path: '/sz-public',
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,12 +126,6 @@ ...@@ -128,12 +126,6 @@
}, },
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;
...@@ -141,25 +133,6 @@ ...@@ -141,25 +133,6 @@
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) => {
...@@ -285,16 +254,16 @@ ...@@ -285,16 +254,16 @@
console.log('--arr', arr); console.log('--arr', arr);
that.entitlementList = arr; that.entitlementList = arr;
} else { } else {
// that.entitlementList = []; that.entitlementList = [];
// that.$router.push( that.$router.replace(
// { {
// path: '/sz-public', path: '/sz-public',
// query: { query: {
// projectEquityNo: projectEquityNo, projectEquityNo: projectEquityNo,
// externalOrderNo: externalOrderNo externalOrderNo: externalOrderNo
// }, },
// } }
// ); );
} }
that.$loading.hide(); that.$loading.hide();
} }
......
<template>
<div class="sz-appoint" />
</template>
<script>
import { getLanZhouFlag} from '@/api/question';
export default {
data() {
return {
projectEquityNo: '',
externalOrderNo: '',
};
},
computed: {
canSubmit() {
return (
this.dectionForm.beneficiaryIdNum &&
this.dectionForm.beneficiaryName &&
this.dectionForm.beneficiaryPhone
);
},
},
mounted() {
const {externalOrderNo} = this.$route.query;
if(externalOrderNo) {
this.getJumpPageStatus(externalOrderNo);
}
},
methods: {
getJumpPageStatus(externalOrderNo) {
getLanZhouFlag(externalOrderNo).then(res => {
if (res.code === '000000') {
const {externalOrderNo, flag, projectEquityNo} = res.data;
let url = '/home';
if(flag == 0) {
url = '/home';
}
if(flag == 1) {
url = '/entitlement';
}
this.$loading.hide();
console.log(externalOrderNo, flag, projectEquityNo, url);
this.$router.replace(
{
path: url,
query: {
projectEquityNo: projectEquityNo,
externalOrderNo: externalOrderNo
},
}
);
}
});
},
}
};
</script>
<style lang="scss" scoped>
.sz-appoint {
width: 100%;
height: 100vh;
overflow: auto;
box-sizing: border-box;
color: #ffffff;
background: #F3FCFF;
}
</style>
此差异已折叠。
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="insurance-sz"> <div class="insurance-sz">
<div class="text"> <div class="text">
<img <img
src="https://files.yunqueyi.com/image/png/common/20230620135424634.png" :src="insuranceText.logoUrl"
alt="" alt=""
> >
</div> </div>
...@@ -81,6 +81,7 @@ ...@@ -81,6 +81,7 @@
<script> <script>
// const { VUE_APP_ENV } = process.env; // const { VUE_APP_ENV } = process.env;
import {getEntitlementList} from '@/api/entitlement'; import {getEntitlementList} from '@/api/entitlement';
import {getDetailtxt} from '@/api/appoint';
let that; let that;
export default { export default {
data() { data() {
...@@ -98,6 +99,9 @@ ...@@ -98,6 +99,9 @@
extraData: JSON.stringify({}) extraData: JSON.stringify({})
}, },
routerInfo:{}, routerInfo:{},
insuranceText:{
logoUrl: ''
}
}; };
}, },
mounted() { mounted() {
...@@ -107,18 +111,14 @@ ...@@ -107,18 +111,14 @@
this.openWebAppConfigPositive.path = `pagesInsurance/all-entrance/index?channelSource=insurance_channel&projectEquityNo=${projectEquityNo}&externalOrderNo=${externalOrderNo}&detectionKind=1`; this.openWebAppConfigPositive.path = `pagesInsurance/all-entrance/index?channelSource=insurance_channel&projectEquityNo=${projectEquityNo}&externalOrderNo=${externalOrderNo}&detectionKind=1`;
console.log('-this.openWebAppConfigPositiv', this.openWebAppConfigPositive); console.log('-this.openWebAppConfigPositiv', this.openWebAppConfigPositive);
this.vis(); this.vis();
this.getDetailtxt(projectEquityNo);
}, },
methods: { methods: {
vis() { vis() {
document.addEventListener('visibilitychange', function() { document.addEventListener('visibilitychange', function() {
console.log('--22', document.visibilityState);
if(document.visibilityState == 'visible') { if(document.visibilityState == 'visible') {
console.log('进入前台');
that.getEntitlementList(); that.getEntitlementList();
} }
if(document.visibilityState == 'hidden') {
console.log('切换到后台');
}
}); });
}, },
handleErrorFn(e) { handleErrorFn(e) {
...@@ -147,6 +147,15 @@ ...@@ -147,6 +147,15 @@
} }
}); });
}, },
getDetailtxt(projectEquityNo) {
const o = {
yunOrderNo: projectEquityNo,
pageType: 5
};
getDetailtxt(o).then(res => {
this.insuranceText = res.data;
});
}
} }
}; };
</script> </script>
...@@ -159,9 +168,6 @@ ...@@ -159,9 +168,6 @@
padding-bottom: 70px; padding-bottom: 70px;
height: 712px; height: 712px;
background: #fff; background: #fff;
// .text{
// }
.bottom{ .bottom{
position: fixed; position: fixed;
bottom: 0; bottom: 0;
......
...@@ -36,7 +36,7 @@ module.exports = { ...@@ -36,7 +36,7 @@ module.exports = {
port: 8083, port: 8083,
proxy: { proxy: {
'/proxy': { '/proxy': {
target: 'https://dev-sc.yunqueyi.com/', target: 'https://test1-sc.yunqueyi.com/',
// target: 'https://test1-sc.yunqueyi.com/', // target: 'https://test1-sc.yunqueyi.com/',
// target: 'https://uat-sc.yunqueyi.com/', // target: 'https://uat-sc.yunqueyi.com/',
// http://10.241.65.90:3000/mock/1071/cs/route/removeUser // http://10.241.65.90:3000/mock/1071/cs/route/removeUser
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册