Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-insurance
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.frontend
pica-insurance
提交
9a042d49
提交
9a042d49
编写于
2月 21, 2023
作者:
张敬贤
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Feature/zjx
上级
50509fae
变更
7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
42 行增加
和
10 行删除
+42
-10
question.js
src/api/question.js
+9
-0
index.vue
src/components/selectTime/index.vue
+6
-6
index.vue
src/views/appoint/index.vue
+1
-1
index.vue
src/views/appointDetails/index.vue
+19
-0
index.vue
src/views/home/index.vue
+2
-1
index.vue
src/views/insurance-question-back/index.vue
+1
-0
insuranceQuestionResult.vue
...ews/insurance-question-result/insuranceQuestionResult.vue
+4
-2
未找到文件。
src/api/question.js
浏览文件 @
9a042d49
...
@@ -26,3 +26,12 @@ export const createOrder = (data) => {
...
@@ -26,3 +26,12 @@ export const createOrder = (data) => {
withCredentials
:
true
,
withCredentials
:
true
,
});
});
};
};
// tis/insurance/makeAppointmentStatus?yunOrderNo=PCX2023021608340000000709043
export
const
getAppointmentStatus
=
(
yunOrderNo
)
=>
{
return
request
({
method
:
'get'
,
url
:
`/tis/insurance/makeAppointmentStatus?yunOrderNo=
${
yunOrderNo
}
`
,
withCredentials
:
true
,
});
};
src/components/selectTime/index.vue
浏览文件 @
9a042d49
...
@@ -28,16 +28,16 @@
...
@@ -28,16 +28,16 @@
<div
<div
v-show=
"currentItem.amTimeBegin !='' && currentItem.amTimeEnd !=''"
v-show=
"currentItem.amTimeBegin !='' && currentItem.amTimeEnd !=''"
class=
"text"
class=
"text"
:class=
"selectTimeBucket === 'am
TimeBegin
' ?'selected':''"
:class=
"selectTimeBucket === 'am' ?'selected':''"
@
click=
"selectTimeB('am
TimeBegin
')"
@
click=
"selectTimeB('am')"
>
>
{{
currentItem
.
amTimeContent
}}
{{
currentItem
.
amTimeContent
}}
</div>
</div>
<div
<div
v-if=
"currentItem.pmTimeBegin !='' && currentItem.pmTimeEnd!=''"
v-if=
"currentItem.pmTimeBegin !='' && currentItem.pmTimeEnd!=''"
class=
"text"
class=
"text"
:class=
"selectTimeBucket === 'pm
TimeBegin
' ?'selected':''"
:class=
"selectTimeBucket === 'pm' ?'selected':''"
@
click=
"selectTimeB('pm
TimeBegin
')"
@
click=
"selectTimeB('pm')"
>
>
{{
currentItem
.
pmTimeContent
}}
{{
currentItem
.
pmTimeContent
}}
</div>
</div>
...
@@ -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
===
'am
TimeBegin
'
?
this
.
currentItem
[
'amTimeBegin'
]
:
this
.
currentItem
[
'pmTimeBegin'
];
this
.
selectTimeBucket
=
item
===
'am'
?
this
.
currentItem
[
'amTimeBegin'
]
:
this
.
currentItem
[
'pmTimeBegin'
];
this
.
selectItem
();
this
.
selectItem
();
}
}
}
}
...
...
src/views/appoint/index.vue
浏览文件 @
9a042d49
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
},
},
{
{
pattern: /^.{2,20}$/,
pattern: /^.{2,20}$/,
message: '
收货
人姓名请填写2-20位',
message: '
受检
人姓名请填写2-20位',
},]"
},]"
/>
/>
<van-field
<van-field
...
...
src/views/appointDetails/index.vue
浏览文件 @
9a042d49
...
@@ -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®ion=西安&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
)
{
...
...
src/views/home/index.vue
浏览文件 @
9a042d49
...
@@ -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
;
...
...
src/views/insurance-question-back/index.vue
浏览文件 @
9a042d49
...
@@ -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
;
...
...
src/views/insurance-question-result/insuranceQuestionResult.vue
浏览文件 @
9a042d49
...
@@ -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
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录