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

add all entrance for insurance

上级 523a7411
...@@ -154,10 +154,10 @@ export default { ...@@ -154,10 +154,10 @@ export default {
}, },
selectTimeB(item) { selectTimeB(item) {
// 约满禁止预约 // 约满禁止预约
if (!this.currentItem[item]) { if (this.currentItem[item + 'AppointmentFlag' ]) {
return; return;
} }
this.selectTimeBucket = item === 'amTimeBegin' ? this.currentItem['amTimeBegin'] : this.currentItem['pmTimeBegin']; this.selectTimeBucket = item === 'am' ? this.currentItem['amTimeBegin'] : this.currentItem['pmTimeBegin'];
this.selectItem(); this.selectItem();
} }
} }
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
}, },
{ {
pattern: /^.{2,20}$/, pattern: /^.{2,20}$/,
message: '收货人姓名请填写2-20位', message: '受检人姓名请填写2-20位',
},]" },]"
/> />
<van-field <van-field
......
...@@ -230,6 +230,25 @@ export default { ...@@ -230,6 +230,25 @@ export default {
if (geolocation && geolocation.lat && geolocation.lng) { if (geolocation && geolocation.lat && geolocation.lng) {
// https://uri.amap.com/navigation // https://uri.amap.com/navigation
switch (item.value) {
case 1:
// https://lbs.amap.com/api/uri-api/guide/mobile-web/point api地址
url = 'https://uri.amap.com/marker?&name=' + hospitalName + '&position=' + longitude + ',' + latitude + '&callnative=1';
break;
case 2:
// https://lbs.qq.com/webApi/uriV1/uriGuide/uriWebMarker api地址
url = 'https://apis.map.qq.com/uri/v1/geocoder?coord=' + latitude + ',' + longitude + '&referer=PICA';
break;
case 3:
// http://api.map.baidu.com/direction?origin=latlng:34.264642646862,108.95108518068|name:我家&destination=大雁塔&mode=driving&region=西安&output=html&src=webapp.baidu.openAPIdemo
// https://lbsyun.baidu.com/index.php?title=uri/api/web api地址
url = 'http://api.map.baidu.com/direction?origin=latlng:' + latitude + ',' + longitude + '&destination=' + geolocation.lat + ',' + geolocation.lng + + '&output=html&src=webapp.baidu.openAPIdemo&coord_type=bd09ll';
break;
default:
url = 'https://uri.amap.com/marker?&name=' + hospitalName + '&position=' + longitude + ',' + latitude + '&callnative=1';
break;
}
} else { } else {
console.log(item); console.log(item);
switch (item.value) { switch (item.value) {
......
...@@ -81,8 +81,9 @@ export default { ...@@ -81,8 +81,9 @@ export default {
this.yunOrderNo = res.data.yunOrderNo; this.yunOrderNo = res.data.yunOrderNo;
this.query.yunOrderNo = res.data.yunOrderNo; this.query.yunOrderNo = res.data.yunOrderNo;
this.status = res.data.status; this.status = res.data.status;
this.status = '0102';
this.getDetectionName(this.yunOrderNo); this.getDetectionName(this.yunOrderNo);
switch (res.data.status) { switch (this.status) {
case '0101': case '0101':
window.location.href = res.data.questionnaireUrl; window.location.href = res.data.questionnaireUrl;
break; break;
......
...@@ -105,6 +105,7 @@ export default { ...@@ -105,6 +105,7 @@ export default {
padding: 0 16px; padding: 0 16px;
color: #676869; color: #676869;
text-align: center; text-align: center;
overflow: auto;
.icon-item { .icon-item {
width: 57px; width: 57px;
height: 65px; height: 65px;
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
@click="toAppoint" @click="toAppoint"
> >
{{ statusMap(detailInfo.status) || '免费预约检测' }} {{ buttonText || '免费预约检测' }}
</div> </div>
<div class="tips"> <div class="tips">
注:该问卷评估结果仅供填写人自行参考。 注:该问卷评估结果仅供填写人自行参考。
...@@ -84,7 +84,8 @@ export default { ...@@ -84,7 +84,8 @@ export default {
yunOrderNo:'', yunOrderNo:'',
status:null, status:null,
query: {}, query: {},
buttonStatus:false buttonStatus: false,
buttonText:''
}; };
}, },
...@@ -123,6 +124,7 @@ export default { ...@@ -123,6 +124,7 @@ export default {
getButtonStatus(yunOrderNo).then(res => { getButtonStatus(yunOrderNo).then(res => {
console.log(res); console.log(res);
this.buttonStatus = res.data.buttonStatus; this.buttonStatus = res.data.buttonStatus;
this.buttonText = res.data.statusDesc;
}); });
} }
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册