ranking_list.html
4.42 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>排行榜-{$tpshop_config['shop_info_store_title']}</title>
<include file="public/header" />
<body>
<div class="ranking">
<div class="ranking_top">
<span class="tit">
<p class="f40">排行榜</p>
<if condition="$Request.param.sort eq '0' or $Request.param.sort eq '' ">
<if condition="$place neq 1">
<p>距离前一名还需¥<span>{$need}</span></p>
<else/>
<p>您已经排行第一了</p>
</if>
<else/>
<if condition="$place neq 1">
<p>距离前一名还需<span>{$need}</span>人</p>
<else/>
<p>您已经排行第一了</p>
</if>
</if>
</span>
<img src="__STATIC__/images/distribut/ph.png" />
<p class="clear"></p>
</div>
<div class="ranking_title">
<a href="{:U('Distribut/ranking_list',array('stoid'=>I('stoid/d'),'sort'=>0));}">
<div class="commission <if condition='$Think.request.sort eq 0'>tab_on</if>">
佣金排行
<div></div>
</div>
</a>
<a href="{:U('Distribut/ranking_list',array('stoid'=>I('stoid/d'),'sort'=>1));}">
<div class="offline <if condition='$Think.request.sort eq 1'>tab_on</if>">
下线排行
<div></div>
</div>
</a>
</div>
<div>
<a class="my_ranking" href="{:U('Distribut/team',array('stoid'=>I('stoid/d')));}">
<span class="rank_top">{$place}</span>
<span class="rank_img">
<img src="{$user['head_pic']}" style=" border-radius: 50%" />
<span class="dis_vm"></span>
</span>
<span class="rank_text">
<p>{$user[nickname]}</p>
<if condition="$Request.param.sort neq '1'">
<span class="t_t">获得佣金:<em>¥{$user[distribut_money]}</em></span>
<else/>
<span class="t_t">下线人数:<em>{$linenum}</em>人</span>
</if>
</span>
</a>
<ul class="ranking_list">
<foreach name="lists" item="v" key="k">
<li>
<span class="rank_top">
<switch name="$k">
<case value="0"><img src="/template/mobile/new/static/images/distribut/first.png"></case>
<case value="1"><img src="/template/mobile/new/static/images/distribut/second.png"></case>
<case value="2"><img src="/template/mobile/new/static/images/distribut/third.png"></case>
<default />{$k+1}
</switch>
</span>
<span class="rank_img">
<img src="{$v['head_pic']}" style=" border-radius: 50%" />
<span class="dis_vm"></span>
</span>
<span class="rank_text">
<p>{$v['nickname']}</p>
<if condition="$Request.param.sort neq '1'">
<p class="com_price">获得佣金:<span>¥{$v['distribut_money']}</span></p>
<else/>
<p class="com_price">下线人数:<span>{$v['underling_number']}人</span></p>
</if>
</span>
</li>
</foreach>
</ul>
</div>
</div>
<div style="clear:both">
<a href="javascript:;" class="get_more" style="text-align:center; display:none;padding:10px 0">
<img src='__STATIC__/images/category/loader.gif' width="12" height="12"> </a>
</div>
<eq name="mshow" value="1">
<div id="getmore" style="font-size:.24rem;text-align: center;color:#888;padding:.25rem .24rem .4rem; clear:both">
<a href="javascript:void(0)" onClick="ajax_sourch_submit()"
style=" color: #000000;font-size: 14px;text-decoration: none;">点击加载更多</a>
</div>
</eq>
<include file="public/footer_nav" />
</body>
<script>
var page = 1;
var lastpage = 1;
var stoid="{:I('stoid/d')}";
/*** ajax 提交表单 查询订单列表结果*/
// ajax 提交购物车
function ajax_sourch_submit()
{
$('.get_more').show();
$('#getmore').hide();
page += 1;
$.ajax({
type : "GET",
url:"/index.php?m=Mobile&c=Distribut&a=ranking_list&sort={$Think.request.sort}&is_ajax=1&p="+page+"&stoid="+stoid,//+tab,
success: function(data)
{
$('.get_more').hide();
if ($.trim(data) === '') {
$('#getmore a').hide();
} else {
$('#getmore').show();
$(".ranking_list").append(data);
}
}
});
}
</script>
</html>