Authored by 陶雨

1、帮助分类

2、帮助内容
3、公告管理
... ... @@ -14,7 +14,11 @@ var urlObj={
'maxSort': '/goods/query/maxSort',
'shopsRest':'/ShopsRest/getShopsByName',
'sortlist':'/product/class/queryAllProductSortList',
'productPool':'queryBaseProductPoolList'
'productPool':'/runManage/subjectManage/queryBaseProductPoolListByName',
'firstCategory':'/operations/helpcategory/getCategoryListByPid',
'getByCategoryId':'/operations/helpcontent/getSecondCategoryList',
'getAllHelpCategory':'/operations/helpcontent/getAllHelpCategory',
'getHelpCategory':'/operations/helpcontent/getHelpCategory'
};
var dropDown=function(option){
... ...
... ... @@ -5,10 +5,19 @@ var $ = require('jquery');
var g = new common.grid({
el: '#help_list',
columns: [
{display: "编号", name: "name"},
{display: "分类名称", name: "category"},
{display: "显示平台", name: "paltform"},
{display: "时间", name: "time"},
{display: "编号", name: "id"},
{display: "分类名称", name: "categoryName"},
{display: "显示平台", name: "platform", render: function(item) {
if(item.platform != null && item.platform.trim() != "") {
var platform = item.platform;
var temp = platform.replace("iphone", "IOS手机").replace("ipad", "IOS Pad")
.replace("android", "安卓手机").replace("androidpad", "安卓Pad")
.replace("h5", "手机网站").replace("web", "网站")
.replace("platform", "平台").replace(/\|/g, " ");
return temp;
}
}},
{display: "时间", name: "createTime"},
{
display: "操作", name: "", render: function (item) {
... ... @@ -21,58 +30,79 @@ var $ = require('jquery');
]
});
g.init("/operations111/helpcategory/index111");
g.init("/operations/helpcategory/getAllHelpCategory");
var Bll = {
onClick:function(arg1, arg2, arg3) {
var e = new common.edit("#baseform");
var Bll = {
getLocalTime:function(nS) {
var date = new Date(parseInt(nS) * 1000);
var mm = date.getMonth() + 1;
var dd = date.getDate();
return date.getFullYear() + "-" + (mm < 10 ? "0" + mm : mm) + "-" + (dd < 10 ? "0" + dd : dd);
},
onClick:function(url, item, hint) {
var e = new common.edit("#baseform");
console.log(arg2);
common.dialog.confirm(arg3,
common.util.__template($("#template").html(), arg2),
function() {
e.submit(arg1,function(option){
// option.data.category=option.data.category_name_value+"--uoho";
// console.log(option.data);
option.success=function(){
alert("suc");
g.reload();
};
option.error=function(){
alert("fail");
}
console.log(item);
common.dialog.confirm(hint,
common.util.__template($("#template").html(), item),
function() {
e.submit(url,function(option){
// option.data.category=option.data.category_name_value+"--uoho";
// console.log(option.data);
// option.debug=true;
option.success=function(){
g.reload();
};
option.error=function(){
}
});
});
});
e.init();
new common.dropDown({el: "#xxx"});
e.init();
// console.log(item.parentId);
new common.dropDown({el: "#parentId", "ajax": "firstCategory"});
if(hint == "修改分类") {
common.util.__ajax({
url:'/operations/helpcategory/getCategoryListByPid',
data:{id:item.parentId}
},function(res) {
for(var i = 0; i < res.data.length; i++) {
if(item.parentId == res.data[i].id) {
$("#select2-parentId-container").html(res.data[i].text);
break;
}
}
});
}
}
}
};
$('#add-category').on('click', function () {
var item={};
Bll.onClick("/operations111/helpcategory/index222",item,"添加分类");
Bll.onClick("/operations/helpcategory/addCategory",item,"添加分类");
});
$('#help_list').on('click', '.add2', function () {
$(document).on('click', '.add2', function () {
var item=g.rows[$(this).data("index")];
Bll.onClick("/operations111/helpcategory/indexModify",item, "修改分类");
Bll.onClick("/operations/helpcategory/updateHelpCategory",item, "修改分类");
});
$('#help_list').on('click', '.delbtn', function() {
var e = new common.edit("baseform");
common.dialog.confirm("是否确认删除",
"",
$(document).on('click', '.delbtn', function() {
var item=g.rows[$(this).data("index")];
common.dialog.confirm("警告",
"确认删除?",
function() {
e.submit("/operations111/helpcategory/indexDelete", function(option) {
option.success=function() {
alert("删除成功");
common.util.__ajax({
url:'/operations/helpcategory/deleteHelpCategory',
data:{
id: item.id,
parentId: item.parentId
}
},function() {
g.reload();
};
option.error=function() {
alert("删除失败");
};
})
});
});
e.init();
});
... ...
var $ = require('jquery'),
common = require('../common/common');
new common.dropDown({el: "#help-categoryId", "ajax": "getHelpCategory"});
new common.dropDown({el: "#help-platform"});
var ENUM = {
id:{}
};
var g = new common.grid({
el: "#content-list",
parms: function () {
return {
categoryId: common.util.__input('help-categoryId'),
platform: common.util.__input('help-platform')
};
},
columns: [
{display: "编号", name: "id"},
{display: "标题", name: "title"},
{display: "分类", name: "categoryId", render: function(item) {
return ENUM.id[item.id];
}},
{display: "平台", name: "platform", render: function(item) {
if(item.platform != null && item.platform.trim() != "") {
var platform = item.platform;
var temp = platform.replace("iphone", "IOS手机").replace("ipad", "IOS Pad")
.replace("android", "安卓手机").replace("androidpad", "安卓Pad")
.replace("h5", "手机网站").replace("web", "网站")
.replace("platform", "平台").replace(/\|/g, " ");
return temp;
}
}},
{
display: "操作",name: "", render: function (item) {
var arr = [];
arr.push('<a class="btn btn-info add2" data-index="' + item.__index + '">编辑</a>');
arr.push('<a class="btn btn-info delbtn" data-index="' + item.__index + '">删除</a>');
return arr.join("");
}
}
]
});
common.util.__ajax({
url:'/operations/helpcategory/getAllHelpCategory',
data:{}
},function(res){
var list = res.data.list;
for(var i = 0; i < list.length; i++) {
ENUM.id[list[i].id] = list[i].categoryName;
}
});
g.init('/operations/helpcontent/getAllHelpContent');
var Bll = {
toast:function(url, item, hint) {
var e = new common.edit("#baseform");
common.dialog.confirm(hint,
common.util.__template($("#template").html(), item),
function() {
e.submit(url, function (option) {
option.data.categoryId = item.categoryId;
option.success=function() {
g.reload();
};
option.error=function(){};
});
});
e.init();
new common.dropDown({el: "#categoryId", "ajax": "getByCategoryId"});
if(hint == "修改内容") {
$("#select2-categoryId-container").html(ENUM.id[item.id]);
}
}
};
$(document).on('click', '.add2', function() {
var item = g.rows[$(this).data("index")];
Bll.toast('/operations/helpcontent/updateHelpContent', item, "修改内容");
});
$('#add-content').on('click', function() {
var item = {};
Bll.toast('/operations/helpcontent/addHelpContent', item, "添加内容");
});
$(document).on('click', '.delbtn', function() {
var item = g.rows[$(this).data("index")];
common.dialog.confirm("警告",
"确认删除?",
function() {
common.util.__ajax({
url: '/operations/helpcontent/deleteHelpContent',
data: {id: item.id}
}, function() {
g.reload();
});
});
});
$(document).on('click', '#filter-btn', function() {
g.reload(1);
});
\ No newline at end of file
... ...
var $ = require('jquery'),
common = require('../common/common');
new common.dropDown({el: "#notice-position"});
var g = new common.grid({
el: "#notice-list",
parms: function () {
return {
title: common.util.__input('notice-title'),
position: common.util.__input('notice-position')
};
},
columns: [
{display: "ID", name: "id"},
{display: "公告", name: "title"},
{display: "位置", name: "position", render: function(item) {
if(item.position == 1) {
return "首页";
} else if(item.position == 2) {
return "个人中心";
}
}},
{display: "url地址", name: "url"},
{display: "开始时间",name: "startTime"},
{display: "结束时间",name: "endTime"},
{
display: "状态",name: "", render: function (item) {
if(item.status == 0) {
return '<a class="btn btn-danger statbtn" data-index="' + item.__index + '">公告已关闭</a>';
} else {
return '<a class="btn btn-warning statbtn" data-index="' + item.__index + '">公告已开启</a>';
}
}
},
{
display: "操作",name: "", render: function (item) {
var arr = [];
arr.push('<a class="btn btn-info add2" data-index="' + item.__index + '">编辑</a>');
arr.push('<a class="btn btn-info delbtn" data-index="' + item.__index + '">删除</a>');
return arr.join("");
}
}
]
});
g.init('/operations/notice/getList');
var Bll = {
toast:function(url, item, hint) {
var e = new common.edit("#baseform");
common.dialog.confirm(hint,
common.util.__template($("#template").html(), item),
function() {
e.submit(url, function (option) {
option.data.startTime=new Date(option.data.startTime).getTime() / 1000;
option.data.endTime=new Date(option.data.endTime).getTime() / 1000;
if($("#intent").val()) {
option.data.url = '{"action":"go.' + $("#intent").val()
+ '","url":"' + $("#url").val() + '"}';
}
option.success=function() {
console.log(item.showChannels);
g.reload();
};
option.error=function(){};
});
});
e.init();
new common.dropDown({el: "#position"});
// new common.dropDown({el: "#intent"});
if($("#position").val() == "1") {
$("#showchannel").show();
} else {
$("#showchannel").hide();
}
$("#position").on('change', function() {
if($("#position").val() == "1") {
$("#showchannel").show();
} else {
$("#showchannel").hide();
}
});
if(item.url && item.url.indexOf('"action"') != -1) {
var urlIndex = '","url":"';
$("#intent").val(item.url.substring('{"action":"go.'.length, item.url.indexOf(urlIndex)));
$("#url").val(item.url.substring(item.url.indexOf(urlIndex) + urlIndex.length, item.url.length - 2));
}
}
};
$('#add-notice').on('click', function() {
var item = {};
Bll.toast('/operations/notice/addNotice', item, "创建公告");
});
$(document).on('click', '.add2', function() {
var item = g.rows[$(this).data("index")];
console.log(item);
Bll.toast('/operations/notice/updateNotice', item, "公告编辑");
});
$(document).on('click', '.statbtn', function() {
var statbtn = $(this);
var item = g.rows[$(this).data("index")];
if(item.status == 1) {
item.status = 0;
} else {
item.status = 1;
}
common.util.__ajax({
url: '/operations/notice/setStatus',
data: {
id: item.id,
status: item.status
}
}, function() {
g.reload();
});
});
$(document).on('click', '#filter-btn', function() {
g.reload(1);
});
$(document).on('click', '.delbtn', function() {
var item = g.rows[$(this).data("index")];
common.dialog.confirm("警告",
"确认删除?",
function() {
common.util.__ajax({
url: '/operations/notice/delNotice',
data: {id: item.id}
}, function() {
g.reload();
});
});
});
\ No newline at end of file
... ...
... ... @@ -28,10 +28,12 @@ var $ = require('jquery'),
}},
{display: "促销形式", name: "promotionName"},
{display: "平台", name: "plateform", render: function (item) {
if(item.plateform == "1") return "WEB";
else if(item.plateform == "2") return "APP";
else if(item.plateform == "3") return "WAP";
else if(item.plateform == "4") return "IPAD";
if(item.plateform != null && item.plateform.trim() != "") {
var paltform = item.plateform;
var temp = paltform.replace("1", "WEB").replace("2", "APP").replace("3", "WAP").replace("4", "IPAD");
return temp;
}
}},
{display: "状态", name: "status", render: function (item) {
if(item.status == 1) return "未定时";
... ... @@ -88,7 +90,7 @@ var $ = require('jquery'),
if(typeof option.data.startTime == "string") {
option.data.startTime=new Date(option.data.startTime).getTime() / 1000;
option.data.endTime=new Date(option.data.endTime).getTime() / 1000;
console.log(option.data.startTime);
// console.log(option.data.startTime);
}
var arr;
try {
... ... @@ -138,7 +140,7 @@ var $ = require('jquery'),
if(hint == "专题编辑") {
common.util.__ajax({
url:'/runManage/subjectManage/queryBaseProductPoolList',
url:'/runManage/subjectManage/queryBaseProductPoolListById',
data:{id:item.productPoolId}
},function(res) {
// console.log(res);
... ...
// exports.domain = "http://172.16.6.236:8080/platform";
exports.domain = require('../config/common.js').domain;
// exports.domain = 'http://localhost:30012';
exports.res = [
{
route:'/operations/helpcontent/index',
method:'GET',
view:'pages/help/helpContent',
src:'/help/helpContent'
},
{
route:'/operations/helpcontent/getAllHelpContent',
method:'POST',
url: '/HelpContentRest/getAllHelpContent',
params: [
{name: 'categoryId', type: 'Number'},
{name: 'platform', type: 'string'},
// {name: 'page', type: 'Number'},
// {name: 'size', type: 'Number', def:10}
]
},
{
route:'/operations/helpcontent/addHelpContent',
method:'POST',
url:'/HelpContentRest/addHelpContent',
params: [
{name: 'title', type: 'string'},
{name: 'categoryId', type: 'Number'},
{name: 'content', type: 'string'},
{name: 'platform', type: 'string'}
]
},
{
route:'/operations/helpcontent/updateHelpContent',
method:'POST',
url:'/HelpContentRest/updateHelpContent',
params: [
{name: 'id', type: 'Number'},
{name: 'title', type: 'string'},
{name: 'categoryId', type: 'Number'},
{name: 'content', type: 'string'},
{name: 'platform', type: 'string'}
]
},
{
route:'/operations/helpcontent/deleteHelpContent',
method:'POST',
url:'/HelpContentRest/deleteHelpContent',
params: [
{name: 'id', type: 'Number'}
]
},
{
route:'/operations/helpcontent/getHelpContentByCategoryId',
method:'POST',
url:'/HelpContentRest/getHelpContentByCategoryId',
params:[
{name: 'categoryId', type: 'Number'}
]
},
{
route:'/operations/helpcontent/getSecondCategoryList',
method:'POST',
url:'/HelpCategoryRest/getSecondCategoryList',
params:[]
},
{
route:'/operations/helpcontent/getAllHelpCategory',
method:'POST',
url:'/HelpCategoryRest/getAllHelpCategory',
params:[]
},
{
route:'/operations/helpcontent/getHelpCategory',
method:'POST',
url:'/HelpCategoryRest/getHelpCategory',
params:[]
}
];
\ No newline at end of file
... ...
exports.domain = 'http://localhost:30012';
// exports.domain = 'http://localhost:30012';
// exports.domain = "http://172.16.6.236:8080/platform";
exports.domain = require('../config/common.js').domain;
exports.res = [
{
route:'/operations111/helpcategory/index',
route:'/operations/helpcategory/index',
method: 'GET',
view: 'pages/help/help',
src: '/help/helpCategory'
},{
route: '/operations111/helpcategory/index111',
route: '/operations/helpcategory/getAllHelpCategory',
method: 'POST',
url:'/paltform/helpcategory/getReviewList',
params: [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number',def:10}
]
url:'/HelpCategoryRest/getAllHelpCategory',
params: []
},{
route: '/operations111/helpcategory/index222',
route: '/operations/helpcategory/addCategory',
method: 'POST',
url: '/goods',
url: '/HelpCategoryRest/addCategory',
params: [
{name: 'name', type: 'String'},
{name: 'category', type: 'String'},
{name: 'paltform', type: 'String'}
{name: 'categoryName', type: 'String'},
{name: 'parentId', type: 'Number'},
{name: 'platform', type: 'String'}
]
},{
route: '/operations111/helpcategory/indexModify',
route: '/operations/helpcategory/updateHelpCategory',
method: 'POST',
url: '/goods',
url: '/HelpCategoryRest/updateHelpCategory',
params: [
{name: 'id', type: 'Number'},
{name: 'name', type: 'String'},
{name: 'category', type: 'String'},
{name: 'paltform', type: 'String'}
{name: 'categoryName', type: 'String'},
{name: 'parentId', type: 'Number'},
{name: 'platform', type: 'String'}
]
},{
route: '/operations111/helpcategory/indexDelete',
route: '/operations/helpcategory/deleteHelpCategory',
method: 'POST',
url: '/goods',
url: '/HelpCategoryRest/deleteHelpCategory',
params: [
{name: 'name', type: 'String'}
{name: 'id', type: 'Number'},
{name: 'parentId', type: 'Number'}
]
},{
route: '/operations/helpcategory/getCategoryListByPid',
method: 'POST',
url: '/HelpCategoryRest/getCategoryListByPid',
params: [
{name: 'parentId', type: 'Number'}
]
}]
\ No newline at end of file
... ...
exports.domain = "http://172.16.6.127:9090";
// exports.domain = require('../config/common.js').domain;
// exports.domain = 'http://localhost:30012';
exports.res = [
{
route:'/operations/notice/index',
method:'GET',
view:'pages/notice/noticeManage',
src:'/notice/noticeManage'
},
{
route:'/operations/notice/getList',
method:'POST',
url: '/notice/getList',
params: [
{name: 'title', type: 'string'},
{name: 'position', type: 'Number'},
{name: 'showChannel', type: 'string'}
]
},
{
route:'/operations/notice/addNotice',
method:'POST',
url: '/notice/addNotice',
params: [
{name: 'title', type: 'string'},
{name: 'position', type: 'Number'},
{name: 'showChannels', type: 'string'},
{name: 'url', type: 'string'},
{name: 'img', type: 'string'},
{name: 'startTime', type: 'Number'},
{name: 'endTime', type: 'Number'}
]
},
{
route:'/operations/notice/setStatus',
method:'POST',
url: '/notice/setStatus',
params: [
{name: 'id', type: 'Number'},
{name: 'status', type: 'Number'}
]
},
{
route:'/operations/notice/updateNotice',
method:'POST',
url: '/notice/updateNotice',
params: [
{name: 'id', type: 'Number'},
{name: 'title', type: 'string'},
{name: 'position', type: 'Number'},
{name: 'showChannels', type: 'string'},
{name: 'url', type: 'string'},
{name: 'img', type: 'string'},
{name: 'startTime', type: 'Number'},
{name: 'endTime', type: 'Number'}
]
},
{
route:'/operations/notice/delNotice',
method:'POST',
url: '/notice/delNotice',
params: [
{name: 'id', type: 'Number'}
]
}
];
\ No newline at end of file
... ...
... ... @@ -73,7 +73,7 @@ exports.res = [
]
},
{
route: '/runManage/subjectManage/queryBaseProductPoolList',
route: '/runManage/subjectManage/queryBaseProductPoolListByName',
method: 'POST',
isJsonRaw: true,
url: '/pool/queryBaseProductPoolList',
... ... @@ -82,20 +82,11 @@ exports.res = [
]
},
{
route: '/runManage/subjectManage/queryBaseProductPoolList',
route: '/runManage/subjectManage/queryBaseProductPoolListById',
method: 'POST',
isJsonRaw: true,
url: '/pool/queryBaseProductPoolList',
params: [
{name: 'id', type: 'number'}
]
},
{
route: '/runManage/subjectManage/',//排序修改
method: 'POST',
isJsonRaw: true,
url: '',
params: [
]
}];
\ No newline at end of file
... ...
... ... @@ -31,31 +31,30 @@
<div class="col-sm-10">
<input type="hidden" value="{id}" id="id" />
<input type="text" value="{name}" id="category" class="form-control" required="required" />
<input type="text" value="{categoryName}" id="categoryName" class="form-control" required="required" />
<label>注:分类名称必填</label>
</div>
</div>
<div class="form-group">
<label for="fir_category_value" class="col-sm-2 control-label">一级分类</label>
<div class="col-sm-10">
<select id="xxx" style="width: 280px;">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="opel">Opel</option>
<option value="audi">Audi</option>
<select id="parentId" style="width: 280px;" value="{parentId}" name="{parentId}">
<option value="{parentId}">请选择</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">品牌风格</label>
<div class="col-sm-8">
<label style="cursor: pointer;"><input type="checkbox" name="paltform" value="运动"> 运动</label>
<label style="cursor: pointer;"><input type="checkbox" name="paltform" value="户外"> 户外</label>
<label style="cursor: pointer;"><input type="checkbox" name="paltform" value="街头"> 街头</label>
<label style="cursor: pointer;"><input type="checkbox" name="paltform" value="暗黑"> 暗黑</label>
<label style="cursor: pointer;"><input type="checkbox" name="paltform" value="军事"> 军事</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="iphone">IOS手机</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="ipad">IOS Pad</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="android">安卓手机</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="androidpad">安卓Pad</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="h5">手机网站</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="web">网站</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="platform">平台</label>
</div>
<input type="hidden" id="paltform" value="{paltform}" for="checkbox">
<input type="hidden" id="platform" value="{platform}" for="checkbox">
</div>
</div>
</script>
\ No newline at end of file
... ...
<div class="pageheader">
<div class="media">
<div class="pageicon pull-left">
<i class="fa fa-th-list"></i>
</div>
<div class="media-body">
<ul class="breadcrumb">
<li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
<li><a href="">帮助管理</a></li>
<li>内容列表管理</li>
</ul>
<div>
<div style="width: 30%;float: left;">
<h4>内容列表管理</h4>
</div>
</div>
</div>
</div>
</div>
<div class="panel panel-default" style="margin-bottom:10px;">
<div class="panel-heading">
<a class="btn btn-success " id="add-content"><i class="fa fa-plus"></i> 添加内容</a>
</div>
<div class="panel-body">
<div class="row">
<div class="panel-col">
<select value="{categoryId}" name="categoryId" id="help-categoryId" tabindex="-1" title="" class="select2-offscreen brandBtn-group">
<option value="-1">选择分类</option>
</select>
</div>
<div class="panel-col">
<select name="platform" id="help-platform" tabindex="-1" title="" class="select2-offscreen brandBtn-group">
<option value="" selected="">选择显示平台</option>
<option value="iphone">IOS手机</option>
<option value="ipad">IOS Pad</option>
<option value="android">安卓手机</option>
<option value="androidpad">安卓Pad</option>
<option value="h5">手机网站</option>
<option value="web">网站</option>
<option value="platform">平台</option>
</select>
</div>
<a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
<a id="filter-all" href="/operations/helpcontent/index1" class="btn btn-info">全部</a>
</div>
</div>
<div id="content-list"></div>
</div>
<script type="text/template" id="template">
<div class="rows" id="baseform">
<div class="form-group">
<label class="col-sm-2 control-label" for="title">标题</label>
<input type="hidden" value="{id}" id="id" />
<div class="col-sm-10">
<input type="text" value="{title}" class="form-control" id="title" required="required" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="helpContent">帮助内容</label>
<div class="col-sm-10">
<input type="text" value="{content}" class="form-control" id="content" required="required" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="categoryId">分类</label>
<div class="col-sm-10">
<select id="categoryId" style="width: 280px;" value="{categoryId}">
<option value="-1">请选择分类</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">显示平台</label>
<div class="col-sm-8">
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="iphone">IOS手机</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="ipad">IOS Pad</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="android">安卓手机</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="androidpad">安卓Pad</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="h5">手机网站</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="web">网站</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="platform">平台</label>
</div>
<input type="hidden" id="platform" value="{platform}" for="checkbox">
</div>
</div>
</script>
\ No newline at end of file
... ...
<div class="pageheader">
<div class="media">
<div class="pageicon pull-left">
<i class="fa fa-th-list"></i>
</div>
<div class="media-body">
<ul class="breadcrumb">
<li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
<li><a href="">公告管理</a></li>
<li>公告管理</li>
</ul>
<div>
<div style="width: 30%;float: left;">
<h4>公告管理列表</h4>
</div>
</div>
</div>
</div>
</div>
<div class="panel panel-default" style="margin-bottom:10px;">
<div class="panel-heading">
<a class="btn btn-success " id="add-notice"><i class="fa fa-plus"></i> 创建公告</a>
</div>
<div class="panel-body">
<div class="row">
<div class="panel-col">
<input type="text" placeholder="公告标题" id="notice-title" class="form-control" />
</div>
<div class="panel-col">
<select name="position" id="notice-position" tabindex="-1" title="" class="select2-offscreen brandBtn-group">
<option value="" selected="">位置</option>
<option value="1">首页</option>
<option value="2">个人中心</option>
</select>
</div>
<a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
<a id="filter-all" href="/operations/notice/index" class="btn btn-info">全部</a>
</div>
</div>
<div id="notice-list"></div>
</div>
<script type="text/template" id="template">
<div class="rows" id="baseform">
<div class="form-group">
<label class="col-sm-2 control-label" for="title">公告标题</label>
<input type="hidden" value="{id}" id="id" />
<div class="col-sm-10">
<input type="text" value="{title}" class="form-control" id="title" required="required" placeholder="公告标题" required="required" />
<p style="color:#999;margin-top: 5px;">注:请控制在15个字之内,多余15个字,5s等手机屏幕前台会显示不全。</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="position">公告位置</label>
<div class="col-sm-5">
<select name="position" id="position" tabindex="-1" title="" class="select2-offscreen brandBtn-group" value="{position}" required="required">
<option value="" selected="">请选择</option>
<option value="1">首页</option>
<option value="2">个人中心</option>
</select>
</div>
<div id="showchannel" class="col-sm-5">
<label style="cursor: pointer;"><input type="checkbox" name="showChannels" value="1">男首</label>
<label style="cursor: pointer;"><input type="checkbox" name="showChannels" value="2">女首</label>
<label style="cursor: pointer;"><input type="checkbox" name="showChannels" value="3">潮童</label>
<label style="cursor: pointer;"><input type="checkbox" name="showChannels" value="4">创意生活</label>
</div>
<input type="hidden" id="showChannels" value="{showChannels}" for="checkbox">
</div>
<div class="form-group">
<label class="col-sm-2 control-label">url地址</label>
<div class="col-sm-4">
<select id="intent" name="goTo" class="form-control" >
<option value="">选择跳转目的</option>
<option value="brand">品牌列表页</option>
<option value="productDetail">商品详情页</option>
<option value="coupon">优惠券页</option>
<option value="fav">收藏列表页</option>
<option value="mine">我的页面</option>
<option value="list">列表或搜索页</option>
<option value="attention">关注页</option>
<option value="plus">plus</option>
<option value="star">star</option>
<option value="new">新品到着页</option>
<option value="sale">折扣页</option>
<option value="h5">h5网页</option>
<option value="guangchannel">逛频道</option>
<option value="gender">男女首页</option>
<option value="activity">app活动页</option>
<option value="home">频道首页</option>
<option value="yohood">YOHOOD</option>
<option value="top100">热销排行</option>
<option value="activitytemplate">活动模板</option>
<option value="globalpurchase">全球购</option>
<option value="subchannel">二级频道</option>
<option value="guangchannel">逛频道或SHOW晒单页</option>
<option value="showgoods">去晒单</option>
<option value="limitpurchase">尖货频道</option>
<option value="vippro">会员商品</option>
<option value="shortsize">断码页</option>
<option value="discountmarket">折扣专区</option>
<option value="discountmarketpro">折扣专区详情页</option>
</select>
</div>
<div class="col-sm-4">
<input id="url" value="{url}" class="form-control" placeholder="URL地址" />
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">图片</label>
<div class="col-sm-10">
<input type="file" id="img" name="img" value="{img}" />
</div>
</div>
<div class="form-group col-sm-100">
<label class="col-sm-2 control-label">活动时间</label>
<div class="panel-col1 col-sm-4">
<input type="text" id="startTime" jsaction="time:end:endTime" class="form-control panel-input hasDatepicker " name="start_time" placeholder="开始时间" value="{startTime}">
</div>
<div class="panel-col1 col-sm-4">
<input type="text" id="endTime" jsaction="time:start:startTime" class="form-control panel-input hasDatepicker" name="end_time" placeholder="结束时间" value="{endTime}">
</div>
</div>
</div>
</script>
\ No newline at end of file
... ...
... ... @@ -58,13 +58,6 @@
<div class="contentpanel">
<div class="panel panel-default" style="margin-bottom: 10px">
<!-- <div class="panel-body">
<div class="row">
排序<input type="text" name="sort" size="1" />
<input type="button" id="save" value="保存" />
<input type="button" id="cancel" value="取消" />
</div>
</div> -->
<input type="hidden" id="url" value="/runManage/subjectManage/subjectList" />
<div id="subject-manage"></div>
</div>
... ... @@ -90,7 +83,7 @@
<div class="form-group">
<label class="col-sm-2 control-label" for="title">标题<font color="#f00">*</font></label>
<div class="col-sm-8">
<input type="text" value="{title}" class="form-control" id="title" />
<input type="text" value="{title}" class="form-control" id="title" required="required" />
</div>
</div>
<div class="form-group">
... ... @@ -137,19 +130,19 @@
<div class="form-group">
<label class="col-sm-2 control-label">LOGO图片</label>
<div class="col-sm-10">
<input type="file" id="logoUrl" value="{logoUrl}" /><!---->
<input type="file" id="logoUrl" name="logoUrl" /><!---->
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">封面图</label>
<div class="col-sm-10">
<input type="file" id="coverUrl" value="{coverUrl}" />
<input type="file" id="coverUrl" name="coverUrl" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">web列表页图</label>
<div class="col-sm-10">
<input type="file" id="webUrl" value="{webUrl}" />
<input type="file" id="webUrl" name="webUrl" />
</div>
</div>
<div class="form-group">
... ...