detailed_sear.html
3.69 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
137
138
139
140
141
142
<!DOCTYPE html >
<html>
<head>
<meta charset="UTF-8">
<title>积分明细_{$tpshop_config.shop_info_store_title}</title>
<style type="text/css">
.fundsQuery input{
-webkit-appearance:none;
height: 20px;
line-height: 20px;
}
.loadBtns {
font-size: 14px;
text-align: center;
color: #888;
padding: 10px 0;
}
.dateclass{
color: #999999;
font-size: 12px;
line-height: 15px;
}
</style>
<include file="public/header" /><body>
<!--<header>
<div class="tab_nav">
<div class="header">
<div class="h-left"><a class="sb-back" href="javascript:history.back(-1)" title="返回"></a></div>
<!--修改 20170320
<div class="h-mid"><!--资金管理流动资金明细</div>
<div class="h-right">
<aside class="top_bar">
<div onClick="show_menu();$('#close_btn').addClass('hid');" id="show_more"><a href="javascript:;"></a> </div>
</aside>
</div>
</div>
</div>
</header>-->
<include file="public/menu" />
<include file="public/navBall" />
<div class="funds">
<form id="searform" type="post">
<div class="fundsQuery">
<span>日期:</span>
<input type="date" placeholder="请选择开始时间" name="start" value="{$Think.request.start}"/>
<span class="mr10 ml10">至</span>
<input type="date" placeholder="请选择结束时间" name="end" value="{$Think.request.end}"/>
<div class="mt20">
<span>查询内容</span>
<!--积分明细-->
<select name="type" value="{$Think.request.type}" style="width: 25%;">
<option value="" <eq name="$Think.request.type" value="">selected</eq>>全部</option>
<option value="1" <eq name="$Think.request.type" value="1">selected</eq>>收入</option>
<option value="2" <eq name="$Think.request.type" value="2">selected</eq>>支出</option>
</select>
</div>
<div class="sub-btn" onClick="sear()">查询明细</div>
<p>注:读取时段内近10笔记录</p>
</div>
</form>
<!--积分明细-->
<div class="content">
<div class="fundsTit">
<span>项目</span>
<span style="text-align: right;">积分</span>
</div>
<ul id="listdata">
<foreach name="intlist" item="v">
<li>
<span class="left">
{$v['Remark']}
<div id="da{$k}" class="dateclass">{$v.BillDate}</div>
</span>
<if condition="$v['InOutInt'] gt 0">
<span class="right r_color" style="color: green">+{$v['InOutInt']}积分</span>
<else/>
<span class="right r_color">{$v['InOutInt']}积分</span>
</if>
<p class="clear"></p>
</li>
</foreach>
</ul>
</div>
<if condition="$intlist neq null">
<div class="loadBtn" onclick="ajax_sourch_submit()">加载更多</div>
</if>
</div>
<if condition="$intlist eq null">
<div class="loadBtns">没有数据</div>
</if>
<script>
$(function () {
layer.closeAll();
});
var page = 1;
/*** ajax 提交表单 查询订单列表结果*/
function ajax_sourch_submit() {
page += 1;
$.ajax({
type: "GET",
url: "/index.php?m=Mobile&c=User&a=ajax_detailed_sear&is_ajax=1&stoid={$stoid}&p=" + page, //+tab,
success: function(data) {
if($.trim(data) == ''){
$('#getmore').hide();
$(".loadBtn").hide();
}
else{
$("#listdata").append(data);
$(".loadBtn").show();
$(".loadBtns").hide();}
}
});
};
function sear() {
setTimeout(function () {
$("#searform").submit();
},200);
setTimeout(function () {
},800);
}
</script>
<script type="text/javascript">
function goTop() {
$('html,body').animate({
'scrollTop': 0
}, 600);
}
</script>
</body>
</html>