jianbuzou_v2/pages/rank/index.wxml

85 lines
3.8 KiB
Plaintext
Raw Normal View History

2025-07-10 16:27:08 +08:00
<view class="main">
<!-- <image class="backImage" src="/images/rankingBack.png" mode=""></image> -->
<!-- 排行标签页切换 -->
<view class='topTabSwiper'>
<view class='tab {{currentData == 0 ? "tabBorer" : ""}}' data-current = "0" bindtap='checkCurrent'>总排行</view>
<view class='tab {{currentData == 1 ? "tabBorer" : ""}}' data-current = "1" bindtap='checkCurrent'>今日排行</view>
</view>
<view class="threetop">
<!-- 前三名-->
<view class="topThreeInfo">
<view class="second">
<view class="topImages">
<image class="topBase" src="https://minipro.luochunlvshi.com/uploads/image/1/second.png"></image>
<image class="topImg" src="{{dataList[1].avatarUrl ? dataList[1].avatarUrl : '../../images/default-avatar.jpg'}}"></image>
</view>
<view class="topInfo">
<view>{{dataList[1].realname ? dataList[1].realname : ''}}</view>
<view>{{dataList[1].step_total ? dataList[1].step_total : 0}}</view>
</view>
</view>
<view class="first">
<view class="topImages_f">
<image class="topBase_f" src="https://minipro.luochunlvshi.com/uploads/image/1/first.png"></image>
<image class="topImg_f" src="{{dataList[0].avatarUrl ? dataList[0].avatarUrl : '../../images/default-avatar.jpg'}}"></image>
</view>
<view class="topInfo_f">
<view>{{dataList[0].realname ? dataList[0].realname : ''}}</view>
<view>{{dataList[0].step_total ? dataList[0].step_total : 0}}</view>
</view>
</view>
<view class="third">
<view class="topImages">
<image class="topBase" src="https://minipro.luochunlvshi.com/uploads/image/1/third.png"></image>
<image class="topImg" src="{{dataList[2].avatarUrl ? dataList[2].avatarUrl : '../../images/default-avatar.jpg'}}"></image>
</view>
<view class="topInfo">
<view>{{dataList[2].realname ? dataList[2].realname : ''}}</view>
<view>{{dataList[2].step_total ? dataList[2].step_total : 0}}</view>
</view>
</view>
</view>
<view class="topThree">
<image class="topThreeBase" src="https://minipro.luochunlvshi.com/uploads/image/1/topThree.png"></image>
</view>
</view>
<!-- {{datalistTwo}} -->
<!-- <view class="top" wx:if="{{rank.count > 0}}">我的排名:{{rank.rank}} 名 (共{{rank.count}}人)</view> -->
<!-- <view class="mingci" wx:if="{{index + 1 == 1}}"><image src="../../images/1.png"></image></view>
<view class="mingci" wx:elif="{{index + 1 == 2}}"><image src="../../images/2.png"></image></view>
<view class="mingci" wx:elif="{{index + 1 == 3}}"><image src="../../images/3.png"></image></view>
<view class="mingci" wx:else>{{index + 1}}</view> -->
<view class="rankList">
<scroll-view scroll-y="{{true}}">
<view class='swiper_con'>
<view class="rank_list">
<view class="item i-flex i-flex-spb i-flex-alc" wx:for="{{datalistTwo}}" wx:key="id" wx:if="{{datalistTwo.length }}">
<view class="left i-flex i-flex-alc">
<view class="mingci" >{{index + 4}}</view>
<image src="{{item.avatarUrl ? item.avatarUrl : '../../images/default-avatar.jpg'}}" class="avatar"></image>
<view class="i-flex-col text-left">
<text class="username">{{item.realname}}</text>
<text class="singDays">累计{{item.singDays}}天</text>
</view>
</view>
<view class="step">{{item.step_total}}步</view>
</view>
<view wx:if="{{ noMore }}" class="no-more f-30">我也是有底线的~~</view>
<!-- 无数据提供的页面 -->
<view wx:if="{{ !isLoading && !dataList.length }}">
<view class="yoshop-notcont">
<text class="iconfont icon-ziyuan"></text>
<text class="cont">暂时没有数据!</text>
</view>
</view>
</view>
</view>
</scroll-view>
</view>
</view>