From 04102f7237efefa744090ed7c25f7b5d0807b679 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Thu, 05 Feb 2026 18:11:57 +0800
Subject: [PATCH] 完成运营中心提现和运营中心权限管理

---
 mobile/pages2/team/index/index.vue |  105 ++++++++++++++++++++++++++++++++++++----------------
 1 files changed, 72 insertions(+), 33 deletions(-)

diff --git a/mobile/pages2/team/index/index.vue b/mobile/pages2/team/index/index.vue
index 700e63d..f46036d 100644
--- a/mobile/pages2/team/index/index.vue
+++ b/mobile/pages2/team/index/index.vue
@@ -51,7 +51,8 @@
 					</view>
 				</view>
 				<view class="d-c-c pt30">
-					<button type="primary" class="btn-gcred flex-1" @click="gotoCash">{{ info_words.index.words.cash.value }}</button>
+					<button type="primary" class="btn-gcred flex-1"
+						@click="gotoCash">{{ info_words.index.words.cash.value }}</button>
 				</view>
 			</view>
 			<!--图标入口-->
@@ -64,7 +65,8 @@
 				</view>
 				<view class="d-c-c d-c flex-1" @click="gotoPage('pages2/team/order/order')">
 					<view>
-						<image class="team_index_img" src="../../../static/icon/icon-fenxiaodingdan.png" mode=""></image>
+						<image class="team_index_img" src="../../../static/icon/icon-fenxiaodingdan.png" mode="">
+						</image>
 					</view>
 					<text class="pt10 f26 mt20">{{ info_words.order.title.value }}</text>
 				</view>
@@ -86,16 +88,48 @@
 		<template v-if="!is_team && isData">
 			<view class="no-team">
 				<view class="mt50 p-0-20 pt30 red f34 tc">{{ info_words.index.words.not_team.value }}</view>
-				<view class="p30 f28" v-if="setting.become=='40'">您需要下级分销商人数达到<text class="orange">{{setting.totalfxs_down}}</text>人才能成为{{ info_words.index.words.team.value }},您当前的分销商人数为<text class="orange">{{agent_total}}</text>人,继续努力吧!</view>
-				<view class="p30 f28" v-if="setting.become=='50'">您需要累计分销佣金达到<text class="orange">{{setting.total_money}}</text>元才能成为{{ info_words.index.words.team.value }},您当前累计分销佣金为<text class="orange">{{agent_money}}</text>元,继续努力吧!</view>
+				<view class="p30 f28" v-if="setting.become=='40'">您需要下级分销商人数达到<text
+						class="orange">{{setting.totalfxs_down}}</text>人才能成为{{ info_words.index.words.team.value }},您当前的分销商人数为<text
+						class="orange">{{agent_total}}</text>人,继续努力吧!</view>
+				<view class="p30 f28" v-if="setting.become=='50'">您需要累计分销佣金达到<text
+						class="orange">{{setting.total_money}}</text>元才能成为{{ info_words.index.words.team.value }},您当前累计分销佣金为<text
+						class="orange">{{agent_money}}</text>元,继续努力吧!</view>
+				<view class="section-product" v-if="setting.become=='70'">
+					<view class="p30 f28">您需要推荐<text
+							class="orange">{{setting.totalsh_down}}</text>家商户入驻并且推荐指定会员等级达到<text class="orange"
+							v-for="(item, index ) in gradeList">{{(index>0?'或':'')+item.name}}</text>满<text
+							class="orange">{{setting.totalvip_down}}</text>人并且至少购买VIP专区商品<text
+							class="orange">{{setting.purchase_count}}</text>次或购买以下任意一款商品才能成为{{ info_words.index.words.team.value }}
+					</view>
+					<view @click="gotoProductDetail(item.product_id)" class="item"
+						:class="index==productList.length-1?'noborder':'border-b-e'"
+						v-for="(item, index) in productList" :key="index">
+						<image :src="item.product_image" class="cover" mode="aspectFit"></image>
+						<view class="info">
+							<view class="title">{{ item.product_name }}</view>
+							<view class="describe">{{ item.product_sku.product_attr }}</view>
+							<view class="level-box count_choose">
+								<view class="price">
+									¥
+									<text class="num">{{ item.product_sku.product_price }}</text>
+								</view>
+							</view>
+						</view>
+						<view class="icon-box pl20">
+							<text class="icon iconfont icon-jiantou f50"></text>
+						</view>
+					</view>
+				</view>
 				<view class="p30 mt30" v-if="setting.become=='10'">
-					<button type="primary" class="btn-gcred" @click="applyteam">{{ info_words.index.words.apply_now.value }}</button>
+					<button type="primary" class="btn-gcred"
+						@click="applyteam">{{ info_words.index.words.apply_now.value }}</button>
 				</view>
 				<view class="p30 mt30" v-else-if="setting.become=='40' || setting.become=='50'">
 					<button type="primary" class="btn-gcred" @click="gotoAgent">马上去招募人员</button>
 				</view>
 				<view class="p30">
-					<button type="primary" class="btn-gray" @click="gotoShop">{{ info_words.apply.words.goto_mall.value }}</button>
+					<button type="primary" class="btn-gray"
+						@click="gotoShop">{{ info_words.apply.words.goto_mall.value }}</button>
 				</view>
 			</view>
 		</template>
