wx.ready(function() {
wx.scanQRCode({
desc: "scanQRCode desc",
needResult: 1, // 01
scanType: ["qrCode","barCode"], //
success: function (res) {
httpService.post(httpServiceUrl.scanBundOrder, {
user_id: window.wxUserData.user_id,
package_num: res.resultStr,
order_id: self.scannerOrderId
}).then(res => {
Toast("");
//
setTimeout(() => {
self.initData();
}, 1000);
}).catch(err => {
Toast(err.msg || "")
})
},
error: function(res){
if(res.errMsg.indexOf("function_not_exist") > 0){
alert("")
}
}
});
});