Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
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
bde3dd45
Commit
bde3dd45
authored
Feb 16, 2020
by
sjf1256754123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demo
parent
305dcf02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
index.vue
pages/index/index.vue
+15
-3
No files found.
pages/index/index.vue
View file @
bde3dd45
...
...
@@ -4,9 +4,9 @@
<view
class=
"btnList"
>
<button
class=
"btnStaff"
type=
"primary"
@
click=
"staff"
>
员工填报
</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=
""
></image
>
{{
option
.
userId
?
option
.
userId
:
'
无
'
}}
<
!--
<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"
>
入园请向门卫出示健康码
</view>
...
...
@@ -21,6 +21,7 @@
name
:
"
home
"
,
data
()
{
return
{
imgSrc
:
''
,
option
:{
userId
:
''
}
...
...
@@ -46,6 +47,16 @@
},
onShow
()
{},
methods
:
{
getImg
(){
this
.
$http
.
get
(
`/sict-ncov/user/qrcode`
).
then
(
res
=>
{
const
d
=
res
.
data
if
(
d
.
code
==
1
)
{
this
.
imgSrc
=
d
.
object
}
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
},
// 员工跳转
staff
()
{
uni
.
navigateTo
({
...
...
@@ -77,6 +88,7 @@
}
this
.
$store
.
dispatch
(
'
user/setInfo
'
,
Object
.
assign
(
obj
,
userInfo
))
this
.
$store
.
dispatch
(
'
user/setToken
'
,
d
.
result
)
this
.
getImg
()
}
}).
catch
(
err
=>
{
console
.
log
(
err
)
...
...
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