Ver código fonte

fix:排行榜清空时间段后列表显示bug修改

zhanghui 1 ano atrás
pai
commit
cbb0c859d5

+ 2 - 2
pages/spreadRankingList/module/mescrollUni-item.vue

@@ -12,8 +12,8 @@
 <!--        <text>姓名</text>-->
 <!--        <text>人数</text>-->
 <!--      </view>-->
-        <view class="flex-col list" v-for="(item,index) in list">
-            <view class="flex-row justify-between listItem" style="font-size: 28rpx;color: #999999;margin:10rpx 20rpx ;padding: 20rpx 0;border-bottom: 2rpx solid #f7f7f7;">
+        <view class="flex-col list" >
+            <view class="flex-row justify-between listItem" v-for="(item,index) in list">
                 <text>{{ index + 1 }}</text>
                 <text>{{ item.expandUserName }}</text>
                 <text>{{ item.total }}</text>

+ 2 - 2
pages/spreadRankingList/spreadRankingList.vue

@@ -8,7 +8,7 @@
     <view class="example-body">
       <uni-datetime-picker v-model="range" type="daterange" @change="maskClick"/>
     </view>
-    <view :style="{height:height}">
+    <view>
       <mescroll-item ref="MescrollItem" :i="0" :index="0" :startDate='startDate' :endDate='endDate' :height="height">
       </mescroll-item>
     </view>
@@ -39,7 +39,7 @@ export default {
   onLoad(e) {
     this.getRanking()
     let sysInfo = uni.getSystemInfoSync()
-    this.height = sysInfo.windowHeight - 50 + 'px' //除标题栏栏外的屏幕可用高度
+    this.height = sysInfo.windowHeight - 90 + 'px' //除标题栏栏外的屏幕可用高度
   },
   methods: {
     getRanking(date) {