Commit 9254bdbb authored by sjf1256754123's avatar sjf1256754123

Update index.vue

parent 288b4723
......@@ -5,7 +5,6 @@
<button class="btnStaff" type="primary" @click="staff">首次填报</button>
<button class="btnSecurity" type="primary" @click="fillInDay">每日签到</button>
<button class="btnSecurity" type="primary" @click="getScancode" v-show="securityFlag">安保测温</button>
<!-- <image class="img" src="../../static/22.jpg" mode="" @click="fillInDay"></image> -->
<image class="img" :src="imgSrc" mode="widthFix" @click="modalName = 'Image'">
<view class="tips">入园请向门卫出示健康码</view>
</view>
......@@ -42,7 +41,6 @@
};
},
onLoad: function(option) {
this.userId = option.u
let that = this
// #ifdef MP-WEIXIN
wx.login({
......@@ -91,8 +89,12 @@
// 允许从相机和相册扫码
wx.scanCode({
success: (res) => {
console.log(res)
var result = res.result;
_this.userId = res.result;
if(_this.securityFlag&&_this.userId){
uni.navigateTo({
url: `/pages/security/security?userId=${_this.userId}`
})
}
}
})
},
......
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