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
提交
f821c08e
提交
f821c08e
编写于
4月 11, 2023
作者:
张磊
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'feature/zl' into 'release'
Feature/zl See merge request
!155
上级
bff00ce3
b4e31279
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
102 行增加
和
8 行删除
+102
-8
index.scss
src/views/insurance-detection-detail/index.scss
+17
-2
insurance-detection-detail.vue
...insurance-detection-detail/insurance-detection-detail.vue
+85
-6
未找到文件。
src/views/insurance-detection-detail/index.scss
浏览文件 @
f821c08e
...
...
@@ -272,7 +272,6 @@
justify-content
:
center
;
.submit-button
{
position
:
relative
;
width
:
350px
;
height
:
40px
;
border-radius
:
20px
;
font-weight
:
700
;
...
...
@@ -287,12 +286,28 @@
background
:
#ffffff
;
border
:
1px
solid
#00bda5
;
color
:
#00bda5
;
position
:
relative
;
}
}
.multi-sub-wrap
{
flex-direction
:
row
;
justify-content
:
space-evenly
;
.submit-button
{
width
:
45%
;
padding
:
0px
20px
;
}
.btn-label
{
width
:
62px
;
height
:
14px
;
line-height
:
14px
;
font-size
:
10px
;
text-align
:
center
;
color
:
#ffffff
;
background-color
:
#00BDA5
;
border-top-left-radius
:
7px
;
border-bottom-right-radius
:
14px
;
position
:
absolute
;
top
:
-7px
;
right
:
0px
;
}
}
src/views/insurance-detection-detail/insurance-detection-detail.vue
浏览文件 @
f821c08e
...
...
@@ -162,28 +162,61 @@
查看报告
</div>
<div
v-if=
"picaWechat == 'wechat' &&
[3].includes(dataDetail.status) &&
(Number(dataDetail.reportExplain) == 0)"
class=
"submit-button"
v-if=
"picaWechat == 'wechat' && (Number(dataDetail.reportExplain) == 0)"
class=
"submit-button
submit-button-empty
"
>
<wx-open-launch-weapp
style=
"position: absolute; top: 0; left: 0; width: 100%; height: 100%"
:username=
"openWebAppConfig.username"
:path=
"openWebAppConfig.path"
env-version=
"trial"
:extra-data=
"openWebAppConfig.extraData"
>
<script
type=
"text/wxtag-template"
>
<style>
.btn
{position:absolute; top: 0; color: #ffffff;text-align: center;line-height: 40px; left: 0; width:100%; height: 100%;}
</style>
<div
class=
"btn"
>
{{
openWebAppBtnName
}}
</div>
<style>
.btn
{position:absolute; top: 0; color: #ffffff;text-align: center;line-height: 40px; left: 0; width:100%; height: 100%;}
</style>
<div
class=
"btn"
>
{{
openWebAppBtnName
}}
</div>
</script>
</wx-open-launch-weapp>
</div>
<div
v-else
class=
"submit-button"
class=
"submit-button
submit-button-empty
"
@
click=
"getJumpToWebapp"
>
{{
openWebAppBtnName
}}
</div>
<div
v-if=
"picaWechat == 'wechat' && dataDetail.reimburseFlag"
class=
"submit-button submit-button-empty"
>
<div
class=
"btn-label"
:style=
"
{ background: mapColor(dataDetail.reimburseStatus) }"
>
{{
dataDetail
.
reimburseStatusStr
}}
</div>
<wx-open-launch-weapp
style=
"position: absolute; top: 0; left: 0; width: 100%; height: 100%"
:username=
"openWebAppConfigPositive.username"
:path=
"openWebAppConfigPositive.path"
>
<script
type=
"text/wxtag-template"
>
<style>
.btn
{position:absolute; top: 0; color: #ffffff;text-align: center;line-height: 40px; left: 0; width:100%; height: 100%;}
</style>
<div
class=
"btn"
>
{{
openWebAppBtnName
}}
</div>
</script>
</wx-open-launch-weapp>
</div>
<div
v-if=
"picaWechat != 'wechat' && dataDetail.reimburseFlag"
class=
"submit-button submit-button-empty"
@
click=
"getJumpToWebapp2"
>
<div
class=
"btn-label"
:style=
"
{ background: mapColor(dataDetail.reimburseStatus) }"
>
{{
dataDetail
.
reimburseStatusStr
}}
</div>
阳性报销
</div>
</div>
</div>
</
template
>
...
...
@@ -239,6 +272,11 @@ export default {
path
:
'pagesInsurance/all-entrance/index'
,
// 打开页面
extraData
:
JSON
.
stringify
({})
},
openWebAppConfigPositive
:{
username
:
'gh_e92f58174364'
,
// 小程序唯一username 1.gh_80d54796f2d5 云鹊助手 2. gh_e92f58174364 云鹊健康
path
:
'pagesInsurance/all-entrance/index'
,
// 打开页面
extraData
:
JSON
.
stringify
({})
},
openWebAppBtnName
:
'报告解读'
,
yunOrderNo
:
''
,
action_code
:
''
...
...
@@ -296,6 +334,7 @@ export default {
that
.
openWebAppConfig
.
extraData
=
JSON
.
stringify
(
ed
);
that
.
openWebAppBtnName
=
n
;
that
.
openWebAppConfig
.
path
=
jump_path
;
this
.
openWebAppConfigPositive
=
`pagesInsurance/all-entrance/index?detectionKind=
${
this
.
dataDetail
.
id
}
&tradeDetectionServiceRecordId=
${
this
.
dataDetail
.
detectType
}
`
;
}
else
{
that
.
$toast
(
res
.
message
);
}
...
...
@@ -366,7 +405,47 @@ export default {
}
console
.
log
(
'--mapStatus'
,
m
);
return
m
;
}
},
getJumpToWebapp2
()
{
if
(
this
.
picaWechat
==
'wechat'
)
{
return
false
;
}
const
query
=
`detectionKind=
${
this
.
dataDetail
.
id
}
&tradeDetectionServiceRecordId=
${
this
.
dataDetail
.
detectType
}
`
;
const
p
=
{
params
:{
path
:
'pagesInsurance/all-entrance/index'
,
query
:
query
},
type
:
2
};
getJumpToWebapp
(
p
).
then
(
res
=>
{
console
.
log
(
'--res'
,
res
);
if
(
res
.
data
)
{
window
.
location
.
href
=
res
.
data
;
}
else
{
this
.
$toast
(
res
.
message
);
}
});
},
mapColor
(
s
)
{
// 申请状态 1:待审核,2:审核通过(待打款),3:审核驳回,4:已撤销,5:已打款
let
t
=
'#FF720C'
;
switch
(
Number
(
s
))
{
case
1
:
t
=
'#00BDA5'
;
break
;
case
2
:
t
=
'#00BDA5'
;
break
;
case
3
:
t
=
'#FF4B33'
;
break
;
case
4
:
t
=
'#AAAAAA'
;
break
;
case
5
:
t
=
'#AAAAAA'
;
break
;
default
:
break
;
}
return
t
;
},
},
};
</
script
>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录