提交 0e4746d9 编写于 作者: 吴康俊's avatar 吴康俊

Merge branch 'feature/insurance-h5-0718' into 'release'

多证件

See merge request !264
...@@ -2,6 +2,9 @@ NODE_ENV=production ...@@ -2,6 +2,9 @@ NODE_ENV=production
# 自定义 VUE_APP_ENV # 自定义 VUE_APP_ENV
VUE_APP_ENV ='dev' VUE_APP_ENV ='dev'
# 微信小程序的环境变量
VUE_APP_MINI_PROGRAM_ENV = 'trial'
VUE_APP_SERVICE_URL=https://dev-sc.yunqueyi.com VUE_APP_SERVICE_URL=https://dev-sc.yunqueyi.com
# 阿里云OSS对象存储地址 # 阿里云OSS对象存储地址
......
NODE_ENV=development NODE_ENV=development
VUE_APP_ENV=development VUE_APP_ENV=development
VUE_APP_MINI_PROGRAM_ENV='trial'
VUE_APP_SERVICE_URL= VUE_APP_SERVICE_URL=
# 模拟用户信息 # 模拟用户信息
......
...@@ -3,6 +3,9 @@ NODE_ENV=production ...@@ -3,6 +3,9 @@ NODE_ENV=production
# 自定义 VUE_APP_ENV # 自定义 VUE_APP_ENV
VUE_APP_ENV ='production' VUE_APP_ENV ='production'
# 微信小程序的环境变量
VUE_APP_MINI_PROGRAM_ENV = 'release'
VUE_APP_SERVICE_URL=https://sc.yunqueyi.com VUE_APP_SERVICE_URL=https://sc.yunqueyi.com
# 阿里云OSS对象存储地址 # 阿里云OSS对象存储地址
......
...@@ -3,6 +3,9 @@ NODE_ENV=production ...@@ -3,6 +3,9 @@ NODE_ENV=production
# 自定义 VUE_APP_ENV # 自定义 VUE_APP_ENV
VUE_APP_ENV ='production' VUE_APP_ENV ='production'
# 微信小程序的环境变量
VUE_APP_MINI_PROGRAM_ENV='trial'
VUE_APP_SERVICE_URL=https://test1-sc.yunqueyi.com VUE_APP_SERVICE_URL=https://test1-sc.yunqueyi.com
# 阿里云OSS对象存储地址 # 阿里云OSS对象存储地址
VUE_APP_OSS_URL=https://pica-h5-test.yunqueyi.com/ VUE_APP_OSS_URL=https://pica-h5-test.yunqueyi.com/
......
# pica-insurance # pica-insurance
> 请先查看每个目录的 md 文件 > 请先查看每个目录的 md 文件
## 仓库入口
[pica-insurance](http://192.168.110.53/com.pica.cloud.frontend/pica-insurance)
## 启动 ## 启动
```shell script ```shell script
npm run start npm run start
......
{"9df2e49807c0fb85a7c17c755b86d4d7":"/Users/picahealth/works/pica-insurance/src/assets/logo.png","758b3ee484912d18635bdb57a579da59":"/Users/picahealth/works/pica-insurance/src/assets/images/arrow.png","6d1ef277c0b674cfafec0d894ad92a8c":"/Users/picahealth/works/pica-insurance/src/assets/images/bg-login.png","8b3fad76f68143f9d8e301ea21e27df3":"/Users/picahealth/works/pica-insurance/src/assets/images/close.png","7555ad3c7d6b640d44478adbe5658060":"/Users/picahealth/works/pica-insurance/src/assets/images/demo-bg.png","7fea351023298066f0d129f8d87d8fd3":"/Users/picahealth/works/pica-insurance/src/assets/images/icon-4.png","ff2f6fc418813d788e9fe3b574b0b189":"/Users/picahealth/works/pica-insurance/src/assets/images/loginicon.png","c2a3ed40e3889561bbd48cd5ab394885":"/Users/picahealth/works/pica-insurance/src/assets/images/nodata.png","b84ede3eebf479010ae4a8ce93688e16":"/Users/picahealth/works/pica-insurance/src/assets/images/slide-icon.png","2cb58967532667c6b5eff92f43c9ef51":"/Users/picahealth/works/pica-insurance/src/assets/images/slide-ok.png"}
\ No newline at end of file
...@@ -6,9 +6,9 @@ export const getEntitlementList = async (externalOrderNo, projectEquityNo) => { ...@@ -6,9 +6,9 @@ export const getEntitlementList = async (externalOrderNo, projectEquityNo) => {
method: 'get', method: 'get',
url: `/tis/insurance/projectEquityNo/externalOrderNo?externalOrderNo=${externalOrderNo}&projectEquityNo=${projectEquityNo}`, url: `/tis/insurance/projectEquityNo/externalOrderNo?externalOrderNo=${externalOrderNo}&projectEquityNo=${projectEquityNo}`,
withCredentials: true, withCredentials: true,
hasLoading:true, hasLoading: true,
}); });
}; };
// 获取banner // 获取banner
export const getBanner = async (pageType, yunOrderNo) => { export const getBanner = async (pageType, yunOrderNo) => {
...@@ -16,6 +16,15 @@ export const getBanner = async (pageType, yunOrderNo) => { ...@@ -16,6 +16,15 @@ export const getBanner = async (pageType, yunOrderNo) => {
method: 'get', method: 'get',
url: `/tis/insurance/explain/${yunOrderNo}/${pageType}`, url: `/tis/insurance/explain/${yunOrderNo}/${pageType}`,
withCredentials: true, withCredentials: true,
hasLoading:true, hasLoading: true,
});
};
// 查询证件类型字典的接口
export const getCardTypes = () => {
return request({
url: 'basic-data/constants/app?typeCodeList=P333',
method: 'get',
withCredentials: true,
}); });
}; };
src/assets/images/arrow.png

