sunChengjie 11 months ago
parent
commit
0e59c73ee7
1 changed files with 1 additions and 18 deletions
  1. 1 18
      src/pages/express.vue

+ 1 - 18
src/pages/express.vue

@@ -289,24 +289,7 @@ export default {
 
 		// 授权码哦icon扫描
 		async vxSearchIcon() {
-			const res = await getWxConfig({})
-			//发送成功
-			var timestamp = res.wxConfig.timestamp;
-			var noncestr = res.wxConfig.nonceStr;
-			var signature = res.wxConfig.signature;
-			var appId = res.wxConfig.appId;
-			console.log(res, '============')
-			wx.config({
-				debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
-				// debug : true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
-				appId: appId, // 必填,公众号的唯一标识
-				timestamp: timestamp, // 必填,生成签名的时间戳
-				nonceStr: noncestr, // 必填,生成签名的随机串
-				signature: signature, // 必填,签名,见附录1
-				jsApiList: [
-					"scanQRCode",
-				] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
-			});
+			console.log('123')
 			wx.scanQRCode({
 				needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
 				scanType: ["qrCode", "barCode"], // 可以指定扫二维码还是一维码,默认二者都有