shish 4 лет назад
Родитель
Сommit
f880f48430
2 измененных файлов с 5 добавлено и 3 удалено
  1. 4 2
      hdApp/src/pagesPurchase/ghsProduct.vue
  2. 1 1
      hdApp/src/pagesPurchase/particulars.vue

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

@@ -277,13 +277,15 @@ export default {
 			this.shopId = this.option.shopId
 		}
 
+		let fromCg =  this.option.fromCg ? this.option.fromCg : 0
+
 		//查看分享的路径,不要删除 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 {
 			title: this.ghsInfo.name,
 			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')
-    if(ghsCgOption.cg){
+    if(ghsCgOption.fromCg){
       this.fromCg = ghsCgOption.fromCg
     }