forked from doterlin/vue_ajax_list_example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (60 loc) · 3.16 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<meta content="email=no" name="format-detection">
<title>rank</title>
<link rel="stylesheet" href="./css/style.css">
<script type="text/javascript" src="./js/vue.min.js"></script>
</head>
<body>
<!-- container -->
<div class="container" id="toggle">
<div class="tab">
<a href="javascript:;" v-for="item in tabBtns" class="tab-btn{{item.onClass}}" style="" v-on:click="toggleList">{{ item.text }}</a>
<div class="line" id='tab-line' v-bind:style="{left:lineLeft+'%'}"></div>
</div>
<!-- rank weekly -->
<ul class="ranks ranks-week" v-show="ranksWeekShow" transition="fade">
<li v-for="item in ranksWeek" class="rank rank-{{ $index+1 }}">
<!-- 前三名显示皇冠 -->
<div class="left"><i v-if="$index<3" class="icons icon_{{ $index+1 }}">1</i><span v-else>{{ $index+1 }}</span></div>
<div class="center">
<div class="portrait"><img class="por-img" width="41" height="41" v-bind:src="'http://protrait.api.itsme.media/scaleimage.php?w=82&h=82&url='+item.uinfo.portrait"></div>
<div class="name">{{ item.uinfo.nick }}</div>
<div class="sex"><i class="icons icon_{{ item.uinfo.gender == 0? 'girl':'boy' }}"></i></div>
<level :ulevel="item.uinfo.ulevel"></level>
</div>
<div class="right"><span class="num">{{ item.fans }}</span>
<div class="icons icon_fans"></div>
</div>
</li>
</ul>
<!--/ rank weekly -->
<!-- rank total -->
<ul class="ranks ranks-total" v-show="!ranksWeekShow" transition="fade">
<li v-for="item in ranksAll" class="rank rank-{{ $index+1 }}">
<!-- 前三名显示皇冠 -->
<div class="left"><i v-if="$index<3" class="icons icon_{{ $index+1 }}">1</i><span v-else>{{ $index+1 }}</span></div>
<div class="center">
<div class="portrait"><img class="por-img" width="41" height="41" v-bind:src="'http://protrait.api.itsme.media/scaleimage.php?w=82&h=82&url='+item.uinfo.portrait"></div>
<div class="name">{{ item.uinfo.nick }}</div>
<div class="sex"><i class="icons icon_{{ item.uinfo.gender == 0? 'girl':'boy' }}"></i></div>
<level :ulevel="item.uinfo.ulevel"></level>
</div>
<div class="right"><span class="num">{{ item.fans }}</span>
<div class="icons icon_fans"></div>
</div>
</li>
</ul>
<!--/ rank total -->
</div>
<!--/ container -->
<script type="text/javascript" src="./js/zepto.min.js"></script>
<script type="text/javascript" src="./js/app.js?v2"></script>
</body>
</html>