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
提交
42b213b3
提交
42b213b3
编写于
2月 20, 2023
作者:
张敬贤
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add
上级
0466dd37
变更
7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
132 行增加
和
48 行删除
+132
-48
index.html
public/index.html
+32
-1
index.vue
src/components/selectTime/index.vue
+4
-2
index.js
src/router/index.js
+1
-15
index.vue
src/views/appoint/index.vue
+9
-3
index.vue
src/views/appointDetails/index.vue
+24
-8
index.vue
src/views/home/index.vue
+58
-2
insuranceQuestionResult.vue
...ews/insurance-question-result/insuranceQuestionResult.vue
+4
-17
未找到文件。
public/index.html
浏览文件 @
42b213b3
...
...
@@ -12,6 +12,37 @@
<link
rel=
"dns-prefetch"
href=
"<%= process.env.VUE_APP_SERVICE_URL %>"
>
<link
rel=
"icon"
type=
"image/x-icon"
href=
"<%= VUE_APP_OSS_URL %>static/img/logo.png"
>
<title>
云鹊医
</title>
<script
type=
"text/javascript"
>
var
userAgent
=
navigator
.
userAgent
;
if
(
userAgent
.
indexOf
(
'AlipayClient'
)
>
-
1
)
{
// 支付宝小程序的 JS-SDK 防止 404 需要动态加载,如果不需要兼容支付宝小程序,则无需引用此 JS 文件。
document
.
writeln
(
'<script src="https://appx/web-view.min.js"'
+
'>'
+
'<'
+
'/'
+
'script>'
);
}
else
if
(
/QQ/i
.
test
(
userAgent
)
&&
/miniProgram/i
.
test
(
userAgent
))
{
// QQ 小程序
document
.
write
(
'<script type="text/javascript" src="https://qqq.gtimg.cn/miniprogram/webview_jssdk/qqjssdk-1.0.0.js"><
\
/script>'
);
}
else
if
(
/miniProgram/i
.
test
(
userAgent
)
&&
/micromessenger/i
.
test
(
userAgent
))
{
// 微信小程序 JS-SDK 如果不需要兼容微信小程序,则无需引用此 JS 文件。
document
.
write
(
'<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.4.0.js"><
\
/script>'
);
}
else
if
(
/toutiaomicroapp/i
.
test
(
userAgent
))
{
// 头条小程序 JS-SDK 如果不需要兼容头条小程序,则无需引用此 JS 文件。
document
.
write
(
'<script type="text/javascript" src="https://s3.pstatp.com/toutiao/tmajssdk/jssdk-1.0.1.js"><
\
/script>'
);
}
else
if
(
/swan/i
.
test
(
userAgent
))
{
// 百度小程序 JS-SDK 如果不需要兼容百度小程序,则无需引用此 JS 文件。
document
.
write
(
'<script type="text/javascript" src="https://b.bdstatic.com/searchbox/icms/searchbox/js/swan-2.0.18.js"><
\
/script>'
);
}
else
if
(
/quickapp/i
.
test
(
userAgent
))
{
// quickapp
document
.
write
(
'<script type="text/javascript" src="https://quickapp/jssdk.webview.min.js"><
\
/script>'
);
}
if
(
!
/toutiaomicroapp/i
.
test
(
userAgent
))
{
document
.
querySelector
(
'.post-message-section'
).
style
.
visibility
=
'visible'
;
}
</script>
<script
type=
"text/javascript"
src=
"https://unpkg.com/@dcloudio/uni-webview-js@0.0.3/index.js"
></script>
</head>
<body>
<noscript>
...
...
@@ -26,7 +57,7 @@
<script
src=
"<%= VUE_APP_OSS_URL %>static/js/axios-0.19.0.js"
></script>
<script
src=
"<%= VUE_APP_OSS_URL %>static/js/jsencrypt.min-3.0.0.js"
></script>
<script
src=
"<%= VUE_APP_OSS_URL %>static/js/crypto.min-4.0.0.js"
></script>
<
script
src=
"<%= VUE_APP_OSS_URL %>static/js/vconsole-3.3.4.js"
></script
>
<
!-- <script src="<%= VUE_APP_OSS_URL %>static/js/vconsole-3.3.4.js"></script> --
>
<script
src=
"<%= VUE_APP_OSS_URL %>static/js/lodash-4.17.15.js"
></script>
<script>
!
(
function
(
c
,
b
,
d
,
a
){
c
[
a
]
||
(
c
[
a
]
=
{});
c
[
a
].
config
=
...
...
src/components/selectTime/index.vue
浏览文件 @
42b213b3
...
...
@@ -26,6 +26,7 @@
</div>
<div
class=
"time-list-right"
>
<div
v-show=
"currentItem.amTimeBegin !='' && currentItem.amTimeEnd !=''"
class=
"text"
:class=
"selectTimeBucket === 'amTimeBegin' ?'selected':''"
@
click=
"selectTimeB('amTimeBegin')"
...
...
@@ -33,6 +34,7 @@
{{
currentItem
.
amTimeContent
}}
</div>
<div
v-if=
"currentItem.pmTimeBegin !='' && currentItem.pmTimeEnd!=''"
class=
"text"
:class=
"selectTimeBucket === 'pmTimeBegin' ?'selected':''"
@
click=
"selectTimeB('pmTimeBegin')"
...
...
@@ -82,7 +84,7 @@ export default {
};
},
watch
:
{
projectEquityNo
:
{
hospitalId
:
{
handler
(
nv
)
{
if
(
nv
)
{
this
.
getScheduling
();
...
...
@@ -155,7 +157,7 @@ export default {
if
(
!
this
.
currentItem
[
item
])
{
return
;
}
this
.
selectTimeBucket
=
item
===
'amTimeBegin'
?
this
.
currentItem
[
'amTime
Content'
]
:
this
.
currentItem
[
'pmTimeContent
'
];
this
.
selectTimeBucket
=
item
===
'amTimeBegin'
?
this
.
currentItem
[
'amTime
Begin'
]
:
this
.
currentItem
[
'pmTimeBegin
'
];
this
.
selectItem
();
}
}
...
...
src/router/index.js
浏览文件 @
42b213b3
...
...
@@ -55,24 +55,10 @@ const routerConfig = [
component
:
()
=>
import
(
'@/views/pdf-preview/index.vue'
),
},
];
// 无问卷-0001 有问卷未填写-0101 已填写问卷未出结果-0102 已出结果无需领用-0401 已出结果未预约-0201 已预约未采样-0301 已预约已采样-0302
const
routerMap
=
{
'0001'
:
null
,
'0101'
:
null
,
'0102'
:
null
,
'0401'
:
null
,
'0201'
:
'/appoint'
,
'0301'
:
null
,
'0302'
:
null
,
};
router
.
beforeEach
(
async
(
to
,
from
,
next
)
=>
{
console
.
log
(
to
,
from
,
next
);
if
(
to
.
name
===
'home'
)
{
console
.
log
(
to
.
name
,
routerMap
);
}
else
{
next
();
}
});
router
.
addRoutes
(
routerConfig
);
...
...
src/views/appoint/index.vue
浏览文件 @
42b213b3
...
...
@@ -249,7 +249,7 @@ export default {
longitude
:
''
},
locationAreaCode
:
[],
hospitalId
:
'
12746
'
,
hospitalId
:
''
,
projectEquityNo
:
''
,
yunOrderNo
:
''
,
externalData
:{}
...
...
@@ -357,7 +357,6 @@ export default {
// 目前是配置一个检测信息,可能会拓展,所以返回的是一个list
getDetectionName
(
yunOrderNo
)
{
getDetectionName
(
yunOrderNo
).
then
(
res
=>
{
if
(
res
.
code
===
'000000'
&&
res
.
data
)
{
const
dectionData
=
res
.
data
[
0
]
||
{};
console
.
log
(
'getDetectionName'
,
dectionData
);
...
...
@@ -424,7 +423,14 @@ export default {
yunOrderNo
:
this
.
yunOrderNo
,
};
appointment
(
data
).
then
(
res
=>
{
console
.
log
(
'confirm'
,
res
);
if
(
res
.
code
===
'000000'
)
{
this
.
$router
.
push
({
path
:
'/appoint-details'
,
query
:
{
yunOrderNo
:
this
.
yunOrderNo
}
});
}
});
},
...
...
src/views/appointDetails/index.vue
浏览文件 @
42b213b3
...
...
@@ -155,14 +155,28 @@ export default {
showSsheet
:
false
,
yunOrderNo
:
''
,
query
:{},
// 状态 0=待预约,1=已预约 ,2=已出报告 4=已取消 5=已过期
// 状态 代码 说明
// 0101 未填写问卷
// 0102 已填写问卷
// 0201 待预约
// 0202 已预约
// 0203 已取消待重新预约
// 0301 待采样
// 0302 已采样
// 0303 待重新采样
// 0304 已出报告
// 0401 已结束
statusMap
:
{
0
:
'待预约'
,
1
:
'已预约'
,
2
:
'已出报告'
,
3
:
'已采样'
,
4
:
'已取消'
,
5
:
'已过期'
,
'0101'
:
'未填写问卷'
,
'0102'
:
'已填写问卷'
,
'0201'
:
'待预约'
,
'0202'
:
'已预约'
,
'0203'
:
'已取消待重新预约'
,
'0301'
:
'待采样'
,
'0302'
:
'已采样'
,
'0303'
:
'待重新采样'
,
'0304'
:
'已出报告'
,
'0401'
:
'已结束'
,
},
};
},
...
...
@@ -185,13 +199,16 @@ export default {
getDetailByYunOrderNo
(
yunOrderNo
)
{
getDetailByYunOrderNo
(
yunOrderNo
).
then
(
res
=>
{
console
.
log
(
res
);
this
.
detailInfo
=
res
.
data
;
});
},
checkDetail
()
{
},
reAppoint
()
{
this
.
$router
.
push
({
});
},
selectItem
(
item
)
{
const
geolocation
=
store
.
get
(
'geolocation'
);
...
...
@@ -218,7 +235,6 @@ export default {
break
;
case
3
:
// https://lbsyun.baidu.com/index.php?title=uri/api/web api地址
url
=
'http://api.map.baidu.com/marker?location='
+
latitude
+
','
+
longitude
+
'&title='
+
hospitalName
+
'&output=html&src=webapp.baidu.openAPIdemo'
;
break
;
default
:
...
...
src/views/home/index.vue
浏览文件 @
42b213b3
<
template
>
<div
>
111
</div
>
<div
/
>
</
template
>
<
script
>
import
{
getJumpPageStatus
}
from
'@/api/question'
;
export
default
{
data
()
{
return
{
// 无问卷-0001 有问卷未填写-0101 已填写问卷未出结果-0102 已出结果无需领用-0401 已出结果未预约-0201 已预约未采样-0301 已预约已采样-0302
routerMap
:{
'0001'
:
'/appoint'
,
'0101'
:
null
,
'0102'
:
'/insuranceQuestionBack'
,
'0401'
:
'/insuranceQuestionResult'
,
'0201'
:
'/appoint'
,
'0301'
:
'/appoint-details'
,
'0302'
:
'/insuranceBindCode'
,
}
};
},
methods
:
{
// 获取跳转状态
getJumpPageStatus
()
{
getJumpPageStatus
(
this
.
orderNo
,
this
.
projectEquityNo
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
)
{
this
.
yunOrderNo
=
res
.
data
.
yunOrderNo
;
this
.
query
.
yunOrderNo
=
res
.
data
.
yunOrderNo
;
this
.
status
=
res
.
data
.
status
;
switch
(
res
.
data
.
status
)
{
case
'0001'
:
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
case
'0101'
:
// this.turnToPage(this.routerMap[ this.status], this.query);
// 跳转到问卷页面
window
.
location
.
href
=
res
.
data
.
url
;
break
;
case
'0102'
:
// 跳转到结果页面;
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
case
'0401'
:
this
.
query
.
needDetect
=
1
;
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
case
'0201'
:
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
case
'0301'
:
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
case
'0302'
:
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
default
:
break
;
}
}
});
},
turnToPage
(
path
,
query
)
{
this
.
$router
.
push
({
path
,
query
});
}
}
};
</
script
>
...
...
src/views/insurance-question-result/insuranceQuestionResult.vue
浏览文件 @
42b213b3
...
...
@@ -63,7 +63,7 @@
</
template
>
<
script
>
import
{
getButtonStatus
,
getJumpPageStatus
}
from
'@/api/question'
;
import
{
getButtonStatus
}
from
'@/api/question'
;
export
default
{
data
()
{
return
{
...
...
@@ -102,7 +102,7 @@ export default {
console
.
log
(
11223
);
const
{
query
}
=
this
.
$route
;
this
.
query
=
query
;
this
.
get
JumpPageStatus
(
);
this
.
get
ButtonStatus
(
query
.
yunOrderNo
);
},
methods
:
{
statusMap
(
status
)
{
...
...
@@ -116,26 +116,13 @@ export default {
};
return
m
[
status
];
},
// 获取跳转状态
getJumpPageStatus
()
{
getJumpPageStatus
(
this
.
orderNo
,
this
.
projectEquityNo
).
then
(
res
=>
{
// console.log('res', getJumpPageStatus);
if
(
res
.
code
==
'000000'
)
{
this
.
yunOrderNo
=
res
.
data
.
yunOrderNo
;
this
.
query
.
yunOrderNo
=
res
.
data
.
yunOrderNo
;
this
.
status
=
res
.
data
.
status
;
this
.
needDetect
=
this
.
status
===
'0401'
;
this
.
getButtonStatus
(
res
.
data
.
yunOrderNo
);
}
});
},
// 去预约
toAppoint
()
{
if
(
this
.
buttonStatus
)
{
const
{
projectEquityNo
,
orderNo
,
yunOrderNo
}
=
this
;
const
{
projectEquityNo
,
orderNo
,
yunOrderNo
}
=
this
.
query
;
this
.
$router
.
push
({
path
:
this
.
routerMap
[
this
.
status
]
,
path
:
'/appoint'
,
query
:
{
projectEquityNo
,
orderNo
,
yunOrderNo
},
});
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录