Authored by 王钱钧

添加逛模块代码

... ... @@ -31,6 +31,7 @@ var urlObj = {
// 逛
'guangGetAuthorList':'/guang/article/getAuthorList', // 逛-获取作者
'guangGetSortList':'/guang/article/getSortList', // 逛-获取作者
'guangGetTagCategoryByStatus':'/guang/tagSort/getTagItems',
};
var minimumResultsForSearch=["sortbybrand","getjitSup"];
... ...
... ... @@ -54,6 +54,17 @@ var g = new common.grid({
display: '分类',
name: "name"
}, {
display: '级别',
render: function (item) {
var level="一级";
if (item.parentId != 0) {
level = "二级"
}
return "<p>" +level+ "</p>";
}
},
{
display: '操作',
//}
name: "status",
... ... @@ -71,44 +82,81 @@ g.init('/guang/article/categoryist');
//==================== 按钮点击事件 =====================//
//添加
$(document).on('click', '#add', function() {
articleCategoryOP("新增", '/guang/article/sort/add', {});
});
//编辑
$(document).on('click', '.info-modify', function() {
var item = g.rows[$(this).data("index")];
common.util.__ajax({
url: '/guang/article/operation',
data: {
id: item.id,
status: -1
}
}, function(res) {
if (res.code == 200) {
common.util.__tip('关闭资讯成功', 'success');
g.reload();
} else {
common.util.__tip(res.message);
}
}, true);
articleCategoryOP("修改", '/guang/article/sort/update', item);
});
//删除
$(document).on('click', '.info-del', function() {
var item = g.rows[$(this).data("index")];
common.util.__ajax({
url: '/guang/article/operation',
data: {
id: item.id,
status: 1
}
}, function(res) {
if (res.code == 200) {
common.util.__tip('开启资讯成功', 'success');
g.reload();
} else {
common.util.__tip(res.message);
}
}, true);
});
\ No newline at end of file
common.dialog.confirm("温馨提示","确定要删除该文章分类?" , function() {
common.util.__ajax({
url: '/guang/article/sort/del',
data: {
id: item.id,
}
}, function(res) {
if (res.code == 200) {
common.util.__tip('删除成功', 'success');
g.reload();
} else {
common.util.__tip(res.message);
}
});
});
});
function articleCategoryOP(prefix, url, item) {
var a =new common.edit(".confirm");
common.dialog.confirm(prefix+'文章分类', common.util.__template2($("#template").html(), item), function () {
//
return a.submit(url,function(option){
option.success=function(res){
res=res.data;
if(res.code=="200"){
a.$tip("提交成功", function() {
g.reload();
}, 'growl-success');
}else{
a.$tip(res.message);
}
return false;
},
option.error=function(res){
a.$tip(res.message);
}
});
});
a.init();
if (prefix == '新增') {
$('#maxsord').show();
new common.dropDown({
el: "#parentId",
ajax: 'guangGetSortList'
});
} else {
$('#maxsord').hide();
}
}
\ No newline at end of file
... ...
/**
* Created by wangqianjun on 16/3/22.
*/
'use strict';
var $ = require('jquery'),
common = require('../common/common');
var g = new common.grid({
el: '#color-list',
columns: [
{display: "ID", name: "uid"},
{display: "作者", name: "username"},
{display: "描述", name: "authorDesc"},
{display: "作者头像", name: "colorValue", render: function (item) {
item.avatar = common.util.__template(item.avatar,{mode:2,width:100,height:100});
return '<img style="width:40px; height:40px" src="'+item.avatar+'"/>';
}},
{display: "名下文章", name: "articleCount"},
{
display: '操作',
//}
name: "status",
render: function (items) {
var HtmArr = [];
HtmArr.push('<a data-index="' + items.__index + '" href="JavaScript:;" class="btn btn-primary btn-xs info-modify">编辑</a>');
HtmArr.push('<a data-index="' + items.__index + '" href="JavaScript:;" class="btn btn-danger btn-xs info-del">删除</a>');
return HtmArr.join('');
}
}
]
});
g.init('/guang/author/getList');
//==================== 按钮点击事件 =====================//
//添加
$(document).on('click', '#add-btn', function() {
articleCategoryOP("新增", '/guang/author/addAuthor', {});
});
//编辑
$(document).on('click', '.info-modify', function() {
var item = g.rows[$(this).data("index")];
articleCategoryOP("修改", '/guang/author/updateAuthor', item);
});
//删除
$(document).on('click', '.info-del', function() {
var item = g.rows[$(this).data("index")];
common.dialog.confirm("温馨提示","确定要删除该作者?" , function() {
common.util.__ajax({
url: '/guang/author/delAuthor',
data: {
uid: item.uid,
}
}, function(res) {
if (res.code == 200) {
g.reload();
} else {
common.util.__tip(res.message);
}
});
});
});
function articleCategoryOP(prefix, url, item) {
var a =new common.edit(".confirm", {
"bucket" : "color"
});
common.dialog.confirm(prefix+'作者', common.util.__template2($("#template").html(), item), function () {
//
return a.submit(url,function(option){
option.success=function(res){
res=res.data;
if(res.code=="200"){
a.$tip("提交成功", function() {
g.reload();
}, 'growl-success');
}else{
a.$tip(res.message);
}
return false;
},
option.error=function(res){
a.$tip(res.message);
}
});
});
a.init();
}
\ No newline at end of file
... ...
/**
* Created by wangqianjun on 16/3/22.
*/
var $ = require('jquery');
common = require('../common/common');
var ENUM = {
GenderEnum: {
'1': '男',
'2': '女',
'3': '通用',
},
StatusEnum: {
0:'关闭',
1:'开启',
},
}
var g = new common.grid({
el: '#list',
size: 10,
parms: function () {
return {
//articleTitle: common.util.__input('articleTitle'),
//articleGender: common.util.__input('articleGender'),
//authorId: common.util.__input('authorId'),
//maxSortId: common.util.__input('maxSortId'),
//status: common.util.__input('status'),
//orderBy: common.util.__input('orderBy'),
//startTime: common.util.__input('starttime'),
//endTime: common.util.__input('endtime'),
};
},
columns: [
{
display: 'ID',
name: "id"
},
{
display: '标签分类名称',
name: "classifyName"
}, {
display: '所属标签数',
name: "classifyName"
}, {
display: '状态',
render: function (item) {
return "<p>" + ENUM.StatusEnum[item.status] + "</p>";
}
}, {
display: '排序',
name: "orderBy"
}, {
display: '操作',
//}
name: "status",
render: function (items) {
var HtmArr = [];
HtmArr.push('<a data-index="' + items.__index + '" href="JavaScript:;" class="btn btn-primary btn-xs info-modify">编辑</a>');
HtmArr.push('<a data-index="' + items.__index + '" href="JavaScript:;" class="btn btn-danger btn-xs info-del">删除</a>');
return HtmArr.join('');
}
}]
});
g.init('/guang/tags/sort/list');
//==================== 按钮点击事件 =====================//
//添加
$(document).on('click', '#add', function() {
articleCategoryOP("新增", '/guang/tags/sort/add', {});
});
//编辑
$(document).on('click', '.info-modify', function() {
var item = g.rows[$(this).data("index")];
articleCategoryOP("修改", '/guang/tags/sort/update', item);
});
//删除
$(document).on('click', '.info-del', function() {
var item = g.rows[$(this).data("index")];
common.dialog.confirm("温馨提示","确定要删除该标签分类?" , function() {
common.util.__ajax({
url: '/guang/tags/sort/del',
data: {
id: item.id,
}
}, function(res) {
if (res.code == 200) {
common.util.__tip('删除成功', 'success');
g.reload();
} else {
common.util.__tip(res.message);
}
});
});
});
function articleCategoryOP(prefix, url, item) {
var a =new common.edit(".confirm");
common.dialog.confirm(prefix+'标签分类', common.util.__template2($("#template").html(), item), function () {
//
return a.submit(url,function(option){
option.success=function(res){
res=res.data;
if(res.code=="200"){
a.$tip("提交成功", function() {
g.reload();
}, 'growl-success');
}else{
a.$tip(res.message);
}
return false;
},
option.error=function(res){
a.$tip(res.message);
}
});
});
a.init();
}
\ No newline at end of file
... ...
/**
* Created by wangqianjun on 16/3/22.
*/
var $ = require('jquery');
common = require('../common/common');
var ENUM = {
HotEnum: {
'1': '是',
'0': '否',
},
StatusEnum: {
0:'关闭',
1:'开启',
},
}
//下拉框
new common.dropDown({
el: "#articleGender"
});
new common.dropDown({
el: "#maxSortId",
ajax: 'guangGetTagCategoryByStatus',
});
var g = new common.grid({
el: '#basicTable',
size: 10,
parms: function () {
return {
tagName: common.util.__input('articleTitle'),
classifyId: common.util.__input('maxSortId'),
isHot: common.util.__input('articleGender'),
status: common.util.__input('status1'),
};
},
columns: [
{
display: 'ID',
name: "id"
},
{
display: '标签名称',
name: "tagName"
}, {
display: '标签分类',
name: "classifyName"
}, {
display: '是否热门',
render: function (item) {
return "<p>" + ENUM.HotEnum[item.isHot] + "</p>";
}
}, {
display: '状态',
render: function (item) {
return "<p>" + ENUM.StatusEnum[item.status] + "</p>";
}
}, {
display: '操作',
//}
name: "status",
render: function (items) {
var HtmArr = [];
HtmArr.push('<a data-index="' + items.__index + '" href="JavaScript:;" class="btn btn-primary btn-xs info-modify">编辑</a>');
HtmArr.push('<a data-index="' + items.__index + '" href="JavaScript:;" class="btn btn-danger btn-xs info-del">删除</a>');
return HtmArr.join('');
}
}]
});
g.init('/guang/tags/getList');
//==================== 按钮点击事件 =====================//
$("#filter-btn").click(function() {
g.reload(1);
});
//添加
$(document).on('click', '#add-btn', function() {
articleCategoryOP("新增", '/guang/tags/addTag', {});
});
//编辑
$(document).on('click', '.info-modify', function() {
var item = g.rows[$(this).data("index")];
articleCategoryOP("修改", '/guang/tags/updateTag', item);
});
//删除
$(document).on('click', '.info-del', function() {
var item = g.rows[$(this).data("index")];
common.dialog.confirm("温馨提示","确定要删除该标签?" , function() {
common.util.__ajax({
url: '/guang/tags/delTag',
data: {
id: item.id,
}
}, function(res) {
if (res.code == 200) {
g.reload();
}
});
});
});
function articleCategoryOP(prefix, url, item) {
var a =new common.edit(".confirm");
common.dialog.confirm(prefix+'标签', common.util.__template2($("#template").html(), item), function () {
//
return a.submit(url,function(option){
option.success=function(res){
res=res.data;
if(res.code=="200"){
a.$tip("提交成功", function() {
g.reload();
}, 'growl-success');
}else{
a.$tip(res.message);
}
return false;
},
option.error=function(res){
a.$tip(res.message);
}
});
});
a.init();
new common.dropDown({
el: "#classifyId",
ajax: 'guangGetTagCategoryByStatus',
params:function(){
return {status:1};
}
});
}
\ No newline at end of file
... ...
... ... @@ -18,9 +18,9 @@ var config = {
// domain: 'http://172.16.6.124:8088/platform',//陈超
//http://172.16.6.124:8088/platform/product/queryAllProductAttr
//domain: 'http://172.16.6.227:8088/platform', //玛丽
// domain: 'http://192.168.102.202:8088/platform',
//domain:'http://172.16.9.8:8080/yohobuy-platform-web',//葛超
domain: 'http://192.168.102.202:8088/platform',
domain: 'http://192.168.102.202:8088/platform',
//domain:'http://172.16.6.197:8080/yohobuy-platform-web',//葛超
//domain: 'http://192.168.102.202:8088/platform',
//domain: 'http://172.16.6.239:8080', //孙杰翔
loggers: {
api: {
... ...
... ... @@ -3,193 +3,344 @@
* Interface for Guang Model
*/
exports.domain =require('../config/common.js').domain;
//【资讯管理】
exports.res = [
exports.domain = require('../config/common.js').domain;
//=================================【资讯管理】
exports.res = [
{//逛-> 资讯管理 空白页
route:'/guang/article/index',
method:'GET',
view:'pages/guang/infoManager',
route: '/guang/article/index',
method: 'GET',
view: 'pages/guang/infoManager',
src: '/guang/infoManager',
data:{
iscreate:true
data: {
iscreate: true
}
}, {
// 资讯管理列表数据
route:'/guang/article/list',
method:'POST',
route: '/guang/article/list',
method: 'POST',
url: '/guang/article/getList',
params:[
{name: 'articleTitle',type: 'String'},
{name: 'articleGender',type: 'String'},
{name: 'authorId',type: 'Number'},
{name: 'maxSortId',type: 'Number'},
{name: 'status',type: 'Number'},
{name: 'orderBy',type: 'String'},
{name: 'startTime',type: 'String'},
{name: 'endTime',type: 'String'},
{name: 'page',type: 'Number'},
{name: 'size',type: 'Number'},
params: [
{name: 'articleTitle', type: 'String'},
{name: 'articleGender', type: 'String'},
{name: 'authorId', type: 'Number'},
{name: 'maxSortId', type: 'Number'},
{name: 'status', type: 'Number'},
{name: 'orderBy', type: 'String'},
{name: 'startTime', type: 'String'},
{name: 'endTime', type: 'String'},
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'},
]
}, {
// 资讯管理-列表操作(修改、发布、关闭、推荐、取消推荐)
route:'/guang/article/operation',
method:'POST',
route: '/guang/article/operation',
method: 'POST',
url: '/guang/article/updateArticle',
params:[
{name: 'id',type: 'Number'},
{name: 'articleTitle',type: 'String'},
{name: 'articleGender',type: 'String'},
{name: 'authorId',type: 'Number'},
{name: 'maxSortId',type: 'Number'},
{name: 'minSortId',type: 'Number'},
{name: 'articleSummary',type: 'String'},
{name: 'coverImage',type: 'String'},
{name: 'status',type: 'Number'},
{name: 'coverImageType',type: 'Number'},
{name: 'articleType',type: 'Number'},
{name: 'adsImgSize',type: 'String'},
{name: 'isRecommend',type: 'Number'},
params: [
{name: 'id', type: 'Number'},
{name: 'articleTitle', type: 'String'},
{name: 'articleGender', type: 'String'},
{name: 'authorId', type: 'Number'},
{name: 'maxSortId', type: 'Number'},
{name: 'minSortId', type: 'Number'},
{name: 'articleSummary', type: 'String'},
{name: 'coverImage', type: 'String'},
{name: 'status', type: 'Number'},
{name: 'coverImageType', type: 'Number'},
{name: 'articleType', type: 'Number'},
{name: 'adsImgSize', type: 'String'},
{name: 'isRecommend', type: 'Number'},
]
},
{
// 资讯管理-定时
route:'/guang/article/timmer',
method:'POST',
route: '/guang/article/timmer',
method: 'POST',
url: '/guang/article/timePublish',
params:[
{name: 'id',type: 'Number'},
{name: 'publishTime',type: 'String'}
params: [
{name: 'id', type: 'Number'},
{name: 'publishTime', type: 'String'}
]
},
{
// 资讯管理-删除
route:'/guang/article/del',
method:'POST',
route: '/guang/article/del',
method: 'POST',
url: '/guang/article/delArticle',
params:[
{name: 'id',type: 'Number'}
params: [
{name: 'id', type: 'Number'}
]
},
//【文章分类管理】
//=================================【文章分类管理】
{//逛-> 文章分类管理 空白页
route:'/guang/article/sortindex',
method:'GET',
view:'pages/guang/articleCategoryManager',
route: '/guang/article/sortindex',
method: 'GET',
view: 'pages/guang/articleCategoryManager',
src: '/guang/articleCategoryManager',
data:{
iscreate:true
data: {
iscreate: true
}
}, {
// 文章分类管理列表数据
route:'/guang/article/categoryist',
method:'POST',
route: '/guang/article/categoryist',
method: 'POST',
url: '/guang/article/sort/getList',
params:[
{name: 'page',type: 'Number'},
{name: 'size',type: 'Number'},
params: [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'},
]
}, {
// 文章分类管理-编辑
route:'/guang/article/sort/update',
method:'POST',
route: '/guang/article/sort/update',
method: 'POST',
url: '/guang/article/sort/updateSort',
params:[
{name: 'id',type: 'Number'},
{name: 'parentId',type: 'Number'},
{name: 'orderBy',type: 'Number'},
{name: 'status',type: 'Number'},
{name: 'name',type: 'String'},
{name: 'advertCode',type: 'String'},
params: [
{name: 'id', type: 'Number'},
{name: 'parentId', type: 'Number'},
{name: 'orderBy', type: 'Number'},
{name: 'status', type: 'Number'},
{name: 'name', type: 'String'},
{name: 'advertCode', type: 'String'},
]
}, {
// 文章分类管理-添加
route: '/guang/article/sort/add',
method: 'POST',
url: '/guang/article/sort/addSort',
params: [
{name: 'parentId', type: 'Number'},
{name: 'orderBy', type: 'Number'},
{name: 'status', type: 'Number'},
{name: 'name', type: 'String'},
{name: 'advertCode', type: 'String'},
]
},
{
// 文章分类管理-删除
route:'/guang/article/sort/del',
method:'POST',
route: '/guang/article/sort/del',
method: 'POST',
url: '/guang/article/sort/delSort',
params:[
{name: 'id',type: 'Number'}
params: [
{name: 'id', type: 'Number'}
]
},
//【标签管理】
//=================================【标签管理】
{//逛-> 标签管理 空白页
route:'/guang/tags/index',
method:'GET',
view:'pages/guang/tagManager',
route: '/guang/tags/index',
method: 'GET',
view: 'pages/guang/tagManager',
src: '/guang/tagManager',
data:{
iscreate:true
data: {
iscreate: true
}
},{
// 标签管理列表数据
route: '/guang/tags/getList',
method: 'POST',
url: '/guang/tags/getList',
params: [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'},
{name: 'isHot', type: 'Number'},
{name: 'status', type: 'Number'},
{name: 'classifyId', type: 'Number'},
{name: 'tagName', type: 'String'},
]
}, {
// 标签管理-编辑
route: '/guang/tags/updateTag',
method: 'POST',
url: '/guang/tags/updateTag',
params: [
{name: 'id', type: 'Number'},
{name: 'tagName', type: 'String'},
{name: 'classifyId', type: 'Number'},
{name: 'isHot', type: 'Number'},
{name: 'status', type: 'Number'},
]
}, {
// 标签管理-添加
route: '/guang/tags/addTag',
method: 'POST',
url: '/guang/tags/addTag',
params: [
{name: 'tagName', type: 'String'},
{name: 'classifyId', type: 'Number'},
{name: 'isHot', type: 'Number'},
{name: 'status', type: 'Number'},
]
},
{
//【标签分类管理】
// 标签管理-删除
route: '/guang/tags/delTag',
method: 'POST',
url: '/guang/tags/delTag',
params: [
{name: 'id', type: 'Number'}
]
},
//=================================【标签分类管理】
{//逛-> 标签分类管理 空白页
route:'/guang/tags/sort',
method:'GET',
view:'pages/guang/tagCategoryManager',
route: '/guang/tags/sort',
method: 'GET',
view: 'pages/guang/tagCategoryManager',
src: '/guang/tagCategoryManager',
data:{
iscreate:true
data: {
iscreate: true
}
}, {
// 标签分类管理列表数据
route: '/guang/tags/sort/list',
method: 'POST',
url: '/guang/tagSort/getList',
params: [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'},
]
}, { // 标签分类管理-编辑
route: '/guang/tags/sort/update',
method: 'POST',
url: '/guang/tagSort/updateSort',
params: [
{name: 'id', type: 'Number'},
{name: 'status', type: 'Number'},
{name: 'orderBy', type: 'Number'},
{name: 'classifyName', type: 'String'},
]
}, {
// 标签分类管理-添加
route: '/guang/tags/sort/add',
method: 'POST',
url: '/guang/tagSort/addSort',
params: [
{name: 'status', type: 'Number'},
{name: 'orderBy', type: 'Number'},
{name: 'classifyName', type: 'String'},
]
},
{
//【评论管理】
// 标签分类管理-删除
route: '/guang/tags/sort/del',
method: 'POST',
url: '/guang/tagSort/delSort',
params: [
{name: 'id', type: 'Number'}
]
},
//=================================【评论管理】
{//逛-> 评论管理 空白页
route:'/guang/comments/index',
method:'GET',
view:'pages/guang/commentManager',
route: '/guang/comments/index',
method: 'GET',
view: 'pages/guang/commentManager',
src: '/guang/commentManager',
data:{
iscreate:true
data: {
iscreate: true
}
},
//【作者管理】
//=================================【作者管理】
{//逛-> 作者管理 空白页
route:'/guang/author/index',
method:'GET',
view:'pages/guang/authorManager',
route: '/guang/author/index',
method: 'GET',
view: 'pages/guang/authorManager',
src: '/guang/authorManager',
data:{
iscreate:true
data: {
iscreate: true
}
}, {
// 作者管理列表数据
route: '/guang/author/getList',
method: 'POST',
url: '/guang/author/getList',
params: [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'},
]
}, {
// 作者管理-添加
route: '/guang/author/addAuthor',
method: 'POST',
url: '/guang/author/addAuthor',
params: [
{name: 'username', type: 'String'},
{name: 'avatar', type: 'String'},
{name: 'authorDesc', type: 'String'},
]
}, {
// 作者管理-编辑
route: '/guang/author/updateAuthor',
method: 'POST',
url: '/guang/author/updateAuthor',
params: [
{name: 'uid', type: 'Number'},
{name: 'username', type: 'String'},
{name: 'avatar', type: 'String'},
{name: 'authorDesc', type: 'String'},
]
},
{
// 作者管理-删除
route: '/guang/author/delAuthor',
method: 'POST',
url: '/guang/author/delAuthor',
params: [
{name: 'uid', type: 'Number'}
]
},
// [下拉框调用的接口]
//================================= [下拉框调用的接口]
{// 作者
route:'/guang/article/getAuthorList',
method:'POST',
route: '/guang/article/getAuthorList',
method: 'POST',
url: '/guang/article/getAuthorList',
params:[
{name: 'idName',type: 'String'},
params: [
{name: 'idName', type: 'String'},
]
},
{// 所有分类
route:'/guang/article/getSortList',
method:'POST',
route: '/guang/article/getSortList',
method: 'POST',
url: '/guang/article/getSortList',
},
{// 根据是否启用获取标签分类列表
route: '/guang/tagSort/getTagItems',
method: 'POST',
url: '/guang/tagSort/getTagItems',
params: [
{name: 'status', type: 'Number'},
]
},
];
... ...
... ... @@ -26,7 +26,6 @@
<a class="btn btn-info" id="add">添加</a>
</div>
</div>
<input type="hidden" id="url" value="/erpproduct/sizeattribute/sizeList"/>
<div id="list">
</div>
... ... @@ -34,11 +33,43 @@
</div>
<script type="text/template" id="template">
<div class="form-group" id="maxsord">
<label for="parentId" class="col-sm-2 control-label">一级分类名:</label>
<div class="col-sm-10">
<input type="hidden" name="" value="[[id]]" id="id" class="form-control" pattern="" title="">
<select id="parentId" value="[[parentId]]" class="form-control">
<option value="-1">请选择分类</option>
</select>
</div>
</div>
<div class="form-group">
<label for="name" class="col-sm-2 control-label">分类名:</label>
<div class="col-sm-10">
<input type="text" value="[[name]]" name="content" id="name" placeholder="分类名" required="required" class="form-control">
</div>
</div>
<div class="form-group">
<label for="input" class="col-sm-2 control-label">尺码名:</label>
<label for="orderBy" class="col-sm-2 control-label">排序:</label>
<div class="col-sm-10">
<input type="hidden" name="" value="{id}" id="id" class="form-control" value="" required="required" pattern="" title="">
<input type="text" name="" value="{input}" id="input" class="form-control" value="" required="required" pattern="" title="" maxlength="20">
<input type="number" value="[[orderBy]]" name="content" id="orderBy" placeholder="排序" required="required" class="form-control">
</div>
</div>
<div class="form-group">
<label for="advertCode" class="col-sm-2 control-label">广告码:</label>
<div class="col-sm-10">
<input type="text" value="[[advertCode]]" name="content" id="advertCode" placeholder="广告码" required="required" class="form-control">
</div>
</div>
<div class="form-group">
<label for="status" class="col-sm-2 control-label">是否启用:</label>
<div class="radio">
<label><input type="radio" value="1" name="status" kl_vkbd_parsed="true">开启</label>
<label><input type="radio" value="0" name="status" kl_vkbd_parsed="true">关闭</label>
</div>
<input id="status" type="hidden" value="[[status]]" for="radio" required="required" kl_vkbd_parsed="true">
</div>
</script>
\ No newline at end of file
... ...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
</body>
</html>
\ 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="contentpanel">
<div class="panel panel-default" style="margin-bottom:10px;">
<div class="panel-body">
<div class="row">
<a class="btn btn-info" id="add-btn" >添加</a>
</div>
</div>
<div id="color-list" class="color">
</div>
</div>
</div>
<script type="text/template" id="template">
<div class="form-group">
<label for="username" class="col-sm-2 control-label">作者名称:</label>
<div class="col-sm-10">
<input type="text" value="[[username]]" name="content" id="username" placeholder="作者名称" required="required" class="form-control">
</div>
</div>
<div class="form-group">
<label for="authorDesc" class="col-sm-2 control-label">作者描述:</label>
<div class="col-sm-10">
<input type="text" value="[[authorDesc]]" name="content" id="authorDesc" placeholder="作者描述" required="required" class="form-control">
</div>
</div>
<div class="form-group">
<label for="avatar" class="col-sm-2 control-label">作者头像:</label>
<div class="col-sm-8" id="colorUrlBox">
<input type="file" id="avatar" name="colorValue" value="[[avatar]]">
</div>
</div>
</script>
... ...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
</body>
</html>
\ 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="contentpanel">
<div class="panel panel-default" style="margin-bottom:10px;">
<div class="panel-body">
<a id="check-btn" href="javascript:;" class="btn btn-danger">待审核</a>
<a id="pass-btn" href="javascript:;" class="btn btn-success">已审核</a>
<a id="all-btn" href="javascript:;" class="btn btn-info">全部</a>
</div>
</div>
<div class="panel panel-primary-head">
<div id="basicTable_wrapper" class="dataTables_wrapper no-footer">
<div class="dataTables_length" id="basicTable">
</div>
<nav>
<ul id="pagination" class="pagination pagination-lg"></ul>
</nav>
</div>
</div>
</div>
<script type="text/template" id="template">
<div class="form-group">
<label for="tagName" class="col-sm-2 control-label">标签名称:</label>
<div class="col-sm-10">
<input type="text" value="[[tagName]]" name="content" id="tagName" placeholder="标签名称" required="required" class="form-control">
</div>
</div>
<div class="form-group" id="maxsord">
<label for="classifyId" class="col-sm-2 control-label">标签分类:</label>
<div class="col-sm-10">
<input type="hidden" name="" value="[[id]]" id="id" class="form-control" pattern="" title="">
<select id="classifyId" value="[[classifyId]]" class="form-control">
<option value="-1">请选择分类</option>
</select>
</div>
</div>
<div class="form-group">
<label for="isHot" class="col-sm-2 control-label">是否热门:</label>
<div class="radio">
<label><input type="radio" value="1" name="isHot" kl_vkbd_parsed="true"></label>
<label><input type="radio" value="0" name="isHot" kl_vkbd_parsed="true"></label>
</div>
<input id="isHot" type="hidden" value="[[isHot]]" for="radio" required="required" kl_vkbd_parsed="true">
</div>
<div class="form-group">
<label for="status1" class="col-sm-2 control-label">是否启用:</label>
<div class="radio">
<label><input type="radio" value="1" name="status1" kl_vkbd_parsed="true"></label>
<label><input type="radio" value="0" name="status1" kl_vkbd_parsed="true"></label>
</div>
<input id="status1" type="hidden" value="[[status]]" for="radio" required="required" kl_vkbd_parsed="true">
</div>
</script>
... ...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
</body>
</html>
\ 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="contentpanel">
<div class="panel panel-default" style="margin-bottom:10px;">
<div class="panel-body">
<div class="row">
<a class="btn btn-info" id="add">添加</a>
</div>
</div>
<div id="list">
</div>
</div>
</div>
<script type="text/template" id="template">
<div class="form-group">
<input type="hidden" name="" value="[[id]]" id="id" class="form-control" pattern="" title="">
<label for="classifyName" class="col-sm-2 control-label">分类名称:</label>
<div class="col-sm-10">
<input type="text" value="[[classifyName]]" name="content" id="classifyName" requeired placeholder="分类名称" required="required" class="form-control">
</div>
</div>
<div class="form-group">
<label for="orderBy" class="col-sm-2 control-label">排序:</label>
<div class="col-sm-10">
<input type="number" value="[[orderBy]]" name="content" id="orderBy" placeholder="排序" required="required" class="form-control">
</div>
</div>
<div class="form-group">
<label for="status" class="col-sm-2 control-label">是否启用:</label>
<div class="radio">
<label><input type="radio" value="1" name="status" kl_vkbd_parsed="true">开启</label>
<label><input type="radio" value="0" name="status" kl_vkbd_parsed="true">关闭</label>
</div>
<input id="status" type="hidden" value="[[status]]" for="radio" required="required" kl_vkbd_parsed="true">
</div>
</script>
\ No newline at end of file
... ...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
</body>
</html>
\ 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="contentpanel">
<div class="panel panel-default" style="margin-bottom:10px;">
<div class="panel-body">
<a id="add-btn" href="javascript:;" class="btn btn-info">添加</a>
</div>
<div class="panel-body">
<div class="row">
<div class="panel-col">
<input type="text" id="articleTitle" class="form-control" placeholder="输入标签名称" style="height: 39px;"/>
</div>
<div class="panel-col">
<select id="maxSortId" class="form-control">
<option value="-1">请选择分类</option>
</select>
</div>
<div class="panel-col">
<select id="articleGender" class="form-control">
<option value="-1">是否热门</option>
<option value="1"></option>
<option value="0"></option>
</select>
</div>
<div class="panel-col">
<a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
<a id="all-btn" href="" class="btn btn-info">全部</a>
</div>
</div>
</div>
</div>
<div class="panel panel-primary-head">
<div id="basicTable_wrapper" class="dataTables_wrapper no-footer">
<div class="dataTables_length" id="basicTable">
</div>
<nav>
<ul id="pagination" class="pagination pagination-lg"></ul>
</nav>
</div>
</div>
</div>
<script type="text/template" id="template">
<div class="form-group">
<label for="tagName" class="col-sm-2 control-label">标签名称:</label>
<div class="col-sm-10">
<input type="text" value="[[tagName]]" name="content" id="tagName" placeholder="标签名称" required="required" class="form-control">
</div>
</div>
<div class="form-group" id="maxsord">
<label for="classifyId" class="col-sm-2 control-label">标签分类:</label>
<div class="col-sm-10">
<input type="hidden" name="" value="[[id]]" id="id" class="form-control" pattern="" title="">
<select id="classifyId" value="[[classifyId]]" class="form-control">
<option value="-1">请选择分类</option>
</select>
</div>
</div>
<div class="form-group">
<label for="isHot" class="col-sm-2 control-label">是否热门:</label>
<div class="radio">
<label><input type="radio" value="1" name="isHot" kl_vkbd_parsed="true"></label>
<label><input type="radio" value="0" name="isHot" kl_vkbd_parsed="true"></label>
</div>
<input id="isHot" type="hidden" value="[[isHot]]" for="radio" required="required" kl_vkbd_parsed="true">
</div>
<div class="form-group">
<label for="status1" class="col-sm-2 control-label">是否启用:</label>
<div class="radio">
<label><input type="radio" value="1" name="status1" kl_vkbd_parsed="true"></label>
<label><input type="radio" value="0" name="status1" kl_vkbd_parsed="true"></label>
</div>
<input id="status1" type="hidden" value="[[status]]" for="radio" required="required" kl_vkbd_parsed="true">
</div>
</script>
... ...