59 lines
3.4 KiB
Plaintext
59 lines
3.4 KiB
Plaintext
<!--subpackage/team/rank/rank.wxml-->
|
|
<view class="page-content pad">
|
|
<mp-bar background="linear-gradient(190deg, #49a5fc 0%, #f7f7f7 800rpx, #f7f7f7 100%)" title="排行" color="#fff"></mp-bar>
|
|
|
|
<view class="san">
|
|
<view class="one">
|
|
<image src="{{threeList.length >= 1 ? threeList[0].headImageUrl :'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/room/avater.png'}}" class="avater-1" />
|
|
<image src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/team/rank-1.png" class="img-1" />
|
|
<view class="name">{{threeList.length >= 1 ? threeList[0].nickName :'暂无'}}</view>
|
|
<view class="score">{{threeList.length >= 1 ? threeList[0].amount :'--'}}</view>
|
|
<view class="unit">{{threeList.length >= 1 ? threeList[0].duration +'s' :'--'}}</view>
|
|
</view>
|
|
|
|
<view class="two">
|
|
<image src="{{threeList.length >= 2 ? threeList[1].headImageUrl :'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/room/avater.png'}}" class="avater-3 avater-2" />
|
|
<image src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/team/rank-2.png" class="img-3" />
|
|
<view class="name">{{threeList.length >= 2 ? threeList[1].nickName :'暂无'}}</view>
|
|
<view class="score">{{threeList.length >= 2 ? threeList[1].amount :'--'}}</view>
|
|
<view class="unit">{{threeList.length >= 2 ? threeList[1].duration +'s' :'--'}}</view>
|
|
</view>
|
|
|
|
<view class="three">
|
|
<image src="{{threeList.length >= 3 ? threeList[2].headImageUrl :'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/room/avater.png'}}" class="avater-3" />
|
|
<image src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/team/rank-3.png" class="img-3" />
|
|
<view class="name">{{threeList.length >= 3 ? threeList[2].nickName :'暂无'}}</view>
|
|
<view class="score">{{threeList.length >= 3 ? threeList[2].amount :'--'}}</view>
|
|
<view class="unit">{{threeList.length >= 3 ? threeList[2].duration +'s' :'--'}}</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
<view class="ever" wx:for="{{otherList}}" wx:key="index">
|
|
<view class="index">{{item.ranking}}</view>
|
|
<image src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/room/avater.png" class="ava" />
|
|
<view class="ever-box">{{item.nickName||'会员'}}</view>
|
|
<view class="ever-box">
|
|
<image src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/team/Sports_rope-skipping.png" mode="" />
|
|
{{item.amount}}
|
|
</view>
|
|
<view class="ever-box">
|
|
<image src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/team/Time_stopwatch.png" mode="" />
|
|
{{item.duration}}s
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view class="bottom" style="height: {{currentRanking == 0 && status == 1 ? '320rpx' : '250rpx'}};">
|
|
<view class="btn" bind:tap="goSport" wx:if="{{currentRanking == 0 && status == 1}}">去运动</view>
|
|
<view class="my ever">
|
|
<image src="{{user.headImageUrl && user.headImageUrl != ''? user.headImageUrl : 'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/room/avater.png'}}" class="ava" />
|
|
<view class="ever-box">{{user.userTrueName || '会员'}}</view>
|
|
<view class="ever-box">
|
|
<text>当前排名:{{currentRanking == 0 ? '暂无排名':'第'+currentRanking+'名'}}</text>
|
|
<image src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/team/paihang.png" style="margin-left: 6rpx;" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view> |