积分申请

This commit is contained in:
liuye
2023-07-05 11:52:27 +08:00
parent 422422f768
commit 21c00e2175

View File

@@ -105,9 +105,6 @@ export default {
},
onShow() {
document.title = '积分代申请'
this.$nextTick(() => {
this.injectJWeixin(['scanQRCode'])
})
},
methods: {
...mapActions(['injectJWeixin']),
@@ -195,24 +192,26 @@ export default {
this.getType()
},
scan() {
wx.scanQRCode({
desc: '扫描居民信息',
needResult: 1, // 默认为0扫描结果由企业微信处理1则直接返回扫描结果
scanType: ["qrCode",], // 可以指定扫二维码还是条形码(一维码),默认二者都有
success: (res) => {
var info = JSON.parse(res.resultStr)
info.realName = info.name
var userList = [{...info}]
this.handleSelectUser(userList)
},
error: (res) => {
console.log(res)
alert(res)
if (res.errMsg.indexOf('function_not_exist') > 0) {
alert('版本过低请升级')
this.injectJWeixin(['scanQRCode']).then(() => {
wx.scanQRCode({
desc: '扫描居民信息',
needResult: 1, // 默认为0扫描结果由企业微信处理1则直接返回扫描结果
scanType: ["qrCode",], // 可以指定扫二维码还是条形码(一维码),默认二者都有
success: (res) => {
var info = JSON.parse(res.resultStr)
info.realName = info.name
var userList = [{...info}]
this.handleSelectUser(userList)
},
error: (res) => {
console.log(res)
alert(res)
if (res.errMsg.indexOf('function_not_exist') > 0) {
alert('版本过低请升级')
}
}
}
});
});
})
}
}
}