Skip to content
切换导航面板
项目
群组
代码片段
帮助
zhangtai
/
zzhnc
当前项目
正在载入...
登录
切换导航面板
转到一个项目
项目
版本库
问题
0
合并请求
0
流水线
维基
设置
活动
图像
图表
创建新的问题
作业
提交
问题看板
文件
提交
分支
标签
贡献者
图像
比较
图表
Commit 1fa36364
由
沈姿.前端(已离职)
编写于
Dec 27, 2017
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
更新
1 个父辈
c3e0c6a8
全部展开
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
184 行增加
和
153 行删除
WebContent/WEB-INF/jsp/pc/activity/activityEdit.jsp
WebContent/WEB-INF/jsp/pc/activity/activityList.jsp
WebContent/WEB-INF/jsp/pc/autoresponse/autoresponse.jsp
WebContent/WEB-INF/jsp/pc/goods/goodsEdit.jsp
WebContent/WEB-INF/jsp/pc/goods/goodsList.jsp
WebContent/WEB-INF/jsp/pc/prize/prizeList.jsp
WebContent/WEB-INF/jsp/pc/activity/activityEdit.jsp
查看文件 @
1fa3636
此文件的差异被折叠,
点击展开。
WebContent/WEB-INF/jsp/pc/activity/activityList.jsp
查看文件 @
1fa3636
...
...
@@ -6,48 +6,45 @@
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"ie=edge"
>
<title>
活动介绍
列表
</title>
<title>
文章
列表
</title>
<link
rel=
"stylesheet"
href=
"/zzhnc/res/plugins/layui/css/layui.css"
>
<link
rel=
"stylesheet"
href=
"/zzhnc/res/css/basic.css"
>
</head>
<style>
.layui-form-select
dl
{
max-height
:
190px
;
}
#allmap
{
top
:
10px
;
width
:
100%
;
height
:
200px
;
overflow
:
hidden
;
margin
:
0
;
.imgUrl
{
width
:
50px
;
height
:
50px
;
display
:
block
;
}
</style>
</head>
<body
class=
"wrap"
>
<div
class=
"layui-form"
>
<div
class=
"layui-form-item searchbox"
style=
"margin-bottom: 0px;"
>
<div
class=
"layui-input-inline"
style=
"width: 140px;"
>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
class=
"layui-input"
name=
"keyword"
placeholder=
"关键字"
/>
</div>
<button
class=
"layui-btn"
lay-submit
lay-filter=
"querybtn"
>
查询
</button>
<button
class=
"layui-btn layui-btn-primary resetBtn"
>
重置
</button>
<a
class=
"layui-btn layui-btn-warm createBtn"
href=
"#"
><i
class=
"layui-icon"
>

</i>
添加
项目
</a>
<a
class=
"layui-btn layui-btn-warm createBtn"
href=
"#"
><i
class=
"layui-icon"
>

</i>
添加
文章
</a>
</div>
</div>
<table
class=
"layui-table"
>
<table
class=
"layui-table
layui-form
"
>
<thead>
<tr>
<th
style=
"width: 30px;"
>
No
</th>
<th
style=
"min-width:120px;"
>
项目名称
</th>
<th
style=
"min-width: 80px;"
>
经度
</th>
<th
style=
"min-width: 80px;"
>
纬度
</th>
<th
style=
"min-width: 80px;"
>
海报模板id
</th>
<th
style=
"min-width: 80px;"
>
更新时间
</th>
<th
style=
"min-width: 80px;"
>
操作
</th>
<th>
No
</th>
<th>
文章主图
</th>
<th>
文章标题
</th>
<th>
文章副标题
</th>
<th>
商家名称
</th>
<th>
商家地址
</th>
<th>
商家电话
</th>
<th>
是否首页显示
</th>
<th>
操作
</th>
</tr>
</thead>
<tbody
id=
"tablelist"
>
</tbody>
...
...
@@ -56,38 +53,7 @@
<div
id=
"page"
></div>
</body>
<form
class=
"layui-form Detailbtn"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
项目名称
</label>
<div
class=
"layui-input-inline"
style=
"width:390px;"
>
<input
type=
"text"
name=
"name"
lay-verify=
"required"
placeholder=
"项目名称"
class=
"layui-input"
>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
海报模板id
</label>
<div
class=
"layui-input-inline"
>
<select
name=
"postertempletid"
lay-verify=
"required"
>
<option
value=
""
></option>
<option
value=
"0"
>
1
</option>
<option
value=
"1"
>
2
</option>
<option
value=
"2"
>
3
</option>
<option
value=
"3"
>
4
</option>
<option
value=
"4"
>
5
</option>
</select>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
位置
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"lng"
lay-verify=
"required"
placeholder=
"经度"
class=
"layui-input"
>
</div>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"lat"
lay-verify=
"required"
placeholder=
"纬度"
class=
"layui-input"
>
</div>
<script
type=
"text/javascript"
src=
"http://api.map.baidu.com/api?v=2.0&ak=V45f8fZO8HiU1gLflQdrpv81D4gXKGRH"
></script>
<div
id=
"allmap"
></div>
</div>
</form>
<script
src=
'/zzhnc/res/js/jquery.min.js'
></script>
<script
src=
"/zzhnc/res/plugins/layui/layui.js"
charset=
"utf-8"
></script>
<script
type=
"text/javascript"
src=
"/zzhnc/res/js/me.js"
></script>
...
...
@@ -98,41 +64,18 @@
laydate
=
layui
.
laydate
,
layer
=
layui
.
layer
,
laypage
=
layui
.
laypage
;
var
page
=
1
;
var
keyword
=
""
;
//查询
form
.
on
(
'submit(querybtn)'
,
function
(
data
)
{
var
keyword
=
$
(
"input[name=keyword]"
).
val
();
Initdata
(
page
,
keyword
)
});
$
(
".resetBtn"
).
on
(
"click"
,
function
()
{
$
(
"input[name=keyword]"
).
val
(
""
);
Initdata
(
page
,
keyword
)
})
//初始化数据
Initdata
(
page
,
keyword
);
function
Initdata
(
page
,
keyword
)
{
var
queryObj
=
{
page
:
1
,
size
:
10
,
sellerId
:
0
};
$
.
post
(
"/zzhnc/project/getProjectList"
,
{
page
:
page
,
keyword
:
keyword
},
function
(
data
)
{
function
initData
(
queryObj
)
{
$
.
get
(
"/zzhnc/goods/search"
,
queryObj
,
function
(
data
)
{
data
=
data
.
data
;
console
.
log
(
data
)
laypage
({
cont
:
'page'
,
pages
:
data
.
totalPages
,
//总页数
curr
:
page
,
skip
:
true
,
jump
:
function
(
obj
,
first
)
{
if
(
!
first
)
{
page
=
obj
.
curr
Initdata
(
page
,
keyword
);
}
}
});
var
str
=
""
;
if
(
data
.
rows
.
length
<
1
)
{
$
(
".nodata"
).
show
();
...
...
@@ -141,62 +84,98 @@
for
(
var
i
=
0
;
i
<
data
.
rows
.
length
;
i
++
)
{
str
+=
'<tr data-id='
+
data
.
rows
[
i
].
id
+
'>'
+
'<td>'
+
((
data
.
page
-
1
)
*
data
.
pageSize
+
i
+
1
)
+
'</td>'
+
'<td style="text-align:left;">'
+
data
.
rows
[
i
].
name
+
'</td>'
+
'<td>'
+
data
.
rows
[
i
].
lng
+
'</td>'
+
'<td>'
+
data
.
rows
[
i
].
lat
+
'</td>'
+
'<td>'
+
data
.
rows
[
i
].
postertempletid
+
'</td>'
+
'<td>'
+
toTime_G
(
data
.
rows
[
i
].
updatedtime
)
+
'</td>'
+
'<td>'
+
'<a href="#" class="layui-btn layui-btn-mini updataBtn">修改</a>'
+
'<a href="#" class="layui-btn layui-btn-mini deleteBtn">删除</a>'
+
'<td><img class="imgUrl" src="'
+
data
.
rows
[
i
].
bannerUrl
+
'" /></td>'
+
'<td>'
+
data
.
rows
[
i
].
name
+
'</td>'
+
'<td>'
+
data
.
rows
[
i
].
description
+
'</td>'
+
'<td>'
+
data
.
rows
[
i
].
primePrice
+
'</td>'
+
'<td>'
+
data
.
rows
[
i
].
sellerAddress
+
'</td>'
+
'<td>'
+
data
.
rows
[
i
].
sellerPhone
+
'</td>'
+
'<td>'
+
' <input type="checkbox" disabled '
+
(
data
.
rows
[
i
].
isHome
?
"checked"
:
""
)
+
' lay-skin="switch" lay-text="是|否"></td>'
+
'<td><a href="#" class="layui-btn layui-btn-sm updataBtn">修改</a>'
+
'<a href="#" class="layui-btn layui-btn-sm deleteBtn">删除</a>'
+
'</td>'
+
'</tr>'
;
}
}
$
(
"#tablelist"
).
html
(
str
);
toNull_G
();
form
.
render
();
laypage
.
render
({
elem
:
'page'
,
count
:
data
.
totalPages
,
curr
:
queryObj
.
page
,
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
.
sellerId
=
0
;
initData
(
queryObj
)
return
false
})
//添加文章
$
(
document
).
on
(
"click"
,
".createBtn"
,
function
()
{
if
(
parent
.
tab
.
exists
(
"添加
项目
"
)
>
0
)
{
var
tabid
=
parent
.
tab
.
getTabId
(
"添加
项目
"
);
if
(
parent
.
tab
.
exists
(
"添加
文章
"
)
>
0
)
{
var
tabid
=
parent
.
tab
.
getTabId
(
"添加
文章
"
);
parent
.
tab
.
deleteTab
(
tabid
);
}
parent
.
tab
.
tabAdd
({
href
:
"/zzhnc/
project/project
Edit?id=0"
,
href
:
"/zzhnc/
activity/activity
Edit?id=0"
,
icon
:
"fa-cubes"
,
title
:
"添加
项目
"
title
:
"添加
文章
"
});
})
//修改项目
//修改文章
$
(
document
).
on
(
"click"
,
".updataBtn"
,
function
()
{
var
id
=
$
(
this
).
parents
(
"tr"
).
attr
(
"data-id"
);
if
(
parent
.
tab
.
exists
(
"修改
项目
"
)
>
0
)
{
var
tabid
=
parent
.
tab
.
getTabId
(
"修改
项目
"
);
if
(
parent
.
tab
.
exists
(
"修改
文章
"
)
>
0
)
{
var
tabid
=
parent
.
tab
.
getTabId
(
"修改
文章
"
);
parent
.
tab
.
deleteTab
(
tabid
);
}
parent
.
tab
.
tabAdd
({
href
:
"/zzhnc/
project/project
Edit?id="
+
id
,
href
:
"/zzhnc/
activity/activity
Edit?id="
+
id
,
icon
:
"fa-cubes"
,
title
:
"修改
项目
"
title
:
"修改
文章
"
});
})
//删除项目
//删除文章
$
(
document
).
on
(
"click"
,
".deleteBtn"
,
function
()
{
var
id
=
$
(
this
).
parents
(
"tr"
).
attr
(
"data-id"
);
layer
.
confirm
(
'您确定要删除该
项目
吗?'
,
{
btn
:
[
'确定'
,
'取消'
]
//按钮
layer
.
confirm
(
'您确定要删除该
文章
吗?'
,
{
btn
:
[
'确定'
,
'取消'
]
},
function
(
index
,
layero
)
{
$
.
post
(
"/zzhnc/
project/deleteProject
"
,
{
$
.
post
(
"/zzhnc/
goods/delete
"
,
{
id
:
id
},
function
(
data
)
{
console
.
log
(
data
)
if
(
data
.
code
==
0
)
{
top
.
layer
.
msg
(
"删除成功"
);
Initdata
(
1
,
keyword
)
initData
(
queryObj
);
layer
.
close
(
index
);
}
else
{
top
.
layer
.
msg
(
data
.
msg
);
...
...
WebContent/WEB-INF/jsp/pc/autoresponse/autoresponse.jsp
查看文件 @
1fa3636
...
...
@@ -83,7 +83,7 @@
//页面初始化
function
initdata
(
queryObj
)
{
$
.
pos
t
(
"/zzhnc/autoreply/getAutoreplyList"
,
queryObj
,
function
(
data
)
{
$
.
ge
t
(
"/zzhnc/autoreply/getAutoreplyList"
,
queryObj
,
function
(
data
)
{
data
=
data
.
data
;
console
.
log
(
data
)
...
...
@@ -98,8 +98,8 @@
'<td style="text-align:left;">'
+
data
.
rows
[
i
].
keywords
+
'</td>'
+
'<td style="text-align:left;">'
+
data
.
rows
[
i
].
contents
+
'</td>'
+
'<td>'
+
'<a href="#" class="layui-btn layui-btn-
mini
updataBtn">修改</a>'
+
'<a href="#" class="layui-btn layui-btn-
mini
deleteBtn">删除</a>'
+
'<a href="#" class="layui-btn layui-btn-
sm
updataBtn">修改</a>'
+
'<a href="#" class="layui-btn layui-btn-
sm
deleteBtn">删除</a>'
+
'</td>'
+
'</tr>'
;
}
...
...
@@ -244,7 +244,7 @@
form
.
render
();
},
success
:
function
(){
$
.
pos
t
(
"/zzhnc/autoreply/getAutoReply"
,
{
$
.
ge
t
(
"/zzhnc/autoreply/getAutoReply"
,
{
id
:
id
},
function
(
data
)
{
console
.
log
(
data
)
...
...
WebContent/WEB-INF/jsp/pc/goods/goodsEdit.jsp
查看文件 @
1fa3636
...
...
@@ -23,7 +23,8 @@
#container
{
margin-left
:
20px
;
}
.bannerUrl
{
.bannerUrl
{
width
:
200px
;
height
:
200px
;
}
...
...
@@ -34,14 +35,14 @@
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
><i
class=
"red"
>
*
</i>
商品主标题
</label>
<div
class=
"layui-input-inline"
style=
"width: 400px;"
>
<input
type=
"text"
name=
"name"
lay-verify=
"title"
placeholder=
"商品主标题"
class=
"layui-input"
>
<input
type=
"text"
name=
"name"
placeholder=
"商品主标题"
class=
"layui-input"
>
</div>
<div
class=
"layui-form-mid layui-word-aux"
>
不超过20个汉字
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
><i
class=
"red"
>
*
</i>
商品副标题
</label>
<div
class=
"layui-input-inline"
style=
"width: 400px;"
>
<input
type=
"text"
name=
"description"
lay-verify=
"description"
placeholder=
"商品副标题"
class=
"layui-input"
>
<input
type=
"text"
name=
"description"
placeholder=
"商品副标题"
class=
"layui-input"
>
</div>
</div>
<div
class=
"layui-form-item"
>
...
...
@@ -54,56 +55,67 @@
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
><i
class=
"red"
>
*
</i>
商品原价
</label>
<div
class=
"layui-input-inline"
style=
"width: 100px;"
>
<input
type=
"number"
name=
"primePrice"
lay-verify=
"primePrice"
placeholder=
"商品原价"
class=
"layui-input"
>
<input
type=
"number"
name=
"primePrice"
placeholder=
"商品原价"
class=
"layui-input"
>
</div>
<div
class=
"layui-form-mid"
>
元
</div>
<label
class=
"layui-form-label"
><i
class=
"red"
>
*
</i>
商品现价
</label>
<div
class=
"layui-input-inline"
style=
"width: 100px;"
>
<input
type=
"number"
name=
"price"
lay-verify=
"price"
placeholder=
"商品现价"
class=
"layui-input"
>
<input
type=
"number"
name=
"price"
placeholder=
"商品现价"
class=
"layui-input"
>
</div>
<div
class=
"layui-form-mid"
>
元
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
是否首页显示
</label>
<div
class=
"layui-input-inline"
style=
"width: 100px;"
>
<input
type=
"checkbox"
checked
name=
"isHome"
lay-skin=
"switch"
lay-text=
"是|否"
>
</div>
<label
class=
"layui-form-label"
>
是否爆款
</label>
<div
class=
"layui-input-inline"
style=
"width: 100px;"
>
<input
type=
"checkbox"
checked
name=
"isHot"
lay-skin=
"switch"
lay-text=
"是|否"
>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
><i
class=
"red"
>
*
</i>
商家名称
</label>
<div
class=
"layui-input-inline"
style=
"width: 400px;"
>
<input
type=
"text"
name=
"sellerName"
lay-verify=
"sellerName"
placeholder=
"商家名称"
class=
"layui-input"
>
<input
type=
"text"
name=
"sellerName"
placeholder=
"商家名称"
class=
"layui-input"
>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
><i
class=
"red"
>
*
</i>
商家店铺号
</label>
<div
class=
"layui-input-inline"
style=
"width: 400px;"
>
<input
type=
"text"
name=
"sellerAddress"
lay-verify=
"sellerAddress"
placeholder=
"商家店铺号"
class=
"layui-input"
>
<input
type=
"text"
name=
"sellerAddress"
placeholder=
"商家店铺号"
class=
"layui-input"
>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
><i
class=
"red"
>
*
</i>
商家电话
</label>
<div
class=
"layui-input-inline"
style=
"width: 390px;"
>
<input
type=
"text"
name=
"
phone"
lay-verify=
"p
hone"
placeholder=
"商家电话"
class=
"layui-input"
>
<input
type=
"text"
name=
"
sellerP
hone"
placeholder=
"商家电话"
class=
"layui-input"
>
</div>
</div>
<div
class=
"layui-form-item"
>
<
!--<
div class="layui-form-item">
<label class="layui-form-label"><i class="red">*</i>详细信息</label>
<div class="layui-input-block">
<!-- 加载编辑器的容器 -->
<script id="container" name="content" type="text/plain">
这里写你的初始化内容
</script>
</div>
</div>
<div
class=
"layui-form-item"
style=
"margin-top: 30px;"
>
</div> -->
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
></label>
<div
class=
"layui-input-block"
>
<button
class=
"layui-btn"
lay-submit
lay-filter=
"submit"
>
提交
</button>
<button
class=
"layui-btn layui-btn-primary resetBtn"
>
重置
</button>
</div>
</div>
</form>
</body>
<script
src=
'/zzhnc/res/js/jquery.min.js'
></script>
<script
src=
"/zzhnc/res/plugins/layui/layui.js"
charset=
"utf-8"
></script>
<script
type=
"text/javascript"
src=
"/zzhnc/res/js/me.js"
></script>
<!--<script type="text/javascript" src="/zzhnc/res/UE/ueditor.config.js"></script>
<script type="text/javascript" src="/zzhnc/res/UE/ueditor.all.js"></script>-->
<script>
window
.
onload
=
function
()
{
/*
window.onload = function() {
UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
UE.Editor.prototype.getActionUrl = function(action) {
if(action == 'uploadimage' || action == 'uploadscrawl' || action == 'uploadimage') {
...
...
@@ -117,7 +129,7 @@
var ue = UE.getEditor('container', {
autoHeight: false
});
}
}
*/
layui
.
use
([
'form'
,
'element'
,
'layer'
,
'upload'
],
function
()
{
var
form
=
layui
.
form
,
...
...
@@ -128,23 +140,38 @@
var
goodsid
=
getUrl_G
(
"id"
);
function
initData
()
{
$
.
get
(
"/zzhnc/goods/search"
,
{
id
:
goodsid
},
function
(
data
)
{
$
.
get
(
"/zzhnc/goods/search"
,
{
id
:
goodsid
},
function
(
data
)
{
console
.
log
(
data
)
if
(
data
.
code
==
0
){
if
(
data
.
data
.
rows
.
length
>
0
){
if
(
data
.
code
==
0
)
{
if
(
data
.
data
.
rows
.
length
>
0
)
{
var
data
=
data
.
data
.
rows
[
0
];
$
(
"[name=name]"
).
val
(
data
.
name
);
$
(
"[name=description]"
).
val
(
data
.
description
);
$
(
".bannerUrl"
).
attr
(
"src"
,
data
.
bannerUrl
);
$
(
"[name=primePrice]"
).
val
(
data
.
primePrice
);
$
(
"[name=price]"
).
val
(
data
.
price
);
if
(
data
.
isHome
)
{
$
(
"[name=isHome]"
).
checked
=
true
;
}
else
{
$
(
"[name=isHome]"
).
checked
=
false
;
}
if
(
data
.
isHot
)
{
$
(
"[name=isHot]"
).
checked
=
true
;
}
else
{
$
(
"[name=isHot]"
).
checked
=
false
;
}
$
(
"[name=sellerName]"
).
val
(
data
.
sellerName
);
$
(
"[name=sellerAddress]"
).
val
(
data
.
sellerAddress
);
$
(
"[name=phone]"
).
val
(
data
.
updateTime
);
$
(
"[name=sellerPhone]"
).
val
(
data
.
sellerPhone
);
form
.
render
();
UE
.
getEditor
(
"container"
).
ready
(
function
()
{
/*
UE.getEditor("container").ready(function() {
UE.getEditor("container").setContent(unescape(data.description));
})
})*/
}
}
...
...
@@ -152,7 +179,9 @@
}
//初始化数据
if
(
goodsid
>
0
){
initData
();
}
//普通图片上传
upload
.
render
({
...
...
@@ -161,20 +190,43 @@
done
:
function
(
data
)
{
console
.
log
(
data
)
if
(
data
.
code
==
0
)
{
imgurl
=
data
.
data
;
$
(
"input[name=imgurl]"
).
val
(
imgurl
);
$
(
".mainpictrue"
).
attr
(
"src"
,
imgurl
);
layer
.
msg
(
"上传成功"
);
$
(
".bannerUrl"
).
attr
(
"src"
,
data
.
data
.
imgurl
);
}
else
{
layer
.
msg
(
'上传失败'
);
}
}
});
//提交
form
.
on
(
"submit(submit)"
,
function
(
data
){
if
(
data
.
field
.
isHome
==
"on"
){
data
.
field
.
isHome
=
true
}
else
{
data
.
field
.
isHome
=
false
;
}
if
(
data
.
field
.
isHot
==
"on"
){
data
.
field
.
isHot
=
true
}
else
{
data
.
field
.
isHot
=
false
;
}
data
.
field
.
id
=
goodsid
;
data
.
field
.
bannerUrl
=
$
(
".bannerUrl"
).
attr
(
"src"
);
data
.
field
.
imgUrl
=
$
(
".bannerUrl"
).
attr
(
"src"
);
//data.field.content = UE.getEditor('container').getContent();
console
.
log
(
data
.
field
);
updateGoods
(
data
.
field
);
return
false
;
})
</script>
<script
type=
"text/javascript"
src=
"/zzhnc/res/UE/ueditor.config.js"
></script>
<script
type=
"text/javascript"
src=
"/zzhnc/res/UE/ueditor.all.js"
></script>
//修改方法
function
updateGoods
(
data
){
$
.
post
(
"/zzhnc/goods/update"
,
data
,
function
(
res
)
{
console
.
log
(
res
);
})
}
})
</script>
</html>
\ No newline at end of file
WebContent/WEB-INF/jsp/pc/goods/goodsList.jsp
查看文件 @
1fa3636
...
...
@@ -10,13 +10,14 @@
<link
rel=
"stylesheet"
href=
"/zzhnc/res/plugins/layui/css/layui.css"
>
<link
rel=
"stylesheet"
href=
"/zzhnc/res/css/basic.css"
>
<style>
.imgUrl
{
.imgUrl
{
width
:
50px
;
height
:
50px
;
display
:
block
;
}
</style>
</head>
<body
class=
"wrap"
>
<div
class=
"layui-form"
>
<div
class=
"layui-form-item searchbox"
style=
"margin-bottom: 0px;"
>
...
...
@@ -29,7 +30,7 @@
</div>
</div>
<table
class=
"layui-table"
>
<table
class=
"layui-table
layui-form
"
>
<thead>
<tr>
<th>
No
</th>
...
...
@@ -40,6 +41,8 @@
<th>
现价
</th>
<th>
商家名称
</th>
<th>
商家地址
</th>
<th>
商家电话
</th>
<th>
是否首页显示
</th>
<th>
操作
</th>
</tr>
</thead>
...
...
@@ -90,16 +93,19 @@
'<td>'
+
data
.
rows
[
i
].
price
+
'</td>'
+
'<td>'
+
data
.
rows
[
i
].
sellerName
+
'</td>'
+
'<td>'
+
data
.
rows
[
i
].
sellerAddress
+
'</td>'
+
'<td>'
+
'<a href="#" class="layui-btn layui-btn-mini updataBtn">修改</a>'
+
'<a href="#" class="layui-btn layui-btn-mini deleteBtn">删除</a>'
+
'<td>'
+
data
.
rows
[
i
].
sellerPhone
+
'</td>'
+
'<td>'
+
' <input type="checkbox" disabled '
+
(
data
.
rows
[
i
].
isHome
?
"checked"
:
""
)
+
' lay-skin="switch" lay-text="是|否"></td>'
+
'<td><a href="#" class="layui-btn layui-btn-sm updataBtn">修改</a>'
+
'<a href="#" class="layui-btn layui-btn-sm deleteBtn">删除</a>'
+
'</td>'
+
'</tr>'
;
}
}
$
(
"#tablelist"
).
html
(
str
);
toNull_G
();
form
.
render
();
laypage
.
render
({
elem
:
'page'
,
...
...
@@ -141,7 +147,7 @@
parent
.
tab
.
deleteTab
(
tabid
);
}
parent
.
tab
.
tabAdd
({
href
:
"/zzhnc/goods/goodsEdit"
,
href
:
"/zzhnc/goods/goodsEdit
?id=0
"
,
icon
:
"fa-cubes"
,
title
:
"添加商品"
});
...
...
WebContent/WEB-INF/jsp/pc/prize/prizeList.jsp
查看文件 @
1fa3636
...
...
@@ -481,10 +481,4 @@
}
</script>
<!-- 配置文件 -->
<script
type=
"text/javascript"
src=
"/zzhnc/res/UE/ueditor.config.js"
></script>
<!-- 编辑器源码文件 -->
<script
type=
"text/javascript"
src=
"/zzhnc/res/UE/ueditor.all.js"
></script>
<!-- 实例化编辑器 -->
</html>
\ No newline at end of file
编写
预览
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
请先完成此消息的编辑!
取消
请
注册
或
登录
后发表评论