lower_list.html
2.51 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
<!DOCTYPE html >
<html>
<head>
<meta charset="UTF-8">
<title>我的分销商-{$tpshop_config['shop_info_store_title']}</title>
<include file="public/header"/><body>
<div id="tbh5v0">
<div class="user_com">
<include file="public/uer_topnav"/>
<div class="endorse_hend">
<p>{$tpshop_config['distribut_name']}:我发展的{$Request.param.level}级({$count})人</p>
</div>
<div class="Wallet">
<div class="endorse_dyr">
<form action="{:U('Distribut/lower_list',array('level'=>$Request.param.level))}" method="post" id="filter_form">
<input class="endor_text" type="text" name="q" />
<input class="endor_but" type="button" onClick="ajax_search();" value="搜索"/>
</form>
</div>
<div class="endorse_dyr bg_gray" id="ajax_return">
<foreach name="list" item="v" >
<div class="endorse_num">
<div class="hend_endor">
<img src="{$v['head_pic']|default="__STATIC__/images/hend_none.png"}" width="60" height="60" />
</div>
<div class="sec_endor">
<p>昵称:<span>{$v['nickname']}</span></p>
<p>手机:<span>{$v['mobile']|default="--"}</span></p>
<p>加盟时间:<span>{$v['reg_time']|date="Y-m-d",###}</span></p>
<p>会员ID:<span>{$v['user_id']}</span></p>
</div>
</div>
</foreach>
<empty name="list">
<div id="list_0_0" class="font12">您现在还没数据!</div>
</empty>
</div>
<notempty name="list">
<p style="text-align: center;" id="getmore"><a href="javascript:void(0)" onClick="ajax_sourch_submit()">点击加载更多</a></p>
</notempty>
</div>
</div>
<include file="public/footer"/>
</div>
<include file="public/footer_nav"/>
</body>
<script>
var page = 1;
/*** ajax 提交表单 查询订单列表结果*/
function ajax_sourch_submit()
{
page += 1;
$.ajax({
type : "POST",
url:"/index.php?m=Mobile&c=Distribut&a=lower_list&stoid={$Request.param.stoid}&level={$Request.param.level}&is_ajax=1&p="+page,//+tab,
data : $('#filter_form').serialize(),// 你的formid 搜索表单 序列化提交
success: function(data)
{
if($.trim(data) == '')
$('#getmore').hide();
else{
$('#getmore').show();
$("#ajax_return").append(data);
}
}
});
}
/*点击搜索按钮*/
function ajax_search(){
page = 0;
$('#ajax_return').html('');
ajax_sourch_submit();
}
</script>
</html>