Commit c5d8eee6 authored by sjf1256754123's avatar sjf1256754123

d

parent a4e815ee
...@@ -2,12 +2,15 @@ ...@@ -2,12 +2,15 @@
<view class="index"> <view class="index">
<view class="temp"> <view class="temp">
<view class="btnList"> <view class="btnList">
<view class="btnStaff"> <!-- <view class="btnStaff">
<image src="../../static/5.png" class="btnStaff2" mode=""></image> <image src="../../static/5.png" class="btnStaff2" mode=""></image>
<image src="../../static/4.png" class="btnStaff2 margin-left-sm" @click="staff" mode=""></image> <image src="../../static/4.png" class="btnStaff2 margin-left-sm" @click="staff" mode=""></image>
<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> -->
<image class="img" :src="imgSrc" mode="widthFix" @click="modalName = 'Image'">
<view class="tips">入园请向门卫出示通行证</view>
<view class="btnStaff"> <view class="btnStaff">
<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: 484upx;" mode=""></image> <image src="../../static/7.png" class="btnStaff2 margin-left-sm" @click="getScancode" style="width: 484upx;" mode=""></image>
...@@ -17,9 +20,6 @@ ...@@ -17,9 +20,6 @@
<image src="../../static/8.png" class="btnStaff2" mode=""></image> <image src="../../static/8.png" class="btnStaff2" mode=""></image>
<image src="../../static/9.png" class="btnStaff2 margin-left-sm" @click="leader" style="width: 484upx;" mode=""></image> <image src="../../static/9.png" class="btnStaff2 margin-left-sm" @click="leader" style="width: 484upx;" mode=""></image>
</view> </view>
<image class="img" :src="imgSrc" mode="widthFix" @click="modalName = 'Image'">
<view class="tips">入园请向门卫出示健康码</view>
</view> </view>
</view> </view>
<view class="cu-modal" :class="modalName=='Image'?'show':''" @tap="modalName=''"> <view class="cu-modal" :class="modalName=='Image'?'show':''" @tap="modalName=''">
...@@ -41,6 +41,9 @@ ...@@ -41,6 +41,9 @@
</template> </template>
<script> <script>
import {
getSampleId
} from '@/utils/index.js'
export default { export default {
components: {}, components: {},
name: "home", name: "home",
...@@ -110,18 +113,26 @@ ...@@ -110,18 +113,26 @@
// }) // })
// }, // },
getScancode(){ getScancode(){
console.log(this.$store.state.user.userInfo.roleId)
if(this.$store.state.user.userInfo.roleId&&this.$store.state.user.userInfo.roleId == '1003'){ if(this.$store.state.user.userInfo.roleId&&this.$store.state.user.userInfo.roleId == '1003'){
var _this = this; var _this = this;
// 允许从相机和相册扫码 // 允许从相机和相册扫码
wx.scanCode({ wx.scanCode({
success: (res) => { success: (res) => {
if(res.result.indexOf('userId')>-1){ if(res.result.indexOf('userId')>-1&&res.result.indexOf('date')>-1){
_this.userId = res.result; _this.userId = res.result;
if(_this.securityFlag&&_this.userId){ let arr = res.result.split("&")
uni.navigateTo({ _this.userId = arr[0].split("=")[1]
url: `/pages/security/security?userId=${_this.userId}` if(getSampleId() == arr[1].split("=")[1]){
}) if(_this.securityFlag&&_this.userId){
uni.navigateTo({
url: `/pages/security/security?userId=${_this.userId}`
})
}
}else{
uni.showToast({
icon: 'none',
title: '二维码已失效!'
})
} }
}else{ }else{
uni.showToast({ uni.showToast({
...@@ -213,14 +224,14 @@ ...@@ -213,14 +224,14 @@
color: #FFFFFF; color: #FFFFFF;
} }
.img{ .img{
margin-top:45upx;
width: 200upx; width: 200upx;
height: 200upx; height: 200upx;
} }
.tips{ .tips{
margin-top:25upx; margin-top:25upx;
margin-bottom:45upx;
font-weight: bold; font-weight: bold;
font-size: 28upx; font-size: 32upx;
color:#FFFFFF; color:#FFFFFF;
} }
} }
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
this.form[props] = event.target.value this.form[props] = event.target.value
}, },
formSubmit(){ formSubmit(){
if(this.form.name && this.form.phone && this.form.idCard){ if(this.form.name && this.form.phone.length == 11 && this.form.idCard.length==18){
this.$http.post(`/sict-ncov/user/vip/register?name=${this.form.name}&phone=${this.form.phone}&idCard=${this.form.idCard}`).then(res => { this.$http.post(`/sict-ncov/user/vip/register?name=${this.form.name}&phone=${this.form.phone}&idCard=${this.form.idCard}`).then(res => {
const d = res.data const d = res.data
if(d.code == 1){ if(d.code == 1){
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
}else{ }else{
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '请填写完整资料!' title: '请填写完整真实资料!'
}) })
} }
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<view class="temp"> <view class="temp">
<view v-show="!hiddenFlag"> <view v-show="!hiddenFlag">
<view class="btnList"> <view class="btnList">
<span style="font-weight: bold;color:#fff;font-size: 58upx;">{{obj.userName}}</span> <span style="font-weight: bold;color:#fff;font-size: 58upx;">{{obj.userName?obj.userName:''}}</span>
<button class="btnNormal" type="primary" @click="normal">体温正常</button> <button class="btnNormal" type="primary" @click="normal">体温正常</button>
<button class="btnAbnormal" type="primary" @click="abnormal">体温异常</button> <button class="btnAbnormal" type="primary" @click="abnormal">体温异常</button>
</view> </view>
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
</view> </view>
<view v-show="hiddenFlag" class="tip"> <view v-show="hiddenFlag" class="tip">
<view class="tips"> <view class="tips">
<span style="font-weight: bold;">{{obj.userName}}</span> <span style="font-weight: bold;">{{obj.userName?obj.userName:''}}</span>
今日已测温 今日已测温
</view> </view>
<view class="tips" v-show="obj.heat>0"> <view class="tips" v-show="obj.heat>0">
......
static/8.png

18.2 KB | W: | H:

static/8.png

29.5 KB | W: | H:

static/8.png
static/8.png
static/8.png
static/8.png
  • 2-up
  • Swipe
  • Onion skin
static/9.png

11.6 KB | W: | H:

static/9.png

8.37 KB | W: | H:

static/9.png
static/9.png
static/9.png
static/9.png
  • 2-up
  • Swipe
  • Onion skin
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