team.html
3.11 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>我的团队-{$tpshop_config['shop_info_store_title']}</title>
<include file="public/header" />
<style>
.nav li span{
overflow: hidden;text-overflow: ellipsis;white-space: nowrap;
max-width: 80%;
}
</style>
</head>
<body>
<div class="dis_order">
<ul class="nav">
<li ><a href="{:U('Distribut/team',array('stoid'=>I('stoid'),'level'=>1))}"><span <if condition="$Think.request.level eq 1 || $Think.request.level eq ''">class="on"</if>>{$lev1}</span></a></li>
<li class="cut"><a href="{:U('Distribut/team',array('stoid'=>I('stoid'),'level'=>2))}"><span <if condition="$Think.request.level eq 2">class="on"</if>>{$lev2}</span></a></li>
<li class="cut"><a href="{:U('Distribut/team',array('stoid'=>I('stoid'),'level'=>3))}"><span <if condition="$Think.request.level eq 3">class="on"</if>>{$lev3}</span></a></li>
</ul>
<ul class="teamlist">
<foreach name="lists" item="v">
<li>
<div class="left">
<div class="imgbox">
<img src="{$v['head_pic']}" style="border-radius: 50%"/>
</div>
<div class="info">
<p>{$v['nickname']}</p>
<p class="d_time">{:date('Y-m-d',$v[reg_time])}</p>
</div>
</div>
<div class="right">
<span class="cr">¥{$v['distribut_money']}</span>
<!--<img src="__STATIC__/images/distribut/left.png" style="width: 11px;height: 20px;"></img>-->
</div>
</li>
</foreach>
</ul>
<if condition="empty($lists)">
<div class="comment_con p">
<div style="padding:1rem;text-align: center;font-size: .59733rem;color: #777777;"><img src="__STATIC__/images/none.png"/><br /><br />亲,您还没有自己的团队!</div>
</div>
</if>
<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>
</div>
<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=team&level={$Request.get.level}&is_ajax=1&p="+page+"&stoid="+stoid,//+tab,
success: function(data)
{
$('.get_more').hide();
if ($.trim(data) === '') {
$('#getmore a').hide();
} else {
$('#getmore').show();
$(".teamlist").append(data);
}
}
});
}
</script>
</html>