|
@@ -238,13 +238,16 @@ export default {
|
|
|
});
|
|
|
// #endif
|
|
|
// #ifdef H5
|
|
|
- this.weichatObj.scanQRCode({
|
|
|
- needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
|
|
|
- scanType: ['qrCode', 'barCode'], // 可以指定扫二维码还是一维码,默认二者都有
|
|
|
- success: function(res) {
|
|
|
- obj.code = res.resultStr; // 当needResult 为 1 时,扫码返回的结果
|
|
|
- obj.$refs.popuphx.open();
|
|
|
- }
|
|
|
+ weixindata().then(wxOjb => {
|
|
|
+ console.log(wxOjb, '获取微信');
|
|
|
+ wxOjb.scanQRCode({
|
|
|
+ needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
|
|
|
+ scanType: ['qrCode', 'barCode'], // 可以指定扫二维码还是一维码,默认二者都有
|
|
|
+ success: function(res) {
|
|
|
+ obj.code = res.resultStr; // 当needResult 为 1 时,扫码返回的结果
|
|
|
+ obj.$refs.popuphx.open();
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
// #endif
|
|
|
},
|
|
@@ -254,6 +257,7 @@ export default {
|
|
|
})
|
|
|
.then(e => {
|
|
|
this.$api.msg('核销成功');
|
|
|
+ obj.$refs.popuphx.close();
|
|
|
console.log(e);
|
|
|
})
|
|
|
.catch(e => {
|