Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
epidemic
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
史锦峰
epidemic
Commits
c01a0f77
Commit
c01a0f77
authored
5 years ago
by
sjf1256754123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demo
parent
5dfe87fe
master
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
7 deletions
+29
-7
index.vue
pages/index/index.vue
+29
-7
No files found.
pages/index/index.vue
View file @
c01a0f77
...
...
@@ -2,13 +2,26 @@
<view
class=
"index"
>
<view
class=
"temp"
>
<view
class=
"btnList"
>
<button
class=
"btnStaff"
type=
"primary"
@
click=
"staff"
>
员工填报
</button>
<button
class=
"btnStaff"
type=
"primary"
@
click=
"staff"
v-show=
"flag"
>
员工填报
</button>
<button
class=
"btnSecurity"
type=
"primary"
@
click=
"fillInDay"
v-show=
"!flag"
>
每日填报
</button>
<button
class=
"btnSecurity"
type=
"primary"
@
click=
"security"
>
安保测温
</button>
<!--
<button
class=
"btnSecurity"
type=
"primary"
@
click=
"fillInDay"
>
每日填报
</button>
-->
<!--
<image
class=
"img"
src=
"../../static/22.jpg"
mode=
""
@
click=
"fillInDay"
></image>
-->
<image
class=
"img"
:src=
"imgSrc"
mode=
"widthFix"
>
<view
class=
"tips"
>
入园请向门卫出示健康码
<image
class=
"img"
:src=
"imgSrc"
mode=
"widthFix"
@
click=
"modalName = 'Image'"
>
<view
class=
"tips"
>
入园请向门卫出示健康码
</view>
</view>
</view>
<view
class=
"cu-modal"
:class=
"modalName=='Image'?'show':''"
@
tap=
"modalName=''"
>
<view
class=
"cu-dialog"
>
<view
class=
"bg-img"
>
<view
class=
"cu-bar justify-end text-black"
>
<view
class=
"action"
@
tap=
"modalName = ''"
>
<text
class=
"cuIcon-close"
></text>
</view>
</view>
</view>
<image
:src=
"imgSrc"
mode=
"widthFix"
></image>
<view
class=
"cu-bar bg-white"
>
<view
class=
"action margin-0 flex-sub solid-left text-right"
@
tap=
"modalName = ''"
></view>
</view>
</view>
</view>
...
...
@@ -22,6 +35,8 @@
data
()
{
return
{
imgSrc
:
''
,
modalName
:
''
,
flag
:
true
,
option
:{
userId
:
''
}
...
...
@@ -45,7 +60,11 @@
})
// #endif
},
onShow
()
{},
onShow
()
{
if
(
this
.
$store
.
state
.
user
.
userInfo
.
idCard
){
this
.
getUserInfo
(
code
)
}
},
methods
:
{
getImg
(){
this
.
$http
.
get
(
`/sict-ncov/user/qrcode`
).
then
(
res
=>
{
...
...
@@ -82,6 +101,9 @@
const
d
=
res
.
data
if
(
d
.
code
==
1
)
{
let
userInfo
=
d
.
object
if
(
userInfo
.
idCard
){
this
.
flag
=
false
}
let
obj
=
Object
.
assign
({},
this
.
$store
.
getters
.
userInfo
)
if
(
obj
.
avatarUrl
)
{
userInfo
.
avatarUrl
=
obj
.
avatarUrl
...
...
@@ -108,7 +130,7 @@
background-size
:
cover
;
background-image
:
url('http://139.9.163.126/gastric/static/background.jpg')
;
.btnList
{
padding-top
:
3
5
5upx
;
padding-top
:
3
9
5upx
;
.btnStaff
,
.btnSecurity
{
background-color
:
#92d0f1
;
color
:
#FFFFFF
;
...
...
This diff is collapsed.
Click to expand it.
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