|
@@ -23,7 +23,7 @@
|
|
<view class="rank-head">
|
|
<view class="rank-head">
|
|
<text class="rank-text">{{item.rank}}</text>
|
|
<text class="rank-text">{{item.rank}}</text>
|
|
<image src="{{item.users.headImgUrl}}" class="head-img"></image>
|
|
<image src="{{item.users.headImgUrl}}" class="head-img"></image>
|
|
- <text>{{item.users.wechatName}}</text>
|
|
|
|
|
|
+ <text style="width: 120px; overflow: hidden;">{{item.users.wechatName}}</text>
|
|
</view>
|
|
</view>
|
|
<text wx:if="{{myData.exp >= 0}}" class="medal-num">LV{{item.number}}({{item.exp}})</text>
|
|
<text wx:if="{{myData.exp >= 0}}" class="medal-num">LV{{item.number}}({{item.exp}})</text>
|
|
<text wx:else class="medal-num">{{item.number}}{{str}}</text>
|
|
<text wx:else class="medal-num">{{item.number}}{{str}}</text>
|
|
@@ -31,19 +31,19 @@
|
|
</view>
|
|
</view>
|
|
<view class="my-rank-list">
|
|
<view class="my-rank-list">
|
|
<view class="rank-head">
|
|
<view class="rank-head">
|
|
- <text wx:if="{{indexs == 1}}" class="rank-text">{{rankData.expRank}}</text>
|
|
|
|
- <text wx:elif="{{indexs == 2}}" class="rank-text">{{rankData.userQuestionRank}}</text>
|
|
|
|
- <text wx:elif="{{indexs == 3}}" class="rank-text">{{rankData.userQuestionCorrectRank}}</text>
|
|
|
|
- <text wx:else class="rank-text">{{rankData.userMetalRank}}</text>
|
|
|
|
|
|
+ <text wx:if="{{indexs == 1}}" class="rank-text">{{rankData.expRank == '0' ? '1000+' : rankData.expRank}}</text>
|
|
|
|
+ <text wx:elif="{{indexs == 2}}" class="rank-text">{{rankData.userQuestionRank == '0' ? '1000+' : rankData.userQuestionRank}}</text>
|
|
|
|
+ <text wx:elif="{{indexs == 3}}" class="rank-text">{{rankData.userQuestionCorrectRank == '0' ? '1000+' : rankData.userQuestionCorrectRank}}</text>
|
|
|
|
+ <text wx:else class="rank-text">{{rankData.userMetalRank == '0' ? '1000+' : rankData.userMetalRank}}</text>
|
|
<image src="{{rankData.users.headImgUrl}}" class="head-img"></image>
|
|
<image src="{{rankData.users.headImgUrl}}" class="head-img"></image>
|
|
- <text style="width: 215px; overflow: hidden;">{{rankData.users.wechatName}}</text>
|
|
|
|
|
|
+ <text style="width: 120px; overflow: hidden;">{{rankData.users.wechatName}}</text>
|
|
</view>
|
|
</view>
|
|
<!--判断显示个人排名-->
|
|
<!--判断显示个人排名-->
|
|
<view wx:if="{{indexs == 1}}">
|
|
<view wx:if="{{indexs == 1}}">
|
|
- <text class="medal-num" style="color: #5b82fa">LV{{rankData.level}}</text>
|
|
|
|
|
|
+ <text class="medal-num" style="color: #5b82fa">LV{{rankData.level}}({{rankData.exp}})</text>
|
|
</view>
|
|
</view>
|
|
<view wx:elif="{{indexs == 2}}">
|
|
<view wx:elif="{{indexs == 2}}">
|
|
- <text class="medal-num" style="color: #5b82fa">{{rankData.userQuestionNum}}道</text>
|
|
|
|
|
|
+ <text class="medal-num" style="color: #5b82fa">{{rankData.userQuestionNum}}题</text>
|
|
</view>
|
|
</view>
|
|
<view wx:elif="{{indexs == 3}}">
|
|
<view wx:elif="{{indexs == 3}}">
|
|
<text class="medal-num" style="color: #5b82fa">{{rankData.userQuestionAccuracy}}%</text>
|
|
<text class="medal-num" style="color: #5b82fa">{{rankData.userQuestionAccuracy}}%</text>
|
|
@@ -52,7 +52,7 @@
|
|
<text class="medal-num" style="color: #5b82fa">{{rankData.userMetalNum}}枚</text>
|
|
<text class="medal-num" style="color: #5b82fa">{{rankData.userMetalNum}}枚</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="particular" bindtap="more" data-flag="{{flag}}" wx:if="{{height}}">
|
|
|
|
|
|
+ <view class="particular" bindtap="more" data-flag="{{flag}}" wx:if="{{height && flag}}">
|
|
查看更多
|
|
查看更多
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|