麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
getQrcode() {
// clearInterval(timer);
// timer = null;
return new Promise((resolve, reject) => {
wx.scanCode({
success(res) {
resolve(res.result)
},
fail(res) {
wx.showToast({
title: '扫码失败',
icon: 'none',
duration: 4000
})
reject(false)
}
})
}).catch(err => { })
},
let code = await that.getQrcode();
that.setData({
page: 1,
customerId:res
})