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
提交
cedc6cea
提交
cedc6cea
编写于
2月 15, 2023
作者:
张磊
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'feature/zl2' into 'develop'
auto commit See merge request
!17
上级
410408ac
0eff5d78
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
65 行增加
和
32 行删除
+65
-32
main.js
src/main.js
+9
-3
index.js
src/utils/index.js
+7
-2
insurance-bind-code.vue
src/views/insurance-bind-code/insurance-bind-code.vue
+29
-18
insurance-bindCode-success.vue
...insurance-bindCode-success/insurance-bindCode-success.vue
+2
-1
insurance-detection-detail.vue
...insurance-detection-detail/insurance-detection-detail.vue
+18
-8
未找到文件。
src/main.js
浏览文件 @
cedc6cea
...
...
@@ -3,6 +3,7 @@ import * as dd from 'dingtalk-jsapi';
import
'@/router'
;
console
.
log
(
'router, store, vueApp: '
,
router
,
store
,
vueApp
);
import
'@/assets/js/flexible'
;
import
{
isWeixin
}
from
'./utils/index'
;
import
{
PicaArea
}
from
'pica-area'
;
console
.
log
(
'PicaArea'
,
PicaArea
);
// 禁用双指放大
...
...
@@ -37,12 +38,17 @@ document.documentElement.addEventListener(
vueApp
.
$rocNative
.
appInit
();
vueApp
.
$rocNative
.
on
(
'wx_ready'
,
function
()
{
console
.
log
(
'-wx_ready-'
);
window
.
_picaWechat
=
'wechat'
;
console
.
log
(
'-wx_ready-'
,
window
.
_picaWechat
);
});
if
(
dd
.
env
.
platform
)
{
console
.
log
(
'---'
,
isWeixin
());
if
(
isWeixin
())
{
window
.
_picaWechat
=
'wechat'
;
}
if
(
dd
.
env
.
version
)
{
window
.
_picaWechat
=
'dingtalk'
;
}
sessionStorage
.
setItem
(
'headerHeight'
,
0
);
window
.
Vue
.
use
(
PicaArea
);
console
.
log
(
'router, store, vueApp: '
,
router
,
store
,
vueApp
);
console
.
log
(
'window :>> '
,
window
);
src/utils/index.js
浏览文件 @
cedc6cea
...
...
@@ -32,8 +32,12 @@ export const formatDay = (datetime) => {
// 判断是否是微信
export
function
isWeixin
()
{
const
ua
=
navigator
.
userAgent
.
toLowerCase
();
return
ua
.
match
(
/MicroMessenger/i
)
===
'micromessenger'
;
const
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
if
(
ua
.
match
(
/MicroMessenger/i
)
==
'micromessenger'
||
ua
.
match
(
/_SQ_/i
)
==
'_sq_'
)
{
return
true
;
}
else
{
return
false
;
}
}
// 时间戳 格式化为 时分秒(00: 00: 00)
...
...
@@ -105,3 +109,4 @@ export function getBirthdayAndSex(idCard) {
info
.
sex
=
(
order
%
2
===
0
?
0
:
1
);
return
info
;
}
src/views/insurance-bind-code/insurance-bind-code.vue
浏览文件 @
cedc6cea
<
template
>
<div
class=
"insurance-binding-code-container"
>
<page-model
v-if=
"picaWechat != 'wechat'"
ref=
"PageModel"
:header-info=
"headerInfo"
/>
...
...
@@ -59,6 +60,7 @@
>
</div>
<div
v-if=
"picaWechat == 'wechat'"
class=
"scan-qr-img-container-code"
@
click=
"scanCode()"
>
...
...
@@ -81,9 +83,7 @@
</div>
</div>
<div
class=
"notification"
>
<div
class=
"notification"
>
<div
class=
"sign-detection"
>
<img
v-if=
"isCheck"
...
...
@@ -196,14 +196,15 @@ import { signDetection, getProtocolContent, getProtocolName, sampleCodeValidate,
export
default
{
data
()
{
return
{
picaWechat
:
window
.
_picaWechat
,
headerInfo
:
{
title
:
'绑定条码'
,
isBlack
:
true
,
backMethod
:
'web'
,
style
:
'backgroundColor:#ffffff;zIndex:100;'
,
style
:
'backgroundColor:#ffffff;zIndex:100;
paddingTop:8px;
'
,
background
:
''
,
},
showBindingInfo
:
tru
e
,
showBindingInfo
:
fals
e
,
showEditModal
:
false
,
isCheck
:
false
,
barCode
:
'020987654321'
,
...
...
@@ -228,6 +229,7 @@ export default {
computed
:
{
},
created
()
{
console
.
log
(
'--window._picaWechat'
,
window
.
_picaWechat
);
// 11073
const
mock
=
{
checkName
:
'博厚检测2'
,
...
...
@@ -270,13 +272,20 @@ export default {
this
.
barCode
=
''
;
},
scanCode
()
{
window
.
wx
&&
window
.
wx
.
scanQRCode
({
needResult
:
0
,
// 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
scanType
:
[
'qrCode'
,
'barCode'
],
// 可以指定扫二维码还是一维码,默认二者都有
const
that
=
this
;
console
.
log
(
'--$rocNative'
,
this
.
$rocNative
);
const
p
=
{
needResult
:
1
,
// 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
scanType
:
[
'barCode'
],
// 可以指定扫二维码还是一维码,默认二者都有
success
:
function
(
res
)
{
console
.
log
(
'---res'
,
res
);
// var result = res.resultStr; // 当needResult 为 1 时,扫码返回的结果
const
s
=
res
.
resultStr
;
that
.
barCode
=
s
&&
s
.
spilt
(
','
)[
1
];
}
};
this
.
$rocNative
&&
this
.
$rocNative
.
scanQRCode
(
p
,
(
res
)
=>
{
console
.
log
(
'===='
,
res
);
});
},
toggleBindingInfo
()
{
...
...
@@ -536,13 +545,11 @@ export default {
}
.submit-button-top
{
position
:
absolute
;
bottom
:
0
;
display
:
flex
;
width
:
100%
;
font-size
:
16px
;
font-weight
:
700
;
margin-
bottom
:
21
0px
;
margin-
top
:
9
0px
;
.submit-button
{
width
:
90%
;
height
:
40px
;
...
...
@@ -560,13 +567,12 @@ export default {
}
}
.notification
{
margin-top
:
16px
;
margin
:
0
auto
;
width
:
100%
;
margin-top
:
60px
;
position
:
absolute
;
bottom
:
260px
;
left
:
0
;
right
:
0
;
font-size
:
16px
;
font-weight
:
700
;
.sign-detection
{
margin
:
0
auto
;
height
:
auto
;
...
...
@@ -616,9 +622,14 @@ export default {
}
.protocol-text
{
height
:
400
PX
;
overflow
:
scroll
;
overflow-y
:
scroll
;
-webkit-overflow-scrolling
:
touch
;
line-height
:
2
;
padding
:
0px
4px
;
padding
:
0
4px
;
&
>
p
{
-webkit-overflow-scrolling
:
touch
;
min-height
:
1000px
;
}
}
.btn
{
background-color
:
#00BDA5
;
...
...
src/views/insurance-bindCode-success/insurance-bindCode-success.vue
浏览文件 @
cedc6cea
<
template
>
<div
class=
"insurance-bindCode-success"
>
<page-model
v-if=
"picaWechat != 'wechat'"
ref=
"PageModel"
:header-info=
"headerInfo"
/>
...
...
@@ -61,7 +62,6 @@
</div>
</div>
</div>
</div>
</div>
</div>
...
...
@@ -89,6 +89,7 @@ export default {
},
data
()
{
return
{
picaWechat
:
window
.
_picaWechat
,
status
:
''
,
headerInfo
:
{
title
:
'检测服务'
,
...
...
src/views/insurance-detection-detail/insurance-detection-detail.vue
浏览文件 @
cedc6cea
<
template
>
<div
class=
"d-box"
>
<page-model
v-if=
"picaWechat != 'wechat'"
ref=
"PageModel"
:header-info=
"headerInfo"
/>
...
...
@@ -76,7 +77,10 @@
src=
"https://files.yunqueyi.com/image/png/common/2022081612011851.png"
>
</div>
<div
v-else
class=
"express-step-icon"
></div>
<div
v-else
class=
"express-step-icon"
/>
<div
class=
"express-step-msg"
>
...
...
@@ -84,7 +88,12 @@
<p>
{{
item
.
nodeName
}}
</p>
<p
v-if=
"dataDetail.status == 6"
class=
"tips"
>
温馨提示:可联系医生重新采样
</p>
<p
v-if=
"dataDetail.status == 6"
class=
"tips"
>
温馨提示:可联系医生重新采样
</p>
</div>
<div
class=
"step-time"
...
...
@@ -150,12 +159,12 @@
</div>
<div
class=
"l-right"
>
{{
dataDetail
.
sampleCode
||
'--'
}}
<div
class=
"l-copy"
@
click=
"copyText(dataDetail.sampleCode)"
>
复制
</div>
<div
class=
"l-copy"
@
click=
"copyText(dataDetail.sampleCode)"
>
复制
</div>
</div>
</div>
</div>
...
...
@@ -228,6 +237,7 @@ export default {
},
data
()
{
return
{
picaWechat
:
window
.
_picaWechat
,
status
:
''
,
headerInfo
:
{
title
:
'检测详情'
,
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录