From cbbecf99f130068c2903809fe6c812146b65cc41 Mon Sep 17 00:00:00 2001 From: sjf1256754123 <33301030+sjf1256754123@users.noreply.github.com> Date: Mon, 17 Feb 2020 15:15:17 +0800 Subject: [PATCH] demo --- pages/index/index.vue | 38 +++++++++++++++--- pages/security/security.vue | 74 +++++++++++++++++++++++++++--------- static/2.png | Bin 0 -> 6184 bytes static/3.png | Bin 0 -> 5359 bytes static/4.png | Bin 0 -> 5959 bytes static/5.png | Bin 0 -> 5367 bytes static/6.png | Bin 0 -> 6783 bytes static/7.png | Bin 0 -> 12363 bytes 8 files changed, 90 insertions(+), 22 deletions(-) create mode 100644 static/2.png create mode 100644 static/3.png create mode 100644 static/4.png create mode 100644 static/5.png create mode 100644 static/6.png create mode 100644 static/7.png diff --git a/pages/index/index.vue b/pages/index/index.vue index fdded91..a957f0b 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 511c40f..cdd5b83 100644 --- a/pages/security/security.vue +++ b/pages/security/security.vue @@ -1,17 +1,35 @@