Skip to content
切换导航面板
项目
群组
代码片段
帮助
zhangtai
/
zzhnc
当前项目
正在载入...
登录
切换导航面板
转到一个项目
项目
版本库
问题
0
合并请求
0
流水线
维基
设置
活动
图像
图表
创建新的问题
作业
提交
问题看板
文件
提交
分支
标签
贡献者
图像
比较
图表
Commit 41dddac9
由
沈姿.前端(已离职)
编写于
Jan 15, 2018
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
报表20个一页,抽奖状态更改
1 个父辈
efbe5f9f
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
29 行增加
和
12 行删除
WebContent/WEB-INF/jsp/pc/activity/activityList.jsp
WebContent/WEB-INF/jsp/pc/prize/prizeList.jsp
WebContent/WEB-INF/jsp/pc/report/fans.jsp
WebContent/WEB-INF/jsp/pc/report/goods.jsp
WebContent/WEB-INF/jsp/pc/report/prize.jsp
WebContent/WEB-INF/jsp/pc/activity/activityList.jsp
查看文件 @
41dddac
...
...
@@ -55,7 +55,7 @@
var
queryObj
=
{
page
:
1
,
pagesize
:
5
,
pagesize
:
20
,
keyword
:
null
};
...
...
WebContent/WEB-INF/jsp/pc/prize/prizeList.jsp
查看文件 @
41dddac
...
...
@@ -178,7 +178,7 @@
<a
class=
"layui-btn"
lay-submit
lay-filter=
"submit"
>
保存
</a>
<button
class=
"layui-btn"
lay-submit
lay-filter=
"start"
>
立即开启活动
</button>
<button
class=
"layui-btn"
lay-submit
lay-filter=
"finish"
>
立即结束活动
</button>
<
button
class=
"layui-btn"
lay-submit
lay-filter=
"nextround"
>
开启下一轮
</button
>
<
!--<button class="layui-btn" lay-submit lay-filter="nextround">开启下一轮</button>--
>
</div>
</form>
</body>
...
...
@@ -429,7 +429,7 @@
form
.
on
(
'submit(start)'
,
function
(
e
)
{
var
status
=
$
(
"select[name=status]"
).
val
();
console
.
log
(
status
)
if
(
status
==
"1"
)
{
if
(
status
==
"1"
||
status
==
"0"
)
{
$
.
post
(
"/zzhnc/activity/updateActivityStatus"
,
{
status
:
"2"
},
function
(
data
)
{
...
...
@@ -466,7 +466,7 @@
});
//设置下一轮
form
.
on
(
'submit(nextround)'
,
function
(
e
)
{
/*
form.on('submit(nextround)', function(e) {
var status = $("select[name=status]").val();
if(status == "3") {
$.get("/zzhnc/activity/clearActivity", function(data) {
...
...
@@ -480,7 +480,7 @@
} else {
layer.msg("活动结束后才能开启下一轮");
}
});
});
*/
//数值转为true或false
function
toBool
(
v
)
{
...
...
WebContent/WEB-INF/jsp/pc/report/fans.jsp
查看文件 @
41dddac
...
...
@@ -26,8 +26,8 @@
<tr>
<th>
No
</th>
<th>
头像昵称
</th>
<th>
地区
</th>
<th>
上级粉丝id
</th>
<th
style=
"min-width: 126px;"
>
地区
</th>
<th
style=
"min-width: 68px;"
>
上级粉丝id
</th>
<th>
小程序 openid
</th>
<th
style=
"min-width: 84px;"
>
创建时间
</th>
<th
style=
"min-width: 84px;"
>
上次登录时间
</th>
...
...
@@ -83,7 +83,7 @@
laypage
.
render
({
elem
:
'page'
,
count
:
data
.
total
,
limit
:
1
0
,
limit
:
2
0
,
curr
:
queryObj
.
page
,
layout
:
[
'count'
,
'prev'
,
'page'
,
'next'
,
'skip'
],
jump
:
function
(
obj
,
first
)
{
...
...
WebContent/WEB-INF/jsp/pc/report/goods.jsp
查看文件 @
41dddac
...
...
@@ -72,7 +72,7 @@
//查询条件
var
queryObj
=
{
page
:
1
,
size
:
1
0
,
size
:
2
0
,
sellerId
:
0
,
sort
:
1
,
key
:
null
...
...
@@ -125,6 +125,7 @@
//查询
form
.
on
(
'submit(querybtn)'
,
function
(
data
)
{
queryObj
.
page
=
1
;
queryObj
.
size
=
20
;
queryObj
.
key
=
$
(
"[name=key]"
).
val
();
queryObj
.
sort
=
$
(
"[name=sort]"
).
val
();
initData
(
queryObj
);
...
...
@@ -135,6 +136,7 @@
$
(
"[name=key]"
).
val
(
""
);
$
(
"[name=sort]"
).
val
(
"1"
);
queryObj
.
page
=
1
;
queryObj
.
size
=
20
;
queryObj
.
key
=
null
;
queryObj
.
sort
=
1
;
initData
(
queryObj
);
...
...
WebContent/WEB-INF/jsp/pc/report/prize.jsp
查看文件 @
41dddac
...
...
@@ -37,6 +37,14 @@
</select>
</div>
<div
class=
"layui-input-inline"
style=
"width: 140px;"
>
<select
name=
"type"
>
<option
value=
""
>
奖品类型
</option>
<option
value=
"0"
>
全部
</option>
<option
value=
"1"
>
红包
</option>
<!--<option value="2">否</option>-->
</select>
</div>
<div
class=
"layui-input-inline"
style=
"width: 140px;"
>
<input
type=
"text"
class=
"layui-input"
name=
"keyword"
placeholder=
"关键字"
/>
</div>
<button
class=
"layui-btn"
lay-submit
lay-filter=
"querybtn"
>
查询
</button>
...
...
@@ -77,9 +85,10 @@
//查询条件
var
queryObj
=
{
page
:
1
,
pagesize
:
1
0
,
pagesize
:
2
0
,
turn
:
null
,
status
:
null
,
type
:
0
,
keyword
:
null
}
...
...
@@ -110,6 +119,7 @@
form
.
render
();
toNull_G
();
}
console
.
log
(
queryObj
.
pagesize
)
laypage
.
render
({
elem
:
'page'
,
count
:
data
.
total
,
...
...
@@ -132,11 +142,12 @@
//查询
form
.
on
(
'submit(querybtn)'
,
function
(
data
)
{
console
.
log
(
data
.
field
)
queryObj
=
data
.
field
;
queryObj
.
page
=
1
;
queryObj
.
pagesize
=
20
;
queryObj
.
keyword
=
$
(
"[name=keyword]"
).
val
();
queryObj
.
turn
=
$
(
"[name=turn]"
).
val
();
queryObj
.
type
=
$
(
"[name=type]"
).
val
();
queryObj
.
status
=
$
(
"[name=status]"
).
val
();
initData
(
queryObj
);
});
...
...
@@ -146,9 +157,13 @@
$
(
"[name=keyword]"
).
val
(
""
);
$
(
"[name=turn]"
).
val
(
""
);
$
(
'[name=status]'
).
val
(
""
)
$
(
'[name=type]'
).
val
(
""
)
queryObj
.
turn
=
null
;
queryObj
.
keyword
=
null
;
queryObj
.
status
=
null
queryObj
.
status
=
null
;
queryObj
.
type
=
null
;
queryObj
.
page
=
1
;
queryObj
.
pagesize
=
20
;
form
.
render
();
initData
(
queryObj
);
})
...
...
编写
预览
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
请先完成此消息的编辑!
取消
请
注册
或
登录
后发表评论