Commit 10e0ba33 authored by sjf1256754123's avatar sjf1256754123

demo

parent 3bbab8a7
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
<image src="../../static/3.png" class="btnStaff2" @click="fillInDay" mode=""></image> <image src="../../static/3.png" class="btnStaff2" @click="fillInDay" mode=""></image>
<image src="../../static/6.png" class="btnStaff2" @click="temperature" mode=""></image> <image src="../../static/6.png" class="btnStaff2" @click="temperature" mode=""></image>
</view> --> </view> -->
<view class="park">{{park}}</view>
<image class="img" :src="imgSrc" mode="widthFix" @click="modalName = 'Image'"> <image class="img" :src="imgSrc" mode="widthFix" @click="modalName = 'Image'">
<view class="tips">入园请出示二维码通行证</view> <view class="tips">入园请出示二维码通行证</view>
<view class="btnStaff" v-show="securityFlag"> <view class="btnStaff" v-show="securityFlag">
<image src="../../static/2.png" class="btnStaff2" mode=""></image> <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> <image src="../../static/7.png" class="btnStaff2 margin-left-sm" @click="getScancode" style="width: 424upx;" mode=""></image>
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
name: "home", name: "home",
data() { data() {
return { return {
park:'',
hiddenRegisterFlag:true, hiddenRegisterFlag:true,
imgSrc:'', imgSrc:'',
modalName:'', modalName:'',
...@@ -168,6 +169,7 @@ ...@@ -168,6 +169,7 @@
const d = res.data const d = res.data
if (d.code == 1) { if (d.code == 1) {
let userInfo = d.object let userInfo = d.object
this.park = userInfo.userOrg?userInfo.userOrg.park:''
if(userInfo.roleId == '1003'){ if(userInfo.roleId == '1003'){
this.securityFlag=true this.securityFlag=true
} }
...@@ -205,7 +207,7 @@ ...@@ -205,7 +207,7 @@
background-size: cover; background-size: cover;
background-image: url('http://139.9.163.126/gastric/static/background.jpg'); background-image: url('http://139.9.163.126/gastric/static/background.jpg');
.btnList{ .btnList{
padding-top: 325upx; padding-top: 225upx;
text-align: center; text-align: center;
.btnSecurity{ .btnSecurity{
background-color: #92d0f1; background-color: #92d0f1;
...@@ -233,13 +235,17 @@ ...@@ -233,13 +235,17 @@
width: 350upx; width: 350upx;
height: 350upx; height: 350upx;
} }
.tips{ .tips,.park{
margin-top:25upx; margin-top:25upx;
margin-bottom:45upx; margin-bottom:45upx;
font-weight: bold; font-weight: bold;
font-size: 32upx; font-size: 32upx;
color:#FFFFFF; color:#FFFFFF;
} }
.park{
margin-top:0;
margin-bottom:45upx;
}
} }
} }
</style> </style>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</view> </view>
<view class="cu-form-group"> <view class="cu-form-group">
<view class="title"><span style="color:red;display: inline-block; vertical-align:inherit;margin-right:4upx">*</span>身份证/护照号</view> <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>
<view class="padding"> <view class="padding">
<button form-type="submit" class="cu-btn block bg-blue margin-tb-sm lg">提交</button> <button form-type="submit" class="cu-btn block bg-blue margin-tb-sm lg">提交</button>
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
icon: 'success', icon: 'success',
title: '注册成功!' title: '注册成功!'
}) })
uni.navigateTo({ uni.reLaunch({
url: '/pages/index/index', url: '/pages/index/index',
}); });
}else{ }else{
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
icon: 'none', icon: 'none',
title: d.message title: d.message
}) })
uni.navigateTo({ uni.reLaunch({
url: '/pages/index/index', url: '/pages/index/index',
}); });
} }
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
import store from '../store' import store from '../store'
export default class Request { export default class Request {
config = { config = {
baseUrl: 'https://health.sh-sict.com/ncov-api', // baseUrl: 'https://health.sh-sict.com/ncov-api',
// baseUrl: 'https://health.sh-sict.com/ncov-test-api', baseUrl: 'https://health.sh-sict.com/ncov-test-api',
// baseUrl: 'http://139.9.163.126/ncov-api', // baseUrl: 'http://139.9.163.126/ncov-api',
header: { header: {
'content-type': 'application/json;charset=UTF-8', 'content-type': 'application/json;charset=UTF-8',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment