diff --git a/pages/index/index.vue b/pages/index/index.vue index fdded916c1bc6fb39f7201f41274fa85779fa842..a957f0b283a6d695e5f951e70a548fb0d97c888e 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -2,9 +2,16 @@ - - - + + + + + + + + + + 入园请向门卫出示健康码 @@ -61,6 +68,13 @@ } }, methods: { + temperature(){ + uni.showToast({ + icon: 'none', + title: '即将上线!' + }) + }, + getImg(){ this.$http.get(`/sict-ncov/user/qrcode`).then(res => { const d = res.data @@ -85,7 +99,8 @@ // }) // }, getScancode(){ - if(this.$store.state.user.userInfo.roleId == '1003'){ + console.log(this.$store.state.user.userInfo.roleId) + if(this.$store.state.user.userInfo.roleId&&this.$store.state.user.userInfo.roleId == '1003'){ var _this = this; // 允许从相机和相册扫码 wx.scanCode({ @@ -156,7 +171,8 @@ background-image: url('http://139.9.163.126/gastric/static/background.jpg'); .btnList{ padding-top: 395upx; - .btnStaff,.btnSecurity{ + text-align: center; + .btnSecurity{ background-color: #92d0f1; color: #FFFFFF; border-radius: 60upx; @@ -166,6 +182,18 @@ .btnSecurity{ margin-top:45upx; } + .btnStaff{ + color: #FFFFFF; + border-radius: 60upx; + } + .btnStaff2{ + text-align: left; + display: inline-block; + width: 160upx; + height: 99upx; + background-color: #92d0f1; + color: #FFFFFF; + } .img{ margin-top:45upx; width: 200upx; diff --git a/pages/security/security.vue b/pages/security/security.vue index 511c40fc25e1ec440f2de84c5656d81c1ee5b9a0..cdd5b830275b954a445b7b5e65acda279fbf8d08 100644 --- a/pages/security/security.vue +++ b/pages/security/security.vue @@ -1,17 +1,35 @@