Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
T
tongmeng-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
林海冰
tongmeng-app
Commits
a58acfc8
提交
a58acfc8
authored
1月 21, 2019
作者:
林海冰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改广告模块信息
上级
1612206b
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
1381 行增加
和
484 行删除
+1381
-484
AdvertisementController.java
...oller/tongmeng/advertisement/AdvertisementController.java
+82
-0
BannerController.java
...com/mall/controller/tongmeng/banner/BannerController.java
+28
-1
StoreController.java
...a/com/mall/controller/tongmeng/store/StoreController.java
+13
-0
StoreManager.java
...in/java/com/mall/service/mengbeng/store/StoreManager.java
+6
-0
StoreService.java
...va/com/mall/service/mengbeng/store/impl/StoreService.java
+5
-0
GetImage.java
src/main/java/com/mall/util/GetImage.java
+88
-0
AdvertisementMapper.xml
src/main/resources/mybatis1/tongmeng/AdvertisementMapper.xml
+12
-10
BannerMapper.xml
src/main/resources/mybatis1/tongmeng/BannerMapper.xml
+8
-4
StoreManager.xml
src/main/resources/mybatis1/tongmeng/StoreManager.xml
+9
-4
advertisement_edit.jsp
...WEB-INF/jsp/tongmeng/advertisement/advertisement_edit.jsp
+22
-12
advertisement_edit_video.jsp
...F/jsp/tongmeng/advertisement/advertisement_edit_video.jsp
+157
-0
advertisement_list.jsp
...WEB-INF/jsp/tongmeng/advertisement/advertisement_list.jsp
+80
-7
advertisement_store_list.jsp
...F/jsp/tongmeng/advertisement/advertisement_store_list.jsp
+407
-0
banner_list.jsp
src/main/webapp/WEB-INF/jsp/tongmeng/banner/banner_list.jsp
+15
-72
banner_store_list.jsp
.../webapp/WEB-INF/jsp/tongmeng/banner/banner_store_list.jsp
+394
-374
selectWindow.css
src/main/webapp/static/fun/selectWindow.css
+55
-0
没有找到文件。
src/main/java/com/mall/controller/tongmeng/advertisement/AdvertisementController.java
浏览文件 @
a58acfc8
...
@@ -3,7 +3,11 @@ package com.mall.controller.tongmeng.advertisement;
...
@@ -3,7 +3,11 @@ 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.service.mengbeng.store.StoreManager
;
import
com.mall.util.*
;
import
com.mall.util.*
;
import
com.mall.util.tongmeng.EncodeImgZingLogo
;
import
com.mall.util.tongmeng.EncodeImgZxing
;
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
;
...
@@ -13,6 +17,9 @@ import org.springframework.web.bind.annotation.ResponseBody;
...
@@ -13,6 +17,9 @@ import org.springframework.web.bind.annotation.ResponseBody;
import
org.springframework.web.servlet.ModelAndView
;
import
org.springframework.web.servlet.ModelAndView
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
java.io.File
;
import
java.io.PrintWriter
;
import
java.io.PrintWriter
;
import
java.text.DateFormat
;
import
java.text.DateFormat
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
...
@@ -30,6 +37,8 @@ public class AdvertisementController extends BaseController {
...
@@ -30,6 +37,8 @@ public class AdvertisementController extends BaseController {
String
menuUrl
=
"advertisement/list.do"
;
//菜单地址(权限用)
String
menuUrl
=
"advertisement/list.do"
;
//菜单地址(权限用)
@Resource
(
name
=
"advertisementService"
)
@Resource
(
name
=
"advertisementService"
)
private
AdvertisementManager
advertisementService
;
private
AdvertisementManager
advertisementService
;
@Resource
(
name
=
"storeService"
)
private
StoreManager
storeService
;
/**保存
/**保存
* @param
* @param
...
@@ -298,6 +307,79 @@ public class AdvertisementController extends BaseController {
...
@@ -298,6 +307,79 @@ public class AdvertisementController extends BaseController {
return
ResultOutDto
.
ok
();
return
ResultOutDto
.
ok
();
}
}
/**列表
* @param page
* @throws Exception
*/
@RequestMapping
(
value
=
"/storeList"
)
public
ModelAndView
storeList
(
Page
page
)
throws
Exception
{
logBefore
(
logger
,
Jurisdiction
.
getUsername
()+
"列表Foruminfo"
);
//if(!Jurisdiction.buttonJurisdiction(menuUrl, "cha")){return null;} //校验权限(无权查看时页面会有提示,如果不注释掉这句代码就无法进入列表页面,所以根据情况是否加入本句代码)
ModelAndView
mv
=
this
.
getModelAndView
();
PageData
pd
=
new
PageData
();
pd
=
this
.
getPageData
();
String
keywords
=
pd
.
getString
(
"keywords"
);
//关键词检索条件
if
(
null
!=
keywords
&&
!
""
.
equals
(
keywords
)){
pd
.
put
(
"keywords"
,
keywords
.
trim
());
}
page
.
setPd
(
pd
);
List
<
PageData
>
varList
=
storeService
.
list
(
page
);
//列出Foruminfo列表
mv
.
setViewName
(
"tongmeng/advertisement/advertisement_store_list"
);
mv
.
addObject
(
"varList"
,
varList
);
mv
.
addObject
(
"pd"
,
pd
);
mv
.
addObject
(
"QX"
,
Jurisdiction
.
getHC
());
//按钮权限
return
mv
;
}
/**修改
* @param
* @throws Exception
*/
@ResponseBody
@RequestMapping
(
value
=
"/bindingId"
)
public
ResultOutDto
bindingId
(
HttpServletRequest
request
)
throws
Exception
{
logBefore
(
logger
,
Jurisdiction
.
getUsername
()+
"修改Question"
);
// if(!Jurisdiction.buttonJurisdiction(menuUrl, "edit")){return null;} //校验权限
PageData
pd
=
new
PageData
();
pd
.
put
(
"advertisement_id"
,
request
.
getParameter
(
"advertisement_id"
));
pd
=
advertisementService
.
findById
(
pd
);
pd
.
put
(
"show_id"
,
request
.
getParameter
(
"show_id"
));
//更新店铺的二维码
//步骤一:获取网络图片到本地
String
path
=
null
;
String
url
=
request
.
getParameter
(
"store_logo"
);
byte
[]
btImg
=
GetImage
.
getImageFromNetByUrl
(
url
);
if
(
null
!=
btImg
&&
btImg
.
length
>
0
){
System
.
out
.
println
(
"读取到:"
+
btImg
.
length
+
" 字节"
);
String
fileName
=
"百度.gif"
;
path
=
GetImage
.
writeImageToDisk
(
btImg
,
fileName
);
}
else
{
System
.
out
.
println
(
"没有从该连接获得内容"
);
}
//步骤二:获取有店铺图片的二维码
if
(
path
!=
null
){
String
contents
=
"https://blog.csdn.net/shasiqq/article/details/80307846"
;
String
format
=
"jpg"
;
//***此处如果格式为"gif",则logo图片为黑色,其他格式ok
//生成二维码
File
img
=
new
File
(
"D:"
+
File
.
separator
+
"csdn.jpg"
);
EncodeImgZxing
.
writeToFile
(
contents
,
format
,
img
);
//生成带有logo图片的二维码
File
logoImg
=
new
File
(
path
);
File
img1
=
new
File
(
"D:"
+
File
.
separator
+
"csdnAndLogo.jpg"
);
EncodeImgZingLogo
.
writeToFile
(
img
,
logoImg
,
format
,
img1
);
//上传到OSS
String
ossUrl
=
OssUtil
.
uploadObject2OSS
(
img1
);
pd
.
put
(
"advertisement_icom"
,
ossUrl
);
advertisementService
.
edit
(
pd
);
return
ResultOutDto
.
ok
(
ossUrl
);
}
else
{
return
ResultOutDto
.
err
(
"没有读取到本地的LOGO二维码图片!"
);
}
}
@InitBinder
@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"
);
...
...
src/main/java/com/mall/controller/tongmeng/banner/BannerController.java
浏览文件 @
a58acfc8
...
@@ -7,6 +7,9 @@ import com.mall.entity.Page;
...
@@ -7,6 +7,9 @@ import com.mall.entity.Page;
import
com.mall.service.mengbeng.banner.BannerManager
;
import
com.mall.service.mengbeng.banner.BannerManager
;
import
com.mall.service.mengbeng.store.StoreManager
;
import
com.mall.service.mengbeng.store.StoreManager
;
import
com.mall.util.*
;
import
com.mall.util.*
;
import
com.mall.util.tongmeng.EncodeImgZingLogo
;
import
com.mall.util.tongmeng.EncodeImgZxing
;
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
;
...
@@ -18,10 +21,14 @@ import org.springframework.web.servlet.ModelAndView;
...
@@ -18,10 +21,14 @@ import org.springframework.web.servlet.ModelAndView;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.io.File
;
import
java.io.PrintWriter
;
import
java.io.PrintWriter
;
import
java.net.URL
;
import
java.text.DateFormat
;
import
java.text.DateFormat
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.*
;
import
java.util.prefs.BackingStoreException
;
/**
/**
* 轮播图
* 轮播图
* @author lin
* @author lin
...
@@ -326,13 +333,33 @@ public class BannerController extends BaseController {
...
@@ -326,13 +333,33 @@ public class BannerController extends BaseController {
}
}
page
.
setPd
(
pd
);
page
.
setPd
(
pd
);
List
<
PageData
>
varList
=
storeService
.
list
(
page
);
//列出Foruminfo列表
List
<
PageData
>
varList
=
storeService
.
list
(
page
);
//列出Foruminfo列表
mv
.
setViewName
(
"tongmeng/banner/banner_store_list
.jsp
"
);
mv
.
setViewName
(
"tongmeng/banner/banner_store_list"
);
mv
.
addObject
(
"varList"
,
varList
);
mv
.
addObject
(
"varList"
,
varList
);
mv
.
addObject
(
"pd"
,
pd
);
mv
.
addObject
(
"pd"
,
pd
);
mv
.
addObject
(
"QX"
,
Jurisdiction
.
getHC
());
//按钮权限
mv
.
addObject
(
"QX"
,
Jurisdiction
.
getHC
());
//按钮权限
return
mv
;
return
mv
;
}
}
/**修改
* @param
* @throws Exception
*/
@ResponseBody
@RequestMapping
(
value
=
"/bindingId"
)
public
Map
bindingId
(
HttpServletRequest
request
)
throws
Exception
{
logBefore
(
logger
,
Jurisdiction
.
getUsername
()+
"修改Question"
);
// if(!Jurisdiction.buttonJurisdiction(menuUrl, "edit")){return null;} //校验权限
Map
<
String
,
String
>
mv
=
new
HashMap
<>();
PageData
pd
=
new
PageData
();
pd
.
put
(
"banner_id"
,
request
.
getParameter
(
"banner_id"
));
pd
=
bannerService
.
findById
(
pd
);
pd
.
put
(
"show_id"
,
request
.
getParameter
(
"show_id"
));
bannerService
.
edit
(
pd
);
mv
.
put
(
"msg"
,
"success"
);
return
mv
;
}
@InitBinder
@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"
);
...
...
src/main/java/com/mall/controller/tongmeng/store/StoreController.java
浏览文件 @
a58acfc8
...
@@ -7,6 +7,8 @@ import com.mall.util.AppUtil;
...
@@ -7,6 +7,8 @@ import com.mall.util.AppUtil;
import
com.mall.util.Jurisdiction
;
import
com.mall.util.Jurisdiction
;
import
com.mall.util.ObjectExcelView
;
import
com.mall.util.ObjectExcelView
;
import
com.mall.util.PageData
;
import
com.mall.util.PageData
;
import
com.mall.util.StringUtil
;
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
;
...
@@ -45,6 +47,17 @@ public class StoreController extends BaseController {
...
@@ -45,6 +47,17 @@ public class StoreController extends BaseController {
PageData
pd
=
new
PageData
();
PageData
pd
=
new
PageData
();
pd
=
this
.
getPageData
();
pd
=
this
.
getPageData
();
// 生成6位数的唯一的邀请码
String
str
=
StringUtil
.
getRandomNumber
(
8
);
pd
.
put
(
"show_id"
,
str
);
List
<
PageData
>
numPd
=
storeService
.
findByShowNumber
(
str
);
while
(
numPd
.
size
()>
0
)
{
str
=
StringUtil
.
getRandomNumber
(
8
);
pd
.
put
(
"show_id"
,
str
);
numPd
=
storeService
.
findByShowNumber
(
str
);
}
storeService
.
save
(
pd
);
storeService
.
save
(
pd
);
mv
.
addObject
(
"msg"
,
"success"
);
mv
.
addObject
(
"msg"
,
"success"
);
mv
.
setViewName
(
"save_result"
);
mv
.
setViewName
(
"save_result"
);
...
...
src/main/java/com/mall/service/mengbeng/store/StoreManager.java
浏览文件 @
a58acfc8
...
@@ -81,6 +81,12 @@ public interface StoreManager{
...
@@ -81,6 +81,12 @@ public interface StoreManager{
* @throws Exception
* @throws Exception
*/
*/
public
PageData
findByIdOwner
(
String
storeName
)
throws
Exception
;
public
PageData
findByIdOwner
(
String
storeName
)
throws
Exception
;
/**
* 通过SHOWID查询数据
* @author LHB
* @since JDK 1.8
*/
public
List
<
PageData
>
findByShowNumber
(
String
pd
)
throws
Exception
;
}
}
...
...
src/main/java/com/mall/service/mengbeng/store/impl/StoreService.java
浏览文件 @
a58acfc8
...
@@ -138,5 +138,10 @@ public class StoreService implements StoreManager{
...
@@ -138,5 +138,10 @@ public class StoreService implements StoreManager{
return
(
PageData
)
dao
.
findForObject
(
"StoreManager.findByIdOwner"
,
storeId
);
return
(
PageData
)
dao
.
findForObject
(
"StoreManager.findByIdOwner"
,
storeId
);
}
}
@Override
public
List
<
PageData
>
findByShowNumber
(
String
str
)
throws
Exception
{
return
(
List
<
PageData
>)
dao
.
findForList
(
"StoreManager.findByShowNumber"
,
str
);
}
}
}
src/main/java/com/mall/util/GetImage.java
0 → 100644
浏览文件 @
a58acfc8
package
com
.
mall
.
util
;
import
java.io.ByteArrayOutputStream
;
import
java.io.File
;
import
java.io.FileOutputStream
;
import
java.io.InputStream
;
import
java.net.HttpURLConnection
;
import
java.net.URL
;
/**
* @说明 从网络获取图片到本地
* @author 崔素强
* @version 1.0
* @since
*/
public
class
GetImage
{
/**
* 测试
* @param args
*/
public
static
void
main
(
String
[]
args
)
{
String
url
=
"http://diaosaas-prod.oss-cn-shenzhen.aliyuncs.com/tongmeng/154762630441610084.png"
;
byte
[]
btImg
=
getImageFromNetByUrl
(
url
);
if
(
null
!=
btImg
&&
btImg
.
length
>
0
){
System
.
out
.
println
(
"读取到:"
+
btImg
.
length
+
" 字节"
);
String
fileName
=
"百度.gif"
;
writeImageToDisk
(
btImg
,
fileName
);
}
else
{
System
.
out
.
println
(
"没有从该连接获得内容"
);
}
}
/**
* 将图片写入到磁盘
* @param img 图片数据流
* @param fileName 文件保存时的名称
*/
public
static
String
writeImageToDisk
(
byte
[]
img
,
String
fileName
){
try
{
File
file
=
new
File
(
"D:\\"
+
fileName
);
FileOutputStream
fops
=
new
FileOutputStream
(
file
);
fops
.
write
(
img
);
fops
.
flush
();
fops
.
close
();
System
.
out
.
println
(
"图片已经写入到D盘"
);
System
.
out
.
println
(
file
.
getAbsolutePath
());
return
file
.
getAbsolutePath
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
null
;
}
/**
* 根据地址获得数据的字节流
* @param strUrl 网络连接地址
* @return
*/
public
static
byte
[]
getImageFromNetByUrl
(
String
strUrl
){
try
{
URL
url
=
new
URL
(
strUrl
);
HttpURLConnection
conn
=
(
HttpURLConnection
)
url
.
openConnection
();
conn
.
setRequestMethod
(
"GET"
);
conn
.
setConnectTimeout
(
5
*
1000
);
InputStream
inStream
=
conn
.
getInputStream
();
//通过输入流获取图片数据
byte
[]
btImg
=
readInputStream
(
inStream
);
//得到图片的二进制数据
return
btImg
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
null
;
}
/**
* 从输入流中获取数据
* @param inStream 输入流
* @return
* @throws Exception
*/
public
static
byte
[]
readInputStream
(
InputStream
inStream
)
throws
Exception
{
ByteArrayOutputStream
outStream
=
new
ByteArrayOutputStream
();
byte
[]
buffer
=
new
byte
[
1024
];
int
len
=
0
;
while
(
(
len
=
inStream
.
read
(
buffer
))
!=
-
1
){
outStream
.
write
(
buffer
,
0
,
len
);
}
inStream
.
close
();
return
outStream
.
toByteArray
();
}
}
\ No newline at end of file
src/main/resources/mybatis1/tongmeng/AdvertisementMapper.xml
浏览文件 @
a58acfc8
...
@@ -14,7 +14,8 @@
...
@@ -14,7 +14,8 @@
advertisement_is_vaild,
advertisement_is_vaild,
advertisement_order,
advertisement_order,
advertisement_type,
advertisement_type,
advertisement_id
advertisement_id,
show_id
</sql>
</sql>
<!-- 字段值 -->
<!-- 字段值 -->
...
@@ -24,7 +25,8 @@
...
@@ -24,7 +25,8 @@
#{advertisement_is_vaild},
#{advertisement_is_vaild},
#{advertisement_order},
#{advertisement_order},
#{advertisement_type},
#{advertisement_type},
#{advertisement_id}
#{advertisement_id},
#{show_id}
</sql>
</sql>
<!-- 新增-->
<!-- 新增-->
...
@@ -32,15 +34,15 @@
...
@@ -32,15 +34,15 @@
insert into
insert into
<include
refid=
"tableName"
></include>
<include
refid=
"tableName"
></include>
(
(
advertisement_name,
advertisement_name,
advertisement_icom,
advertisement_icom,
advertisement_is_vaild,
advertisement_is_vaild,
advertisement_order,
advertisement_order,
advertisement_type
advertisement_type
) values (
) values (
#{advertisement_name},
#{advertisement_name},
#{advertisement_icom},
#{advertisement_icom},
#
{advertisement_is_vaild},
$
{advertisement_is_vaild},
#{advertisement_order},
#{advertisement_order},
#{advertisement_type}
#{advertisement_type}
)
)
...
@@ -63,8 +65,8 @@
...
@@ -63,8 +65,8 @@
advertisement_icom = #{advertisement_icom},
advertisement_icom = #{advertisement_icom},
advertisement_is_vaild = #{advertisement_is_vaild},
advertisement_is_vaild = #{advertisement_is_vaild},
advertisement_order = #{advertisement_order},
advertisement_order = #{advertisement_order},
advertisement_type = #{advertisement_type}
advertisement_type = #{advertisement_type}
,
show_id = #{show_id}
where
where
advertisement_id = #{advertisement_id}
advertisement_id = #{advertisement_id}
</update>
</update>
...
...
src/main/resources/mybatis1/tongmeng/BannerMapper.xml
浏览文件 @
a58acfc8
...
@@ -12,7 +12,8 @@
...
@@ -12,7 +12,8 @@
banner_id,
banner_id,
icom,
icom,
is_vaild,
is_vaild,
order_code
order_code,
show_id
...
@@ -24,7 +25,8 @@
...
@@ -24,7 +25,8 @@
#{banner_id},
#{banner_id},
#{icom},
#{icom},
#{is_vaild},
#{is_vaild},
#{order_code}
#{order_code},
#{show_id}
...
@@ -65,7 +67,8 @@
...
@@ -65,7 +67,8 @@
set
set
icom = #{icom},
icom = #{icom},
is_vaild = #{is_vaild},
is_vaild = #{is_vaild},
order_code = #{order_code}
order_code = #{order_code},
show_id = #{show_id}
where
where
banner_id = #{banner_id}
banner_id = #{banner_id}
</update>
</update>
...
@@ -78,7 +81,8 @@
...
@@ -78,7 +81,8 @@
select
select
banner_id,
banner_id,
icom,
icom,
order_code
order_code,
show_id
from
from
c_banner
c_banner
WHERE 1=1
WHERE 1=1
...
...
src/main/resources/mybatis1/tongmeng/StoreManager.xml
浏览文件 @
a58acfc8
...
@@ -23,7 +23,8 @@
...
@@ -23,7 +23,8 @@
qq_munber,
qq_munber,
one_classfy_id,
one_classfy_id,
store_view_number,
store_view_number,
view_number
view_number,
show_id
</sql>
</sql>
...
@@ -43,7 +44,8 @@
...
@@ -43,7 +44,8 @@
#{qq_munber},
#{qq_munber},
#{one_classfy_id},
#{one_classfy_id},
#{store_view_number},
#{store_view_number},
#{view_number}
#{view_number},
#{show_id}
</sql>
</sql>
<!-- 新增-->
<!-- 新增-->
...
@@ -61,7 +63,9 @@
...
@@ -61,7 +63,9 @@
end_valid_time,
end_valid_time,
wx_muner,
wx_muner,
qq_munber,
qq_munber,
one_classfy_id)
one_classfy_id,
show_id
)
values (
values (
#{store_id},
#{store_id},
#{gender},
#{gender},
...
@@ -74,7 +78,8 @@
...
@@ -74,7 +78,8 @@
#{end_valid_time},
#{end_valid_time},
#{wx_muner},
#{wx_muner},
#{qq_munber},
#{qq_munber},
#{one_classfy_id}
#{one_classfy_id},
#{show_id}
)
)
</insert>
</insert>
<insert
id=
"saveDesc"
parameterType=
"pd"
>
<insert
id=
"saveDesc"
parameterType=
"pd"
>
...
...
src/main/webapp/WEB-INF/jsp/tongmeng/advertisement/advertisement_edit.jsp
浏览文件 @
a58acfc8
...
@@ -10,11 +10,11 @@
...
@@ -10,11 +10,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"
>
<!-- /section:basics/navbar.layout -->
<!-- /section:basics/navbar.layout -->
...
@@ -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=
"${msg }.do"
name=
"Form"
id=
"Form"
method=
"post"
>
<form
action=
"${
pageContext.request.contextPath}/advertisement/${
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"
>
...
@@ -34,22 +34,32 @@
...
@@ -34,22 +34,32 @@
<td
style=
"width:75px;text-align: right;padding-top: 13px;"
>
标题:
</td>
<td
style=
"width:75px;text-align: right;padding-top: 13px;"
>
标题:
</td>
<td><input
type=
"text"
name=
"advertisement_name"
id=
"advertisement_name"
value=
"${pd.advertisement_name}"
maxlength=
"100"
placeholder=
"这里输入标题"
title=
"标题"
style=
"width:98%;"
/></td>
<td><input
type=
"text"
name=
"advertisement_name"
id=
"advertisement_name"
value=
"${pd.advertisement_name}"
maxlength=
"100"
placeholder=
"这里输入标题"
title=
"标题"
style=
"width:98%;"
/></td>
</tr>
</tr>
<tr>
<
%--<
tr>
<td style="width:75px;text-align: right;padding-top: 13px;">图片或者视频:</td>
<td style="width:75px;text-align: right;padding-top: 13px;">图片或者视频:</td>
<td><input type="text" name="advertisement_icom" id="advertisement_icom" value="${pd.advertisement_icom}" maxlength="255" placeholder="这里输入图片或者视频" title="图片或者视频" style="width:98%;"/></td>
<td><input type="text" name="advertisement_icom" id="advertisement_icom" value="${pd.advertisement_icom}" maxlength="255" placeholder="这里输入图片或者视频" title="图片或者视频" style="width:98%;"/></td>
</tr>
</tr>
--%>
<tr>
<tr>
<td
style=
"width:75px;text-align: right;padding-top: 13px;"
>
是否禁用:
</td>
<td
style=
"width:75px;text-align: right;padding-top: 13px;"
>
是否禁用:
</td>
<td><input
type=
"number"
name=
"advertisement_is_vaild"
id=
"advertisement_is_vaild"
value=
"${pd.advertisement_is_vaild}"
maxlength=
"32"
placeholder=
"这里输入是否禁用"
title=
"是否禁用"
style=
"width:98%;"
/></td>
<td
style=
"vertical-align:top;padding-left:2px;"
>
<select
class=
"chosen-select form-control"
name=
"advertisement_is_vaild"
id=
"advertisement_is_vaild"
style=
"vertical-align:top;width: 120px;"
>
<option
value=
"${pd.advertisement_is_vaild=='0'}"
>
禁用
</option>
<option
value=
"${pd.advertisement_is_vaild=='1'}"
>
上架
</option>
</select>
</td>
</tr>
</tr>
<tr>
<tr>
<td
style=
"width:75px;text-align: right;padding-top: 13px;"
>
排序:
</td>
<td
style=
"width:75px;text-align: right;padding-top: 13px;"
>
排序:
</td>
<td><input
type=
"number"
name=
"advertisement_order"
id=
"advertisement_order"
value=
"${pd.advertisement_order}"
maxlength=
"32"
placeholder=
"这里输入排序"
title=
"排序"
style=
"width:98%;"
/></td>
<td><input
type=
"number"
name=
"advertisement_order"
id=
"advertisement_order"
value=
"${pd.advertisement_order}"
maxlength=
"32"
placeholder=
"这里输入排序"
title=
"排序"
style=
"width:98%;"
/></td>
</tr>
</tr>
<tr>
<tr>
<input
type=
"hidden"
name=
"advertisement_type"
id=
"advertisement_type"
value=
"1"
maxlength=
"32"
placeholder=
"这里输入类型"
title=
"类型"
style=
"width:98%;"
/>
</tr>
<%--
<td style="width:75px;text-align: right;padding-top: 13px;">类型:</td>
<td style="width:75px;text-align: right;padding-top: 13px;">类型:</td>
<td><input type="number" name="advertisement_type" id="advertisement_type" value="${pd.advertisement_type}" maxlength="32" placeholder="这里输入类型" title="类型" style="width:98%;"/></td>
<td><input type="number" name="advertisement_type" id="advertisement_type" value="${pd.advertisement_type}" maxlength="32" placeholder="这里输入类型" title="类型" style="width:98%;"/></td>
</tr>
</tr>
--%>
<tr>
<tr>
<td
style=
"text-align: center;"
colspan=
"10"
>
<td
style=
"text-align: center;"
colspan=
"10"
>
<a
class=
"btn btn-mini btn-primary"
onclick=
"save();"
>
保存
</a>
<a
class=
"btn btn-mini btn-primary"
onclick=
"save();"
>
保存
</a>
...
@@ -58,7 +68,7 @@
...
@@ -58,7 +68,7 @@
</tr>
</tr>
</table>
</table>
</div>
</div>
<div
id=
"zhongxin2"
class=
"center"
style=
"display:none"
><br/><br/><br/><br/><br/><img
src=
"static/images/jiazai.gif"
/><br/><h4
class=
"lighter block green"
>
提交中...
</h4></div>
<div
id=
"zhongxin2"
class=
"center"
style=
"display:none"
><br/><br/><br/><br/><br/><img
src=
"
${pageContext.request.contextPath}/
static/images/jiazai.gif"
/><br/><h4
class=
"lighter block green"
>
提交中...
</h4></div>
</form>
</form>
</div>
</div>
<!-- /.col -->
<!-- /.col -->
...
@@ -76,11 +86,11 @@
...
@@ -76,11 +86,11 @@
<!-- 页面底部js¨ -->
<!-- 页面底部js¨ -->
<%@ include
file=
"../../system/index/foot.jsp"
%>
<%@ include
file=
"../../system/index/foot.jsp"
%>
<!-- 下拉框 -->
<!-- 下拉框 -->
<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
());
//保存
//保存
...
@@ -135,7 +145,7 @@
...
@@ -135,7 +145,7 @@
$
(
"#advertisement_type"
).
focus
();
$
(
"#advertisement_type"
).
focus
();
return
false
;
return
false
;
}
}
$
(
"#
f
orm"
).
submit
();
$
(
"#
F
orm"
).
submit
();
$
(
"#zhongxin"
).
hide
();
$
(
"#zhongxin"
).
hide
();
$
(
"#zhongxin2"
).
show
();
$
(
"#zhongxin2"
).
show
();
}
}
...
...
src/main/webapp/WEB-INF/jsp/tongmeng/advertisement/advertisement_edit_video.jsp
0 → 100644
浏览文件 @
a58acfc8
<%@ page
language=
"java"
contentType=
"text/html; charset=UTF-8"
pageEncoding=
"UTF-8"
%>
<%@ taglib
prefix=
"c"
uri=
"http://java.sun.com/jsp/jstl/core"
%>
<%@ taglib
prefix=
"fmt"
uri=
"http://java.sun.com/jsp/jstl/fmt"
%>
<%@ taglib
prefix=
"fn"
uri=
"http://java.sun.com/jsp/jstl/functions"
%>
<%
String
path
=
request
.
getContextPath
();
String
basePath
=
request
.
getScheme
()+
"://"
+
request
.
getServerName
()+
":"
+
request
.
getServerPort
()+
path
+
"/"
;
%>
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<!-- 下拉框 -->
<link
rel=
"stylesheet"
href=
"${pageContext.request.contextPath}/static/ace/css/chosen.css"
/>
<!-- jsp文件头和头部 -->
<%@ include
file=
"../../system/index/top.jsp"
%>
<!-- 日期框 -->
<link
rel=
"stylesheet"
href=
"${pageContext.request.contextPath}/static/ace/css/datepicker.css"
/>
</head>
<body
class=
"no-skin"
>
<!-- /section:basics/navbar.layout -->
<div
class=
"main-container"
id=
"main-container"
>
<!-- /section:basics/sidebar -->
<div
class=
"main-content"
>
<div
class=
"main-content-inner"
>
<div
class=
"page-content"
>
<div
class=
"row"
>
<div
class=
"col-xs-12"
>
<form
action=
"${pageContext.request.contextPath}/advertisement/${msg }.do"
name=
"Form"
id=
"Form"
method=
"post"
>
<input
type=
"hidden"
name=
"advertisement_id"
id=
"advertisement_id"
value=
"${pd.advertisement_id}"
/>
<div
id=
"zhongxin"
style=
"padding-top: 13px;"
>
<table
id=
"table_report"
class=
"table table-striped table-bordered table-hover"
>
<tr>
<td
style=
"width:75px;text-align: right;padding-top: 13px;"
>
标题:
</td>
<td><input
type=
"text"
name=
"advertisement_name"
id=
"advertisement_name"
value=
"${pd.advertisement_name}"
maxlength=
"100"
placeholder=
"这里输入标题"
title=
"标题"
style=
"width:98%;"
/></td>
</tr>
<%--<tr>
<td style="width:75px;text-align: right;padding-top: 13px;">图片或者视频:</td>
<td><input type="text" name="advertisement_icom" id="advertisement_icom" value="${pd.advertisement_icom}" maxlength="255" placeholder="这里输入图片或者视频" title="图片或者视频" style="width:98%;"/></td>
</tr>--%>
<tr>
<td
style=
"width:75px;text-align: right;padding-top: 13px;"
>
视频:
</td>
<td><input
type=
"file"
name=
"advertisement_icom"
id=
"advertisement_icom"
value=
"${pd.advertisement_icom}"
maxlength=
"255"
placeholder=
"这里输入视频"
title=
"视频"
style=
"width:98%;"
/></td>
</tr>
<tr>
<td
style=
"width:75px;text-align: right;padding-top: 13px;"
>
是否禁用:
</td>
<td><input
type=
"number"
name=
"advertisement_is_vaild"
id=
"advertisement_is_vaild"
value=
"${pd.advertisement_is_vaild}"
maxlength=
"32"
placeholder=
"这里输入是否禁用"
title=
"是否禁用"
style=
"width:98%;"
/></td>
</tr>
<tr>
<td
style=
"width:75px;text-align: right;padding-top: 13px;"
>
排序:
</td>
<td><input
type=
"number"
name=
"advertisement_order"
id=
"advertisement_order"
value=
"${pd.advertisement_order}"
maxlength=
"32"
placeholder=
"这里输入排序"
title=
"排序"
style=
"width:98%;"
/></td>
</tr>
<tr>
<input
type=
"hidden"
name=
"advertisement_type"
id=
"advertisement_type"
value=
"1"
maxlength=
"32"
placeholder=
"这里输入类型"
title=
"类型"
style=
"width:98%;"
/>
</tr>
<%--
<td style="width:75px;text-align: right;padding-top: 13px;">类型:</td>
<td><input type="number" name="advertisement_type" id="advertisement_type" value="${pd.advertisement_type}" maxlength="32" placeholder="这里输入类型" title="类型" style="width:98%;"/></td>
</tr>--%>
<tr>
<td
style=
"text-align: center;"
colspan=
"10"
>
<a
class=
"btn btn-mini btn-primary"
onclick=
"save();"
>
保存
</a>
<a
class=
"btn btn-mini btn-danger"
onclick=
"top.Dialog.close();"
>
取消
</a>
</td>
</tr>
</table>
</div>
<div
id=
"zhongxin2"
class=
"center"
style=
"display:none"
><br/><br/><br/><br/><br/><img
src=
"${pageContext.request.contextPath}/static/images/jiazai.gif"
/><br/><h4
class=
"lighter block green"
>
提交中...
</h4></div>
</form>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
<!-- /.page-content -->
</div>
</div>
<!-- /.main-content -->
</div>
<!-- /.main-container -->
<!-- 页面底部js¨ -->
<%@ include
file=
"../../system/index/foot.jsp"
%>
<!-- 下拉框 -->
<script
src=
"${pageContext.request.contextPath}/static/ace/js/chosen.jquery.js"
></script>
<!-- 日期框 -->
<script
src=
"${pageContext.request.contextPath}/static/ace/js/date-time/bootstrap-datepicker.js"
></script>
<!--提示框-->
<script
type=
"text/javascript"
src=
"${pageContext.request.contextPath}/static/js/jquery.tips.js"
></script>
<script
type=
"text/javascript"
>
$
(
top
.
hangge
());
//保存
function
save
(){
if
(
$
(
"#advertisement_name"
).
val
()
==
""
){
$
(
"#advertisement_name"
).
tips
({
side
:
3
,
msg
:
'请输入标题'
,
bg
:
'#ae81ff'
,
time
:
2
});
$
(
"#advertisement_name"
).
focus
();
return
false
;
}
if
(
$
(
"#advertisement_icom"
).
val
()
==
""
){
$
(
"#advertisement_icom"
).
tips
({
side
:
3
,
msg
:
'请输入图片或者视频'
,
bg
:
'#ae81ff'
,
time
:
2
});
$
(
"#advertisement_icom"
).
focus
();
return
false
;
}
if
(
$
(
"#advertisement_is_vaild"
).
val
()
==
""
){
$
(
"#advertisement_is_vaild"
).
tips
({
side
:
3
,
msg
:
'请输入是否禁用'
,
bg
:
'#ae81ff'
,
time
:
2
});
$
(
"#advertisement_is_vaild"
).
focus
();
return
false
;
}
if
(
$
(
"#advertisement_order"
).
val
()
==
""
){
$
(
"#advertisement_order"
).
tips
({
side
:
3
,
msg
:
'请输入排序'
,
bg
:
'#ae81ff'
,
time
:
2
});
$
(
"#advertisement_order"
).
focus
();
return
false
;
}
if
(
$
(
"#advertisement_type"
).
val
()
==
""
){
$
(
"#advertisement_type"
).
tips
({
side
:
3
,
msg
:
'请输入类型'
,
bg
:
'#ae81ff'
,
time
:
2
});
$
(
"#advertisement_type"
).
focus
();
return
false
;
}
$
(
"#form"
).
submit
();
$
(
"#zhongxin"
).
hide
();
$
(
"#zhongxin2"
).
show
();
}
$
(
function
()
{
//日期框
$
(
'.date-picker'
).
datepicker
({
autoclose
:
true
,
todayHighlight
:
true
});
});
</script>
</body>
</html>
\ No newline at end of file
src/main/webapp/WEB-INF/jsp/tongmeng/advertisement/advertisement_list.jsp
浏览文件 @
a58acfc8
...
@@ -17,6 +17,8 @@
...
@@ -17,6 +17,8 @@
<%@ include
file=
"../../system/index/top.jsp"
%>
<%@ include
file=
"../../system/index/top.jsp"
%>
<!-- 日期框 -->
<!-- 日期框 -->
<link
rel=
"stylesheet"
href=
"${pageContext.request.contextPath}/static/ace/css/datepicker.css"
/>
<link
rel=
"stylesheet"
href=
"${pageContext.request.contextPath}/static/ace/css/datepicker.css"
/>
<link
rel=
"stylesheet"
href=
"${pageContext.request.contextPath}/static/fun/jquery.growl/stylesheets/jquery.growl.css"
/>
<link
rel=
"stylesheet"
href=
"${pageContext.request.contextPath}/static/fun/selectWindow.css"
/>
</head>
</head>
<body
class=
"no-skin"
>
<body
class=
"no-skin"
>
...
@@ -54,11 +56,18 @@
...
@@ -54,11 +56,18 @@
</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>
--%>
--%>
<td
style=
"vertical-align:top;"
>
<c:if
test=
"
${
QX
.
add
==
1
}
"
>
<input
type=
"button"
value=
"新增"
class=
"dialog-btn dialog-ml50"
id=
"dialog-remove"
>
<!-- <a class="btn btn-mini btn-success" onclick="add();">新增</a> -->
</c:if>
</td>
</tr>
</tr>
</table>
</table>
<!-- 检索 -->
<!-- 检索 -->
...
@@ -70,11 +79,13 @@
...
@@ -70,11 +79,13 @@
<label
class=
"pos-rel"
><input
type=
"checkbox"
class=
"ace"
id=
"zcheckbox"
/><span
class=
"lbl"
></span></label>
<label
class=
"pos-rel"
><input
type=
"checkbox"
class=
"ace"
id=
"zcheckbox"
/><span
class=
"lbl"
></span></label>
</th>
</th>
<th
class=
"center"
style=
"width:50px;"
>
序号
</th>
<th
class=
"center"
style=
"width:50px;"
>
序号
</th>
<th
class=
"center"
>
店铺编码
</th>
<th
class=
"center"
>
标题
</th>
<th
class=
"center"
>
标题
</th>
<th
class=
"center"
>
图片或者视频
</th>
<th
class=
"center"
>
图片或者视频
</th>
<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>
<td
class=
"center"
>
排序操作
</td>
<td
class=
"center"
>
排序操作
</td>
<th
class=
"center"
>
操作
</th>
<th
class=
"center"
>
操作
</th>
</tr>
</tr>
...
@@ -91,12 +102,13 @@
...
@@ -91,12 +102,13 @@
<label
class=
"pos-rel"
><input
type=
'checkbox'
name=
'ids'
value=
"${var.advertisement_id}"
class=
"ace"
/><span
class=
"lbl"
></span></label>
<label
class=
"pos-rel"
><input
type=
'checkbox'
name=
'ids'
value=
"${var.advertisement_id}"
class=
"ace"
/><span
class=
"lbl"
></span></label>
</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'
id=
"${var.advertisement_id }"
>
${var.show_id}
</td>
<td
class=
'center'
>
${var.advertisement_name}
</td>
<td
class=
'center'
><img
src=
"${var.advertisement_icom}"
style=
"width: 100px;cursor: pointer; "
/></td>
<td
class=
'center'
><img
id=
"${var.advertisement_id }_img"
src=
"${var.advertisement_icom}"
style=
"width: 100px;cursor: pointer; "
/></td>
<td
class=
'center'
>
${var.is_satart_up=='0'?'禁用':'启用'}
</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=='1'?'图片':'视频'}
</td>
<td
class=
'center'
>
${var.advertisement_type=='1'?'图片':'视频'}
</td>
<td
class=
"center"
>
<td
class=
"center"
>
<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
}
"
>
...
@@ -123,6 +135,15 @@
...
@@ -123,6 +135,15 @@
</c:if> --%>
</c:if> --%>
</div>
</div>
</td>
</td>
<td
class=
"center"
>
<c:if
test=
"
${
var
.
advertisement_type
==
1
}
"
>
<a
style=
"cursor:pointer;"
onclick=
"storeList('${var.advertisement_id}');"
class=
"btn btn-xs btn-danger"
data-rel=
"tooltip"
>
<span
class=
"while"
>
<i
class=
"ace-icon fa fa-random bigger-120"
></i>
</span>
</a>
</c:if>
</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>
...
@@ -233,6 +254,8 @@
...
@@ -233,6 +254,8 @@
<script
src=
"${pageContext.request.contextPath}/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=
"${pageContext.request.contextPath}/static/js/jquery.tips.js"
></script>
<script
type=
"text/javascript"
src=
"${pageContext.request.contextPath}/static/js/jquery.tips.js"
></script>
<!-- 提示警告框 -->
<script
type=
"text/javascript"
src=
"${pageContext.request.contextPath}/static/fun/jquery.growl/javascripts/jquery.growl.js"
></script>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
$
(
top
.
hangge
());
//关闭加载状态
$
(
top
.
hangge
());
//关闭加载状态
//检索
//检索
...
@@ -331,7 +354,7 @@
...
@@ -331,7 +354,7 @@
var
diag
=
new
top
.
Dialog
();
var
diag
=
new
top
.
Dialog
();
diag
.
Drag
=
true
;
diag
.
Drag
=
true
;
diag
.
Title
=
"编辑"
;
diag
.
Title
=
"编辑"
;
diag
.
URL
=
'${pageContext.request.contextPath}/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
;
//有无遮罩窗口
...
@@ -345,6 +368,27 @@
...
@@ -345,6 +368,27 @@
};
};
diag
.
show
();
diag
.
show
();
}
}
//修改
function
addVideo
(
Id
){
top
.
jzts
();
var
diag
=
new
top
.
Dialog
();
diag
.
Drag
=
true
;
diag
.
Title
=
"编辑"
;
diag
.
URL
=
'${pageContext.request.contextPath}/advertisement/goEdit.do?advertisement_id='
+
Id
;
diag
.
Width
=
450
;
diag
.
Height
=
355
;
diag
.
Modal
=
true
;
//有无遮罩窗口
diag
.
ShowMaxButton
=
true
;
//最大化按钮
diag
.
ShowMinButton
=
true
;
//最小化按钮
diag
.
CancelEvent
=
function
(){
//关闭事件
if
(
diag
.
innerFrame
.
contentWindow
.
document
.
getElementById
(
'zhongxin'
).
style
.
display
==
'none'
){
tosearch
();
}
diag
.
close
();
};
diag
.
show
();
}
//批量操作
//批量操作
function
makeAll
(
msg
){
function
makeAll
(
msg
){
...
@@ -391,7 +435,7 @@
...
@@ -391,7 +435,7 @@
}
}
});
});
};
};
<!--
编辑排序码
-->
function
editOrder
(
clickId
,
clickCOde
,
opetion
){
function
editOrder
(
clickId
,
clickCOde
,
opetion
){
top
.
jzts
();
top
.
jzts
();
var
result
=
"yes"
;
var
result
=
"yes"
;
...
@@ -488,9 +532,38 @@
...
@@ -488,9 +532,38 @@
}
}
$
(
'#dialog-remove'
).
click
(
function
()
{
$
(
'#dialog-remove'
).
click
(
function
()
{
confirm
(
"请选择类型"
,
add
,
add
url
);
confirm
(
"请选择类型"
,
add
,
add
Video
);
});
});
});
});
function
storeList
(
id
){
top
.
jzts
();
var
diag
=
new
top
.
Dialog
();
diag
.
Drag
=
true
;
diag
.
Title
=
"编辑"
;
diag
.
URL
=
'${pageContext.request.contextPath}/advertisement/storeList.do?advertisement_id='
+
id
;
diag
.
Width
=
1024
;
diag
.
Height
=
1024
;
diag
.
Modal
=
true
;
//有无遮罩窗口
diag
.
ShowMaxButton
=
true
;
//最大化按钮
diag
.
ShowMinButton
=
true
;
//最小化按钮
diag
.
CancelEvent
=
function
(){
//关闭事件
if
(
diag
.
innerFrame
.
contentWindow
.
document
.
getElementById
(
'showId'
).
type
==
'hidden'
){
$
.
growl
.
notice
({
title
:
"商家列表绑定结果"
,
message
:
"绑定成功!"
});
$
(
"#"
+
id
).
html
(
diag
.
innerFrame
.
contentWindow
.
document
.
getElementById
(
'showId'
).
value
);
$
(
"#"
+
id
+
"_img"
).
attr
(
"src"
,
diag
.
innerFrame
.
contentWindow
.
document
.
getElementById
(
'ad_img'
).
value
);
}
diag
.
close
();
};
diag
.
show
();
}
</script>
</script>
...
...
src/main/webapp/WEB-INF/jsp/tongmeng/advertisement/advertisement_store_list.jsp
0 → 100644
浏览文件 @
a58acfc8
差异被折叠。
点击展开。
src/main/webapp/WEB-INF/jsp/tongmeng/banner/banner_list.jsp
浏览文件 @
a58acfc8
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
<!-- 日期框 -->
<!-- 日期框 -->
<link
rel=
"stylesheet"
href=
"${pageContext.request.contextPath}/static/ace/css/datepicker.css"
/>
<link
rel=
"stylesheet"
href=
"${pageContext.request.contextPath}/static/ace/css/datepicker.css"
/>
<link
rel=
"stylesheet"
href=
"${pageContext.request.contextPath}/static/fun/jquery.growl/stylesheets/jquery.growl.css"
/>
<link
rel=
"stylesheet"
href=
"${pageContext.request.contextPath}/static/fun/jquery.growl/stylesheets/jquery.growl.css"
/>
<link
rel=
"stylesheet"
href=
"${pageContext.request.contextPath}/static/fun/selectWindow.css"
/>
</head>
</head>
<style
type=
"text/css"
>
<style
type=
"text/css"
>
.csshidden
{
.csshidden
{
...
@@ -27,63 +28,6 @@
...
@@ -27,63 +28,6 @@
max-width
:
200px
max-width
:
200px
}
;
}
;
</style>
</style>
<style>
html
,
body
{
margin
:
0
;
padding
:
0
;
font-family
:
"Microsoft YaHei"
;
}
.wrap-dialog
{
position
:
fixed
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
font-size
:
16px
;
text-align
:
center
;
background-color
:
rgba
(
0
,
0
,
0
,
.4
);
z-index
:
999
;
}
.dialog
{
position
:
relative
;
margin
:
10%
auto
;
width
:
400px
;
background-color
:
#FFFFFF
;
}
.dialog
.dialog-header
{
height
:
50px
;
padding
:
10px
;
background-color
:
#22b9ff
;
}
.dialog
.dialog-body
{
padding-bottom
:
50px
;
padding
:
20px
;
}
.dialog
.dialog-footer
{
padding
:
8px
;
background-color
:
#f5f5f5
;
}
.dialog-btn
{
width
:
70px
;
padding
:
2px
;
cursor
:
pointer
;
}
.dialog-hide
{
display
:
none
;
}
.dialog-ml50
{
margin-left
:
10px
;
}
</style>
<body
class=
"no-skin"
>
<body
class=
"no-skin"
>
<!-- /section:basics/navbar.layout -->
<!-- /section:basics/navbar.layout -->
...
@@ -96,7 +40,7 @@
...
@@ -96,7 +40,7 @@
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-12"
>
<!-- 检索 -->
<!-- 检索 -->
<form
action=
"${pageContext.request.contextPath}/list.do"
method=
"post"
name=
"Form"
id=
"Form"
>
<form
action=
"${pageContext.request.contextPath}/
banner/
list.do"
method=
"post"
name=
"Form"
id=
"Form"
>
<table
style=
"margin-top:5px;"
>
<table
style=
"margin-top:5px;"
>
...
@@ -124,7 +68,7 @@
...
@@ -124,7 +68,7 @@
</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>
...
@@ -179,10 +123,11 @@
...
@@ -179,10 +123,11 @@
<td
class=
'center'
>
<td
class=
'center'
>
${(vs.index+1)+((page.currentPage-1)*10)}
${(vs.index+1)+((page.currentPage-1)*10)}
</td>
</td>
<td
class=
'center'
>
${var.is_satart_up=='0'?'禁用':'启用'}
</td>
<td
class=
'center'
>
${var.is_vaild=='0'?'禁用':'启用'}
</td>
<td
class=
'center'
>
${var.type=='1'?'车链接':'资讯链接'}
</td>
<td
class=
'center'
>
${var.type=='1'?'车链接':'资讯链接'}
</td>
<td
class=
'center'
><img
src=
"${var.icom}"
style=
"width: 100px;cursor: pointer; "
/></td>
<td
class=
'center'
><img
src=
"${var.icom}"
style=
"width: 100px;cursor: pointer; "
/></td>
<td
class=
'center'
id=
"id_
${var.banner_id}"
>
${var.show_id}
</td>
<td
class=
'center'
id=
"
${var.banner_id}"
>
${var.show_id}
</td>
<td
class=
"center"
>
<td
class=
"center"
>
<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
}
"
>
...
@@ -218,13 +163,11 @@
...
@@ -218,13 +163,11 @@
</span>
</span>
</a>
</a>
<a
style=
"cursor:pointer;"
onclick=
"storeList('${var.banner_id}'
,'${var.type }'
);"
class=
"btn btn-xs btn-danger"
data-rel=
"tooltip"
title=
"外部链接设置"
>
<a
style=
"cursor:pointer;"
onclick=
"storeList('${var.banner_id}');"
class=
"btn btn-xs btn-danger"
data-rel=
"tooltip"
title=
"外部链接设置"
>
<span
class=
"while"
>
<span
class=
"while"
>
<i
class=
"ace-icon fa fa-random bigger-120"
></i>
<i
class=
"ace-icon fa fa-random bigger-120"
></i>
</span>
</span>
</a>
</a>
</c:if>
</c:if>
</div>
</div>
...
@@ -418,13 +361,13 @@
...
@@ -418,13 +361,13 @@
diag
.
show
();
diag
.
show
();
}
}
//绑定FORUMINDO_show_id
function
storeList
(
id
,
type
){
function
storeList
(
id
){
top
.
jzts
();
top
.
jzts
();
var
diag
=
new
top
.
Dialog
();
var
diag
=
new
top
.
Dialog
();
diag
.
Drag
=
true
;
diag
.
Drag
=
true
;
diag
.
Title
=
"编辑"
;
diag
.
Title
=
"编辑"
;
diag
.
URL
=
'${pageContext.request.contextPath}/banner/storeList.do?banner
Id='
+
id
+
'&TYPE='
+
type
;
diag
.
URL
=
'${pageContext.request.contextPath}/banner/storeList.do?banner
_id='
+
id
;
diag
.
Width
=
1024
;
diag
.
Width
=
1024
;
diag
.
Height
=
1024
;
diag
.
Height
=
1024
;
diag
.
Modal
=
true
;
//有无遮罩窗口
diag
.
Modal
=
true
;
//有无遮罩窗口
...
@@ -437,10 +380,10 @@
...
@@ -437,10 +380,10 @@
if
(
diag
.
innerFrame
.
contentWindow
.
document
.
getElementById
(
'showId'
).
type
==
'hidden'
){
if
(
diag
.
innerFrame
.
contentWindow
.
document
.
getElementById
(
'showId'
).
type
==
'hidden'
){
$
.
growl
.
notice
({
$
.
growl
.
notice
({
title
:
"
"
,
title
:
"商家列表绑定结果
"
,
message
:
"绑定成功!"
message
:
"绑定成功!"
});
});
$
(
"#
id_
"
+
id
).
html
(
diag
.
innerFrame
.
contentWindow
.
document
.
getElementById
(
'showId'
).
value
);
$
(
"#"
+
id
).
html
(
diag
.
innerFrame
.
contentWindow
.
document
.
getElementById
(
'showId'
).
value
);
}
}
/* nextPage(${page.currentPage}); */
/* nextPage(${page.currentPage}); */
/* } */
/* } */
...
...
src/main/webapp/WEB-INF/jsp/tongmeng/banner/banner_store_list.jsp
浏览文件 @
a58acfc8
差异被折叠。
点击展开。
src/main/webapp/static/fun/selectWindow.css
0 → 100644
浏览文件 @
a58acfc8
html
,
body
{
margin
:
0
;
padding
:
0
;
font-family
:
"Microsoft YaHei"
;
}
.wrap-dialog
{
position
:
fixed
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
font-size
:
16px
;
text-align
:
center
;
background-color
:
rgba
(
0
,
0
,
0
,
.4
);
z-index
:
999
;
}
.dialog
{
position
:
relative
;
margin
:
10%
auto
;
width
:
400px
;
background-color
:
#FFFFFF
;
}
.dialog
.dialog-header
{
height
:
50px
;
padding
:
10px
;
background-color
:
#22b9ff
;
}
.dialog
.dialog-body
{
padding-bottom
:
50px
;
padding
:
20px
;
}
.dialog
.dialog-footer
{
padding
:
8px
;
background-color
:
#f5f5f5
;
}
.dialog-btn
{
width
:
70px
;
padding
:
2px
;
cursor
:
pointer
;
}
.dialog-hide
{
display
:
none
;
}
.dialog-ml50
{
margin-left
:
10px
;
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论