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
96127513
Commit
96127513
authored
Oct 25, 2024
by
gengchunlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
居民端小程序 1.小程序对接 隐藏页面顶部的title
parent
de13be01
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
43 additions
and
11 deletions
+43
-11
ResidentWX.vue
src/residentWX/ResidentWX.vue
+10
-1
Detail.vue
src/residentWX/guide/Detail.vue
+2
-1
List.vue
src/residentWX/guide/List.vue
+2
-1
Index.vue
src/residentWX/nim/Index.vue
+2
-1
Session.vue
src/residentWX/nim/Session.vue
+2
-1
List.vue
src/residentWX/screening/List.vue
+2
-1
FirstDetail.vue
src/residentWX/screening/detail/FirstDetail.vue
+2
-1
SecondDetail.vue
src/residentWX/screening/detail/SecondDetail.vue
+2
-1
List.vue
src/residentWX/visit/List.vue
+2
-1
GeneralFUDetail.vue
src/residentWX/visit/detail/GeneralFUDetail.vue
+2
-1
SeparateFUDetail.vue
src/residentWX/visit/detail/SeparateFUDetail.vue
+2
-1
common.js
src/utils/common.js
+13
-0
No files found.
src/residentWX/ResidentWX.vue
View file @
96127513
...
...
@@ -13,7 +13,7 @@
<
script
>
import
{
getDict
,
getResidentByInfo
}
from
'@/api/base.js'
import
{
useStore
}
from
'./store/index.js'
import
{
getQueryVariable
}
from
'@/utils/common'
import
{
getQueryVariable
,
showNav
}
from
'@/utils/common'
import
{
showNotify
}
from
'vant'
export
default
{
...
...
@@ -53,12 +53,21 @@ export default {
created
()
{
this
.
init
()
},
provide
()
{
return
{
showNav
:
showNav
}
},
methods
:
{
async
init
()
{
console
.
log
(
this
.
visible
)
const
res
=
await
getDict
()
this
.
store
.
$patch
({
dict
:
res
.
data
||
{}
})
let
idCard
=
getQueryVariable
(
'idCard'
)
let
embed
=
getQueryVariable
(
'embed'
)
if
(
embed
)
{
window
.
sessionStorage
.
setItem
(
'embed'
,
embed
)
}
if
(
idCard
)
{
const
user
=
await
getResidentByInfo
({
idCard
:
idCard
})
if
(
!
user
.
data
)
{
...
...
src/residentWX/guide/Detail.vue
View file @
96127513
<
template
>
<div
class=
"flex flex-col"
style=
"height: 100vh"
>
<div
class=
"p-3 text-black text-center shrink-0 doc-nav-bar"
>
<div
class=
"p-3 text-black text-center shrink-0 doc-nav-bar"
v-if=
'showNav()'
>
<span
@
click=
"onBack"
class=
"text-12 back-bt"
>
<doc-icon
type=
"doc-left2"
/>
</span>
...
...
@@ -83,6 +83,7 @@ export default {
Mp3
,
Mp4
},
inject
:[
'showNav'
],
data
()
{
return
{
store
:
useStore
(),
...
...
src/residentWX/guide/List.vue
View file @
96127513
<
template
>
<div
class=
"flex flex-col guide-list"
style=
"height: 100vh"
>
<div
class=
"p-3 text-16 text-black text-center shrink-0 doc-nav-bar"
>
<div
class=
"p-3 text-16 text-black text-center shrink-0 doc-nav-bar"
v-if=
'showNav()'
>
<span>
健康指导
</span>
</div>
<van-tabs
v-model:active=
'activeTab'
class=
'shrink-0'
v-if=
'tabList.length'
...
...
@@ -54,6 +54,7 @@ import { queryGuideList } from '@/api/residentWX/guide.js'
import
{
useStore
}
from
'@/residentWX/store'
export
default
{
inject
:
[
'showNav'
],
data
()
{
return
{
store
:
useStore
(),
...
...
src/residentWX/nim/Index.vue
View file @
96127513
<
template
>
<div
class=
"flex flex-col nim-index"
style=
"height: 100vh"
>
<div
class=
"py-2 px-3 text-black text-center shrink-0 doc-nav-bar"
>
<div
class=
"py-2 px-3 text-black text-center shrink-0 doc-nav-bar"
v-if=
'showNav()'
>
<span>
专家在线咨询
</span>
</div>
<img
src=
"@/assets/image/residentWX/banner.png"
alt=
""
class=
"shrink-0 w-full"
>
...
...
@@ -39,6 +39,7 @@ import { getServiceDoc } from '@/api/residentWX/nim.js'
import
{
showFailToast
}
from
'vant'
export
default
{
inject
:[
'showNav'
],
data
()
{
return
{
store
:
useStore
(),
...
...
src/residentWX/nim/Session.vue
View file @
96127513
<
template
>
<div
class=
"flex flex-col session"
style=
"height: 100vh"
>
<div
class=
"py-2 px-3 text-black text-center shrink-0 doc-nav-bar"
>
<span
@
click=
"onBack"
class=
"text-12 back-bt"
>
<span
@
click=
"onBack"
class=
"text-12 back-bt"
v-if=
'showNav()'
>
<doc-icon
type=
"doc-left2"
/>
</span>
<span>
{{
targetName
}}
</span>
...
...
@@ -82,6 +82,7 @@ export default {
components
:
{
FileView
},
inject
:[
'showNav'
],
data
()
{
return
{
store
:
useStore
(),
...
...
src/residentWX/screening/List.vue
View file @
96127513
<
template
>
<div
class=
"flex flex-col screening-list"
style=
"height: 100vh"
>
<div
class=
"p-3 text-black text-center shrink-0 doc-nav-bar"
>
<div
class=
"p-3 text-black text-center shrink-0 doc-nav-bar"
v-if=
'showNav()'
>
<span>
慢病筛查记录
</span>
</div>
<van-tabs
v-model:active=
'activeTab'
class=
'shrink-0 doc-tabs'
v-if=
'tabList.length'
...
...
@@ -54,6 +54,7 @@ import { useStore } from '@/residentWX/store'
import
{
queryScreenList
}
from
'@/api/residentWX/screening.js'
export
default
{
inject
:[
'showNav'
],
data
()
{
return
{
store
:
useStore
(),
...
...
src/residentWX/screening/detail/FirstDetail.vue
View file @
96127513
<
template
>
<div
class=
"flex flex-col"
style=
"height: 100vh"
>
<div
class=
"p-3 text-black text-center shrink-0 doc-nav-bar"
>
<div
class=
"p-3 text-black text-center shrink-0 doc-nav-bar"
v-if=
'showNav()'
>
<span
@
click=
"onBack"
class=
"text-12 back-bt"
>
<doc-icon
type=
"doc-left2"
/>
</span>
...
...
@@ -102,6 +102,7 @@ import { firstScreenDetail } from '@/api/residentWX/screening.js'
import
{
useStore
}
from
'@/residentWX/store'
export
default
{
inject
:[
'showNav'
],
data
()
{
return
{
store
:
useStore
(),
...
...
src/residentWX/screening/detail/SecondDetail.vue
View file @
96127513
<
template
>
<div
class=
'flex flex-col'
style=
'height: 100vh'
>
<div
class=
'p-3 text-black text-center shrink-0 doc-nav-bar'
>
<div
class=
'p-3 text-black text-center shrink-0 doc-nav-bar'
v-if=
'showNav()'
>
<span
@
click=
'onBack'
class=
'text-12 back-bt'
>
<doc-icon
type=
'doc-left2'
/>
</span>
...
...
@@ -494,6 +494,7 @@ import { useStore } from '@/residentWX/store'
import
{
fetchDataHandle
}
from
'@/utils/common'
export
default
{
inject
:[
'showNav'
],
data
()
{
return
{
store
:
useStore
(),
...
...
src/residentWX/visit/List.vue
View file @
96127513
<
template
>
<div
class=
"flex flex-col visit-list"
style=
"height: 100vh"
>
<div
class=
"p-3 text-black text-center shrink-0 doc-nav-bar"
>
<div
class=
"p-3 text-black text-center shrink-0 doc-nav-bar"
v-if=
'showNav()'
>
<span>
随访记录
</span>
</div>
<van-tabs
v-model:active=
'activeTab'
class=
'shrink-0 doc-tabs'
v-if=
'tabList.length'
...
...
@@ -68,6 +68,7 @@ import { useStore } from '@/residentWX/store'
import
{
queryVisitList
}
from
'@/api/residentWX/visit'
export
default
{
inject
:
[
'showNav'
],
data
()
{
return
{
store
:
useStore
(),
...
...
src/residentWX/visit/detail/GeneralFUDetail.vue
View file @
96127513
<!--通用随访详情-->
<
template
>
<div
class=
'flex flex-col'
style=
'height: 100vh'
>
<div
class=
'p-3 text-black text-center shrink-0 doc-nav-bar'
>
<div
class=
'p-3 text-black text-center shrink-0 doc-nav-bar'
v-if=
'showNav()'
>
<span
@
click=
'onBack'
class=
'text-12 back-bt'
>
<doc-icon
type=
'doc-left2'
/>
</span>
...
...
@@ -245,6 +245,7 @@ import Mp4 from '@/residentWX/components/mediaPlay/Mp4'
export
default
{
name
:
'CurrencyFUDetail.vue'
,
components
:
{
Mp4
,
Mp3
},
inject
:
[
'showNav'
],
data
()
{
return
{
activeCollapse
:
[],
...
...
src/residentWX/visit/detail/SeparateFUDetail.vue
View file @
96127513
<
template
>
<div
class=
"flex flex-col"
style=
"height: 100vh"
>
<div
class=
"p-3 text-black text-center shrink-0 doc-nav-bar"
>
<div
class=
"p-3 text-black text-center shrink-0 doc-nav-bar"
v-if=
'showNav()'
>
<span
@
click=
"onBack"
class=
"text-12 back-bt"
>
<doc-icon
type=
"doc-left2"
/>
</span>
...
...
@@ -54,6 +54,7 @@ import ChronicKidneyDiseaseDetail from './components/ChronicKidneyDiseaseDetail.
import
AbnormalBloodLipidsDetail
from
'./components/AbnormalBloodLipidsDetail.vue'
export
default
{
components
:
{
HypertensionDetail
,
DiabetesDetail
,
CoronaryHeartDiseaseDetail
,
CerebralApoplexyDetail
,
CopdDetail
,
ChronicKidneyDiseaseDetail
,
AbnormalBloodLipidsDetail
},
inject
:[
'showNav'
],
data
()
{
return
{
info
:
{}
...
...
src/utils/common.js
View file @
96127513
...
...
@@ -243,3 +243,15 @@ export function backHome() {
WeixinJSBridge
.
call
(
'closeWindow'
)
}
}
//是否显示nav-bar
export
function
showNav
()
{
let
res
=
false
let
wx
=
window
.
sessionStorage
.
getItem
(
'embed'
)
if
(
wx
==
'wx'
)
{
res
=
false
}
else
{
res
=
true
}
return
res
}
\ 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