This commit is contained in:
liuye
2023-07-05 11:26:49 +08:00
parent e183f8f3df
commit 75e71cc6ac

View File

@@ -102,10 +102,10 @@ export default {
this.getDetail() this.getDetail()
} }
this.$dict.load(['clapEventStatus']) this.$dict.load(['clapEventStatus'])
this.injectJWeixin(['scanQRCode'])
}, },
onShow() { onShow() {
document.title = '积分代申请' document.title = '积分代申请'
this.injectJWeixin(['scanQRCode'])
}, },
methods: { methods: {
...mapActions(['injectJWeixin']), ...mapActions(['injectJWeixin']),
@@ -198,10 +198,7 @@ export default {
needResult: 1, // 默认为0扫描结果由企业微信处理1则直接返回扫描结果 needResult: 1, // 默认为0扫描结果由企业微信处理1则直接返回扫描结果
scanType: ["qrCode",], // 可以指定扫二维码还是条形码(一维码),默认二者都有 scanType: ["qrCode",], // 可以指定扫二维码还是条形码(一维码),默认二者都有
success: (res) => { success: (res) => {
alert(JSON.stringify(res.resultStr)) var userList = [{...JSON.parse(res.resultStr), realName: JSON.parse(res.resultStr).name}]
alert(res.resultStr)
alert(res.resultStr.name)
var userList = [{...JSON.parse(res.resultStr), realName: res.resultStr.name}]
this.handleSelectUser(userList) this.handleSelectUser(userList)
}, },
error: (res) => { error: (res) => {