347617796@qq.com 3 years ago
parent
commit
1929cc9249

+ 2 - 2
pages/statistics/C_ranking/C_ranking.axml

@@ -14,7 +14,7 @@
   <view class="fontColorF" style="font-size:28rpx;padding:10rpx 28rpx;">排名不包含初始分和工龄分</view>
   <view class="main scroll">
     <scroll-view class="scroll" scroll-y="{{true}}" a:if="{{list.length>0}}" onScrollToLower="onScrollToLower">
-      <view a:for="{{list}}" data-item="{{item}}" class="flex-box flex-v-ce item border-bottom">
+      <view a:for="{{list}}" a:key="{{item.id}}" data-item="{{item}}" class="flex-box flex-v-ce item border-bottom">
         <view a:if="{{item.rank==1}}" class="index">
           <image mode="scaleToFill" src="../../../image/1.png"></image>
         </view>
@@ -26,7 +26,7 @@
         </view>
         <view a:else class="index">{{item.rank}}</view>
         <view class="flex-1 flex-box flex-v-ce">
-          <img-box name="{{item.name}}" imgUrl="{{item.img_url}}" height="80rpx" width="80rpx" fSize="24rpx"></img-box>
+          <img-box  name="{{item.name}}" a:if="{{item.id}}" imgUrl="{{item.img_url}}" height="80rpx" width="80rpx" fSize="24rpx"></img-box>
           <view class="name">{{item.name}}</view>
         </view>
         <view class="blue" style="margin-right:28rpx;">{{item.point}}</view>

+ 5 - 0
pages/statistics/C_ranking/C_ranking.js

@@ -149,6 +149,11 @@ Page({
     return quarter - 1
   },
   getData(is) {
+    if(that.data.page==1){
+      this.setData({
+        list: []
+      })
+    }
     var data = {
       date: that.data.month,
       page: that.data.page,