12345678910111213141516171819202122232425262728 |
- <view class="container">
- <view class="tab">
- <view class="tab_cell {{tabIndex === 0 ? 'active' : ''}}" bindtap="tabChange" data-index="0">周榜</view>
- <view class="tab_cell {{tabIndex === 1 ? 'active' : ''}}" bindtap="tabChange" data-index="1">月榜</view>
- <view class="tab_cell {{tabIndex === 2 ? 'active' : ''}}" bindtap="tabChange" data-index="2">总榜</view>
- </view>
- <view class="rank_content">
- <view class="rank_my">
- <image src="/image/paihang.png"></image>
- 我当前排名
- <text>{{result[tabIndex].ranking}}</text>
- </view>
- <view class="rank_item" wx:for="{{result[tabIndex].list}}" wx:key="`rankItem${item.id}`">
- <label class="rank_order">{{item.index}}</label>
- <image class="rank_avatar" src="{{item.avatar || '/image/img_avatar_default.png'}}"></image>
- <view class="rank_info">
- <text class="rank_nickname">{{item.nickname}}</text>
- <text class="rank_text">邀请了{{item.reg_cnt}}位好友</text>
- </view>
- <text class="rank_price" wx:if="{{mpType === 'gd'}}">{{item.share_total_integral}}金币</text>
- <!-- <text class="rank_price" wx:if="{{mpType === 'gd'}}">{{item.share_total}}元</text> -->
- <text class="rank_price" wx:elif="{{mpType === 'rp'}}">¥{{item.share_total}}</text>
- </view>
- </view>
-
- <no-more wx:if="{{99 <= (params[tabIndex].page - 1) * params[tabIndex].offset}}"/>
- </view>
|