Răsfoiți Sursa

邀请开店

shish 5 ani în urmă
părinte
comite
1a55762360

+ 2 - 8
ghsApp/src/admin/home/workbench.vue

@@ -353,18 +353,12 @@ export default {
 			});
 		},
 		getMyMall(){
+			console.log('pagesPurchase/ghsProduct?shopId='+ this.loginInfo.shopId+'&id=0&ghsShopAdminId='+this.loginInfo.shopAdminId)
 			getWeixinId().then(res => {
 				uni.navigateToMiniProgram({
-					// appId: res.data.hd.miniAppId,
-					// path: 'pagesPurchase/ghsProduct?account='+ this.loginInfo.shopId,
-					// //develop 开发板 trial 体验版 release 正式版
-					// envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
-					// extraData: {
-					// 	'shopAdminId': this.loginInfo.shopAdminId
-					// },
 					//姜枫-2021.04.13
 					appId: res.data.hd.miniAppId,
-					path: 'pagesPurchase/ghsProduct?shopId='+ this.loginInfo.shopId+'&id=0',
+					path: 'pagesPurchase/ghsProduct?shopId='+ this.loginInfo.shopId+'&id=0&ghsShopAdminId='+this.loginInfo.shopAdminId,
 					//develop 开发板 trial 体验版 release 正式版
 					envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
 					extraData: {

+ 4 - 4
ghsApp/src/pagesInvite/list.vue

@@ -7,7 +7,7 @@
 					<view class="name"> {{ userInfo.name || "" }}</view>
 					<view class="mark"> 普通代理 </view>
 				</view>
-				<button class="user-wrap-right" @tap="toProcedure">
+				<button class="user-wrap-right" @tap="inviteHd">
 					<img :src="`${constant.imgUrl}/retail/interest/invite-store.png`" alt mode="widthFix" />
 				</button>
 				<navigator class="user-wrap-right" :url="`/pagesClient/official/index?shopAdminId=${loginInfo.shopAdminId}`">
@@ -142,13 +142,13 @@ export default {
 	mounted(){
 	},
 	methods: {
-		toProcedure(){
+		inviteHd(){
 			getWeixinId().then(res => {
 				uni.navigateToMiniProgram({
 					appId: res.data.hd.miniAppId,
-					path: 'admin/official/index',
+					path: 'pagesClient/official/index',
 					//develop 开发板 trial 体验版 release 正式版
-					envVersion: 'develop',
+					envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
 					extraData: {
 						'shopAdminId': this.loginInfo.shopAdminId
 					},

+ 1 - 1
hdApp/src/App.vue

@@ -44,7 +44,7 @@ export default {
     wxLoginFn(true)
       .then(res => {
         //客户可以访问的地址
-        var urlArr = ['admin/shopAdmin/bind', 'pagesClient/official', 'pagesClient/member/bind', 'pagesShare/pay'];
+        var urlArr = ['admin/shopAdmin/bind', 'pagesClient/official', 'pagesClient/member/bind', 'pagesShare/pay','pagesPurchase/ghsProduct'];
         var redirectPage = res.redirectPage;
         var needRedirect = true;
         urlArr.forEach((item, index, array) => {

+ 0 - 6
hdApp/src/admin/home/workbench.vue

@@ -250,12 +250,6 @@ export default {
           name: "经营概况",
           img: `${this.$constant.imgUrl}/ghs/home/jyzk.png`,
           url: "/pagesStatistics/business"
-        },
-        {
-          name: "全部",
-          img: `${this.$constant.imgUrl}/ghs/home/qball.png`,
-          url: "/admin/home/apply",
-          type: 4
         }
       ],
       // 总览

+ 8 - 8
hdApp/src/pagesInvite/list.vue

@@ -7,12 +7,12 @@
 					<view class="name"> {{ userInfo.name || "" }}</view>
 					<view class="mark"> 普通代理 </view>
 				</view>
-				<button class="user-wrap-right" @tap="toProcedure">
-					<img :src="`${constant.imgUrl}/retail/interest/invite-store.png`" alt mode="widthFix" />
-				</button>
 				<navigator class="user-wrap-right" :url="`/pagesClient/official/index?shopAdminId=${loginInfo.shopAdminId}`">
-					<img :src="`${constant.imgUrl}/ghs/me/yqghs.png`" alt mode="widthFix" />
+					<img :src="`${constant.imgUrl}/retail/interest/invite-store.png`" alt mode="widthFix" />
 				</navigator>
+				<button class="user-wrap-right" @tap="inviteGhs">
+					<img :src="`${constant.imgUrl}/ghs/me/yqghs.png`" alt mode="widthFix" />
+				</button>
 			</view>
 			<view class="info-list">
 				<view class="info-item">
@@ -142,13 +142,13 @@ export default {
 	mounted(){
 	},
 	methods: {
-		toProcedure(){
+		inviteGhs(){
 			getWeixinId().then(res => {
 				uni.navigateToMiniProgram({
-					appId: res.data.hd.miniAppId,
-					path: 'admin/official/index',
+					appId: res.data.ghs.miniAppId,
+					path: 'pagesClient/official/index',
 					//develop 开发板 trial 体验版 release 正式版
-					envVersion: 'develop',
+					envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
 					extraData: {
 						'shopAdminId': this.loginInfo.shopAdminId
 					},