lhl 1 year ago
parent
commit
16c8fc20b3
2 changed files with 22 additions and 20 deletions
  1. 1 1
      pages/user/myteam.vue
  2. 21 19
      pages/user/teamph.vue

+ 1 - 1
pages/user/myteam.vue

@@ -18,7 +18,7 @@
 				<view>我的影响指数</view>
 			</view>
 			<view class="money-box flex" style="padding-top: 20rpx;" >
-				<view style="flex-grow: 1;" @click="navto('/pages/user/model/phb')">人气排行榜</view>
+				<view style="flex-grow: 1;" @click="navto('/pages/user/model/phb')"></view>
 				<view style="flex-grow: 1;text-align: right;padding-right: 20rpx;" @click="navto('/pages/user/teamph')">团队排行榜</view>
 			</view>
 		</view>

+ 21 - 19
pages/user/teamph.vue

@@ -12,81 +12,82 @@
 
 				<view class="ph-item flex">
 					<view class="item-logo yj-logo">
-						<image :src="navList[currentIndex].list[1].avatar" mode="" class="avt"></image>
+						<image :src="navList[currentIndex].list[1].avatar || ''" mode="" class="avt"></image>
 					</view>
 					<view class="item-name">
-						{{navList[currentIndex].list[1].nickname}}
+						{{navList[currentIndex].list[1].nickname || '暂无'}}
 					</view>
 					<view class="item-id">
-						ID: {{navList[currentIndex].list[1].uid}}
+						ID: {{navList[currentIndex].list[1].uid || '0'}}
 					</view>
 					<view class="item-tit">
 						团队数
 					</view>
 					<view class="item-val">
-						{{navList[currentIndex].list[1].count}}
+						{{navList[currentIndex].list[1].count || '0'}}
 					</view>
 				</view>
 				<view class="ph-item flex">
 					<view class="item-logo gj-logo">
-						<image :src="navList[currentIndex].list[0].avatar" mode="" class="avt"></image>
+						<image :src="navList[currentIndex].list[0].avatar || ''" mode="" class="avt"></image>
 					</view>
 					<view class="item-name">
-						{{navList[currentIndex].list[0].nickname}}
+						{{navList[currentIndex].list[0].nickname || '暂无'}}
 					</view>
 					<view class="item-id">
-						ID: {{navList[currentIndex].list[0].uid}}
+						ID: {{navList[currentIndex].list[0].uid || '0'}}
 					</view>
 					<view class="item-tit">
 						团队数
 					</view>
 					<view class="item-val">
-						{{navList[currentIndex].list[0].count}}
+						{{navList[currentIndex].list[0].count || '0'}}
 					</view>
 				</view>
 				<view class="ph-item flex">
 					<view class="item-logo jj-logo">
-						<image :src="navList[currentIndex].list[2].avatar" mode="" class="avt"></image>
+						<image :src="navList[currentIndex].list[2].avatar || ''" mode="" class="avt"></image>
 					</view>
 					<view class="item-name">
-						{{navList[currentIndex].list[2].nickname}}
+						{{navList[currentIndex].list[2].nickname || '暂无'}}
 					</view>
 					<view class="item-id">
-						ID: {{navList[currentIndex].list[2].uid}}
+						ID: {{navList[currentIndex].list[2].uid || '0'}}
 					</view>
 					<view class="item-tit">
 						团队数
 					</view>
 					<view class="item-val">
-						{{navList[currentIndex].list[2].count}}
+						{{navList[currentIndex].list[2].count || '0'}}
 					</view>
 				</view>
 			</view>
 			<image src="../../static/icon/yy.png" mode="" class="yy"></image>
 		</view>
-		<scroll-view scroll-y="true" class="grop-list" :style="{'height': max_height}">
-			<view class="grop-item flex" v-for="item in 10">
+		<scroll-view scroll-y="true" class="grop-list" :style="{'height': max_height}" @scrolltolower="getInviterRanking()">
+			<view class="grop-item flex" v-for="(item,index) in showList" v-if="index !=0 && index != 1 && index != 2">
 				<view class="item-xh">
-					4
+					{{index + 1}}
 				</view>
-				<image src="" mode="" class="item-logo"></image>
+				<image :src="item.avatar" mode="" class="item-logo"></image>
 				<view class="item-info">
 					<view class="info-name">
-						李淡淡
+						{{item.nickname}}
 					</view>
 					<view class="info-id">
-						ID: 09124
+						ID: {{item.uid}}
 					</view>
 				</view>
 				<view class="item-tg">
 					<view class="tg-val">
-						233
+						{{item.count}}
 					</view>
 					<view class="tg-tit">
 						团队数
 					</view>
 				</view>
 			</view>
+			<uni-load-more :status="navList[currentIndex].loadingType"></uni-load-more>
 		</scroll-view>
 	</view>
 </template>
@@ -390,6 +391,7 @@
 				font-weight: 500;
 				color: #FA2740;
 				margin-bottom: 10rpx;
+				text-align: center;
 			}
 		}