Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
T
tongmeng-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
林海冰
tongmeng-app
Commits
1612206b
提交
1612206b
authored
1月 21, 2019
作者:
林海冰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增广告模块
上级
53c2baf5
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
355 行增加
和
75 行删除
+355
-75
BannerApiController.java
...ain/java/com/mall/controller/api/BannerApiController.java
+6
-11
AdvertisementController.java
...oller/tongmeng/advertisement/AdvertisementController.java
+104
-6
AdvertisementManager.java
.../service/mengbeng/advertisement/AdvertisementManager.java
+31
-2
AdvertisementService.java
...ice/mengbeng/advertisement/impl/AdvertisementService.java
+31
-0
AdvertisementMapper.xml
src/main/resources/mybatis1/tongmeng/AdvertisementMapper.xml
+1
-0
top.jsp
src/main/webapp/WEB-INF/jsp/system/index/top.jsp
+1
-1
advertisement_edit.jsp
...WEB-INF/jsp/tongmeng/advertisement/advertisement_edit.jsp
+1
-1
advertisement_list.jsp
...WEB-INF/jsp/tongmeng/advertisement/advertisement_list.jsp
+179
-53
SYSNAME.txt
src/main/webapp/admin/config/SYSNAME.txt
+1
-1
没有找到文件。
src/main/java/com/mall/controller/api/BannerApiController.java
浏览文件 @
1612206b
...
@@ -2,18 +2,16 @@
...
@@ -2,18 +2,16 @@
package
com
.
mall
.
controller
.
api
;
package
com
.
mall
.
controller
.
api
;
import
java.util.HashMap
;
import
com.mall.service.mengbeng.banner.BannerManager
;
import
java.util.List
;
import
com.mall.util.PageData
;
import
java.util.Map
;
import
javax.annotation.Resource
;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.mall.service.mengbeng.banner.BannerManager
;
import
javax.annotation.Resource
;
import
com.mall.util.PageData
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* ClassName:BannerApiController <br/>
* ClassName:BannerApiController <br/>
...
@@ -55,12 +53,9 @@ public class BannerApiController {
...
@@ -55,12 +53,9 @@ public class BannerApiController {
map
.
put
(
"date"
,
"pageSize为空"
);
map
.
put
(
"date"
,
"pageSize为空"
);
return
map
;
return
map
;
}
}
PageData
pd
=
new
PageData
();
PageData
pd
=
new
PageData
();
pd
.
put
(
"pageSize"
,
pageSize
);
pd
.
put
(
"pageSize"
,
pageSize
);
pd
.
put
(
"pageIndex"
,
pageIndex
);
pd
.
put
(
"pageIndex"
,
pageIndex
);
//查询分页数据
//查询分页数据
List
<
PageData
>
list
=
bannerService
.
pagingForuminfo
(
pd
);
List
<
PageData
>
list
=
bannerService
.
pagingForuminfo
(
pd
);
// //查询满足查询的总条数
// //查询满足查询的总条数
...
...
src/main/java/com/mall/controller/tongmeng/advertisement/AdvertisementController.java
浏览文件 @
1612206b
...
@@ -3,10 +3,7 @@ package com.mall.controller.tongmeng.advertisement;
...
@@ -3,10 +3,7 @@ package com.mall.controller.tongmeng.advertisement;
import
com.mall.controller.base.BaseController
;
import
com.mall.controller.base.BaseController
;
import
com.mall.entity.Page
;
import
com.mall.entity.Page
;
import
com.mall.service.mengbeng.advertisement.AdvertisementManager
;
import
com.mall.service.mengbeng.advertisement.AdvertisementManager
;
import
com.mall.util.AppUtil
;
import
com.mall.util.*
;
import
com.mall.util.Jurisdiction
;
import
com.mall.util.ObjectExcelView
;
import
com.mall.util.PageData
;
import
org.springframework.beans.propertyeditors.CustomDateEditor
;
import
org.springframework.beans.propertyeditors.CustomDateEditor
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.WebDataBinder
;
import
org.springframework.web.bind.WebDataBinder
;
...
@@ -199,8 +196,109 @@ public class AdvertisementController extends BaseController {
...
@@ -199,8 +196,109 @@ public class AdvertisementController extends BaseController {
mv
=
new
ModelAndView
(
erv
,
dataMap
);
mv
=
new
ModelAndView
(
erv
,
dataMap
);
return
mv
;
return
mv
;
}
}
@InitBinder
@ResponseBody
@RequestMapping
(
"/updateOrderCode"
)
public
Map
updateOrderCode
(){
Map
<
String
,
String
>
map
=
new
HashMap
<>();
PageData
pd
=
new
PageData
();
pd
=
this
.
getPageData
();
String
opetion
=
pd
.
getString
(
"opetion"
);
String
newId
=
pd
.
getString
(
"newId"
);
String
newCode
=
pd
.
getString
(
"newCode"
);
try
{
if
(
opetion
.
equals
(
"1"
))
{
PageData
orderPd
=
advertisementService
.
getMaxOrderCode
();
int
orderCode
=
Integer
.
valueOf
(
orderPd
.
get
(
"advertisement_order"
).
toString
())
+
1
;
PageData
bannerPd
=
new
PageData
();
bannerPd
.
put
(
"advertisement_id"
,
newId
);
bannerPd
=
advertisementService
.
findById
(
bannerPd
);
bannerPd
.
put
(
"advertisement_order"
,
orderCode
);
advertisementService
.
edit
(
bannerPd
);
map
.
put
(
"mag"
,
"ok"
);
}
else
if
(
opetion
.
equals
(
"2"
))
{
PageData
orderPd
=
new
PageData
();
orderPd
.
put
(
"advertisement_order"
,
newCode
);
//上一条信息
orderPd
=
advertisementService
.
getOneTopOrderCode
(
orderPd
);
if
(
orderPd
==
null
){
map
.
put
(
"mag"
,
"ok"
);
return
map
;
}
String
topCode
=
orderPd
.
get
(
"advertisement_order"
).
toString
();
orderPd
.
put
(
"advertisement_order"
,
newCode
);
//操作的信息
PageData
bannerPd
=
new
PageData
();
bannerPd
.
put
(
"advertisement_id"
,
newId
);
bannerPd
=
advertisementService
.
findById
(
bannerPd
);
bannerPd
.
put
(
"advertisement_order"
,
topCode
);
advertisementService
.
edit
(
orderPd
);
advertisementService
.
edit
(
bannerPd
);
map
.
put
(
"mag"
,
"ok"
);
}
else
if
(
opetion
.
equals
(
"3"
))
{
PageData
orderPd
=
new
PageData
();
orderPd
.
put
(
"advertisement_order"
,
newCode
);
//上一条信息
orderPd
=
advertisementService
.
getOneFooterOrderCode
(
orderPd
);
if
(
orderPd
==
null
){
map
.
put
(
"mag"
,
"ok"
);
return
map
;
}
String
topCode
=
orderPd
.
get
(
"advertisement_order"
).
toString
();
orderPd
.
put
(
"advertisement_order"
,
newCode
);
//操作的信息
PageData
bannerPd
=
new
PageData
();
bannerPd
.
put
(
"advertisement_id"
,
newId
);
bannerPd
=
advertisementService
.
findById
(
bannerPd
);
bannerPd
.
put
(
"advertisement_order"
,
topCode
);
advertisementService
.
edit
(
orderPd
);
advertisementService
.
edit
(
bannerPd
);
map
.
put
(
"mag"
,
"ok"
);
}
else
{
PageData
orderPd
=
advertisementService
.
getMinOrderCode
();
int
orderCode
=
Integer
.
valueOf
(
orderPd
.
get
(
"advertisement_order"
).
toString
())
-
1
;
PageData
bannerPd
=
new
PageData
();
bannerPd
.
put
(
"advertisement_id"
,
newId
);
bannerPd
=
advertisementService
.
findById
(
bannerPd
);
bannerPd
.
put
(
"advertisement_order"
,
orderCode
);
advertisementService
.
edit
(
bannerPd
);
map
.
put
(
"mag"
,
"ok"
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
map
.
put
(
"mag"
,
"no"
);
}
return
map
;
}
/**
* 改变用户状态
*/
@ResponseBody
@RequestMapping
(
"/updateAdstate"
)
public
ResultOutDto
updateAdstate
(
String
advertisement_id
,
Integer
status
){
try
{
PageData
pd
=
new
PageData
();
pd
.
put
(
"advertisement_id"
,
advertisement_id
);
pd
=
advertisementService
.
findById
(
pd
);
if
(
status
!=
0
){
pd
.
put
(
"advertisement_is_vaild"
,
"0"
);
}
else
{
pd
.
put
(
"advertisement_is_vaild"
,
"1"
);
}
advertisementService
.
edit
(
pd
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
//改变用户状态
return
ResultOutDto
.
ok
();
}
@InitBinder
public
void
initBinder
(
WebDataBinder
binder
){
public
void
initBinder
(
WebDataBinder
binder
){
DateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
DateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
binder
.
registerCustomEditor
(
Date
.
class
,
new
CustomDateEditor
(
format
,
true
));
binder
.
registerCustomEditor
(
Date
.
class
,
new
CustomDateEditor
(
format
,
true
));
...
...
src/main/java/com/mall/service/mengbeng/advertisement/AdvertisementManager.java
浏览文件 @
1612206b
package
com
.
mall
.
service
.
mengbeng
.
advertisement
;
package
com
.
mall
.
service
.
mengbeng
.
advertisement
;
import
java.util.List
;
import
com.mall.entity.Page
;
import
com.mall.entity.Page
;
import
com.mall.util.PageData
;
import
com.mall.util.PageData
;
import
java.util.List
;
/**
/**
* 说明: 广告模块接口
* 说明: 广告模块接口
* 创建时间:2019-01-18
* 创建时间:2019-01-18
...
@@ -52,6 +53,34 @@ public interface AdvertisementManager{
...
@@ -52,6 +53,34 @@ public interface AdvertisementManager{
* @throws Exception
* @throws Exception
*/
*/
public
void
deleteAll
(
String
[]
ArrayDATA_IDS
)
throws
Exception
;
public
void
deleteAll
(
String
[]
ArrayDATA_IDS
)
throws
Exception
;
/**
* banner 获取排序吗
* @param
* @throws Exception
*/
public
List
<
PageData
>
getAllOrderCode
(
PageData
pd
)
throws
Exception
;
/**
* 获取最大的ORDER_CODE
* @return
*/
public
PageData
getMaxOrderCode
()
throws
Exception
;
/**
* 获取最小的ORDER_CODE
* @return
*/
public
PageData
getMinOrderCode
()
throws
Exception
;
/**
* 获取操作的上一条code
* @param orderPd
* @return
*/
public
PageData
getOneTopOrderCode
(
PageData
orderPd
)
throws
Exception
;
/**
* 获取操作的下一条code
* @param orderPd
* @return
*/
public
PageData
getOneFooterOrderCode
(
PageData
orderPd
)
throws
Exception
;
}
}
src/main/java/com/mall/service/mengbeng/advertisement/impl/AdvertisementService.java
浏览文件 @
1612206b
...
@@ -78,6 +78,37 @@ public class AdvertisementService implements AdvertisementManager {
...
@@ -78,6 +78,37 @@ public class AdvertisementService implements AdvertisementManager {
public
void
deleteAll
(
String
[]
ArrayDATA_IDS
)
throws
Exception
{
public
void
deleteAll
(
String
[]
ArrayDATA_IDS
)
throws
Exception
{
dao
.
delete
(
"AdvertisementMapper.deleteAll"
,
ArrayDATA_IDS
);
dao
.
delete
(
"AdvertisementMapper.deleteAll"
,
ArrayDATA_IDS
);
}
}
@Override
public
List
<
PageData
>
getAllOrderCode
(
PageData
pd
)
throws
Exception
{
return
(
List
<
PageData
>)
dao
.
findForList
(
"AdvertisementMapper.getAllOrderCode"
,
pd
);
}
@Override
public
PageData
getMaxOrderCode
()
throws
Exception
{
return
(
PageData
)
dao
.
findForObject
(
"AdvertisementMapper.getMaxOrderCode"
,
null
);
}
/**
* 获取最小的ORDER_CODE
* @return
*/
@Override
public
PageData
getMinOrderCode
()
throws
Exception
{
return
(
PageData
)
dao
.
findForObject
(
"AdvertisementMapper.getMinOrderCode"
,
null
);
}
@Override
public
PageData
getOneTopOrderCode
(
PageData
orderPd
)
throws
Exception
{
return
(
PageData
)
dao
.
findForObject
(
"AdvertisementMapper.getOneTopOrderCode"
,
orderPd
);
}
@Override
public
PageData
getOneFooterOrderCode
(
PageData
orderPd
)
throws
Exception
{
return
(
PageData
)
dao
.
findForObject
(
"AdvertisementMapper.getOneFooterOrderCode"
,
orderPd
);
}
}
}
src/main/resources/mybatis1/tongmeng/AdvertisementMapper.xml
浏览文件 @
1612206b
...
@@ -96,6 +96,7 @@
...
@@ -96,6 +96,7 @@
-->
-->
)
)
</if>
</if>
order by advertisement_order desc
</select>
</select>
<!-- 列表(全部) -->
<!-- 列表(全部) -->
...
...
src/main/webapp/WEB-INF/jsp/system/index/top.jsp
浏览文件 @
1612206b
<%@ page
language=
"java"
contentType=
"text/html; charset=UTF-8"
pageEncoding=
"UTF-8"
%>
<%@ page
language=
"java"
contentType=
"text/html; charset=UTF-8"
pageEncoding=
"UTF-8"
%>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
/>
<meta
charset=
"utf-8"
/>
<meta
charset=
"utf-8"
/>
<title>
车全影
后台管理
</title>
<title>
桐盟商城APP
后台管理
</title>
<meta
name=
"description"
content=
""
/>
<meta
name=
"description"
content=
""
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0"
/>
<!-- bootstrap & fontawesome -->
<!-- bootstrap & fontawesome -->
...
...
src/main/webapp/WEB-INF/jsp/tongmeng/advertisement/advertisement_edit.jsp
浏览文件 @
1612206b
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-12"
>
<form
action=
"
advertisement/
${msg }.do"
name=
"Form"
id=
"Form"
method=
"post"
>
<form
action=
"${msg }.do"
name=
"Form"
id=
"Form"
method=
"post"
>
<input
type=
"hidden"
name=
"advertisement_id"
id=
"advertisement_id"
value=
"${pd.advertisement_id}"
/>
<input
type=
"hidden"
name=
"advertisement_id"
id=
"advertisement_id"
value=
"${pd.advertisement_id}"
/>
<div
id=
"zhongxin"
style=
"padding-top: 13px;"
>
<div
id=
"zhongxin"
style=
"padding-top: 13px;"
>
<table
id=
"table_report"
class=
"table table-striped table-bordered table-hover"
>
<table
id=
"table_report"
class=
"table table-striped table-bordered table-hover"
>
...
...
src/main/webapp/WEB-INF/jsp/tongmeng/advertisement/advertisement_list.jsp
浏览文件 @
1612206b
...
@@ -12,11 +12,11 @@
...
@@ -12,11 +12,11 @@
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
<!-- 下拉框 -->
<!-- 下拉框 -->
<link
rel=
"stylesheet"
href=
"static/ace/css/chosen.css"
/>
<link
rel=
"stylesheet"
href=
"
${pageContext.request.contextPath}/
static/ace/css/chosen.css"
/>
<!-- jsp文件头和头部 -->
<!-- jsp文件头和头部 -->
<%@ include
file=
"../../system/index/top.jsp"
%>
<%@ include
file=
"../../system/index/top.jsp"
%>
<!-- 日期框 -->
<!-- 日期框 -->
<link
rel=
"stylesheet"
href=
"static/ace/css/datepicker.css"
/>
<link
rel=
"stylesheet"
href=
"
${pageContext.request.contextPath}/
static/ace/css/datepicker.css"
/>
</head>
</head>
<body
class=
"no-skin"
>
<body
class=
"no-skin"
>
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-12"
>
<!-- 检索 -->
<!-- 检索 -->
<form
action=
"
advertisement/
list.do"
method=
"post"
name=
"Form"
id=
"Form"
>
<form
action=
"list.do"
method=
"post"
name=
"Form"
id=
"Form"
>
<table
style=
"margin-top:5px;"
>
<table
style=
"margin-top:5px;"
>
<tr>
<tr>
<td>
<td>
...
@@ -41,20 +41,24 @@
...
@@ -41,20 +41,24 @@
</span>
</span>
</div>
</div>
</td>
</td>
<!--
<td style="padding-left:2px;"><input class="span10 date-picker" name="lastStart" id="lastStart" value="" type="text" data-date-format="yyyy-mm-dd" readonly="readonly" style="width:88px;" placeholder="开始日期" title="开始日期"/></td>
<td style="padding-left:2px;"><input class="span10 date-picker" name="lastStart" id="lastStart" value="" type="text" data-date-format="yyyy-mm-dd" readonly="readonly" style="width:88px;" placeholder="开始日期" title="开始日期"/></td>
<td style="padding-left:2px;"><input class="span10 date-picker" name="lastEnd" name="lastEnd" value="" type="text" data-date-format="yyyy-mm-dd" readonly="readonly" style="width:88px;" placeholder="结束日期" title="结束日期"/></td>
<td style="padding-left:2px;"><input class="span10 date-picker" name="lastEnd" name="lastEnd" value="" type="text" data-date-format="yyyy-mm-dd" readonly="readonly" style="width:88px;" placeholder="结束日期" title="结束日期"/></td>
-->
<td
style=
"vertical-align:top;padding-left:2px;"
>
<td
style=
"vertical-align:top;padding-left:2px;"
>
<select
class=
"chosen-select form-control"
name=
"
name"
id=
"id
"
data-placeholder=
"请选择"
style=
"vertical-align:top;width: 120px;"
>
<select
class=
"chosen-select form-control"
name=
"
advertisement_type"
id=
"advertisement_type
"
data-placeholder=
"请选择"
style=
"vertical-align:top;width: 120px;"
>
<option
value=
""
></option>
<option
value=
""
>
全部
</option>
<option
value=
""
>
全部
</option>
<option
value=
"
"
>
1
</option>
<option
value=
"
${pd.advertisement_type=='1'}"
>
图片
</option>
<option
value=
"
"
>
2
</option>
<option
value=
"
${pd.advertisement_type=='2'}"
>
视频
</option>
</select>
</select>
</td>
</td>
<c:if
test=
"
${
QX
.
cha
==
1
}
"
>
<c:if
test=
"
${
QX
.
cha
==
1
}
"
>
<td
style=
"vertical-align:top;padding-left:2px"
><a
class=
"btn btn-light btn-xs"
onclick=
"tosearch();"
title=
"检索"
><i
id=
"nav-search-icon"
class=
"ace-icon fa fa-search bigger-110 nav-search-icon blue"
></i></a></td>
<td
style=
"vertical-align:top;padding-left:2px"
><a
class=
"btn btn-light btn-xs"
onclick=
"tosearch();"
title=
"检索"
><i
id=
"nav-search-icon"
class=
"ace-icon fa fa-search bigger-110 nav-search-icon blue"
></i></a></td>
</c:if>
</c:if>
<c:if
test=
"
${
QX
.
toExcel
==
1
}
"
><td
style=
"vertical-align:top;padding-left:2px;"
><a
class=
"btn btn-light btn-xs"
onclick=
"toExcel();"
title=
"导出到EXCEL"
><i
id=
"nav-search-icon"
class=
"ace-icon fa fa-download bigger-110 nav-search-icon blue"
></i></a></td></c:if>
<%--<c:if test="${QX.toExcel == 1 }"><td style="vertical-align:top;padding-left:2px;"><a class="btn btn-light btn-xs" onclick="toExcel();" title="导出到EXCEL"><i id="nav-search-icon" class="ace-icon fa fa-download bigger-110 nav-search-icon blue"></i></a></td></c:if>
--%>
</tr>
</tr>
</table>
</table>
<!-- 检索 -->
<!-- 检索 -->
...
@@ -71,6 +75,7 @@
...
@@ -71,6 +75,7 @@
<th
class=
"center"
>
是否禁用
</th>
<th
class=
"center"
>
是否禁用
</th>
<th
class=
"center"
>
排序
</th>
<th
class=
"center"
>
排序
</th>
<th
class=
"center"
>
类型
</th>
<th
class=
"center"
>
类型
</th>
<td
class=
"center"
>
排序操作
</td>
<th
class=
"center"
>
操作
</th>
<th
class=
"center"
>
操作
</th>
</tr>
</tr>
</thead>
</thead>
...
@@ -87,54 +92,64 @@
...
@@ -87,54 +92,64 @@
</td>
</td>
<td
class=
'center'
style=
"width: 30px;"
>
${vs.index+1}
</td>
<td
class=
'center'
style=
"width: 30px;"
>
${vs.index+1}
</td>
<td
class=
'center'
>
${var.advertisement_name}
</td>
<td
class=
'center'
>
${var.advertisement_name}
</td>
<td
class=
'center'
>
${var.advertisement_icom}
</td>
<td
class=
'center'
>
${var.advertisement_is_vaild}
</td>
<td
class=
'center'
><img
src=
"${var.advertisement_icom}"
style=
"width: 100px;cursor: pointer; "
/></td>
<td
class=
'center'
>
${var.is_satart_up=='0'?'禁用':'启用'}
</td>
<td
class=
'center'
>
${var.advertisement_order}
</td>
<td
class=
'center'
>
${var.advertisement_order}
</td>
<td
class=
'center'
>
${var.advertisement_type}
</td>
<td
class=
'center'
>
${var.advertisement_type=='1'?'图片':'视频'}
</td>
<td
class=
"center"
>
<div
class=
"hidden-sm hidden-xs btn-group "
>
<c:if
test=
"
${
QX
.
edit
==
1
}
"
>
<a
class=
" btn btn-xs btn-danger"
title=
"编辑"
onclick=
"editOrder('${var.advertisement_id}','${var.advertisement_order}',1);"
>
<i
class=
"fa fa-arrow-up"
></i>
</a>
<a
class=
" btn btn-xs btn-danger"
title=
"编辑"
onclick=
"editOrder('${var.advertisement_id}','${var.advertisement_order}',2);"
style=
"margin-left: 20px"
>
<i
class=
"fa fa-chevron-up"
></i>
</a>
<a
class=
" btn btn-xs btn-danger"
title=
"编辑"
onclick=
"editOrder('${var.advertisement_id}','${var.advertisement_order}',3);"
style=
"margin-left: 20px"
>
<i
class=
"fa fa-chevron-down"
></i>
</a>
<a
class=
" btn btn-xs btn-danger"
title=
"编辑"
onclick=
"editOrder('${var.advertisement_id}','${var.advertisement_order}',4);"
style=
" margin-left: 20px"
>
<i
class=
"fa fa-arrow-down"
></i>
</a>
</c:if>
<%-- <c:if test="${QX.del == 1 }">
<a class="btn btn-xs btn-danger" onclick="del('${var.BANNER_ID}');">
<i class="ace-icon fa fa-trash-o bigger-120" title="删除"></i>
</a>
</c:if> --%>
</div>
</td>
<td
class=
"center"
>
<td
class=
"center"
>
<c:if
test=
"
${
QX
.
edit
!=
1
&&
QX
.
del
!=
1
}
"
>
<c:if
test=
"
${
QX
.
edit
!=
1
&&
QX
.
del
!=
1
}
"
>
<span
class=
"label label-large label-grey arrowed-in-right arrowed-in"
><i
class=
"ace-icon fa fa-lock"
title=
"无权限"
></i></span>
<span
class=
"label label-large label-grey arrowed-in-right arrowed-in"
><i
class=
"ace-icon fa fa-lock"
title=
"无权限"
></i></span>
</c:if>
</c:if>
<div
class=
"hidden-sm hidden-xs btn-group"
>
<div
class=
"hidden-sm hidden-xs btn-group"
>
<c:if
test=
"
${
QX
.
edit
==
1
}
"
>
<c:if
test=
"
${
QX
.
edit
==
1
}
"
>
<a
class=
"btn btn-xs btn-success"
title=
"编辑"
onclick=
"edit('${var.
ADVERTISEMENT_ID
}');"
>
<a
class=
"btn btn-xs btn-success"
title=
"编辑"
onclick=
"edit('${var.
advertisement_id
}');"
>
<i
class=
"ace-icon fa fa-pencil-square-o bigger-120"
title=
"编辑"
></i>
<i
class=
"ace-icon fa fa-pencil-square-o bigger-120"
title=
"编辑"
></i>
</a>
</a>
</c:if>
</c:if>
<a
class=
"btn btn-xs "
title=
"禁用"
style=
"color: #000"
onclick=
"forbidden('${var.advertisement_id}','${var.advertisement_is_vaild}');"
>
<c:if
test=
"
${
var
.
advertisement_is_vaild
==
0
}
"
>
<i
class=
"ace-icon fa fa-unlock bigger-120"
title=
"启动"
></i>
</c:if>
<c:if
test=
"
${
var
.
advertisement_is_vaild
==
1
}
"
>
<i
class=
"ace-icon fa fa-lock bigger-120"
title=
"禁用"
></i>
</c:if>
</a>
<c:if
test=
"
${
QX
.
del
==
1
}
"
>
<c:if
test=
"
${
QX
.
del
==
1
}
"
>
<a
class=
"btn btn-xs btn-danger"
onclick=
"del('${var.
ADVERTISEMENT_ID
}');"
>
<a
class=
"btn btn-xs btn-danger"
onclick=
"del('${var.
advertisement_id
}');"
>
<i
class=
"ace-icon fa fa-trash-o bigger-120"
title=
"删除"
></i>
<i
class=
"ace-icon fa fa-trash-o bigger-120"
title=
"删除"
></i>
</a>
</a>
</c:if>
</c:if>
</div>
</div>
<div
class=
"hidden-md hidden-lg"
>
<div
class=
"inline pos-rel"
>
<button
class=
"btn btn-minier btn-primary dropdown-toggle"
data-toggle=
"dropdown"
data-position=
"auto"
>
<i
class=
"ace-icon fa fa-cog icon-only bigger-110"
></i>
</button>
<ul
class=
"dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close"
>
<c:if
test=
"
${
QX
.
edit
==
1
}
"
>
<li>
<a
style=
"cursor:pointer;"
onclick=
"edit('${var.advertisement_id}');"
class=
"tooltip-success"
data-rel=
"tooltip"
title=
"修改"
>
<span
class=
"green"
>
<i
class=
"ace-icon fa fa-pencil-square-o bigger-120"
></i>
</span>
</a>
</li>
</c:if>
<c:if
test=
"
${
QX
.
del
==
1
}
"
>
<li>
<a
style=
"cursor:pointer;"
onclick=
"del('${var.advertisement_id}');"
class=
"tooltip-error"
data-rel=
"tooltip"
title=
"删除"
>
<span
class=
"red"
>
<i
class=
"ace-icon fa fa-trash-o bigger-120"
></i>
</span>
</a>
</li>
</c:if>
</ul>
</div>
</div>
</td>
</td>
</tr>
</tr>
...
@@ -179,6 +194,22 @@
...
@@ -179,6 +194,22 @@
<!-- /.page-content -->
<!-- /.page-content -->
</div>
</div>
</div>
</div>
<!-- 自定义警告框 -->
<div
class=
"wrap-dialog dialog-hide"
>
<div
class=
"dialog"
id=
"dialog"
>
<div
class=
"dialog-header"
>
<!-- <span class="dialog-title">请选择banner 选择类型</span> -->
</div>
<div
class=
"dialog-body"
>
<span
class=
"dialog-message"
>
你确认删除此条信息?
</span>
</div>
<div
class=
"dialog-footer"
>
<input
type=
"button"
class=
"dialog-btn"
id=
"dialog-confirm"
value=
"二维码模式"
style=
"margin-left: 50px"
/>
<input
type=
"button"
class=
"dialog-btn dialog-ml50"
id=
"dialog-cancel"
value=
"视频模式"
style=
"margin:0 auto"
/>
<input
type=
"button"
class=
"dialog-btn dialog-ml51"
value=
"取消"
style=
"margin-right: 50px"
/>
</div>
</div>
</div>
<!-- /.main-content -->
<!-- /.main-content -->
<!-- 返回顶部 -->
<!-- 返回顶部 -->
...
@@ -193,15 +224,15 @@
...
@@ -193,15 +224,15 @@
<!-- 页面底部js¨ -->
<!-- 页面底部js¨ -->
<%@ include
file=
"../../system/index/foot.jsp"
%>
<%@ include
file=
"../../system/index/foot.jsp"
%>
<!-- 删除时确认窗口 -->
<!-- 删除时确认窗口 -->
<script
src=
"static/ace/js/bootbox.js"
></script>
<script
src=
"
${pageContext.request.contextPath}/
static/ace/js/bootbox.js"
></script>
<!-- ace scripts -->
<!-- ace scripts -->
<script
src=
"static/ace/js/ace/ace.js"
></script>
<script
src=
"
${pageContext.request.contextPath}/
static/ace/js/ace/ace.js"
></script>
<!-- 下拉框 -->
<!-- 下拉框 -->
<script
src=
"static/ace/js/chosen.jquery.js"
></script>
<script
src=
"
${pageContext.request.contextPath}/
static/ace/js/chosen.jquery.js"
></script>
<!-- 日期框 -->
<!-- 日期框 -->
<script
src=
"static/ace/js/date-time/bootstrap-datepicker.js"
></script>
<script
src=
"
${pageContext.request.contextPath}/
static/ace/js/date-time/bootstrap-datepicker.js"
></script>
<!--提示框-->
<!--提示框-->
<script
type=
"text/javascript"
src=
"static/js/jquery.tips.js"
></script>
<script
type=
"text/javascript"
src=
"
${pageContext.request.contextPath}/
static/js/jquery.tips.js"
></script>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
$
(
top
.
hangge
());
//关闭加载状态
$
(
top
.
hangge
());
//关闭加载状态
//检索
//检索
...
@@ -262,7 +293,7 @@
...
@@ -262,7 +293,7 @@
var
diag
=
new
top
.
Dialog
();
var
diag
=
new
top
.
Dialog
();
diag
.
Drag
=
true
;
diag
.
Drag
=
true
;
diag
.
Title
=
"新增"
;
diag
.
Title
=
"新增"
;
diag
.
URL
=
'
<%=
basePath
%>
advertisement/goAdd.do'
;
diag
.
URL
=
'
${pageContext.request.contextPath}/
advertisement/goAdd.do'
;
diag
.
Width
=
450
;
diag
.
Width
=
450
;
diag
.
Height
=
355
;
diag
.
Height
=
355
;
diag
.
Modal
=
true
;
//有无遮罩窗口
diag
.
Modal
=
true
;
//有无遮罩窗口
...
@@ -286,7 +317,7 @@
...
@@ -286,7 +317,7 @@
bootbox
.
confirm
(
"确定要删除吗?"
,
function
(
result
)
{
bootbox
.
confirm
(
"确定要删除吗?"
,
function
(
result
)
{
if
(
result
)
{
if
(
result
)
{
top
.
jzts
();
top
.
jzts
();
var
url
=
"
<%=
basePath
%>
advertisement/delete.do?ADVERTISEMENT_ID="
+
Id
+
"&tm="
+
new
Date
().
getTime
();
var
url
=
"
${pageContext.request.contextPath}/
advertisement/delete.do?ADVERTISEMENT_ID="
+
Id
+
"&tm="
+
new
Date
().
getTime
();
$
.
get
(
url
,
function
(
data
){
$
.
get
(
url
,
function
(
data
){
tosearch
();
tosearch
();
});
});
...
@@ -300,7 +331,7 @@
...
@@ -300,7 +331,7 @@
var
diag
=
new
top
.
Dialog
();
var
diag
=
new
top
.
Dialog
();
diag
.
Drag
=
true
;
diag
.
Drag
=
true
;
diag
.
Title
=
"编辑"
;
diag
.
Title
=
"编辑"
;
diag
.
URL
=
'
<%=
basePath
%>
advertisement/goEdit.do?ADVERTISEMENT_ID='
+
Id
;
diag
.
URL
=
'
${pageContext.request.contextPath}/
advertisement/goEdit.do?ADVERTISEMENT_ID='
+
Id
;
diag
.
Width
=
450
;
diag
.
Width
=
450
;
diag
.
Height
=
355
;
diag
.
Height
=
355
;
diag
.
Modal
=
true
;
//有无遮罩窗口
diag
.
Modal
=
true
;
//有无遮罩窗口
...
@@ -344,7 +375,7 @@
...
@@ -344,7 +375,7 @@
top
.
jzts
();
top
.
jzts
();
$
.
ajax
({
$
.
ajax
({
type
:
"POST"
,
type
:
"POST"
,
url
:
'
<%=
basePath
%>
advertisement/deleteAll.do?tm='
+
new
Date
().
getTime
(),
url
:
'
${pageContext.request.contextPath}/
advertisement/deleteAll.do?tm='
+
new
Date
().
getTime
(),
data
:
{
DATA_IDS
:
str
},
data
:
{
DATA_IDS
:
str
},
dataType
:
'json'
,
dataType
:
'json'
,
//beforeSend: validateData,
//beforeSend: validateData,
...
@@ -360,11 +391,106 @@
...
@@ -360,11 +391,106 @@
}
}
});
});
};
};
//导出excel
function
editOrder
(
clickId
,
clickCOde
,
opetion
){
top
.
jzts
();
var
result
=
"yes"
;
if
(
opetion
==
1
){
result
=
updateCode
(
clickId
,
clickCOde
,
'1'
);
}
else
if
(
opetion
==
2
){
result
=
updateCode
(
clickId
,
clickCOde
,
'2'
);
}
else
if
(
opetion
==
3
){
result
=
updateCode
(
clickId
,
clickCOde
,
'3'
);
}
else
{
result
=
updateCode
(
clickId
,
clickCOde
,
'4'
);
}
if
(
result
==
"ok"
){
nextPage
(
$
{
page
.
currentPage
});
}
else
{
alert
(
"操作异常!"
);
}
}
function
updateCode
(
newId
,
newCode
,
opetion
){
var
result
=
"no"
;
$
.
ajax
({
type
:
"POST"
,
url
:
'${pageContext.request.contextPath}/advertisement/updateOrderCode.do?tm='
+
new
Date
().
getTime
(),
data
:
{
'newId'
:
newId
,
'newCode'
:
newCode
,
'opetion'
:
opetion
},
dataType
:
'json'
,
//beforeSend: validateData,
cache
:
false
,
async
:
false
,
success
:
function
(
data
){
result
=
data
.
mag
;
}
});
return
result
;
}
<!--
改变上下架
-->
function
forbidden
(
id
,
status
){
top
.
jzts
();
$
.
ajax
({
type
:
"POST"
,
url
:
'${pageContext.request.contextPath}/advertisement/updateAdstate.do?tm='
+
new
Date
().
getTime
(),
data
:
{
'advertisement_id'
:
id
,
'status'
:
status
},
dataType
:
'json'
,
//beforeSend: validateData,
cache
:
false
,
success
:
function
(
data
){
if
(
data
.
flag
==
1
){
nextPage
(
$
{
page
.
currentPage
});
}
else
{
alert
(
'禁用失败'
);
}
}
});
}
//导出excel
function
toExcel
(){
function
toExcel
(){
window
.
location
.
href
=
'
<%=
basePath
%>
advertisement/excel.do'
;
window
.
location
.
href
=
'
${pageContext.request.contextPath}/
advertisement/excel.do'
;
}
}
/**
* 自定义警告框js
*/
$
(
document
).
ready
(
function
()
{
//自定義部分
window
.
confirm
=
function
(
message
,
yesCallBack
,
noCallBack
)
{
var
message
=
message
||
"确认删除此条信息?"
;
var
choose
=
function
(
tag
){
return
document
.
querySelector
(
tag
);
}
choose
(
".dialog-message"
).
innerHTML
=
message
;
// 显示遮罩和对话框
choose
(
".wrap-dialog"
).
className
=
"wrap-dialog"
;
// 确定按钮
choose
(
"#dialog"
).
onclick
=
function
(
e
){
if
(
e
.
target
.
className
==
"dialog-btn"
){
choose
(
".wrap-dialog"
).
className
=
"wrap-dialog dialog-hide"
;
yesCallBack
();
}
else
if
(
e
.
target
.
className
==
"dialog-btn dialog-ml50"
){
choose
(
".wrap-dialog"
).
className
=
"wrap-dialog dialog-hide"
;
noCallBack
();
}
else
if
(
e
.
target
.
className
==
"dialog-btn dialog-ml51"
){
choose
(
".wrap-dialog"
).
className
=
"wrap-dialog dialog-hide"
;
// ok();
}
};
// 取消按钮
}
$
(
'#dialog-remove'
).
click
(
function
()
{
confirm
(
"请选择类型"
,
add
,
addurl
);
});
});
</script>
</script>
...
...
src/main/webapp/admin/config/SYSNAME.txt
浏览文件 @
1612206b
车全影
桐盟商城app
\ No newline at end of file
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论