shish 4 سال پیش
والد
کامیت
1aa049368e

+ 2 - 1
ghsApp/src/admin/home/apply.vue

@@ -38,7 +38,8 @@ export default {
                         {name: "推荐福利",img: `${this.$constant.imgUrl}/ghs/home/yqyl.png`,url: "/admin/hb/tjFl"},
                         {name: "充值福利",img: `${this.$constant.imgUrl}/ghs/home/yqyl.png`,url: "/admin/item/rechargeHb"},
                         {name: "充值记录",img: `${this.$constant.imgUrl}/ghs/home/yqyl.png`,url: "/admin/hb/rechargeList"},
-                        {name: "已发红包",img: `${this.$constant.imgUrl}/ghs/home/yqyl.png`,url: "/admin/hb/list"}
+                        {name: "已发红包",img: `${this.$constant.imgUrl}/ghs/home/yqyl.png`,url: "/admin/hb/list"},
+						{name: "邀请开店",img: `${this.$constant.imgUrl}/ghs/home/yqyl.png`,url: "/pagesInvite/list"}
                     ]
                 },
                 {

+ 8 - 0
hdApp/src/admin/home/apply.vue

@@ -126,6 +126,14 @@ export default { // 应用页面
             },
           ]
         },
+        {
+          title: '赚钱分红',
+          list: [{
+            name: "邀请开店",
+            img: `${this.$constant.imgUrl}/ghs/home/yqyl.png`,
+            url: "/pagesInvite/list"
+          }]
+        },
         {
           title: '数据统计',
           list: [

+ 1 - 0
hdApp/src/pagesClient/official/apply.vue

@@ -259,6 +259,7 @@ export default {
     },
     confirmFn() {
       applyRegister({
+        fromGhsId:this.option.fromGhsId,
         hdShopAdminId: this.option.hdShopAdminId,
         ghsShopAdminId: this.option.ghsShopAdminId,
         ...this.form,

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

@@ -174,6 +174,7 @@ export default {
 			showSubmitModel: false,
 			notOpenShop:false,
 			hdShopAdminId:0,
+			fromGhsId:0,
 			ghsInfo: {
 				avatar:'',
 				name:' ',
@@ -280,12 +281,12 @@ export default {
 		}
 
 		//查看分享的路径,不要删除 shish 20210517
-		console.log(`pagesPurchase/ghsProduct?hdShopAdminId=${this.loginInfo.shopAdminId}&ghsShopAdminId=${ghsShopAdminId}&shopId=${this.shopId}&id=0`)
+		console.log(`pagesPurchase/ghsProduct?hdShopAdminId=${this.loginInfo.shopAdminId}&ghsShopAdminId=${ghsShopAdminId}&shopId=${this.shopId}&id=0&fromGhsId=${this.ghsId}`)
 
 		return {
 			title: this.ghsInfo.name,
 			desc: "首次下单领红包",
-			path: `pagesPurchase/ghsProduct?hdShopAdminId=${this.loginInfo.shopAdminId}&ghsShopAdminId=${ghsShopAdminId}&shopId=${this.shopId}&id=0`
+			path: `pagesPurchase/ghsProduct?hdShopAdminId=${this.loginInfo.shopAdminId}&ghsShopAdminId=${ghsShopAdminId}&shopId=${this.shopId}&id=0&fromGhsId=${this.ghsId}`
 		}
 
 	},
@@ -346,9 +347,10 @@ export default {
 					this.option.id = sceneArray.id
 				}
 			}else{
-				if(this.option.hdShopAdminId || this.option.ghsShopAdminId){
+				if(this.option.fromGhsId){
 					this.ghsShopAdminId = this.option.ghsShopAdminId
 					this.hdShopAdminId = this.option.hdShopAdminId
+					this.fromGhsId = this.option.fromGhsId
 				}
 			}
 
@@ -424,7 +426,8 @@ export default {
 				type: 2,
 				query: {
 					ghsShopAdminId: this.ghsShopAdminId,
-					hdShopAdminId: this.hdShopAdminId
+					hdShopAdminId: this.hdShopAdminId,
+					fromGhsId:this.fromGhsId
 				},
 			});
 		},