460 字节 | W: | H:

src/assets/images/arrow.png

433 字节 | W: | H:

src/assets/images/arrow.png
src/assets/images/arrow.png
src/assets/images/arrow.png
src/assets/images/arrow.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/images/bg-login.png

78.9 KB | W: | H:

src/assets/images/bg-login.png

37.4 KB | W: | H:

src/assets/images/bg-login.png
src/assets/images/bg-login.png
src/assets/images/bg-login.png
src/assets/images/bg-login.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/images/close.png

2.2 KB | W: | H:

src/assets/images/close.png

870 字节 | W: | H:

src/assets/images/close.png
src/assets/images/close.png
src/assets/images/close.png
src/assets/images/close.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/images/demo-bg.png

136.7 KB | W: | H:

src/assets/images/demo-bg.png

23.6 KB | W: | H:

src/assets/images/demo-bg.png
src/assets/images/demo-bg.png
src/assets/images/demo-bg.png
src/assets/images/demo-bg.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/images/loginicon.png

2.9 KB | W: | H:

src/assets/images/loginicon.png

2.6 KB | W: | H:

src/assets/images/loginicon.png
src/assets/images/loginicon.png
src/assets/images/loginicon.png
src/assets/images/loginicon.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/images/nodata.png

43.4 KB | W: | H:

src/assets/images/nodata.png

11.2 KB | W: | H:

src/assets/images/nodata.png
src/assets/images/nodata.png
src/assets/images/nodata.png
src/assets/images/nodata.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/images/slide-icon.png

874 字节 | W: | H:

src/assets/images/slide-icon.png

824 字节 | W: | H:

src/assets/images/slide-icon.png
src/assets/images/slide-icon.png
src/assets/images/slide-icon.png
src/assets/images/slide-icon.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/images/slide-ok.png

964 字节 | W: | H:

src/assets/images/slide-ok.png

927 字节 | W: | H:

src/assets/images/slide-ok.png
src/assets/images/slide-ok.png
src/assets/images/slide-ok.png
src/assets/images/slide-ok.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/logo.png

6.7 KB | W: | H:

src/assets/logo.png

2.2 KB | W: | H:

src/assets/logo.png
src/assets/logo.png
src/assets/logo.png
src/assets/logo.png
  • 2-up
  • Swipe
  • Onion skin
