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
提交
93308dde
提交
93308dde
编写于
8月 23, 2024
作者:
zhongyao.qiao
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'feature/qiao' into 'release'
Feature/qiao See merge request
!297
上级
618a1778
d8b58a87
变更
4
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
16614 行增加
和
6 行删除
+16614
-6
appoint.js
src/api/appoint.js
+13
-6
index.js
src/router/index.js
+8
-0
index.vue
src/views/bestcovered/index.vue
+109
-0
yarn.lock
yarn.lock
+16484
-0
未找到文件。
src/api/appoint.js
浏览文件 @
93308dde
import
request
from
'mn-template/plugins/http'
;
import
request
from
'mn-template/plugins/http'
;
// 根据订单号获取检测名称
// 根据订单号获取检测名称
...
@@ -35,15 +34,15 @@ export const getDetailByYunOrderNo = async (yunOrderNo) => {
...
@@ -35,15 +34,15 @@ export const getDetailByYunOrderNo = async (yunOrderNo) => {
method
:
'get'
,
method
:
'get'
,
url
:
`/tis/insurance/getDetailByYunOrderNo?yunOrderNo=
${
yunOrderNo
}
`
,
url
:
`/tis/insurance/getDetailByYunOrderNo?yunOrderNo=
${
yunOrderNo
}
`
,
withCredentials
:
true
,
withCredentials
:
true
,
hasLoading
:
false
,
hasLoading
:
false
,
});
});
};
};
export
const
getHospitalList
=
async
(
data
)
=>
{
export
const
getHospitalList
=
async
(
data
)
=>
{
return
request
({
return
request
({
method
:
'post'
,
method
:
'post'
,
data
,
data
,
headers
:
{
headers
:
{
noLoading
:
true
,
noLoading
:
true
,
},
},
url
:
'/tis/insurance/hospitalList'
,
url
:
'/tis/insurance/hospitalList'
,
withCredentials
:
true
,
withCredentials
:
true
,
...
@@ -58,7 +57,7 @@ export const getDetailHospital = async (id) => {
...
@@ -58,7 +57,7 @@ export const getDetailHospital = async (id) => {
});
});
};
};
export
const
getCheckInUserInfo
=
async
(
data
)
=>
{
export
const
getCheckInUserInfo
=
async
(
data
)
=>
{
return
request
({
return
request
({
method
:
'post'
,
method
:
'post'
,
data
,
data
,
...
@@ -68,7 +67,7 @@ export const getCheckInUserInfo = async(data) => {
...
@@ -68,7 +67,7 @@ export const getCheckInUserInfo = async(data) => {
};
};
// /tis/insurance / save / order / detection / result
// /tis/insurance / save / order / detection / result
export
const
saveOrder
=
async
(
data
)
=>
{
export
const
saveOrder
=
async
(
data
)
=>
{
return
request
({
return
request
({
method
:
'post'
,
method
:
'post'
,
data
,
data
,
...
@@ -84,3 +83,11 @@ export const getDetailtxt = async (data) => {
...
@@ -84,3 +83,11 @@ export const getDetailtxt = async (data) => {
withCredentials
:
true
,
withCredentials
:
true
,
});
});
};
};
// 博斯腾判断订单是否完成
export
const
bestcoveredStatusCheck
=
async
(
data
)
=>
{
return
request
({
method
:
'get'
,
url
:
`/trade/detection/bestcovered/checkComplete/
${
data
.
orderNo
}
/
${
data
.
source
}
`
,
withCredentials
:
true
,
});
};
src/router/index.js
浏览文件 @
93308dde
...
@@ -190,6 +190,14 @@ const routerConfig = [
...
@@ -190,6 +190,14 @@ const routerConfig = [
name
:
'notice'
,
name
:
'notice'
,
component
:
()
=>
import
(
'@/views/notice/index.vue'
),
component
:
()
=>
import
(
'@/views/notice/index.vue'
),
},
},
{
path
:
'/bestcovered'
,
name
:
'bestcovered'
,
component
:
()
=>
import
(
'@/views/bestcovered/index.vue'
),
meta
:
{
title
:
'脑健康测评'
,
},
},
];
];
router
.
beforeEach
(
async
(
to
,
from
,
next
)
=>
{
router
.
beforeEach
(
async
(
to
,
from
,
next
)
=>
{
headerConfigByMeta
(
to
);
headerConfigByMeta
(
to
);
...
...
src/views/bestcovered/index.vue
0 → 100644
浏览文件 @
93308dde
<
template
>
<div
class=
"page-wrapper"
>
<iframe
id=
"iframe"
class=
"iframe-wrapper"
:src=
"url"
frameborder=
"0"
></iframe>
<div
v-if=
"showBtn"
class=
"footer-box"
>
<div
class=
"btn-box"
>
<div
class=
"btn"
@
click=
"handleNavBack"
>
<span>
立即预约
</span>
</div>
</div>
</div>
</div>
</
template
>
<
script
>
import
{
bestcoveredStatusCheck
}
from
'@/api/appoint'
;
export
default
{
data
()
{
return
{
url
:
''
,
showBtn
:
false
,
content
:
''
,
timer
:
null
,
yunOrderNo
:
''
,
};
},
created
()
{
const
{
url
,
yunOrderNo
}
=
this
.
$route
.
query
;
this
.
url
=
decodeURIComponent
(
url
);
this
.
yunOrderNo
=
yunOrderNo
;
this
.
loopStatus
();
},
mounted
()
{
document
.
title
=
this
.
$route
.
meta
.
title
;
},
beforeDestroy
()
{
if
(
this
.
timer
)
clearInterval
(
this
.
timer
);
},
methods
:
{
loopStatus
()
{
const
params
=
{
orderNo
:
this
.
yunOrderNo
,
source
:
1
,
};
if
(
this
.
timer
)
clearInterval
(
this
.
timer
);
this
.
timer
=
setInterval
(()
=>
{
bestcoveredStatusCheck
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
===
'000000'
&&
res
.
data
)
{
this
.
showBtn
=
true
;
clearInterval
(
this
.
timer
);
}
});
},
1000
);
},
handleNavBack
()
{
if
(
window
.
_miniprogram
)
{
this
.
$rocNative
.
WXInstance
.
miniProgram
.
navigateBack
();
}
else
{
this
.
$toast
(
'请在小程序中查看'
);
}
},
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
.page-wrapper
{
min-height
:
100vh
;
}
.iframe-wrapper
{
display
:
block
;
width
:
100vw
;
height
:
100vh
;
}
.footer-box
{
position
:
fixed
;
left
:
0
;
right
:
0
;
bottom
:
0
;
padding-bottom
:
calc
(
constant
(
safe-area-inset-bottom
)
/
2
);
padding-bottom
:
calc
(
env
(
safe-area-inset-bottom
)
/
2
);
box-sizing
:
content-box
;
.btn-box
{
padding
:
10px
20px
;
.btn
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
height
:
40px
;
border-radius
:
20px
;
background
:
linear-gradient
(
0deg
,
#d581e0
,
#8f79f7
)
no-repeat
,
#f8f8f8
;
span
{
color
:
#fff
;
font-size
:
16px
;
}
}
}
}
</
style
>
yarn.lock
0 → 100644
浏览文件 @
93308dde
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录