Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
frontend-h5
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songrui
frontend-h5
Commits
197395d2
Commit
197395d2
authored
Sep 11, 2024
by
songrui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
居民筛查慢病须知 页面
parent
19aa8862
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
103 additions
and
21 deletions
+103
-21
Agree.vue
src/resident/screening/first/agree/Agree.vue
+66
-0
Detail.vue
src/resident/screening/first/detail/Detail.vue
+1
-1
IdCheck.vue
src/resident/screening/first/form/IdCheck.vue
+8
-1
Index.vue
src/resident/screening/first/form/Index.vue
+3
-8
index.js
src/router/index.js
+5
-0
common.js
src/utils/common.js
+20
-11
No files found.
src/resident/screening/first/agree/Agree.vue
0 → 100644
View file @
197395d2
<
template
>
<div
class=
"flex flex-col agree"
>
<div
class=
"p-3 text-16 text-black text-center shrink-0 top-bar"
>
<span
class=
"back-bt"
@
click=
"onBack"
>
<doc-icon
type=
"doc-left"
/>
</span>
<span>
居民筛查慢病须知
</span>
</div>
<div
class=
"grow overflow-y-auto cont"
>
<p
class=
"indent"
>
在您决定是否参加慢病筛查之前,请仔细阅读以下内容:
</p>
<p
class=
"font-semibold"
>
一、筛查开展的背景和目的
</p>
<p
class=
"color-1 indent"
>
各种慢病严重威胁我国人群健康,也是我国居民的主要死亡原因之一。
患者治疗费用昂贵而且效果不佳,该疾病给患者和家属带来极大的痛苦和沉重的经济负担。
医学研究和临床实践证实,施行有效的筛查和综合干预是降低该疾病致残率和死亡率、提高生存率和生存质量的重要手段。
</p>
<p
class=
"font-semibold"
>
二、筛查过程
</p>
<p
class=
"color-1 indent"
>
本地常住居民可在自愿的情况下接受筛查。将有专门的医护人员收集您的人口学信息、生活方式、家族史、既往病史、服药史,
并对您进行身高、体重、腰围、血压、心脏听诊等体格检查,
根据检查结果就您的身体情况进行评估,并根据评估结果对您提供相应指导。
</p>
<p
class=
"font-semibold"
>
三、参加筛查可能的受益
</p>
<p
class=
"color-1 indent"
>
如果您参加筛查,可全面了解您的患病风险。对于本次筛查出的风险人群,将会得到具有针对性的指导和干预。
也可接受健康科普宣传教育,提高对自身健康的重视程度。
</p>
<p
class=
"font-semibold"
>
四、保密原则
</p>
<p
class=
"color-1 indent"
>
我们承诺您的所有个人信息将完全保密,筛查信息只用于慢病医疗服务。
任何公开报告将不会披露您的个人信息和健康信息。我们将在法律允许的范围内,尽一切努力保护您的隐私。
</p>
</div>
<div
class=
"px-5 pb-4 pt-3 shrink-0"
>
<van-button
type=
"primary"
block
round
@
click=
"submit"
>
同意
</van-button>
</div>
</div>
</
template
>
<
script
>
import
{
backHome
}
from
'@/utils/common.js'
export
default
{
methods
:
{
onBack
()
{
backHome
()
},
submit
()
{
this
.
$router
.
replace
({
path
:
'/resident/screening/first/form'
,
query
:
this
.
$route
.
query
})
}
}
}
</
script
>
<
style
lang=
"less"
scoped
>
@import '../../../utils/common.less';
.agree {
height: 100vh;
}
.cont {
padding: 6px 24px;
.color-1 {
color: #595959;
}
.indent {
text-indent: 2em;
line-height: 1.5;
}
}
</
style
>
src/resident/screening/first/detail/Detail.vue
View file @
197395d2
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<doc-icon
type=
"doc-left"
/>
<doc-icon
type=
"doc-left"
/>
</span>
</span>
</span>
</span>
<span>
慢病自我初筛
详情
</span>
<span>
居民慢病筛查
详情
</span>
</div>
</div>
<div
class=
"py-4 border-bottom"
>
<div
class=
"py-4 border-bottom"
>
<div
class=
"px-4 doc-title"
>
居民信息
</div>
<div
class=
"px-4 doc-title"
>
居民信息
</div>
...
...
src/resident/screening/first/form/IdCheck.vue
View file @
197395d2
...
@@ -26,7 +26,9 @@
...
@@ -26,7 +26,9 @@
>
>
<template
#
right-icon
>
<template
#
right-icon
>
<div
class=
"flex items-center"
>
<div
class=
"flex items-center"
>
<van-uploader
:max-size=
"5 * 1024 * 1024"
:after-read=
"afterRead"
max-count=
"1"
>
<doc-icon
type=
"doc-scan"
style=
"font-size: .2rem;"
/>
<doc-icon
type=
"doc-scan"
style=
"font-size: .2rem;"
/>
</van-uploader>
</div>
</div>
</
template
>
</
template
>
</van-field>
</van-field>
...
@@ -36,7 +38,7 @@
...
@@ -36,7 +38,7 @@
<div
class=
"text-12 tip"
>
提示:所填写的信息只用于慢病初筛,不会用于其他用途。
</div>
<div
class=
"text-12 tip"
>
提示:所填写的信息只用于慢病初筛,不会用于其他用途。
</div>
</div>
</div>
<div
class=
"px-5 pb-4
grow flex flex-col justify-end
"
>
<div
class=
"px-5 pb-4 "
>
<van-button
type=
"primary"
block
round
<van-button
type=
"primary"
block
round
@
click=
"submit"
>
下一步
</van-button>
@
click=
"submit"
>
下一步
</van-button>
</div>
</div>
...
@@ -101,6 +103,11 @@ export default {
...
@@ -101,6 +103,11 @@ export default {
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
warn
(
err
)
console
.
warn
(
err
)
})
})
},
// 证件上传后
afterRead
(
file
)
{
console
.
log
(
file
)
showNotify
({
type
:
'primary'
,
message
:
'文件上传'
})
}
}
}
}
}
}
...
...
src/resident/screening/first/form/Index.vue
View file @
197395d2
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<doc-icon
type=
"doc-left"
/>
<doc-icon
type=
"doc-left"
/>
</span>
</span>
</span>
</span>
<span>
慢病自我初筛
</span>
<span>
居民慢病筛查
</span>
</div>
</div>
<div
class=
"grow overflow-y-auto"
>
<div
class=
"grow overflow-y-auto"
>
<IdCheck
v-show=
"step === 1"
/>
<IdCheck
v-show=
"step === 1"
/>
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<
script
>
<
script
>
import
{
showNotify
}
from
'vant'
import
{
showNotify
}
from
'vant'
import
{
isWeiXin
}
from
'@/utils/common.js'
import
{
backHome
}
from
'@/utils/common.js'
import
IdCheck
from
'./IdCheck.vue'
import
IdCheck
from
'./IdCheck.vue'
import
CheckTip
from
'./CheckTip.vue'
import
CheckTip
from
'./CheckTip.vue'
import
BaseInfo
from
'./BaseInfo.vue'
import
BaseInfo
from
'./BaseInfo.vue'
...
@@ -87,12 +87,7 @@ export default {
...
@@ -87,12 +87,7 @@ export default {
this
.
step
=
this
.
setpHistory
[
this
.
setpHistory
.
length
-
1
]
this
.
step
=
this
.
setpHistory
[
this
.
setpHistory
.
length
-
1
]
},
},
onClose
()
{
onClose
()
{
if
(
isWeiXin
())
{
backHome
()
// 微信中关闭页面
WeixinJSBridge
.
call
(
'closeWindow'
)
}
else
{
window
.
close
()
}
}
}
}
}
}
}
...
...
src/router/index.js
View file @
197395d2
...
@@ -11,6 +11,11 @@ const routes = [
...
@@ -11,6 +11,11 @@ const routes = [
name
:
'resident'
,
name
:
'resident'
,
component
:
()
=>
import
(
/* webpackChunkName: "page-resident" */
'@/resident/Resident.vue'
),
component
:
()
=>
import
(
/* webpackChunkName: "page-resident" */
'@/resident/Resident.vue'
),
children
:
[
children
:
[
{
path
:
'screening/first/agree'
,
name
:
'resident-screening-first-agree'
,
component
:
()
=>
import
(
/* webpackChunkName: "page-resident" */
'@/resident/screening/first/agree/Agree.vue'
)
},
{
{
path
:
'screening/first/form'
,
path
:
'screening/first/form'
,
name
:
'resident-screening-first-form'
,
name
:
'resident-screening-first-form'
,
...
...
src/utils/common.js
View file @
197395d2
...
@@ -159,13 +159,6 @@ export function checkboxReject(val = [], exclude = []) {
...
@@ -159,13 +159,6 @@ export function checkboxReject(val = [], exclude = []) {
return
arr
return
arr
}
}
// 判断是否在微信中
export
function
isWeiXin
()
{
const
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
()
return
/micromessenger/
.
test
(
ua
)
}
//获取url参数
//获取url参数
export
function
getQueryVariable
(
variable
,
urlInfo
)
{
export
function
getQueryVariable
(
variable
,
urlInfo
)
{
let
url
=
decodeURI
(
decodeURI
(
urlInfo
||
window
.
location
.
href
))
let
url
=
decodeURI
(
decodeURI
(
urlInfo
||
window
.
location
.
href
))
...
@@ -200,7 +193,7 @@ export function callMobile(handlerInterface, parameters) {
...
@@ -200,7 +193,7 @@ export function callMobile(handlerInterface, parameters) {
window
.
webkit
.
messageHandlers
[
handlerInterface
].
postMessage
(
param
);
window
.
webkit
.
messageHandlers
[
handlerInterface
].
postMessage
(
param
);
}
}
}
}
}
else
if
(
is
IOSWebKit
()
===
false
)
{
}
else
if
(
is
Android
()
)
{
//安卓传输不了js json对象,只能传输string
//安卓传输不了js json对象,只能传输string
if
(
param
==
'{}'
)
{
if
(
param
==
'{}'
)
{
window
[
'function'
][
handlerInterface
]();
window
[
'function'
][
handlerInterface
]();
...
@@ -219,16 +212,31 @@ export function isIOSWebKit() {
...
@@ -219,16 +212,31 @@ export function isIOSWebKit() {
const
aa
=
window
.
navigator
.
userAgent
;
const
aa
=
window
.
navigator
.
userAgent
;
if
(
!!
aa
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
))
{
// ios端
if
(
!!
aa
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
))
{
// ios端
return
true
;
return
true
;
}
else
if
(
aa
.
indexOf
(
'Android'
)
!==
-
1
||
aa
.
indexOf
(
'Adr'
)
!==
-
1
)
{
// 安卓端
return
false
;
}
}
}
}
// 判断是否安卓
export
function
isAndroid
()
{
const
aa
=
window
.
navigator
.
userAgent
;
if
(
aa
.
indexOf
(
'Android'
)
!==
-
1
||
aa
.
indexOf
(
'Adr'
)
!==
-
1
)
{
return
true
}
}
// 判断是否在微信中
export
function
isWeiXin
()
{
const
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
()
return
/micromessenger/
.
test
(
ua
)
}
//关闭页面
//关闭页面
export
function
backHome
()
{
export
function
backHome
()
{
if
(
isIOSWebKit
())
{
//ios
if
(
isIOSWebKit
())
{
//ios
callMobile
(
"closeWebPage"
,
{})
callMobile
(
"closeWebPage"
,
{})
}
if
(
isIOSWebKit
()
===
false
)
{
}
else
if
(
isAndroid
()
)
{
callMobile
(
"closePage"
,
{})
callMobile
(
"closePage"
,
{})
}
}
if
(
isWeiXin
())
{
// 微信中
WeixinJSBridge
.
call
(
'closeWindow'
)
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment