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
10e0ba33
Commit
10e0ba33
authored
Feb 22, 2020
by
sjf1256754123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demo
parent
3bbab8a7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
index.vue
pages/index/index.vue
+9
-3
leader.vue
pages/leader/leader.vue
+3
-3
request.js
utils/request.js
+2
-2
No files found.
pages/index/index.vue
View file @
10e0ba33
...
...
@@ -8,9 +8,9 @@
<image
src=
"../../static/3.png"
class=
"btnStaff2"
@
click=
"fillInDay"
mode=
""
></image>
<image
src=
"../../static/6.png"
class=
"btnStaff2"
@
click=
"temperature"
mode=
""
></image>
</view>
-->
<view
class=
"park"
>
{{
park
}}
</view>
<image
class=
"img"
:src=
"imgSrc"
mode=
"widthFix"
@
click=
"modalName = 'Image'"
>
<view
class=
"tips"
>
入园请出示二维码通行证
</view>
<view
class=
"btnStaff"
v-show=
"securityFlag"
>
<image
src=
"../../static/2.png"
class=
"btnStaff2"
mode=
""
></image>
<image
src=
"../../static/7.png"
class=
"btnStaff2 margin-left-sm"
@
click=
"getScancode"
style=
"width: 424upx;"
mode=
""
></image>
...
...
@@ -49,6 +49,7 @@
name
:
"
home
"
,
data
()
{
return
{
park
:
''
,
hiddenRegisterFlag
:
true
,
imgSrc
:
''
,
modalName
:
''
,
...
...
@@ -168,6 +169,7 @@
const
d
=
res
.
data
if
(
d
.
code
==
1
)
{
let
userInfo
=
d
.
object
this
.
park
=
userInfo
.
userOrg
?
userInfo
.
userOrg
.
park
:
''
if
(
userInfo
.
roleId
==
'
1003
'
){
this
.
securityFlag
=
true
}
...
...
@@ -205,7 +207,7 @@
background-size
:
cover
;
background-image
:
url('http://139.9.163.126/gastric/static/background.jpg')
;
.btnList
{
padding-top
:
3
25upx
;
padding-top
:
2
25upx
;
text-align
:
center
;
.btnSecurity
{
background-color
:
#92d0f1
;
...
...
@@ -233,13 +235,17 @@
width
:
350upx
;
height
:
350upx
;
}
.tips
{
.tips
,
.park
{
margin-top
:
25upx
;
margin-bottom
:
45upx
;
font-weight
:
bold
;
font-size
:
32upx
;
color
:
#FFFFFF
;
}
.park
{
margin-top
:
0
;
margin-bottom
:
45upx
;
}
}
}
</
style
>
pages/leader/leader.vue
View file @
10e0ba33
...
...
@@ -14,7 +14,7 @@
</view>
<view
class=
"cu-form-group"
>
<view
class=
"title"
><span
style=
"color:red;display: inline-block; vertical-align:inherit;margin-right:4upx"
>
*
</span>
身份证/护照号
</view>
<input
class=
"text-right"
type=
"idcard"
placeholder=
"请输入身份证号码/护照号"
:value=
"form.idCard"
name=
"input"
@
input=
"updateInputVal($event,'idCard')"
></input>
<input
class=
"text-right"
placeholder=
"请输入身份证号码/护照号"
:value=
"form.idCard"
name=
"input"
@
input=
"updateInputVal($event,'idCard')"
></input>
</view>
<view
class=
"padding"
>
<button
form-type=
"submit"
class=
"cu-btn block bg-blue margin-tb-sm lg"
>
提交
</button>
...
...
@@ -48,7 +48,7 @@
icon
:
'
success
'
,
title
:
'
注册成功!
'
})
uni
.
navigateTo
({
uni
.
reLaunch
({
url
:
'
/pages/index/index
'
,
});
}
else
{
...
...
@@ -56,7 +56,7 @@
icon
:
'
none
'
,
title
:
d
.
message
})
uni
.
navigateTo
({
uni
.
reLaunch
({
url
:
'
/pages/index/index
'
,
});
}
...
...
utils/request.js
View file @
10e0ba33
...
...
@@ -10,8 +10,8 @@
import
store
from
'
../store
'
export
default
class
Request
{
config
=
{
baseUrl
:
'
https://health.sh-sict.com/ncov-api
'
,
//
baseUrl: 'https://health.sh-sict.com/ncov-test-api',
//
baseUrl: 'https://health.sh-sict.com/ncov-api',
baseUrl
:
'
https://health.sh-sict.com/ncov-test-api
'
,
// baseUrl: 'http://139.9.163.126/ncov-api',
header
:
{
'
content-type
'
:
'
application/json;charset=UTF-8
'
,
...
...
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