-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebug_userscore.htm
142 lines (139 loc) · 4.84 KB
/
debug_userscore.htm
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>
<title>用户积分Api调试</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="jquery/jquery.min.js"></script>
<script src="My97DatePicker/WdatePicker.js"></script>
<script src="My97DatePicker/lang/zh-cn.js"></script>
<base target="_blank" />
</head>
<body>
<div class="container">
<div id="main">
<div class="col-md-12">
<fieldset>
<legend>修改积分</legend>
<dl>
<dt>请求地址:</dt>
<dd>api.php?model=userscore&action=change</dd>
<dt>参数(必填)</dt>
<dd>积分:Number</dd>
<dt>参数(选填)</dt>
<dd>类型:Type</dd>
<dd>备注:Mark</dd>
</dl>
<fieldset>
<form action="api.php?model=userscore&action=change" method="post">
<legend>测试</legend>
<ul>
<li><input name="Number" type="number" placeholder="积分" /></li>
<li><input name="Type" type="number" placeholder="类型"/></li>
<li><textarea name="Mark" placeholder="备注"></textarea></li>
</ul>
<button type="submit">提交</button>
</form>
</fieldset>
</fieldset>
<fieldset>
<legend>积分抽奖</legend>
<dl>
<dt>请求地址:</dt>
<dd>api.php?model=userscore&action=random</dd>
<dt>必填参数</dt>
<dd>使用积分数:Number</dd>
</dl>
<fieldset>
<legend>测试</legend>
<form action="api.php?model=userscore&action=random" method="post">
<ul>
<li><input name="Number" placeholder="积分" /></li>
</ul>
<button type="submit">提交</button>
</form>
</fieldset>
</fieldset>
<fieldset>
<legend>积分查询</legend>
<dl>
<dt>请求地址:</dt>
<dd>api.php?model=userscore&action=query</dd>
<dt>分页参数:</dt>
<dd>
<ul>
<li>起始页:PageIndex</li>
<li>页码大小:PageSize</li>
<li>排序字段:PageSort</li>
<li>查询字段:PageItems
<ol>
<li>Id</li>
<li>User_Id</li>
<li>Type</li>
<li>Number</li>
<li>Mark</li>
<li>DateTimeCreate</li>
</ol>
</li>
</ul>
</dd>
<dt>过滤参数(必填)</dt>
<dd>用户编号:User_Id</dd>
<dt>过滤参数(可选)</dt>
<dd>积分变换类型:Type</dd>
<dd>积分变换:NumberMin - NumberMax</dd>
<dd>修改时间:DateTimeCreateMin - DateTimeCreateMax</dd>
</dl>
<form target="_blank" method="post" action="api.php?model=userscore&action=query">
<fieldset>
<legend>分页参数</legend>
<ul>
<li><label>PageIndex</label><input name="PageIndex" type="number" value="1" /></li>
<li><label>PageSize</label><input name="PageSize" type="number" value="20" /></li>
<li><label>PageSort</label><input name="PageSort" type="text" value="" placeholder="排序字段" /></li>
<li><label>PageItems</label><input name="PageItems" type="text" value="" placeholder="返回字段" /></li>
</ul>
</fieldset>
<fieldset>
<legend>过滤参数</legend>
<ul>
<li><input name="User_Id" type="text" class="form-control input-sm wd120" placeholder="用户编号" /></li>
<li>
<label>类型</label>
<select name="Type" class="form-control input-sm">
<option value="">全部</option>
<option value="0">系统</option>
<option value="1">活动</option>
</select>
</li>
<li>
积分
<input name="NumberMin" type="number" placeholder="积分" />
-
<input name="NumberMax" type="number" placeholder="积分" />
</li>
<li>
时间
<input id="DateTimeCreateMin" name="DateTimeCreateMin" class="Wdate" placeholder="修改时间" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',maxDate:'#F{$dp.$D(\'DateTimeCreateMax\')}'});" />
-
<input id="DateTimeCreateMax" name="DateTimeCreateMax" class="Wdate" placeholder="修改时间" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'DateTimeCreateMin\')}'});" />
</li>
<li>
<label>状态</label>
<select name="Status" class="form-control input-sm" placeholder="状态">
<option value="">全部</option>
<option value="">启用</option>
<option value="0">禁用</option>
</select>
</li>
</ul>
</fieldset>
<button type="submit">查询</button>
</form>
</fieldset>
</div>
</div>
</div>
</body>
</html>