sunchengjie 8 months ago
parent
commit
eeda36961d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/pages/express.vue

+ 2 - 1
src/pages/express.vue

@@ -438,6 +438,7 @@ export default {
 
 		// 运单号扫描
 		async wxScanCode() {
+			console.log('123456')
 			wx.scanQRCode({
 				needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
 				scanType: ["qrCode", "barCode"], // 可以指定扫二维码还是一维码,默认二者都有
@@ -451,8 +452,8 @@ export default {
 					this.waybillNo = result
 				},
 				error: function (res) {
-					window.location.href = location.protocol + '//' + location.host + '/#/Express'
 					console.log(res, 'error++++++++++');
+					window.location.href = location.protocol + '//' + location.host + '/#/Express'
 				}
 			});
 		},