Browse Source

采购优化

shish 4 years ago
parent
commit
f880f48430

+ 4 - 2
hdApp/src/pagesPurchase/ghsProduct.vue

@@ -277,13 +277,15 @@ export default {
 			this.shopId = this.option.shopId
 			this.shopId = this.option.shopId
 		}
 		}
 
 
+		let fromCg =  this.option.fromCg ? this.option.fromCg : 0
+
 		//查看分享的路径,不要删除 shish 20210517
 		//查看分享的路径,不要删除 shish 20210517
-		console.log(`pagesPurchase/ghsProduct?hdShopAdminId=${this.loginInfo.shopAdminId}&ghsShopAdminId=${ghsShopAdminId}&shopId=${this.shopId}&id=0&fromGhsId=${this.ghsId}`)
+		console.log(`pagesPurchase/ghsProduct?hdShopAdminId=${this.loginInfo.shopAdminId}&ghsShopAdminId=${ghsShopAdminId}&shopId=${this.shopId}&id=0&fromGhsId=${this.ghsId}&fromCg=${fromCg}`)
 
 
 		return {
 		return {
 			title: this.ghsInfo.name,
 			title: this.ghsInfo.name,
 			desc: "首次下单领红包",
 			desc: "首次下单领红包",
-			path: `pagesPurchase/ghsProduct?hdShopAdminId=${this.loginInfo.shopAdminId}&ghsShopAdminId=${ghsShopAdminId}&shopId=${this.shopId}&id=0&fromGhsId=${this.ghsId}`
+			path: `pagesPurchase/ghsProduct?hdShopAdminId=${this.loginInfo.shopAdminId}&ghsShopAdminId=${ghsShopAdminId}&shopId=${this.shopId}&id=0&fromGhsId=${this.ghsId}&fromCg=${fromCg}`
 		}
 		}
 
 
 	},
 	},

+ 1 - 1
hdApp/src/pagesPurchase/particulars.vue

@@ -39,7 +39,7 @@ export default {
 
 
     //供应商打开小程序分享给客户,客户需要采购进来
     //供应商打开小程序分享给客户,客户需要采购进来
     let ghsCgOption = uni.getStorageSync('ghsCgOption')
     let ghsCgOption = uni.getStorageSync('ghsCgOption')
-    if(ghsCgOption.cg){
+    if(ghsCgOption.fromCg){
       this.fromCg = ghsCgOption.fromCg
       this.fromCg = ghsCgOption.fromCg
     }
     }