twt 1 anno fa
parent
commit
f00dd79c8c
3 ha cambiato i file con 7 aggiunte e 4 eliminazioni
  1. 3 2
      pages/index/index.vue
  2. 3 1
      pages/partner/myQr.vue
  3. 1 1
      utils/common.js

+ 3 - 2
pages/index/index.vue

@@ -326,9 +326,10 @@
 			
 			if (shareID) {
 				this.shareID = shareID
+				console.log('this.shareID==='+this.shareID)
 				//this.$store.commit('mutationsshareID', shareID)
 			}
-			//this.shareID='C01DF9DA51A341888754DE0C4ADB29D9'
+			//this.shareID='F16E7299-6850-4015-ABCE-A9F2794B45B5'
 			//this.shareID='1BF04FAEC8844ECE9C40E880C3B13721'
 			
 			//this.unionId="26A1039A-DB10-4D0E-BBA2-541C06274EED";
@@ -481,7 +482,7 @@
 				})
 			},
 			changeCar(){
-			   /* uni.scanCode({
+			     /* uni.scanCode({
 				 	success: function (res) {
 				 		console.log('条码类型:' + res.scanType);
 						console.log( res);

+ 3 - 1
pages/partner/myQr.vue

@@ -83,7 +83,9 @@
 				    bizType:this.type,
 					openId:this.wxOpenData.openid,
 					unionId:this.ext.unionId,
-					shopId:this.ext.shopId
+					//shopId:this.ext.shopId,
+					shopId:this.wxOpenData.loginInfo.customerInfo.shopID,
+					path:'pages/index/index'
 				}, 'GET').then(res => {
 					uni.hideLoading();
 					this.img = 'data:image/png;base64,'+uni.arrayBufferToBase64(res);

+ 1 - 1
utils/common.js

@@ -85,7 +85,7 @@ function getExtStoreId(type){
 	try{
 	 var extConfig = uni.getExtConfigSync ? uni.getExtConfigSync() : {shopId:'默认的门店id'};
 
-		  /* extConfig={
+		 /*  extConfig={
 		  "shopId": "E37BB296-5A08-4534-859D-B351BA611AF9",
 		  "url":"https://apidms.66km.com",
 		  "unionId":"EF7981B9-2D1D-4006-9C0A-66CE7177134D",