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

Merge branch 'release-zl' into 'release'

Release zl

See merge request !273
{
"singleQuote": true,
"singleAttributePerLine": true,
"bracketSameLine": false
}
...@@ -6,7 +6,7 @@ export const getEntitlementList = async (externalOrderNo, projectEquityNo) => { ...@@ -6,7 +6,7 @@ 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,
}); });
}; };
...@@ -16,7 +16,7 @@ export const getBanner = async (pageType, yunOrderNo) => { ...@@ -16,7 +16,7 @@ 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,
}); });
}; };
......
...@@ -9,7 +9,7 @@ export const getButtonStatus = (id) => { ...@@ -9,7 +9,7 @@ export const getButtonStatus = (id) => {
}; };
// 根据订单号获取跳转页状态/ // 根据订单号获取跳转页状态/
// /tis/insurance/jumpPageStatus?orderNo=1&projectEquityNo=1 // /tis/insurance/jumpPageStatus?orderNo=1&projectEquityNo=1
export const getJumpPageStatus = ({externalOrderNo, yunOrderNo, projectEquityNo}) => { export const getJumpPageStatus = ({ externalOrderNo, yunOrderNo, projectEquityNo }) => {
return request({ return request({
method: 'get', method: 'get',
url: `/tis/insurance/jumpPageStatus?externalOrderNo=${externalOrderNo}&projectEquityNo=${projectEquityNo}&yunOrderNo=${yunOrderNo}`, url: `/tis/insurance/jumpPageStatus?externalOrderNo=${externalOrderNo}&projectEquityNo=${projectEquityNo}&yunOrderNo=${yunOrderNo}`,
...@@ -51,7 +51,7 @@ export const createOrderSzV2 = (data) => { ...@@ -51,7 +51,7 @@ export const createOrderSzV2 = (data) => {
}); });
}; };
export const uploadPointData = data => { export const uploadPointData = (data) => {
return request({ return request({
url: '/tis/insurance/promotion_channel/report_data', url: '/tis/insurance/promotion_channel/report_data',
method: 'POST', method: 'POST',
...@@ -59,3 +59,16 @@ export const uploadPointData = data => { ...@@ -59,3 +59,16 @@ export const uploadPointData = data => {
data, data,
}); });
}; };
/**
* 根据外部单号查询用户信息(太保项目使用)
* TB202309151004000001
* @returns
*/
export const taiBaoUserInfo = (externalOrderNo) => {
return request({
url: `/tis/insurance/common/taiBao/TB202309151004000001/${externalOrderNo}`,
method: 'get',
withCredentials: true,
});
};
export const formatDate = (datetime) => { export const formatDate = (datetime) => {
var date = new Date(datetime); // 时间戳为10位需*1000,时间戳为13位的话不需乘1000 var date = new Date(datetime); // 时间戳为10位需*1000,时间戳为13位的话不需乘1000
var year = date.getFullYear(), var year = date.getFullYear(),
month = ('0' + (date.getMonth() + 1)).slice(-2), month = ('0' + (date.getMonth() + 1)).slice(-2),
sdate = ('0' + date.getDate()).slice(-2), sdate = ('0' + date.getDate()).slice(-2),
hour = ('0' + date.getHours()).slice(-2), hour = ('0' + date.getHours()).slice(-2),
minute = ('0' + date.getMinutes()).slice(-2), minute = ('0' + date.getMinutes()).slice(-2),
second = ('0' + date.getSeconds()).slice(-2); second = ('0' + date.getSeconds()).slice(-2);
// 拼接 // 拼接
var result = var result =
year + '-' + month + '-' + sdate + ' ' + hour + ':' + minute + ':' + second; year + '-' + month + '-' + sdate + ' ' + hour + ':' + minute + ':' + second;
// 返回 // 返回
return result; return result;
}; };
export const formatDay = (datetime) => { export const formatDay = (datetime) => {
var date = new Date(datetime); var date = new Date(datetime);
var year = date.getFullYear(), var year = date.getFullYear(),
month = ('0' + (date.getMonth() + 1)).slice(-2), month = ('0' + (date.getMonth() + 1)).slice(-2),
day = ('0' + date.getDate()).slice(-2); day = ('0' + date.getDate()).slice(-2);
// 拼接 // 拼接
var result = year + '-' + month + '-' + day; var result = year + '-' + month + '-' + day;
// 返回 // 返回
return result; return result;
}; };
// 判断是否是微信 // 判断是否是微信
export function isWeixin() { export function isWeixin() {
const ua = window.navigator.userAgent.toLowerCase(); const ua = window.navigator.userAgent.toLowerCase();
if(ua.match(/MicroMessenger/i) == 'micromessenger' || ua.match(/_SQ_/i) == '_sq_') { // if(ua.match(/MicroMessenger/i) == 'micromessenger' || ua.match(/_SQ_/i) == '_sq_') {
if (ua.match(/MicroMessenger/i) == 'micromessenger') {
return true; return true;
} else{ } else {
return false; return false;
} }
} }
// 时间戳 格式化为 时分秒(00: 00: 00) // 时间戳 格式化为 时分秒(00: 00: 00)
export const formatDuring = (time) => { export const formatDuring = (time) => {
const s = Math.floor(time / 1000); const s = Math.floor(time / 1000);
if (!s) { if (!s) {
return ''; return '';
}
let t = '';
if (s > -1) {
const hour = Math.floor(s / 3600);
const min = Math.floor(s / 60) % 60;
const sec = s % 60;
if (hour) {
if (hour < 10) {
t = '0' + hour + ':';
} else {
t = hour + ':';
}
}
if (min < 10) {
t += '0';
} }
let t = ''; t += min + ':';
if (s > -1) { if (sec < 10) {
const hour = Math.floor(s / 3600); t += '0';
const min = Math.floor(s / 60) % 60;
const sec = s % 60;
if (hour) {
if (hour < 10) {
t = '0' + hour + ':';
} else {
t = hour + ':';
}
}
if (min < 10) {
t += '0';
}
t += min + ':';
if (sec < 10) {
t += '0';
}
t += sec.toFixed(0);
} }
return t; t += sec.toFixed(0);
}
return t;
}; };
export function toDecimal2(x) { export function toDecimal2(x) {
if (isNaN(x)) { if (isNaN(x)) {
return ''; return '';
} }
const f = x / 100; const f = x / 100;
let s = f.toString(); let s = f.toString();
let rs = s.indexOf('.'); let rs = s.indexOf('.');
if (rs < 0) { if (rs < 0) {
rs = s.length; rs = s.length;
s += '.'; s += '.';
} }
while (s.length <= rs + 2) { while (s.length <= rs + 2) {
s += '0'; s += '0';
} }
return s; return s;
} }
/** /**
...@@ -89,18 +90,18 @@ export function toDecimal2(x) { ...@@ -89,18 +90,18 @@ export function toDecimal2(x) {
* birthDay:yyyy-MM-dd * birthDay:yyyy-MM-dd
*/ */
export function getBirthdayAndSex(idCard) { export function getBirthdayAndSex(idCard) {
const info = {}; const info = {};
const birth = (idCard.length === 18) ? idCard.slice(6, 14) : idCard.slice(6, 12); const birth =
// 18位:提取第17位数字;15位:提取最后一位数字 idCard.length === 18 ? idCard.slice(6, 14) : idCard.slice(6, 12);
const order = (idCard.length === 18) ? idCard.slice(-2, -1) : idCard.slice(-1); // 18位:提取第17位数字;15位:提取最后一位数字
info.birthDay = (idCard.length === 18) ? ([birth.slice(0, 4), const order = idCard.length === 18 ? idCard.slice(-2, -1) : idCard.slice(-1);
birth.slice(4, 6), birth.slice(-2) info.birthDay =
]).join('-') : ([ idCard.length === 18
'19' + birth.slice(0, 2), birth.slice(2, 4), ? [birth.slice(0, 4), birth.slice(4, 6), birth.slice(-2)].join('-')
birth.slice(-2) : ['19' + birth.slice(0, 2), birth.slice(2, 4), birth.slice(-2)].join(
]).join('-'); '-'
// 余数为0代表女性,不为0代表男性 );
info.sex = (order % 2 === 0 ? 0 : 1); // 余数为0代表女性,不为0代表男性
return info; info.sex = order % 2 === 0 ? 0 : 1;
return info;
} }
...@@ -18,7 +18,8 @@ ...@@ -18,7 +18,8 @@
<span <span
v-if="item.detectionPayType == 1" v-if="item.detectionPayType == 1"
class="pay-icon" class="pay-icon"
>付费</span> >付费</span
>
</div> </div>
<div <div
class="status" class="status"
...@@ -35,9 +36,7 @@ ...@@ -35,9 +36,7 @@
</div> </div>
<div class="content"> <div class="content">
<div class="item"> <div class="item">
<div class="label"> <div class="label">检测项目:</div>
检测项目:
</div>
<div class="value"> <div class="value">
{{ item.detectionName || '--' }} {{ item.detectionName || '--' }}
</div> </div>
...@@ -45,17 +44,13 @@ ...@@ -45,17 +44,13 @@
<div v-if="item.expressContent"> <div v-if="item.expressContent">
<div class="item"> <div class="item">
<div class="label"> <div class="label">运单号:</div>
运单号:
</div>
<div class="value"> <div class="value">
{{ item.expressNo || '--' }} {{ item.expressNo || '--' }}
</div> </div>
</div> </div>
<div class="item"> <div class="item">
<div class="label"> <div class="label">物流进度:</div>
物流进度:
</div>
<div class="value"> <div class="value">
{{ item.expressContent || '--' }} {{ item.expressContent || '--' }}
</div> </div>
...@@ -64,19 +59,21 @@ ...@@ -64,19 +59,21 @@
<div v-else> <div v-else>
<div class="item"> <div class="item">
<div class="label"> <div class="label">领取机构:</div>
领取机构:
</div>
<div class="value"> <div class="value">
{{ item.hospitalName || '--' }} {{ item.hospitalName || '--' }}
</div> </div>
</div> </div>
<div class="item"> <div class="item">
<div class="label"> <div class="label">
{{ item.detectionTime ? "检测时间" : "预约时间" }} {{ item.detectionTime ? '检测时间' : '预约时间' }}
</div> </div>
<div class="value"> <div class="value">
{{ item.detectionTime ? item.detectionTime : item.appointmentTimeStr || '--' }} {{
item.detectionTime
? item.detectionTime
: item.appointmentTimeStr || '--'
}}
</div> </div>
</div> </div>
</div> </div>
...@@ -110,9 +107,7 @@ ...@@ -110,9 +107,7 @@
class="empty-icon" class="empty-icon"
:src="emptyIconPath" :src="emptyIconPath"
/> />
<div class="empty-text"> <div class="empty-text">暂无领取记录</div>
暂无领取记录
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -353,7 +348,7 @@ export default { ...@@ -353,7 +348,7 @@ export default {
.item { .item {
font-size: 14px; font-size: 14px;
display: flex; display: flex;
align-items: top; align-items: center;
margin-bottom: 5px; margin-bottom: 5px;
.label { .label {
display: inline-block; display: inline-block;
...@@ -403,9 +398,9 @@ export default { ...@@ -403,9 +398,9 @@ export default {
} }
} }
} }
.pay-icon{ .pay-icon {
padding: 2px 3px; padding: 2px 3px;
background: #FF4B33; background: #ff4b33;
border-radius: 6px; border-radius: 6px;
color: #ffffff; color: #ffffff;
text-align: center; text-align: center;
......
...@@ -34,6 +34,10 @@ export default { ...@@ -34,6 +34,10 @@ export default {
type: String, type: String,
default: '', default: '',
}, },
readonly: {
type: Boolean,
default: false,
},
}, },
data() { data() {
return { return {
...@@ -46,6 +50,7 @@ export default { ...@@ -46,6 +50,7 @@ export default {
methods: { methods: {
handleOpenPopup() { handleOpenPopup() {
if (this.readonly) return;
this.visible = true; this.visible = true;
}, },
......
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册