he2802 4 anni fa
parent
commit
9c4dd58a1f
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      pages2/wd/ranking.vue

+ 4 - 1
pages2/wd/ranking.vue

@@ -19,11 +19,14 @@
 					</view>
 				</view>
 				<view v-if="current == 1" class="right_mc" style="display: flex;justify-content: center;flex: 1;">
-					<view class="fie" style="display: flex;align-items: center;font-size: 28rpx;color: #0183fe;font-weight: 500;">
+					<view class="fie" v-if="info2.rank > 0" style="display: flex;align-items: center;font-size: 28rpx;color: #0183fe;font-weight: 500;">
 						<span>第{{ info2.rank }}名</span>
 						<view class="ics" style="margin: 0rpx 17rpx;width: 1rpx;height: 26rpx;background-color: #d9edff;border-radius: 1rpx;"></view>
 						<span>{{info2.hourse === null ? '0' : info2.hourse }}h</span>
 					</view>
+					<view v-else style="display: flex;align-items: center;font-size: 28rpx;color: #0183fe;font-weight: 500;">
+						暂未上榜
+					</view>
 				</view>
 
 				<!-- <u-row gutter="16" justify="center">