rank.wxml
3.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<view class="page">
<view class="app__bgc bgc"></view>
<view class="app__bg bg"></view>
<view class="decoration">
<image class="d1" src="../../image/oss/rank/rank-d1.png" mode="widthFix" />
<image class="d2" src="../../image/oss/rank/rank-d2.png" mode="widthFix" />
</view>
<view class="app__content main">
<view class="top-space"></view>
<view class="content">
<view class="banner">
<image class="ebg" mode="widthFix" src="../../image/oss/rank/rank-c1.png" />
<view class="space1"></view>
<!-- 上方排行榜 -->
<view class="bang">
<!-- 亚军 -->
<view class="bang-item">
<view class="display">
<view class="border border2">
<view class="inner inner2">
<image class="portrait" mode="widthFix" src="{{rank[1].avatar}}" />
</view>
<view class="no no2 ">NO.2</view>
</view>
</view>
<view class="nickname">{{rank[1].nickname}}</view>
<view class="val">弹力值: {{rank[1].elasticValue}}</view>
</view>
<!-- 冠军 -->
<view class="bang-item">
<view class="display">
<view class="border">
<view class="inner">
<image class="portrait" mode="widthFix" src="{{rank[0].avatar}}" />
</view>
<view class="no">NO.1</view>
</view>
</view>
<view class="nickname">{{rank[0].nickname}}</view>
<view class="val">弹力值: {{rank[0].elasticValue}}</view>
</view>
<!-- 季军 -->
<view class="bang-item">
<view class="display">
<view class="border border3">
<view class="inner inner2">
<image class="portrait" mode="widthFix" src="{{rank[2].avatar}}" />
</view>
<view class="no no2 no3">NO.3</view>
</view>
</view>
<view class="nickname">{{rank[2].nickname}}</view>
<view class="val">弹力值: {{rank[2].elasticValue}}</view>
</view>
</view>
</view>
<!-- 下方排行榜 -->
<view wx:if="{{downRank.length > 2}}" class="rank">
<view wx:for="{{downRank}}" wx:key="{{index}}" class="rank-item {{downRank.length-1 == index?'last':''}}">
<view class="no">NO.{{item.no}}</view>
<view class="portrait">
<image mode="widthFix" src="{{item.avatar}}" />
</view>
<view class="nickname">{{item.nickname}}</view>
<view class="val">{{item.elasticValue}}</view>
</view>
</view>
<view wx:else class="rank">
<view class="empty">
<!-- <image class="logo" src="../../image/logo.png" mode="aspectFit" /> -->
<view class="tips">
<text >活动火热进行中\n排名信息正在努力整理·····</text>
</view>
</view>
</view>
</view>
</view>
</view>