diff --git a/pages/index/index.vue b/pages/index/index.vue index b229d5045297c8571040d5285460c53b64b3bc08..2d0b623cf573556b7610b8288f4ee54b3283f6ce 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -2,13 +2,26 @@ - + + - - - - 入园请向门卫出示健康码 + + 入园请向门卫出示健康码 + + + + + + + + + + + + + + @@ -22,6 +35,8 @@ data() { return { imgSrc:'', + modalName:'', + flag:true, option:{ userId:'' } @@ -45,7 +60,11 @@ }) // #endif }, - onShow() {}, + onShow() { + if(this.$store.state.user.userInfo.idCard){ + this.getUserInfo(code) + } + }, methods: { getImg(){ this.$http.get(`/sict-ncov/user/qrcode`).then(res => { @@ -82,6 +101,9 @@ const d = res.data if (d.code == 1) { let userInfo = d.object + if(userInfo.idCard){ + this.flag=false + } let obj = Object.assign({}, this.$store.getters.userInfo) if (obj.avatarUrl) { userInfo.avatarUrl = obj.avatarUrl @@ -108,7 +130,7 @@ background-size: cover; background-image: url('http://139.9.163.126/gastric/static/background.jpg'); .btnList{ - padding-top: 355upx; + padding-top: 395upx; .btnStaff,.btnSecurity{ background-color: #92d0f1; color: #FFFFFF;