wx.scanCode在红米5plus中获取不到链接中的参数
scancode(e) {
const that = this;
wx.scanCode({
scanType: 'QR_CODE',
success(res) {
if (null == app.globalData.UNIQUENUM) {
that.setData({
user_access: true
})
if (res !== undefined) {
let scan_urls = decodeURIComponent(res.result);
that.setData({
shopId: cry.getQueryString(scan_urls, 'shopId'),
})
}
} else {
if (res !== undefined) {
let scan_urls = decodeURIComponent(res.result);
that.setData({
shopId: cry.getQueryString(scan_urls, 'shopId'),
})
console.log(that.data.shopId + '{{}}')
let bidingParam = {
UNIQUENUM: app.globalData.UNIQUENUM,
OAUTHCODE: app.globalData.OAUTHCODE,
phoneNum: app.globalData.phoneNum,
shopId: that.data.shopId
}
api.request(apiName.courierBindingShop, bidingParam).then((res) => {
if (res.data.code == "SUCCESS") {
wx.showToast({
title: '绑定成功',
duration: 2500,
mask: true,
icon: 'none',
success() {
setTimeout(function () {
that.onPullDownRefresh()
}, 1000)
}
})
} else {
wx.showToast({
title: res.data.message,
duration: 2500,
mask: true,
icon: 'none',
})
}
})
} else {
wx.showToast({
title: '未获取到站点Id',
duration: 3000,
mask: true,
icon: "none"
})
}
}
},
})
}
res.result返回的一直是null,其他机型正常。
麻烦在手机微信那里上传下日志: 我->设置->帮助与反馈右上角有个上报日志的入口,麻烦提供一下微信号,时间点
时间:2020-3-3 下午3.20;上传的日志
res.result