@@ -125,7 +159,9 @@
 				titel: '',
 				setting: {},
 				agent_total: 0,
-				agent_money: 0
+				agent_money: 0,
+				productList: [],
+				gradeList: []
 			};
 		},
 		onLoad(e) {
@@ -147,7 +183,8 @@
 				self._get('user.team/center', {}, function(data) {
 					self.info_words = data.data.words;
 					uni.setNavigationBarTitle({
-						title: self.info_words.index.title.value != '' ? self.info_words.index.title.value : self.info_words.index.title
+						title: self.info_words.index.title.value != '' ? self.info_words.index.title
+							.value : self.info_words.index.title
 							.default
 					});
 					self.titel = data.data.words.index.title.value
@@ -156,6 +193,8 @@
 					self.team = data.data.team;
 					self.user = data.data.user;
 					self.setting = data.data.setting;
+					self.productList = data.data.productList;
+					self.gradeList = data.data.gradeList;
 					self.agent_total = data.data.agent_total;
 					self.agent_money = data.data.agent_money;
 					self.isData = true;
@@ -171,9 +210,9 @@
 
 			/*去商城逛逛*/
 			gotoShop() {
-				this.gotoPage('pages2/index/index')
+				this.gotoPage('pages/index/index')
 			},
-			
+
 			/*去商城逛逛*/
 			gotoAgent() {
 				this.gotoPage('pages/agent/index/index')
@@ -183,7 +222,7 @@
 			gotoCash() {
 				this.gotoPage('pages2/team/cash/apply/apply');
 			},
-			
+
 			goback() {
 				uni.navigateBack();
 			},
@@ -243,7 +282,7 @@
 		line-height: 88rpx;
 		border-radius: 44rpx;
 	}
-	
+
 	.index-team .btn-gray {
 		height: 88rpx;
 		line-height: 88rpx;
@@ -284,7 +323,7 @@
 		width: 90rpx;
 		height: 90rpx;
 	}
-	
+
 	/* 商品列表样式 */
 	.section-product .item {
 		margin: 0 26rpx;
@@ -293,20 +332,20 @@
 		padding-bottom: 29rpx;
 		padding-top: 29rpx;
 	}
-	
+
 	.section-product .cover {
 		width: 150rpx;
 		height: 150rpx;
 		border-radius: 8px;
 	}
-	
+
 	.section-product .info {
 		flex: 1;
 		padding-left: 30rpx;
 		box-sizing: border-box;
 		overflow: hidden;
 	}
-	
+
 	.section-product .title {
 		width: 100%;
 		font-size: 26rpx;
@@ -315,14 +354,14 @@
 		-webkit-line-clamp: 2;
 		-webkit-box-orient: vertical;
 	}
-	
+
 	.vender .list .describe {
 		width: 100%;
 		white-space: nowrap;
 		overflow: hidden;
 		text-overflow: ellipsis;
 	}
-	
+
 	.section-product .describe {
 		margin-top: 20rpx;
 		font-size: 24rpx;
@@ -332,57 +371,57 @@
 		-webkit-line-clamp: 3;
 		overflow: hidden;
 	}
-	
+
 	.section-product .price {
 		color: #F6220C;
 		font-size: 24rpx;
 	}
-	
+
 	.section-product .price .num {
 		padding: 0 4rpx;
 		font-size: 32rpx;
 	}
-	
+
 	.section-product .level-box {
 		margin-top: 20rpx;
 		display: flex;
 		justify-content: space-between;
 		align-items: center;
 	}
-	
+
 	.section-product .level-box .key {
 		font-size: 24rpx;
 		color: #999999;
 	}
-	
+
 	.section-product .level-box .num-wrap {
 		display: flex;
 		justify-content: flex-end;
 		align-items: center;
 	}
-	
+
 	.section-product .level-box .icon-box {
 		width: 33rpx;
 		height: 33rpx;
 		border: 1px solid #c5c5c5;
 		background: #f2f2f2;
 	}
-	
+
 	.section-product .level-box .icon-box .gray {
 		color: #cccccc;
 	}
-	
+
 	.section-product .level-box .icon-box .gray3 {
 		color: #333333;
 	}
-	
+
 	.section-product .level-box .text-wrap {
 		margin: 0 20rpx;
 		height: 33rpx;
 		border: none;
 		background: none;
 	}
-	
+
 	.section-product .level-box .text-wrap input {
 		padding: 0 4rpx;
 		height: 33rpx;
@@ -394,22 +433,22 @@
 		align-items: center;
 		min-height: 33rpx;
 	}
-	
+
 	.section-product .icon-jiantou {
 		color: #999;
 	}
-	
+
 	.user-info .photo,
 	.user-info .photo image {
 		width: 50rpx;
 		height: 50rpx;
 		border-radius: 50%;
 	}
-	
+
 	.user-info .photo {
 		padding-right: 10rpx;
 	}
-	
+
 	.user-info .grade {
 		display: block;
 		padding: 6rpx 20rpx;
@@ -421,4 +460,4 @@
 		color: #ffffff;
 		font-family: PingFang SC;
 	}
-</style>
+</style>
\ No newline at end of file

--
Gitblit v1.9.2