Преглед на файлове

commit -m 协销机构列表

zhengjinyi преди 2 години
родител
ревизия
8a1ac4ead6
променени са 2 файла, в които са добавени 20 реда и са изтрити 4 реда
  1. 4 1
      pages/seller/club/club-info.vue
  2. 16 3
      pages/seller/club/list.vue

+ 4 - 1
pages/seller/club/club-info.vue

@@ -137,8 +137,9 @@ export default {
 			isSellerpopup: false,
 			isIphoneX: this.$store.state.isIphoneX,
 			salesParams: {
+				choseServiceId:0,
 				clubId: 0,
-				spId: 0
+				spId: 0,
 			}
 		}
 	},
@@ -202,6 +203,8 @@ export default {
 	methods: {
 		async userClubRecordLinkage(param) {
 			//查询机构信息
+			const userInfo = await this.$api.getStorage()
+			this.salesParams.choseServiceId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
 			this.SellerService.userClubRecordLinkage(param)
 				.then(response => {
 					this.clubInfo = response.data.club

+ 16 - 3
pages/seller/club/list.vue

@@ -10,7 +10,8 @@
 						lineHeight: CustomBar - StatusBar + 'px;'
 					}"
 				>
-					<text @click="handleNavigateBack" class="iconfont icon-fanhui"></text>
+					<text v-if="isShowIndex" @click="handleNavigateIndex" class="iconfont icon-shouye"></text>
+					<text v-else @click="handleNavigateBack" class="iconfont icon-fanhui"></text>
 				</view>
 				<view
 					class="search-from name"
@@ -170,6 +171,7 @@
 <script>
 import { mapState, mapMutations } from 'vuex'	
 import authorize from '@/common/config/authorize.js'
+import wxLogin from '@/common/config/wxLogin.js'
 import tuiLoadmore from '@/components/tui-components/loadmore/loadmore'
 import tuiNomore from '@/components/tui-components/nomore/nomore'
 import cmClubDrawer from '../components/cm-club-drawer'
@@ -219,13 +221,15 @@ export default {
 			rightDrawer:false,
 			isSellerpopup:false,
 			salesParams: {
+				choseServiceId:0,
 				clubId: 0,
 				spId: 0
 			},
+			isShowIndex:false
 		}
 	},
-	onLoad() {
-		
+	onLoad(option) {
+		if(option.type === 'wechat'){this.isShowIndex = true}
 	},
 	computed: {
 		...mapState(['isManage'])
@@ -234,6 +238,7 @@ export default {
 		async initGetStotage() {// 初始化
 			const userInfo = await this.$api.getStorage()
 			this.listQuery.spId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
+			this.salesParams.choseServiceId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
 			this.GetSellerClubList()
 		},
 		GetSellerClubList() {
@@ -434,6 +439,9 @@ export default {
 		},
 		handleNavigateBack() {
 			this.$api.navigateBack(1)
+		},
+		handleNavigateIndex() {
+			this.$api.navigateTo(`/pages/seller/index/index`)
 		}
 	},
 	onReachBottom() {
@@ -444,6 +452,7 @@ export default {
 		}
 	},
 	onShow() {
+		wxLogin.wxLoginAuthorize()
 		this.initGetStotage()
 	}
 }
@@ -483,6 +492,10 @@ page,
 				font-size: 44rpx;
 				color: #333333;
 			}
+			.icon-shouye{
+				font-size: 44rpx;
+				color: #333333;
+			}
 		}
 		.search-from {
 			width: 382rpx;