import { router, store, vueApp } from '@pica-cli/vue-cli-plugin-pica-cli-plugin/auto'; import {
router,
store,
vueApp,
} from '@pica-cli/vue-cli-plugin-pica-cli-plugin/auto';
import * as dd from 'dingtalk-jsapi'; import * as dd from 'dingtalk-jsapi';
import '@/router'; import '@/router';
console.log('router, store, vueApp: ', router, store, vueApp); console.log('router, store, vueApp: ', router, store, vueApp);
import '@/assets/js/flexible'; import '@/assets/js/flexible';
import {isWeixin } from './utils/index'; import { isWeixin } from './utils/index';
import Loading from '@/components/loading/loading.js'; import Loading from '@/components/loading/loading.js';
import CryptoJS from 'crypto-js/crypto-js'; import CryptoJS from 'crypto-js/crypto-js';
import JsEncrypt from 'jsencrypt/bin/jsencrypt'; import JsEncrypt from 'jsencrypt/bin/jsencrypt';
...@@ -39,22 +43,21 @@ document.documentElement.addEventListener( ...@@ -39,22 +43,21 @@ document.documentElement.addEventListener(
passive: false, passive: false,
} }
); );
console.log('z', vueApp.$rocNative);
vueApp.$rocNative.appInit(); vueApp.$rocNative.appInit();
vueApp.$rocNative.on('wx_ready', function () { vueApp.$rocNative.on('wx_ready', function () {
console.log('-wx_ready-', window._picaWechat); console.log('-wx_ready-', window._picaWechat);
// 初始化wx jssdk 后 执行 脚手架将 wx 对象挂在到 $rocNative对象上,后执行 小程序环境判断方法 miniProgram.getEnv // 初始化wx jssdk 后 执行 脚手架将 wx 对象挂在到 $rocNative对象上,后执行 小程序环境判断方法 miniProgram.getEnv
vueApp.$rocNative.WXInstance.miniProgram.getEnv(function(res) { vueApp.$rocNative.WXInstance.miniProgram.getEnv(function (res) {
console.log('_miniprogram', res.miniprogram); // true console.log('_miniprogram', res.miniprogram); // true
window._miniprogram = res.miniprogram; window._miniprogram = res.miniprogram;
}); });
}); });
console.log('---', isWeixin()); console.log('---', isWeixin());
if(isWeixin()) { if (isWeixin()) {
window._picaWechat = 'wechat'; window._picaWechat = 'wechat';
} }
if(dd.env.version) { if (dd.env.version) {
window._picaWechat = 'dingtalk'; window._picaWechat = 'dingtalk';
} }
...@@ -63,7 +66,7 @@ sessionStorage.setItem('headerHeight', 0); ...@@ -63,7 +66,7 @@ sessionStorage.setItem('headerHeight', 0);
window.Vue.use(Loading); window.Vue.use(Loading);
// 设置安全密钥 // 设置安全密钥
window._AMapSecurityConfig = { window._AMapSecurityConfig = {
securityJsCode: 'f5093bfce95bd0393749259bcc44ede8' securityJsCode: 'f5093bfce95bd0393749259bcc44ede8',
}; };
console.log('router, store, vueApp: ', router, store, vueApp); console.log('router, store, vueApp: ', router, store, vueApp);
......
此差异已折叠。
此差异已折叠。
...@@ -18,7 +18,13 @@ ...@@ -18,7 +18,13 @@
</div> </div>
<div <div
class="status" class="status"
:class="{particlar : (item.statusCode == '0204' || item.statusCode == '0905' || item.statusCode == '0904'), 'red-particlar':item.statusCode == '0305'}" :class="{
particlar:
item.statusCode == '0204' ||
item.statusCode == '0905' ||
item.statusCode == '0904',
'red-particlar': item.statusCode == '0305',
}"
> >
{{ item.statusTxt || '--' }} {{ item.statusTxt || '--' }}
</div> </div>
...@@ -39,7 +45,7 @@ ...@@ -39,7 +45,7 @@
运单号: 运单号:
</div> </div>
<div class="value"> <div class="value">
{{ item.expressNo || "--" }} {{ item.expressNo || '--' }}
</div> </div>
</div> </div>
<div class="item"> <div class="item">
...@@ -47,7 +53,7 @@ ...@@ -47,7 +53,7 @@
物流进度: 物流进度:
</div> </div>
<div class="value"> <div class="value">
{{ item.expressContent || "--" }} {{ item.expressContent || '--' }}
</div> </div>
</div> </div>
</div> </div>
...@@ -66,18 +72,21 @@ ...@@ -66,18 +72,21 @@
检测时间: 检测时间:
</div> </div>
<div class="value"> <div class="value">
{{ formatDate(item.detectionTime) || "--" }} {{ formatDate(item.detectionTime) || '--' }}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div <div class="btn">
class="btn"
>
<wx-open-launch-weapp <wx-open-launch-weapp
:id="`launch-btn${index}`" :id="`launch-btn${index}`"
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%" style="
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
"
:username="openWebAppConfig.username" :username="openWebAppConfig.username"
: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"
...@@ -105,47 +114,44 @@ ...@@ -105,47 +114,44 @@
</div> </div>
</template> </template>
<script> <script>
import { formatDate } from '@/utils/common'; import { formatDate } from '@/utils/common';
const { VUE_APP_ENV } = process.env; import { getEntitlementList, getBanner } from '@/api/entitlement';
import {getEntitlementList, getBanner} from '@/api/entitlement';
export default { export default {
data() { data() {
return { return {
bgPath: '', bgPath: '',
entitlementList: [], entitlementList: [],
emptyIconPath: 'https://files.yunqueyi.com/image/png/common/20230602155400880.png', emptyIconPath:
envVersion: VUE_APP_ENV == 'production' ? 'release' : 'trial', 'https://files.yunqueyi.com/image/png/common/20230602155400880.png',
// envVersion: 'trial', envVersion: process.env.VUE_APP_MINI_PROGRAM_ENV,
openWebAppConfig:{ openWebAppConfig: {
username:'gh_e92f58174364', // 小程序唯一username 1.gh_80d54796f2d5 云鹊助手 2. gh_e92f58174364 云鹊健康 username: 'gh_e92f58174364', // 小程序唯一username 1.gh_80d54796f2d5 云鹊助手 2. gh_e92f58174364 云鹊健康
path:'pagesInsurance/all-entrance/index', // 打开页面 path: 'pagesInsurance/all-entrance/index', // 打开页面
extraData: JSON.stringify({}) extraData: JSON.stringify({}),
}, },
externalOrderNo:'', externalOrderNo: '',
projectEquityNo:'', projectEquityNo: '',
showDialog: false, showDialog: false,
}; };
}, },
computed() { computed() {},
},
mounted() { mounted() {
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();
}, },
methods:{ methods: {
getBanner(pageType, yunOrderNo) { getBanner(pageType, yunOrderNo) {
const self = this; const self = this;
self.$loading.show(); self.$loading.show();
getBanner(pageType, yunOrderNo).then(res => { getBanner(pageType, yunOrderNo).then((res) => {
if(res.code === '000000') { if (res.code === '000000') {
self.bgPath = res.data.logoUrl; self.bgPath = res.data.logoUrl;
self.$loading.hide(); self.$loading.hide();
} }
...@@ -156,7 +162,7 @@ ...@@ -156,7 +162,7 @@
const self = this; const self = this;
document.addEventListener('visibilitychange', () => { document.addEventListener('visibilitychange', () => {
self.entitlementList = []; self.entitlementList = [];
if(document.visibilityState == 'visible') { if (document.visibilityState == 'visible') {
self.refreshList(); self.refreshList();
} }
}); });
...@@ -176,11 +182,11 @@ ...@@ -176,11 +182,11 @@
getEntitlementList(externalOrderNo, projectEquityNo) { getEntitlementList(externalOrderNo, projectEquityNo) {
const that = this; const that = this;
// that.$loading.show(); // that.$loading.show();
getEntitlementList(externalOrderNo, projectEquityNo).then(res => { getEntitlementList(externalOrderNo, projectEquityNo).then((res) => {
if (res.code === '000000') { if (res.code === '000000') {
if(res?.data.length > 0) { if (res?.data.length > 0) {
let arr = []; let arr = [];
arr = res.data.map( r => { arr = res.data.map((r) => {
// 0905已完成 0101未填写问卷 0102已填写问卷 0202已预约 0902已结束 0104待支付 0201待预约 0302已采样 0901 已出报告 // 0905已完成 0101未填写问卷 0102已填写问卷 0202已预约 0902已结束 0104待支付 0201待预约 0302已采样 0901 已出报告
// 0903 待报销 0904 已报销 // 0903 待报销 0904 已报销
switch (r.statusCode) { switch (r.statusCode) {
...@@ -245,21 +251,24 @@ ...@@ -245,21 +251,24 @@
} }
// 已采样 单独处理 // 已采样 单独处理
if(r.statusCode == '0302') { if (r.statusCode == '0302') {
if(r.detectionKind == 1) { if (r.detectionKind == 1) {
r.btnTxt = '上传结果'; r.btnTxt = '上传结果';
}else{ } else {
r.btnTxt = '检测详情'; r.btnTxt = '检测详情';
} }
} }
r.title = r.detectionKind == 1 ? '癌症早早检权益领取' : '癌症早检权益领取'; r.title =
r.detectionKind == 1
? '癌症早早检权益领取'
: '癌症早检权益领取';
return r; return r;
}); });
arr.map((item, index) => { arr.map((item, index) => {
if(item.statusCode == '0101') { if (item.statusCode == '0101') {
arr[index]['yunOrderNoFirst_self'] = item.yunOrderNoFirst; arr[index]['yunOrderNoFirst_self'] = item.yunOrderNoFirst;
}else{ } else {
arr[index]['yunOrderNoFirst_self'] = item.yunOrderNo; arr[index]['yunOrderNoFirst_self'] = item.yunOrderNo;
} }
}); });
...@@ -271,26 +280,26 @@ ...@@ -271,26 +280,26 @@
path: '/sz-public-new', path: '/sz-public-new',
query: { query: {
externalOrderNo: externalOrderNo, externalOrderNo: externalOrderNo,
projectEquityNo:projectEquityNo, projectEquityNo: projectEquityNo,
reload: 'reload', reload: 'reload',
} },
}); });
} }
// that.$loading.hide(); // that.$loading.hide();
} }
}); });
}, },
} },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.page-entitlement { .page-entitlement {
width: 100%; width: 100%;
height: 100vh; height: 100vh;
background: #f5f6f8; background: #f5f6f8;
overflow-y: auto; overflow-y: auto;
.banner{ .banner {
width: 375px; width: 375px;
height: 287px; height: 287px;
} }
...@@ -326,15 +335,15 @@ ...@@ -326,15 +335,15 @@
text-align: right; text-align: right;
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #00BDA5; color: #00bda5;
} }
.particlar{ .particlar {
color: #999999; color: #999999;
} }
.red-particlar{ .red-particlar {
color: #FF4B33; color: #ff4b33;
} }
} }
...@@ -381,22 +390,22 @@ ...@@ -381,22 +390,22 @@
// } // }
} }
.empty-wrap{ .empty-wrap {
padding: 154px 54px 250px 54px; padding: 154px 54px 250px 54px;
background: #fff; background: #fff;
border-radius: 10px; border-radius: 10px;
.empty-icon{ .empty-icon {
width: 243px; width: 243px;
height: 127px; height: 127px;
} }
.empty-text{ .empty-text {
font-size: 18px; font-size: 18px;
font-weight: 500; font-weight: 500;
color: #02120F; color: #02120f;
text-align: center; text-align: center;
} }
} }
} }
} }
</style> </style>
<template>
<div class="pica-date-picker">
<van-field
:border="false"
readonly
placeholder="请选择出生年月日"
:value="value"
class="appoint-form-items"
@click="handleOpenPopup"
/>
<van-popup
v-model="visible"
position="bottom"
:transition-appear="false"
>
<van-datetime-picker
type="date"
title="选择年月日"
:value="currentDate"
:min-date="minDate"
:max-date="maxDate"
@confirm="handleConfirm"
@cancel="visible = false"
/>
</van-popup>
</div>
</template>
<script>
import dayjs from 'dayjs';
export default {
props: {
value: {
type: String,
default: '',
},
},
data() {
return {
visible: false,
currentDate: new Date(),
minDate: new Date(1900, 0, 1),
maxDate: new Date(),
};
},
methods: {
handleOpenPopup() {
this.visible = true;
},
handleConfirm(value) {
this.visible = false;
const formatDate = dayjs(value).format('YYYY-MM-DD');
this.$emit('input', formatDate);
},
},
};
</script>
<style scoped lang="scss">
.pica-date-picker {
width: 100%;
.van-cell {
padding: 0 !important;
}
}
</style>
此差异已折叠。
...@@ -36,7 +36,7 @@ module.exports = { ...@@ -36,7 +36,7 @@ module.exports = {
port: 8083, port: 8083,
proxy: { proxy: {
'/proxy': { '/proxy': {
target: 'https://test1-sc.yunqueyi.com/', target: 'https://dev-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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册