Skip to content
切换导航面板
项目
群组
代码片段
帮助
zhangtai
/
zzhnc
当前项目
正在载入...
登录
切换导航面板
转到一个项目
项目
版本库
问题
0
合并请求
0
流水线
维基
设置
活动
图像
图表
创建新的问题
作业
提交
问题看板
文件
提交
分支
标签
贡献者
图像
比较
图表
Commit 0cdfc316
由
沈姿.前端(已离职)
编写于
Dec 29, 2017
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
分页增加总条数及跳转
1 个父辈
a333d522
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
144 行增加
和
154 行删除
WebContent/WEB-INF/jsp/pc/activity/activityList.jsp
WebContent/WEB-INF/jsp/pc/autoresponse/autoresponse.jsp
WebContent/WEB-INF/jsp/pc/goods/goodsList.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/res/css/basic.css
WebContent/WEB-INF/res/css/layout.css
WebContent/WEB-INF/res/js/index.js
WebContent/WEB-INF/res/js/me.js
WebContent/WEB-INF/res/js/tab.js
WebContent/WEB-INF/res/plugins/datas/area_.js
WebContent/WEB-INF/jsp/pc/activity/activityList.jsp
查看文件 @
0cdfc31
...
...
@@ -58,24 +58,7 @@
keyword
:
null
};
initData
(
queryObj
);
//查询
form
.
on
(
'submit(querybtn)'
,
function
(
data
)
{
queryObj
.
keyword
=
$
(
"[name=keyword]"
).
val
();
queryObj
.
page
=
1
;
initData
(
queryObj
)
});
$
(
".resetBtn"
).
on
(
"click"
,
function
()
{
$
(
"[name=keyword]"
).
val
(
""
)
queryObj
.
page
=
1
;
queryObj
.
keyword
=
null
;
initData
(
queryObj
)
return
false
})
//初始化数据
initData
(
queryObj
);
//初始化方法
function
initData
(
queryObj
)
{
$
.
get
(
"/zzhnc/article/getArticlesList"
,
queryObj
,
function
(
data
)
{
var
data
=
data
.
data
;
...
...
@@ -101,24 +84,42 @@
$
(
"#tablelist"
).
html
(
str
);
form
.
render
();
toNull_G
();
laypage
.
render
({
elem
:
'page'
,
count
:
data
.
total
,
limit
:
queryObj
.
pagesize
,
curr
:
queryObj
.
page
,
skip
:
true
,
jump
:
function
(
obj
,
first
)
{
if
(
!
first
)
{
queryObj
.
page
=
obj
.
curr
initData
(
queryObj
);
}
}
})
}
laypage
.
render
({
elem
:
'page'
,
count
:
data
.
total
,
limit
:
queryObj
.
pagesize
,
curr
:
queryObj
.
page
,
layout
:
[
'count'
,
'prev'
,
'page'
,
'next'
,
'skip'
],
jump
:
function
(
obj
,
first
)
{
if
(
!
first
)
{
queryObj
.
page
=
obj
.
curr
initData
(
queryObj
);
}
}
})
})
}
//初始化数据
initData
(
queryObj
);
//查询
form
.
on
(
'submit(querybtn)'
,
function
(
data
)
{
queryObj
.
keyword
=
$
(
"[name=keyword]"
).
val
();
queryObj
.
page
=
1
;
initData
(
queryObj
)
});
//重置
$
(
".resetBtn"
).
on
(
"click"
,
function
()
{
$
(
"[name=keyword]"
).
val
(
""
)
queryObj
.
page
=
1
;
queryObj
.
keyword
=
null
;
initData
(
queryObj
)
return
false
})
//添加文章
$
(
document
).
on
(
"click"
,
".createBtn"
,
function
()
{
if
(
parent
.
tab
.
exists
(
"添加文章"
)
>
0
)
{
...
...
@@ -131,6 +132,7 @@
title
:
"添加文章"
});
})
//修改文章
$
(
document
).
on
(
"click"
,
".updataBtn"
,
function
()
{
var
id
=
$
(
this
).
parents
(
"tr"
).
attr
(
"data-id"
);
...
...
@@ -144,6 +146,7 @@
title
:
"修改文章"
});
})
//删除文章
$
(
document
).
on
(
"click"
,
".deleteBtn"
,
function
()
{
var
id
=
$
(
this
).
parents
(
"tr"
).
attr
(
"data-id"
);
...
...
WebContent/WEB-INF/jsp/pc/autoresponse/autoresponse.jsp
查看文件 @
0cdfc31
...
...
@@ -47,7 +47,7 @@
<div
class=
"layui-input-block"
>
<input
type=
"text"
name=
"keywords"
lay-verify=
"required"
placeholder=
"关键词"
class=
"layui-input"
>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
></label>
...
...
@@ -78,12 +78,13 @@
size
:
10
,
keyword
:
null
}
//页面初始化
function
initdata
(
queryObj
)
{
$
.
get
(
"/zzhnc/autoreply/getAutoreplyList"
,
queryObj
,
function
(
data
)
{
var
data
=
data
.
data
;
console
.
log
(
data
)
$
(
"#tablelist"
).
html
(
""
);
if
(
data
.
rows
.
length
<
1
)
{
$
(
".nodata"
).
show
();
}
else
{
...
...
@@ -103,23 +104,23 @@
$
(
"#tablelist"
).
html
(
str
);
form
.
render
();
toNull_G
();
laypage
.
render
({
elem
:
'page'
,
count
:
data
.
total
,
limit
:
queryObj
.
size
,
curr
:
queryObj
.
page
,
skip
:
true
,
jump
:
function
(
obj
,
first
)
{
if
(
!
first
)
{
queryObj
.
page
=
obj
.
curr
initdata
(
queryObj
);
}
}
})
}
laypage
.
render
({
elem
:
'page'
,
count
:
data
.
total
,
limit
:
queryObj
.
size
,
curr
:
queryObj
.
page
,
layout
:
[
'count'
,
'prev'
,
'page'
,
'next'
,
'skip'
],
jump
:
function
(
obj
,
first
)
{
if
(
!
first
)
{
queryObj
.
page
=
obj
.
curr
initdata
(
queryObj
);
}
}
})
})
}
//初始化数据
initdata
(
queryObj
);
...
...
@@ -150,7 +151,7 @@
}
})
})
//添加关键字
$
(
document
).
on
(
"click"
,
".createBtn"
,
function
()
{
layer
.
open
({
...
...
@@ -232,7 +233,7 @@
});
form
.
render
();
},
success
:
function
(){
success
:
function
()
{
$
.
get
(
"/zzhnc/autoreply/getAutoReply"
,
{
id
:
id
},
function
(
data
)
{
...
...
WebContent/WEB-INF/jsp/pc/goods/goodsList.jsp
查看文件 @
0cdfc31
...
...
@@ -87,7 +87,7 @@
'<td>'
+
data
.
rows
[
i
].
sellerName
+
'</td>'
+
'<td>'
+
data
.
rows
[
i
].
sellerAddress
+
'</td>'
+
'<td>'
+
data
.
rows
[
i
].
sellerPhone
+
'</td>'
+
'<td>'
+
isHome
(
data
.
rows
[
i
].
isHome
)
+
'</td>'
+
'<td>'
+
isHome
(
data
.
rows
[
i
].
isHome
)
+
'</td>'
+
'<td><a href="#" class="layui-btn layui-btn-sm updataBtn">修改</a>'
+
'<a href="#" class="layui-btn layui-btn-sm deleteBtn">删除</a>'
+
'</td>'
+
...
...
@@ -96,20 +96,20 @@
$
(
"#tablelist"
).
html
(
str
);
form
.
render
();
toNull_G
();
laypage
.
render
({
elem
:
'page'
,
count
:
data
.
total
,
limit
:
queryObj
.
size
,
curr
:
queryObj
.
page
,
skip
:
true
,
jump
:
function
(
obj
,
first
)
{
if
(
!
first
)
{
queryObj
.
page
=
obj
.
curr
initData
(
queryObj
);
}
}
})
}
laypage
.
render
({
elem
:
'page'
,
count
:
data
.
total
,
limit
:
queryObj
.
size
,
curr
:
queryObj
.
page
,
layout
:
[
'count'
,
'prev'
,
'page'
,
'next'
,
'skip'
],
jump
:
function
(
obj
,
first
)
{
if
(
!
first
)
{
queryObj
.
page
=
obj
.
curr
initData
(
queryObj
);
}
}
})
})
}
...
...
@@ -183,10 +183,11 @@
});
});
function
isHome
(
v
){
if
(
v
){
//是否在首页显示的bool值转为是或否
function
isHome
(
v
)
{
if
(
v
)
{
v
=
"是"
}
else
{
}
else
{
v
=
"否"
}
return
v
;
...
...
WebContent/WEB-INF/jsp/pc/prize/prizeList.jsp
查看文件 @
0cdfc31
...
...
@@ -333,7 +333,7 @@
console
.
log
(
data
)
if
(
data
.
code
==
0
)
{
//基本信息
$
(
"[name=beginTime]"
).
val
(
toTime_G
(
data
.
data
.
beginTime
)
);
$
(
"[name=beginTime]"
).
val
(
data
.
data
.
beginTime
);
$
(
"[name=status]"
).
val
(
data
.
data
.
status
);
$
(
"[name=turn]"
).
val
(
data
.
data
.
turn
);
$
(
"[name=planMny]"
).
val
(
data
.
data
.
planMny
);
...
...
@@ -461,7 +461,7 @@
}
var
submitData
=
{
//
beginTime: e.field.beginTime,
beginTime
:
e
.
field
.
beginTime
,
status
:
e
.
field
.
status
,
turn
:
e
.
field
.
turn
,
planMny
:
e
.
field
.
planMny
,
...
...
@@ -509,14 +509,14 @@
},
function
(
data
)
{
console
.
log
(
data
);
if
(
data
.
code
==
0
)
{
top
.
layer
.
msg
(
"开启活动成功"
);
layer
.
msg
(
"开启活动成功"
);
}
else
{
top
.
layer
.
msg
(
data
.
msg
);
layer
.
msg
(
data
.
msg
);
}
})
}
else
{
top
.
layer
.
msg
(
"只有未开启的活动才可以开启"
);
layer
.
msg
(
"只有未开启的活动才可以开启"
);
}
});
...
...
@@ -529,35 +529,31 @@
},
function
(
data
)
{
console
.
log
(
data
);
if
(
data
.
code
==
0
)
{
top
.
layer
.
msg
(
"设置活动结束成功"
);
layer
.
msg
(
"设置活动结束成功"
);
}
else
{
top
.
layer
.
msg
(
data
.
msg
);
layer
.
msg
(
data
.
msg
);
}
})
}
else
{
top
.
layer
.
msg
(
"只有进行中的活动可以结束"
);
layer
.
msg
(
"只有进行中的活动可以结束"
);
}
});
//设置下一轮
form
.
on
(
'submit(nextround)'
,
function
(
e
)
{
var
status
=
$
(
"select[name=status]"
).
val
();
if
(
status
==
"3"
)
{
$
.
pos
t
(
"/zzhnc/activity/clearActivity"
,
function
(
data
)
{
$
.
ge
t
(
"/zzhnc/activity/clearActivity"
,
function
(
data
)
{
console
.
log
(
data
);
if
(
data
.
code
==
0
)
{
top
.
layer
.
msg
(
"开启下一轮成功"
);
layer
.
msg
(
"开启下一轮成功"
);
}
else
{
top
.
layer
.
msg
(
data
.
msg
);
layer
.
msg
(
data
.
msg
);
}
})
}
else
{
top
.
layer
.
msg
(
"活动结束后才能开启下一轮"
);
layer
.
msg
(
"活动结束后才能开启下一轮"
);
}
});
//数值转为true或false
...
...
WebContent/WEB-INF/jsp/pc/report/fans.jsp
查看文件 @
0cdfc31
...
...
@@ -79,20 +79,20 @@
$
(
"#fanslist"
).
html
(
str
)
form
.
render
()
toNull_G
();
laypage
.
render
({
elem
:
'page'
,
count
:
data
.
total
,
limit
:
10
,
curr
:
queryObj
.
page
,
skip
:
true
,
jump
:
function
(
obj
,
first
)
{
if
(
!
first
)
{
queryObj
.
page
=
obj
.
curr
initData
(
queryObj
)
}
}
})
}
laypage
.
render
({
elem
:
'page'
,
count
:
data
.
total
,
limit
:
10
,
curr
:
queryObj
.
page
,
layout
:
[
'count'
,
'prev'
,
'page'
,
'next'
,
'skip'
],
jump
:
function
(
obj
,
first
)
{
if
(
!
first
)
{
queryObj
.
page
=
obj
.
curr
initData
(
queryObj
)
}
}
})
})
}
...
...
WebContent/WEB-INF/jsp/pc/report/goods.jsp
查看文件 @
0cdfc31
...
...
@@ -92,20 +92,20 @@
$
(
"#tablelist"
).
html
(
str
);
form
.
render
();
toNull_G
();
laypage
.
render
({
elem
:
'page'
,
count
:
data
.
total
,
limit
:
queryObj
.
size
,
curr
:
queryObj
.
page
,
skip
:
true
,
jump
:
function
(
obj
,
first
)
{
if
(
!
first
)
{
queryObj
.
page
=
obj
.
curr
initData
(
queryObj
);
}
}
})
}
laypage
.
render
({
elem
:
'page'
,
count
:
data
.
total
,
limit
:
queryObj
.
size
,
curr
:
queryObj
.
page
,
layout
:
[
'count'
,
'prev'
,
'page'
,
'next'
,
'skip'
],
jump
:
function
(
obj
,
first
)
{
if
(
!
first
)
{
queryObj
.
page
=
obj
.
curr
initData
(
queryObj
);
}
}
})
})
}
...
...
WebContent/WEB-INF/jsp/pc/report/prize.jsp
查看文件 @
0cdfc31
...
...
@@ -89,14 +89,12 @@
data
=
data
.
data
;
$
(
'#moneySum'
).
text
(
data
.
sum
)
console
.
log
(
data
)
$
(
"#tablelist"
).
html
(
""
);
var
str
=
""
;
if
(
data
.
rows
.
length
<
1
)
{
$
(
".nodata"
).
show
();
$
(
"#page"
).
hide
();
}
else
{
$
(
".nodata"
).
hide
();
$
(
"#page"
).
show
();
for
(
var
i
=
0
;
i
<
data
.
rows
.
length
;
i
++
)
{
str
+=
'<tr>'
+
'<td>'
+
((
data
.
page
-
1
)
*
data
.
pageSize
+
i
+
1
)
+
'</td>'
+
...
...
@@ -110,21 +108,21 @@
$
(
"#tablelist"
).
html
(
str
);
form
.
render
();
toNull_G
();
laypage
.
render
({
elem
:
'page'
,
count
:
data
.
total
,
limit
:
queryObj
.
pagesize
,
curr
:
queryObj
.
page
,
skip
:
true
,
jump
:
function
(
obj
,
first
)
{
if
(
!
first
)
{
queryObj
.
page
=
obj
.
curr
initData
(
queryObj
);
}
}
})
}
laypage
.
render
({
elem
:
'page'
,
count
:
data
.
total
,
limit
:
queryObj
.
pagesize
,
curr
:
queryObj
.
page
,
layout
:
[
'count'
,
'prev'
,
'page'
,
'next'
,
'skip'
],
jump
:
function
(
obj
,
first
)
{
if
(
!
first
)
{
queryObj
.
page
=
obj
.
curr
initData
(
queryObj
);
}
}
})
})
}
...
...
WebContent/WEB-INF/res/css/basic.css
查看文件 @
0cdfc31
...
...
@@ -107,7 +107,8 @@
margin-right
:
5px
;
}
.layui-code
,
.layui-upload-list
{
.layui-code
,
.layui-upload-list
{
margin
:
0
;
}
...
...
@@ -144,11 +145,16 @@
margin-right
:
5px
;
}
#upload
{
#upload
{
float
:
left
;
margin-right
:
10px
;
}
#page
{
text-align
:
center
;
}
/*-----------公共样式 end-----------*/
...
...
@@ -172,14 +178,17 @@
margin-bottom
:
40px
;
color
:
#666
;
}
.popupbos
.layui-form-label
{
.popupbos
.layui-form-label
{
width
:
90px
;
padding
:
9px
0
;
}
.popupbos
.layui-input-block
{
.popupbos
.layui-input-block
{
margin-left
:
90px
;
}
.popupbos
.layui-form-mid
{
.popupbos
.layui-form-mid
{
padding
:
0
!important
;
}
...
...
WebContent/WEB-INF/res/css/layout.css
查看文件 @
0cdfc31
...
...
@@ -63,7 +63,6 @@ body .layui-layout-admin .footer-demo{height: auto; padding: 5px 0; line-height:
90
%
{
opacity
:
0.1
;
transform
:
translate3d
(
0
,
0
,
0
)
rotate
(
3600deg
)
scale
(
6
);}
100
%
{
opacity
:
1
;
transform
:
translate3d
(
0
,
0
,
0
)
rotate
(
3600deg
)
scale
(
1
);}
}
@-webkit-keyframes
site-desc
{
0
%
{
-webkit-transform
:
scale
(
1.1
);}
100
%
{
opacity
:
1
;
-webkit-transform
:
scale
(
1
);}
...
...
WebContent/WEB-INF/res/js/index.js
查看文件 @
0cdfc31
此文件的差异被折叠,
点击展开。
WebContent/WEB-INF/res/js/me.js
查看文件 @
0cdfc31
...
...
@@ -9,10 +9,12 @@ function toTime_G(v) {
var
day
=
time
.
getDate
();
var
hour
=
time
.
getHours
();
var
min
=
time
.
getMinutes
();
var
second
=
time
.
getSeconds
();
if
(
mon
<
10
)
mon
=
"0"
+
mon
if
(
day
<
10
)
day
=
"0"
+
day
if
(
hour
<
10
)
hour
=
"0"
+
hour
if
(
min
<
10
)
min
=
"0"
+
min
if
(
second
<
10
)
second
=
"0"
+
second
return
year
+
"-"
+
mon
+
"-"
+
day
+
" "
+
hour
+
":"
+
min
}
}
...
...
WebContent/WEB-INF/res/js/tab.js
查看文件 @
0cdfc31
...
...
@@ -152,8 +152,8 @@ layui.define(['element', 'common'], function(exports) {
}
else
{
element
.
tabChange
(
ELEM
.
tabFilter
,
that
.
getTabId
(
data
.
title
));
//自动刷新
if
(
_config
.
autoRefresh
)
{
_config
.
elem
.
find
(
'div.layui-tab-content > div'
).
eq
(
tabIndex
).
children
(
'iframe'
)[
0
].
contentWindow
.
location
.
reload
();
if
(
_config
.
autoRefresh
)
{
_config
.
elem
.
find
(
'div.layui-tab-content > div'
).
eq
(
tabIndex
).
children
(
'iframe'
)[
0
].
contentWindow
.
location
.
reload
();
}
}
if
(
_config
.
contextMenu
)
{
...
...
WebContent/WEB-INF/res/plugins/datas/area_.js
deleted
100644 → 0
查看文件 @
a333d52
var
threeSelectData
=
null
//城市数据
$
.
ajax
({
url
:
url_gobol
+
"public/getDropDownCity"
,
type
:
"get"
,
async
:
false
,
beforeSend
:
function
(){
top
.
layer
.
load
()
},
success
:
function
(
data
){
data
=
JSON
.
parse
(
data
.
data
)
threeSelectData
=
data
top
.
layer
.
close
(
top
.
layer
.
load
())
},
error
:
function
(){
top
.
layer
.
close
(
top
.
layer
.
load
())
top
.
layer
.
msg
(
"获取城市数据失败,请刷新重试"
)
}
})
编写
预览
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
请先完成此消息的编辑!
取消
请
注册
或
登录
后发表评论