Authored by 王钱钧

添加逛模块代码

@@ -31,6 +31,7 @@ var urlObj = { @@ -31,6 +31,7 @@ var urlObj = {
31 // 逛 31 // 逛
32 'guangGetAuthorList':'/guang/article/getAuthorList', // 逛-获取作者 32 'guangGetAuthorList':'/guang/article/getAuthorList', // 逛-获取作者
33 'guangGetSortList':'/guang/article/getSortList', // 逛-获取作者 33 'guangGetSortList':'/guang/article/getSortList', // 逛-获取作者
  34 + 'guangGetTagCategoryByStatus':'/guang/tagSort/getTagItems',
34 }; 35 };
35 36
36 var minimumResultsForSearch=["sortbybrand","getjitSup"]; 37 var minimumResultsForSearch=["sortbybrand","getjitSup"];
@@ -54,6 +54,17 @@ var g = new common.grid({ @@ -54,6 +54,17 @@ var g = new common.grid({
54 display: '分类', 54 display: '分类',
55 name: "name" 55 name: "name"
56 }, { 56 }, {
  57 + display: '级别',
  58 + render: function (item) {
  59 + var level="一级";
  60 + if (item.parentId != 0) {
  61 + level = "二级"
  62 + }
  63 + return "<p>" +level+ "</p>";
  64 + }
  65 + },
  66 +
  67 + {
57 display: '操作', 68 display: '操作',
58 //} 69 //}
59 name: "status", 70 name: "status",
@@ -71,44 +82,81 @@ g.init('/guang/article/categoryist'); @@ -71,44 +82,81 @@ g.init('/guang/article/categoryist');
71 82
72 //==================== 按钮点击事件 =====================// 83 //==================== 按钮点击事件 =====================//
73 84
  85 +//添加
  86 +$(document).on('click', '#add', function() {
  87 + articleCategoryOP("新增", '/guang/article/sort/add', {});
  88 +
  89 +});
  90 +
74 //编辑 91 //编辑
75 $(document).on('click', '.info-modify', function() { 92 $(document).on('click', '.info-modify', function() {
76 var item = g.rows[$(this).data("index")]; 93 var item = g.rows[$(this).data("index")];
  94 + articleCategoryOP("修改", '/guang/article/sort/update', item);
  95 +});
77 96
  97 +//删除
  98 +$(document).on('click', '.info-del', function() {
  99 + var item = g.rows[$(this).data("index")];
  100 +
  101 + common.dialog.confirm("温馨提示","确定要删除该文章分类?" , function() {
78 common.util.__ajax({ 102 common.util.__ajax({
79 - url: '/guang/article/operation', 103 + url: '/guang/article/sort/del',
80 data: { 104 data: {
81 id: item.id, 105 id: item.id,
82 - status: -1  
83 } 106 }
84 }, function(res) { 107 }, function(res) {
85 -  
86 if (res.code == 200) { 108 if (res.code == 200) {
87 - common.util.__tip('关闭资讯成功', 'success'); 109 + common.util.__tip('删除成功', 'success');
88 g.reload(); 110 g.reload();
89 } else { 111 } else {
90 common.util.__tip(res.message); 112 common.util.__tip(res.message);
91 } 113 }
92 - }, true); 114 + });
  115 + });
  116 +
93 }); 117 });
94 118
95 -//删除  
96 -$(document).on('click', '.info-del', function() {  
97 - var item = g.rows[$(this).data("index")];  
98 119
99 - common.util.__ajax({  
100 - url: '/guang/article/operation',  
101 - data: {  
102 - id: item.id,  
103 - status: 1  
104 - }  
105 - }, function(res) { 120 +function articleCategoryOP(prefix, url, item) {
106 121
107 - if (res.code == 200) {  
108 - common.util.__tip('开启资讯成功', 'success'); 122 + var a =new common.edit(".confirm");
  123 +
  124 + common.dialog.confirm(prefix+'文章分类', common.util.__template2($("#template").html(), item), function () {
  125 +
  126 + //
  127 + return a.submit(url,function(option){
  128 + option.success=function(res){
  129 + res=res.data;
  130 + if(res.code=="200"){
  131 + a.$tip("提交成功", function() {
109 g.reload(); 132 g.reload();
  133 + }, 'growl-success');
  134 + }else{
  135 + a.$tip(res.message);
  136 + }
  137 + return false;
  138 + },
  139 + option.error=function(res){
  140 + a.$tip(res.message);
  141 + }
  142 + });
  143 +
  144 + });
  145 +
  146 + a.init();
  147 +
  148 + if (prefix == '新增') {
  149 + $('#maxsord').show();
  150 + new common.dropDown({
  151 + el: "#parentId",
  152 + ajax: 'guangGetSortList'
  153 + });
110 } else { 154 } else {
111 - common.util.__tip(res.message); 155 + $('#maxsord').hide();
  156 +
112 } 157 }
113 - }, true);  
114 -});  
  158 +
  159 +
  160 +
  161 +
  162 +}
1 /** 1 /**
2 * Created by wangqianjun on 16/3/22. 2 * Created by wangqianjun on 16/3/22.
3 */ 3 */
  4 +
  5 +'use strict';
  6 +var $ = require('jquery'),
  7 + common = require('../common/common');
  8 +
  9 +
  10 +var g = new common.grid({
  11 + el: '#color-list',
  12 + columns: [
  13 +
  14 + {display: "ID", name: "uid"},
  15 + {display: "作者", name: "username"},
  16 + {display: "描述", name: "authorDesc"},
  17 + {display: "作者头像", name: "colorValue", render: function (item) {
  18 +
  19 + item.avatar = common.util.__template(item.avatar,{mode:2,width:100,height:100});
  20 + return '<img style="width:40px; height:40px" src="'+item.avatar+'"/>';
  21 + }},
  22 +
  23 + {display: "名下文章", name: "articleCount"},
  24 +
  25 + {
  26 + display: '操作',
  27 + //}
  28 + name: "status",
  29 + render: function (items) {
  30 + var HtmArr = [];
  31 +
  32 + HtmArr.push('<a data-index="' + items.__index + '" href="JavaScript:;" class="btn btn-primary btn-xs info-modify">编辑</a>');
  33 + HtmArr.push('<a data-index="' + items.__index + '" href="JavaScript:;" class="btn btn-danger btn-xs info-del">删除</a>');
  34 +
  35 + return HtmArr.join('');
  36 + }
  37 + }
  38 + ]
  39 +
  40 +});
  41 +
  42 +g.init('/guang/author/getList');
  43 +
  44 +//==================== 按钮点击事件 =====================//
  45 +
  46 +//添加
  47 +$(document).on('click', '#add-btn', function() {
  48 + articleCategoryOP("新增", '/guang/author/addAuthor', {});
  49 +
  50 +});
  51 +
  52 +//编辑
  53 +$(document).on('click', '.info-modify', function() {
  54 + var item = g.rows[$(this).data("index")];
  55 + articleCategoryOP("修改", '/guang/author/updateAuthor', item);
  56 +});
  57 +
  58 +//删除
  59 +$(document).on('click', '.info-del', function() {
  60 + var item = g.rows[$(this).data("index")];
  61 +
  62 + common.dialog.confirm("温馨提示","确定要删除该作者?" , function() {
  63 + common.util.__ajax({
  64 + url: '/guang/author/delAuthor',
  65 + data: {
  66 + uid: item.uid,
  67 + }
  68 + }, function(res) {
  69 + if (res.code == 200) {
  70 + g.reload();
  71 + } else {
  72 + common.util.__tip(res.message);
  73 + }
  74 + });
  75 + });
  76 +});
  77 +
  78 +
  79 +function articleCategoryOP(prefix, url, item) {
  80 +
  81 + var a =new common.edit(".confirm", {
  82 + "bucket" : "color"
  83 + });
  84 +
  85 + common.dialog.confirm(prefix+'作者', common.util.__template2($("#template").html(), item), function () {
  86 +
  87 + //
  88 + return a.submit(url,function(option){
  89 + option.success=function(res){
  90 + res=res.data;
  91 + if(res.code=="200"){
  92 + a.$tip("提交成功", function() {
  93 + g.reload();
  94 + }, 'growl-success');
  95 + }else{
  96 + a.$tip(res.message);
  97 + }
  98 + return false;
  99 + },
  100 + option.error=function(res){
  101 + a.$tip(res.message);
  102 + }
  103 + });
  104 +
  105 + });
  106 +
  107 + a.init();
  108 +
  109 +
  110 +
  111 +}
1 /** 1 /**
2 * Created by wangqianjun on 16/3/22. 2 * Created by wangqianjun on 16/3/22.
3 */ 3 */
  4 +var $ = require('jquery');
  5 +common = require('../common/common');
  6 +
  7 +
  8 +var ENUM = {
  9 + GenderEnum: {
  10 + '1': '男',
  11 + '2': '女',
  12 + '3': '通用',
  13 + },
  14 +
  15 + StatusEnum: {
  16 + 0:'关闭',
  17 + 1:'开启',
  18 + },
  19 +
  20 +}
  21 +
  22 +
  23 +var g = new common.grid({
  24 + el: '#list',
  25 + size: 10,
  26 + parms: function () {
  27 +
  28 + return {
  29 + //articleTitle: common.util.__input('articleTitle'),
  30 + //articleGender: common.util.__input('articleGender'),
  31 + //authorId: common.util.__input('authorId'),
  32 + //maxSortId: common.util.__input('maxSortId'),
  33 + //status: common.util.__input('status'),
  34 + //orderBy: common.util.__input('orderBy'),
  35 + //startTime: common.util.__input('starttime'),
  36 + //endTime: common.util.__input('endtime'),
  37 + };
  38 + },
  39 + columns: [
  40 + {
  41 + display: 'ID',
  42 + name: "id"
  43 + },
  44 +
  45 + {
  46 + display: '标签分类名称',
  47 + name: "classifyName"
  48 + }, {
  49 + display: '所属标签数',
  50 + name: "classifyName"
  51 + }, {
  52 + display: '状态',
  53 + render: function (item) {
  54 + return "<p>" + ENUM.StatusEnum[item.status] + "</p>";
  55 + }
  56 + }, {
  57 + display: '排序',
  58 + name: "orderBy"
  59 + }, {
  60 + display: '操作',
  61 + //}
  62 + name: "status",
  63 + render: function (items) {
  64 + var HtmArr = [];
  65 +
  66 + HtmArr.push('<a data-index="' + items.__index + '" href="JavaScript:;" class="btn btn-primary btn-xs info-modify">编辑</a>');
  67 + HtmArr.push('<a data-index="' + items.__index + '" href="JavaScript:;" class="btn btn-danger btn-xs info-del">删除</a>');
  68 +
  69 + return HtmArr.join('');
  70 + }
  71 + }]
  72 +});
  73 +g.init('/guang/tags/sort/list');
  74 +
  75 +//==================== 按钮点击事件 =====================//
  76 +
  77 +//添加
  78 +$(document).on('click', '#add', function() {
  79 + articleCategoryOP("新增", '/guang/tags/sort/add', {});
  80 +
  81 +});
  82 +
  83 +//编辑
  84 +$(document).on('click', '.info-modify', function() {
  85 + var item = g.rows[$(this).data("index")];
  86 + articleCategoryOP("修改", '/guang/tags/sort/update', item);
  87 +});
  88 +
  89 +//删除
  90 +$(document).on('click', '.info-del', function() {
  91 + var item = g.rows[$(this).data("index")];
  92 +
  93 + common.dialog.confirm("温馨提示","确定要删除该标签分类?" , function() {
  94 + common.util.__ajax({
  95 + url: '/guang/tags/sort/del',
  96 + data: {
  97 + id: item.id,
  98 + }
  99 + }, function(res) {
  100 + if (res.code == 200) {
  101 + common.util.__tip('删除成功', 'success');
  102 + g.reload();
  103 + } else {
  104 + common.util.__tip(res.message);
  105 + }
  106 + });
  107 + });
  108 +});
  109 +
  110 +
  111 +function articleCategoryOP(prefix, url, item) {
  112 +
  113 + var a =new common.edit(".confirm");
  114 +
  115 + common.dialog.confirm(prefix+'标签分类', common.util.__template2($("#template").html(), item), function () {
  116 +
  117 + //
  118 + return a.submit(url,function(option){
  119 + option.success=function(res){
  120 + res=res.data;
  121 + if(res.code=="200"){
  122 + a.$tip("提交成功", function() {
  123 + g.reload();
  124 + }, 'growl-success');
  125 + }else{
  126 + a.$tip(res.message);
  127 + }
  128 + return false;
  129 + },
  130 + option.error=function(res){
  131 + a.$tip(res.message);
  132 + }
  133 + });
  134 +
  135 + });
  136 +
  137 + a.init();
  138 +
  139 +
  140 +
  141 +
  142 +
  143 +}
1 /** 1 /**
2 * Created by wangqianjun on 16/3/22. 2 * Created by wangqianjun on 16/3/22.
3 */ 3 */
  4 +var $ = require('jquery');
  5 +common = require('../common/common');
  6 +
  7 +
  8 +var ENUM = {
  9 + HotEnum: {
  10 + '1': '是',
  11 + '0': '否',
  12 + },
  13 +
  14 + StatusEnum: {
  15 + 0:'关闭',
  16 + 1:'开启',
  17 + },
  18 +
  19 +}
  20 +
  21 +//下拉框
  22 +new common.dropDown({
  23 + el: "#articleGender"
  24 +});
  25 +
  26 +new common.dropDown({
  27 + el: "#maxSortId",
  28 + ajax: 'guangGetTagCategoryByStatus',
  29 +
  30 +});
  31 +
  32 +
  33 +var g = new common.grid({
  34 + el: '#basicTable',
  35 + size: 10,
  36 + parms: function () {
  37 +
  38 + return {
  39 + tagName: common.util.__input('articleTitle'),
  40 + classifyId: common.util.__input('maxSortId'),
  41 + isHot: common.util.__input('articleGender'),
  42 + status: common.util.__input('status1'),
  43 + };
  44 + },
  45 + columns: [
  46 + {
  47 + display: 'ID',
  48 + name: "id"
  49 + },
  50 +
  51 + {
  52 + display: '标签名称',
  53 + name: "tagName"
  54 + }, {
  55 + display: '标签分类',
  56 + name: "classifyName"
  57 + }, {
  58 + display: '是否热门',
  59 + render: function (item) {
  60 + return "<p>" + ENUM.HotEnum[item.isHot] + "</p>";
  61 + }
  62 + }, {
  63 + display: '状态',
  64 + render: function (item) {
  65 + return "<p>" + ENUM.StatusEnum[item.status] + "</p>";
  66 + }
  67 + }, {
  68 + display: '操作',
  69 + //}
  70 + name: "status",
  71 + render: function (items) {
  72 + var HtmArr = [];
  73 +
  74 + HtmArr.push('<a data-index="' + items.__index + '" href="JavaScript:;" class="btn btn-primary btn-xs info-modify">编辑</a>');
  75 + HtmArr.push('<a data-index="' + items.__index + '" href="JavaScript:;" class="btn btn-danger btn-xs info-del">删除</a>');
  76 +
  77 + return HtmArr.join('');
  78 + }
  79 + }]
  80 +});
  81 +g.init('/guang/tags/getList');
  82 +
  83 +//==================== 按钮点击事件 =====================//
  84 +
  85 +$("#filter-btn").click(function() {
  86 + g.reload(1);
  87 +});
  88 +
  89 +//添加
  90 +$(document).on('click', '#add-btn', function() {
  91 + articleCategoryOP("新增", '/guang/tags/addTag', {});
  92 +
  93 +});
  94 +
  95 +//编辑
  96 +$(document).on('click', '.info-modify', function() {
  97 + var item = g.rows[$(this).data("index")];
  98 + articleCategoryOP("修改", '/guang/tags/updateTag', item);
  99 +});
  100 +
  101 +//删除
  102 +$(document).on('click', '.info-del', function() {
  103 + var item = g.rows[$(this).data("index")];
  104 +
  105 + common.dialog.confirm("温馨提示","确定要删除该标签?" , function() {
  106 + common.util.__ajax({
  107 + url: '/guang/tags/delTag',
  108 + data: {
  109 + id: item.id,
  110 + }
  111 + }, function(res) {
  112 + if (res.code == 200) {
  113 + g.reload();
  114 + }
  115 + });
  116 + });
  117 +});
  118 +
  119 +
  120 +function articleCategoryOP(prefix, url, item) {
  121 +
  122 + var a =new common.edit(".confirm");
  123 +
  124 + common.dialog.confirm(prefix+'标签', common.util.__template2($("#template").html(), item), function () {
  125 +
  126 + //
  127 + return a.submit(url,function(option){
  128 + option.success=function(res){
  129 + res=res.data;
  130 + if(res.code=="200"){
  131 + a.$tip("提交成功", function() {
  132 + g.reload();
  133 + }, 'growl-success');
  134 + }else{
  135 + a.$tip(res.message);
  136 + }
  137 + return false;
  138 + },
  139 + option.error=function(res){
  140 + a.$tip(res.message);
  141 + }
  142 + });
  143 +
  144 + });
  145 +
  146 + a.init();
  147 +
  148 +
  149 + new common.dropDown({
  150 + el: "#classifyId",
  151 + ajax: 'guangGetTagCategoryByStatus',
  152 + params:function(){
  153 + return {status:1};
  154 + }
  155 +
  156 + });
  157 +
  158 +
  159 +}
@@ -18,9 +18,9 @@ var config = { @@ -18,9 +18,9 @@ var config = {
18 // domain: 'http://172.16.6.124:8088/platform',//陈超 18 // domain: 'http://172.16.6.124:8088/platform',//陈超
19 //http://172.16.6.124:8088/platform/product/queryAllProductAttr 19 //http://172.16.6.124:8088/platform/product/queryAllProductAttr
20 //domain: 'http://172.16.6.227:8088/platform', //玛丽 20 //domain: 'http://172.16.6.227:8088/platform', //玛丽
21 - // domain: 'http://192.168.102.202:8088/platform',  
22 - //domain:'http://172.16.9.8:8080/yohobuy-platform-web',//葛超  
23 domain: 'http://192.168.102.202:8088/platform', 21 domain: 'http://192.168.102.202:8088/platform',
  22 + //domain:'http://172.16.6.197:8080/yohobuy-platform-web',//葛超
  23 + //domain: 'http://192.168.102.202:8088/platform',
24 //domain: 'http://172.16.6.239:8080', //孙杰翔 24 //domain: 'http://172.16.6.239:8080', //孙杰翔
25 loggers: { 25 loggers: {
26 api: { 26 api: {
@@ -3,193 +3,344 @@ @@ -3,193 +3,344 @@
3 * Interface for Guang Model 3 * Interface for Guang Model
4 */ 4 */
5 5
6 -exports.domain =require('../config/common.js').domain;  
7 -//【资讯管理】 6 +exports.domain = require('../config/common.js').domain;
  7 +//=================================【资讯管理】
8 exports.res = [ 8 exports.res = [
9 {//逛-> 资讯管理 空白页 9 {//逛-> 资讯管理 空白页
10 - route:'/guang/article/index',  
11 - method:'GET',  
12 - view:'pages/guang/infoManager', 10 + route: '/guang/article/index',
  11 + method: 'GET',
  12 + view: 'pages/guang/infoManager',
13 src: '/guang/infoManager', 13 src: '/guang/infoManager',
14 - data:{  
15 - iscreate:true 14 + data: {
  15 + iscreate: true
16 } 16 }
17 }, { 17 }, {
18 18
19 // 资讯管理列表数据 19 // 资讯管理列表数据
20 - route:'/guang/article/list',  
21 - method:'POST', 20 + route: '/guang/article/list',
  21 + method: 'POST',
22 url: '/guang/article/getList', 22 url: '/guang/article/getList',
23 - params:[  
24 - {name: 'articleTitle',type: 'String'},  
25 - {name: 'articleGender',type: 'String'},  
26 - {name: 'authorId',type: 'Number'},  
27 - {name: 'maxSortId',type: 'Number'},  
28 - {name: 'status',type: 'Number'},  
29 - {name: 'orderBy',type: 'String'},  
30 - {name: 'startTime',type: 'String'},  
31 - {name: 'endTime',type: 'String'},  
32 - {name: 'page',type: 'Number'},  
33 - {name: 'size',type: 'Number'}, 23 + params: [
  24 + {name: 'articleTitle', type: 'String'},
  25 + {name: 'articleGender', type: 'String'},
  26 + {name: 'authorId', type: 'Number'},
  27 + {name: 'maxSortId', type: 'Number'},
  28 + {name: 'status', type: 'Number'},
  29 + {name: 'orderBy', type: 'String'},
  30 + {name: 'startTime', type: 'String'},
  31 + {name: 'endTime', type: 'String'},
  32 + {name: 'page', type: 'Number'},
  33 + {name: 'size', type: 'Number'},
34 34
35 ] 35 ]
36 }, { 36 }, {
37 37
38 // 资讯管理-列表操作(修改、发布、关闭、推荐、取消推荐) 38 // 资讯管理-列表操作(修改、发布、关闭、推荐、取消推荐)
39 - route:'/guang/article/operation',  
40 - method:'POST', 39 + route: '/guang/article/operation',
  40 + method: 'POST',
41 url: '/guang/article/updateArticle', 41 url: '/guang/article/updateArticle',
42 - params:[  
43 - {name: 'id',type: 'Number'},  
44 - {name: 'articleTitle',type: 'String'},  
45 - {name: 'articleGender',type: 'String'},  
46 - {name: 'authorId',type: 'Number'},  
47 - {name: 'maxSortId',type: 'Number'},  
48 - {name: 'minSortId',type: 'Number'},  
49 - {name: 'articleSummary',type: 'String'},  
50 - {name: 'coverImage',type: 'String'},  
51 - {name: 'status',type: 'Number'},  
52 - {name: 'coverImageType',type: 'Number'},  
53 - {name: 'articleType',type: 'Number'},  
54 - {name: 'adsImgSize',type: 'String'},  
55 - {name: 'isRecommend',type: 'Number'}, 42 + params: [
  43 + {name: 'id', type: 'Number'},
  44 + {name: 'articleTitle', type: 'String'},
  45 + {name: 'articleGender', type: 'String'},
  46 + {name: 'authorId', type: 'Number'},
  47 + {name: 'maxSortId', type: 'Number'},
  48 + {name: 'minSortId', type: 'Number'},
  49 + {name: 'articleSummary', type: 'String'},
  50 + {name: 'coverImage', type: 'String'},
  51 + {name: 'status', type: 'Number'},
  52 + {name: 'coverImageType', type: 'Number'},
  53 + {name: 'articleType', type: 'Number'},
  54 + {name: 'adsImgSize', type: 'String'},
  55 + {name: 'isRecommend', type: 'Number'},
56 ] 56 ]
57 }, 57 },
58 58
59 { 59 {
60 60
61 // 资讯管理-定时 61 // 资讯管理-定时
62 - route:'/guang/article/timmer',  
63 - method:'POST', 62 + route: '/guang/article/timmer',
  63 + method: 'POST',
64 url: '/guang/article/timePublish', 64 url: '/guang/article/timePublish',
65 - params:[  
66 - {name: 'id',type: 'Number'},  
67 - {name: 'publishTime',type: 'String'} 65 + params: [
  66 + {name: 'id', type: 'Number'},
  67 + {name: 'publishTime', type: 'String'}
68 ] 68 ]
69 }, 69 },
70 { 70 {
71 71
72 // 资讯管理-删除 72 // 资讯管理-删除
73 - route:'/guang/article/del',  
74 - method:'POST', 73 + route: '/guang/article/del',
  74 + method: 'POST',
75 url: '/guang/article/delArticle', 75 url: '/guang/article/delArticle',
76 - params:[  
77 - {name: 'id',type: 'Number'} 76 + params: [
  77 + {name: 'id', type: 'Number'}
78 ] 78 ]
79 }, 79 },
80 80
81 81
82 -  
83 -  
84 -//【文章分类管理】 82 +//=================================【文章分类管理】
85 83
86 {//逛-> 文章分类管理 空白页 84 {//逛-> 文章分类管理 空白页
87 - route:'/guang/article/sortindex',  
88 - method:'GET',  
89 - view:'pages/guang/articleCategoryManager', 85 + route: '/guang/article/sortindex',
  86 + method: 'GET',
  87 + view: 'pages/guang/articleCategoryManager',
90 src: '/guang/articleCategoryManager', 88 src: '/guang/articleCategoryManager',
91 - data:{  
92 - iscreate:true 89 + data: {
  90 + iscreate: true
93 } 91 }
94 }, { 92 }, {
95 93
96 // 文章分类管理列表数据 94 // 文章分类管理列表数据
97 - route:'/guang/article/categoryist',  
98 - method:'POST', 95 + route: '/guang/article/categoryist',
  96 + method: 'POST',
99 url: '/guang/article/sort/getList', 97 url: '/guang/article/sort/getList',
100 - params:[  
101 - {name: 'page',type: 'Number'},  
102 - {name: 'size',type: 'Number'}, 98 + params: [
  99 + {name: 'page', type: 'Number'},
  100 + {name: 'size', type: 'Number'},
103 ] 101 ]
104 }, { 102 }, {
105 103
106 // 文章分类管理-编辑 104 // 文章分类管理-编辑
107 - route:'/guang/article/sort/update',  
108 - method:'POST', 105 + route: '/guang/article/sort/update',
  106 + method: 'POST',
109 url: '/guang/article/sort/updateSort', 107 url: '/guang/article/sort/updateSort',
110 - params:[  
111 - {name: 'id',type: 'Number'},  
112 - {name: 'parentId',type: 'Number'},  
113 - {name: 'orderBy',type: 'Number'},  
114 - {name: 'status',type: 'Number'},  
115 - {name: 'name',type: 'String'},  
116 - {name: 'advertCode',type: 'String'}, 108 + params: [
  109 + {name: 'id', type: 'Number'},
  110 + {name: 'parentId', type: 'Number'},
  111 + {name: 'orderBy', type: 'Number'},
  112 + {name: 'status', type: 'Number'},
  113 + {name: 'name', type: 'String'},
  114 + {name: 'advertCode', type: 'String'},
117 ] 115 ]
118 }, { 116 }, {
119 117
  118 + // 文章分类管理-添加
  119 + route: '/guang/article/sort/add',
  120 + method: 'POST',
  121 + url: '/guang/article/sort/addSort',
  122 + params: [
  123 + {name: 'parentId', type: 'Number'},
  124 + {name: 'orderBy', type: 'Number'},
  125 + {name: 'status', type: 'Number'},
  126 + {name: 'name', type: 'String'},
  127 + {name: 'advertCode', type: 'String'},
  128 + ]
  129 + },
  130 + {
  131 +
120 // 文章分类管理-删除 132 // 文章分类管理-删除
121 - route:'/guang/article/sort/del',  
122 - method:'POST', 133 + route: '/guang/article/sort/del',
  134 + method: 'POST',
123 url: '/guang/article/sort/delSort', 135 url: '/guang/article/sort/delSort',
124 - params:[  
125 - {name: 'id',type: 'Number'} 136 + params: [
  137 + {name: 'id', type: 'Number'}
126 ] 138 ]
127 }, 139 },
128 140
129 -//【标签管理】 141 +//=================================【标签管理】
130 {//逛-> 标签管理 空白页 142 {//逛-> 标签管理 空白页
131 - route:'/guang/tags/index',  
132 - method:'GET',  
133 - view:'pages/guang/tagManager', 143 + route: '/guang/tags/index',
  144 + method: 'GET',
  145 + view: 'pages/guang/tagManager',
134 src: '/guang/tagManager', 146 src: '/guang/tagManager',
135 - data:{  
136 - iscreate:true 147 + data: {
  148 + iscreate: true
137 } 149 }
  150 + },{
  151 +
  152 + // 标签管理列表数据
  153 + route: '/guang/tags/getList',
  154 + method: 'POST',
  155 + url: '/guang/tags/getList',
  156 + params: [
  157 + {name: 'page', type: 'Number'},
  158 + {name: 'size', type: 'Number'},
  159 + {name: 'isHot', type: 'Number'},
  160 + {name: 'status', type: 'Number'},
  161 + {name: 'classifyId', type: 'Number'},
  162 + {name: 'tagName', type: 'String'},
  163 + ]
  164 + }, {
  165 +
  166 + // 标签管理-编辑
  167 + route: '/guang/tags/updateTag',
  168 + method: 'POST',
  169 + url: '/guang/tags/updateTag',
  170 + params: [
  171 + {name: 'id', type: 'Number'},
  172 + {name: 'tagName', type: 'String'},
  173 + {name: 'classifyId', type: 'Number'},
  174 + {name: 'isHot', type: 'Number'},
  175 + {name: 'status', type: 'Number'},
  176 + ]
  177 + }, {
  178 +
  179 + // 标签管理-添加
  180 + route: '/guang/tags/addTag',
  181 + method: 'POST',
  182 + url: '/guang/tags/addTag',
  183 + params: [
  184 + {name: 'tagName', type: 'String'},
  185 + {name: 'classifyId', type: 'Number'},
  186 + {name: 'isHot', type: 'Number'},
  187 + {name: 'status', type: 'Number'},
  188 + ]
138 }, 189 },
  190 + {
139 191
140 -//【标签分类管理】 192 + // 标签管理-删除
  193 + route: '/guang/tags/delTag',
  194 + method: 'POST',
  195 + url: '/guang/tags/delTag',
  196 + params: [
  197 + {name: 'id', type: 'Number'}
  198 + ]
  199 + },
  200 +
  201 +//=================================【标签分类管理】
141 {//逛-> 标签分类管理 空白页 202 {//逛-> 标签分类管理 空白页
142 - route:'/guang/tags/sort',  
143 - method:'GET',  
144 - view:'pages/guang/tagCategoryManager', 203 + route: '/guang/tags/sort',
  204 + method: 'GET',
  205 + view: 'pages/guang/tagCategoryManager',
145 src: '/guang/tagCategoryManager', 206 src: '/guang/tagCategoryManager',
146 - data:{  
147 - iscreate:true 207 + data: {
  208 + iscreate: true
148 } 209 }
  210 + }, {
  211 +
  212 + // 标签分类管理列表数据
  213 + route: '/guang/tags/sort/list',
  214 + method: 'POST',
  215 + url: '/guang/tagSort/getList',
  216 + params: [
  217 + {name: 'page', type: 'Number'},
  218 + {name: 'size', type: 'Number'},
  219 + ]
  220 + }, { // 标签分类管理-编辑
  221 + route: '/guang/tags/sort/update',
  222 + method: 'POST',
  223 + url: '/guang/tagSort/updateSort',
  224 + params: [
  225 + {name: 'id', type: 'Number'},
  226 + {name: 'status', type: 'Number'},
  227 + {name: 'orderBy', type: 'Number'},
  228 + {name: 'classifyName', type: 'String'},
  229 + ]
  230 + }, {
  231 +
  232 + // 标签分类管理-添加
  233 + route: '/guang/tags/sort/add',
  234 + method: 'POST',
  235 + url: '/guang/tagSort/addSort',
  236 + params: [
  237 + {name: 'status', type: 'Number'},
  238 + {name: 'orderBy', type: 'Number'},
  239 + {name: 'classifyName', type: 'String'},
  240 + ]
149 }, 241 },
  242 + {
150 243
151 -//【评论管理】 244 + // 标签分类管理-删除
  245 + route: '/guang/tags/sort/del',
  246 + method: 'POST',
  247 + url: '/guang/tagSort/delSort',
  248 + params: [
  249 + {name: 'id', type: 'Number'}
  250 + ]
  251 + },
  252 +
  253 +//=================================【评论管理】
152 {//逛-> 评论管理 空白页 254 {//逛-> 评论管理 空白页
153 - route:'/guang/comments/index',  
154 - method:'GET',  
155 - view:'pages/guang/commentManager', 255 + route: '/guang/comments/index',
  256 + method: 'GET',
  257 + view: 'pages/guang/commentManager',
156 src: '/guang/commentManager', 258 src: '/guang/commentManager',
157 - data:{  
158 - iscreate:true 259 + data: {
  260 + iscreate: true
159 } 261 }
160 }, 262 },
161 263
162 -//【作者管理】 264 +//=================================【作者管理】
163 {//逛-> 作者管理 空白页 265 {//逛-> 作者管理 空白页
164 - route:'/guang/author/index',  
165 - method:'GET',  
166 - view:'pages/guang/authorManager', 266 + route: '/guang/author/index',
  267 + method: 'GET',
  268 + view: 'pages/guang/authorManager',
167 src: '/guang/authorManager', 269 src: '/guang/authorManager',
168 - data:{  
169 - iscreate:true 270 + data: {
  271 + iscreate: true
170 } 272 }
  273 + }, {
  274 +
  275 + // 作者管理列表数据
  276 + route: '/guang/author/getList',
  277 + method: 'POST',
  278 + url: '/guang/author/getList',
  279 + params: [
  280 + {name: 'page', type: 'Number'},
  281 + {name: 'size', type: 'Number'},
  282 + ]
  283 + }, {
  284 + // 作者管理-添加
  285 + route: '/guang/author/addAuthor',
  286 + method: 'POST',
  287 + url: '/guang/author/addAuthor',
  288 + params: [
  289 + {name: 'username', type: 'String'},
  290 + {name: 'avatar', type: 'String'},
  291 + {name: 'authorDesc', type: 'String'},
  292 + ]
  293 + }, {
  294 + // 作者管理-编辑
  295 + route: '/guang/author/updateAuthor',
  296 + method: 'POST',
  297 + url: '/guang/author/updateAuthor',
  298 + params: [
  299 + {name: 'uid', type: 'Number'},
  300 + {name: 'username', type: 'String'},
  301 + {name: 'avatar', type: 'String'},
  302 + {name: 'authorDesc', type: 'String'},
  303 + ]
171 }, 304 },
  305 + {
172 306
  307 + // 作者管理-删除
  308 + route: '/guang/author/delAuthor',
  309 + method: 'POST',
  310 + url: '/guang/author/delAuthor',
  311 + params: [
  312 + {name: 'uid', type: 'Number'}
  313 + ]
  314 + },
173 315
174 -// [下拉框调用的接口] 316 +
  317 +
  318 +//================================= [下拉框调用的接口]
175 {// 作者 319 {// 作者
176 - route:'/guang/article/getAuthorList',  
177 - method:'POST', 320 + route: '/guang/article/getAuthorList',
  321 + method: 'POST',
178 url: '/guang/article/getAuthorList', 322 url: '/guang/article/getAuthorList',
179 - params:[  
180 - {name: 'idName',type: 'String'}, 323 + params: [
  324 + {name: 'idName', type: 'String'},
181 ] 325 ]
182 }, 326 },
183 327
184 {// 所有分类 328 {// 所有分类
185 - route:'/guang/article/getSortList',  
186 - method:'POST', 329 + route: '/guang/article/getSortList',
  330 + method: 'POST',
187 url: '/guang/article/getSortList', 331 url: '/guang/article/getSortList',
188 332
189 }, 333 },
190 334
  335 + {// 根据是否启用获取标签分类列表
  336 + route: '/guang/tagSort/getTagItems',
  337 + method: 'POST',
  338 + url: '/guang/tagSort/getTagItems',
  339 + params: [
  340 + {name: 'status', type: 'Number'},
  341 + ]
191 342
192 - 343 + },
193 344
194 345
195 ]; 346 ];
@@ -26,7 +26,6 @@ @@ -26,7 +26,6 @@
26 <a class="btn btn-info" id="add">添加</a> 26 <a class="btn btn-info" id="add">添加</a>
27 </div> 27 </div>
28 </div> 28 </div>
29 - <input type="hidden" id="url" value="/erpproduct/sizeattribute/sizeList"/>  
30 <div id="list"> 29 <div id="list">
31 30
32 </div> 31 </div>
@@ -34,11 +33,43 @@ @@ -34,11 +33,43 @@
34 </div> 33 </div>
35 34
36 <script type="text/template" id="template"> 35 <script type="text/template" id="template">
  36 + <div class="form-group" id="maxsord">
  37 + <label for="parentId" class="col-sm-2 control-label">一级分类名:</label>
  38 + <div class="col-sm-10">
  39 + <input type="hidden" name="" value="[[id]]" id="id" class="form-control" pattern="" title="">
  40 + <select id="parentId" value="[[parentId]]" class="form-control">
  41 + <option value="-1">请选择分类</option>
  42 + </select>
  43 + </div>
  44 + </div>
  45 +
  46 + <div class="form-group">
  47 + <label for="name" class="col-sm-2 control-label">分类名:</label>
  48 + <div class="col-sm-10">
  49 + <input type="text" value="[[name]]" name="content" id="name" placeholder="分类名" required="required" class="form-control">
  50 + </div>
  51 + </div>
  52 +
37 <div class="form-group"> 53 <div class="form-group">
38 - <label for="input" class="col-sm-2 control-label">尺码名:</label> 54 + <label for="orderBy" class="col-sm-2 control-label">排序:</label>
39 <div class="col-sm-10"> 55 <div class="col-sm-10">
40 - <input type="hidden" name="" value="{id}" id="id" class="form-control" value="" required="required" pattern="" title="">  
41 - <input type="text" name="" value="{input}" id="input" class="form-control" value="" required="required" pattern="" title="" maxlength="20"> 56 + <input type="number" value="[[orderBy]]" name="content" id="orderBy" placeholder="排序" required="required" class="form-control">
  57 + </div>
  58 + </div>
  59 +
  60 + <div class="form-group">
  61 + <label for="advertCode" class="col-sm-2 control-label">广告码:</label>
  62 + <div class="col-sm-10">
  63 + <input type="text" value="[[advertCode]]" name="content" id="advertCode" placeholder="广告码" required="required" class="form-control">
  64 + </div>
  65 + </div>
  66 +
  67 + <div class="form-group">
  68 + <label for="status" class="col-sm-2 control-label">是否启用:</label>
  69 + <div class="radio">
  70 + <label><input type="radio" value="1" name="status" kl_vkbd_parsed="true">开启</label>
  71 + <label><input type="radio" value="0" name="status" kl_vkbd_parsed="true">关闭</label>
42 </div> 72 </div>
  73 + <input id="status" type="hidden" value="[[status]]" for="radio" required="required" kl_vkbd_parsed="true">
43 </div> 74 </div>
44 </script> 75 </script>
1 -<!DOCTYPE html>  
2 -<html lang="en">  
3 -<head>  
4 - <meta charset="UTF-8">  
5 - <title></title>  
6 -</head>  
7 -<body>  
8 -  
9 -</body>  
10 -</html>  
  1 +<div class="pageheader">
  2 + <div class="media">
  3 + <div class="pageicon pull-left">
  4 + <i class="fa fa-th-list"></i>
  5 + </div>
  6 + <div class="media-body">
  7 + <ul class="breadcrumb">
  8 + <li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
  9 + <li><a href="">作者管理</a></li>
  10 + <li>作者列表</li>
  11 + </ul>
  12 +
  13 + <div>
  14 + <div style="width: 30%;float: left;">
  15 + <h4>作者列表</h4>
  16 + </div>
  17 + </div>
  18 + </div>
  19 + </div>
  20 +</div>
  21 +
  22 +<div class="contentpanel">
  23 + <div class="panel panel-default" style="margin-bottom:10px;">
  24 + <div class="panel-body">
  25 + <div class="row">
  26 + <a class="btn btn-info" id="add-btn" >添加</a>
  27 + </div>
  28 + </div>
  29 + <div id="color-list" class="color">
  30 +
  31 + </div>
  32 + </div>
  33 +</div>
  34 +
  35 +
  36 +<script type="text/template" id="template">
  37 +
  38 +
  39 + <div class="form-group">
  40 + <label for="username" class="col-sm-2 control-label">作者名称:</label>
  41 + <div class="col-sm-10">
  42 + <input type="text" value="[[username]]" name="content" id="username" placeholder="作者名称" required="required" class="form-control">
  43 + </div>
  44 + </div>
  45 +
  46 + <div class="form-group">
  47 + <label for="authorDesc" class="col-sm-2 control-label">作者描述:</label>
  48 + <div class="col-sm-10">
  49 + <input type="text" value="[[authorDesc]]" name="content" id="authorDesc" placeholder="作者描述" required="required" class="form-control">
  50 + </div>
  51 + </div>
  52 +
  53 + <div class="form-group">
  54 + <label for="avatar" class="col-sm-2 control-label">作者头像:</label>
  55 + <div class="col-sm-8" id="colorUrlBox">
  56 + <input type="file" id="avatar" name="colorValue" value="[[avatar]]">
  57 + </div>
  58 + </div>
  59 +
  60 +
  61 +</script>
  62 +
1 -<!DOCTYPE html>  
2 -<html lang="en">  
3 -<head>  
4 - <meta charset="UTF-8">  
5 - <title></title>  
6 -</head>  
7 -<body>  
8 -  
9 -</body>  
10 -</html>  
  1 +<div class="pageheader">
  2 + <div class="media">
  3 + <div class="pageicon pull-left">
  4 + <i class="fa fa-th-list"></i>
  5 + </div>
  6 + <div class="media-body">
  7 + <ul class="breadcrumb">
  8 + <li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
  9 + <li><a href="">评论管理</a></li>
  10 + <li>评论列表</li>
  11 + </ul>
  12 +
  13 + <div>
  14 + <div style="width: 30%;float: left;">
  15 + <h4>待审核-评论列表</h4>
  16 + </div>
  17 + </div>
  18 + </div>
  19 + </div>
  20 +</div>
  21 +
  22 +<div class="contentpanel">
  23 + <div class="panel panel-default" style="margin-bottom:10px;">
  24 + <div class="panel-body">
  25 + <a id="check-btn" href="javascript:;" class="btn btn-danger">待审核</a>
  26 + <a id="pass-btn" href="javascript:;" class="btn btn-success">已审核</a>
  27 + <a id="all-btn" href="javascript:;" class="btn btn-info">全部</a>
  28 + </div>
  29 + </div>
  30 + <div class="panel panel-primary-head">
  31 + <div id="basicTable_wrapper" class="dataTables_wrapper no-footer">
  32 + <div class="dataTables_length" id="basicTable">
  33 + </div>
  34 + <nav>
  35 + <ul id="pagination" class="pagination pagination-lg"></ul>
  36 + </nav>
  37 + </div>
  38 + </div>
  39 +</div>
  40 +
  41 +
  42 +<script type="text/template" id="template">
  43 +
  44 +
  45 + <div class="form-group">
  46 + <label for="tagName" class="col-sm-2 control-label">标签名称:</label>
  47 + <div class="col-sm-10">
  48 + <input type="text" value="[[tagName]]" name="content" id="tagName" placeholder="标签名称" required="required" class="form-control">
  49 + </div>
  50 + </div>
  51 +
  52 +
  53 + <div class="form-group" id="maxsord">
  54 + <label for="classifyId" class="col-sm-2 control-label">标签分类:</label>
  55 + <div class="col-sm-10">
  56 + <input type="hidden" name="" value="[[id]]" id="id" class="form-control" pattern="" title="">
  57 + <select id="classifyId" value="[[classifyId]]" class="form-control">
  58 + <option value="-1">请选择分类</option>
  59 + </select>
  60 + </div>
  61 + </div>
  62 +
  63 + <div class="form-group">
  64 + <label for="isHot" class="col-sm-2 control-label">是否热门:</label>
  65 + <div class="radio">
  66 + <label><input type="radio" value="1" name="isHot" kl_vkbd_parsed="true"></label>
  67 + <label><input type="radio" value="0" name="isHot" kl_vkbd_parsed="true"></label>
  68 + </div>
  69 + <input id="isHot" type="hidden" value="[[isHot]]" for="radio" required="required" kl_vkbd_parsed="true">
  70 + </div>
  71 +
  72 + <div class="form-group">
  73 + <label for="status1" class="col-sm-2 control-label">是否启用:</label>
  74 + <div class="radio">
  75 + <label><input type="radio" value="1" name="status1" kl_vkbd_parsed="true"></label>
  76 + <label><input type="radio" value="0" name="status1" kl_vkbd_parsed="true"></label>
  77 + </div>
  78 + <input id="status1" type="hidden" value="[[status]]" for="radio" required="required" kl_vkbd_parsed="true">
  79 + </div>
  80 +
  81 +</script>
1 -<!DOCTYPE html>  
2 -<html lang="en">  
3 -<head>  
4 - <meta charset="UTF-8">  
5 - <title></title>  
6 -</head>  
7 -<body>  
8 -  
9 -</body>  
10 -</html>  
  1 +<div class="pageheader">
  2 + <div class="media">
  3 + <div class="pageicon pull-left">
  4 + <i class="fa fa-th-list"></i>
  5 + </div>
  6 + <div class="media-body">
  7 + <ul class="breadcrumb">
  8 + <li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
  9 + <li><a href="">标签管理</a></li>
  10 + <li>标签分类管理</li>
  11 + </ul>
  12 +
  13 + <div>
  14 + <div style="width: 30%;float: left;">
  15 + <h4>标签分类管理</h4>
  16 + </div>
  17 + </div>
  18 + </div>
  19 + </div>
  20 +</div>
  21 +
  22 +<div class="contentpanel">
  23 + <div class="panel panel-default" style="margin-bottom:10px;">
  24 + <div class="panel-body">
  25 + <div class="row">
  26 + <a class="btn btn-info" id="add">添加</a>
  27 + </div>
  28 + </div>
  29 + <div id="list">
  30 +
  31 + </div>
  32 + </div>
  33 +</div>
  34 +
  35 +<script type="text/template" id="template">
  36 +
  37 +
  38 + <div class="form-group">
  39 + <input type="hidden" name="" value="[[id]]" id="id" class="form-control" pattern="" title="">
  40 + <label for="classifyName" class="col-sm-2 control-label">分类名称:</label>
  41 + <div class="col-sm-10">
  42 + <input type="text" value="[[classifyName]]" name="content" id="classifyName" requeired placeholder="分类名称" required="required" class="form-control">
  43 + </div>
  44 + </div>
  45 +
  46 + <div class="form-group">
  47 + <label for="orderBy" class="col-sm-2 control-label">排序:</label>
  48 + <div class="col-sm-10">
  49 + <input type="number" value="[[orderBy]]" name="content" id="orderBy" placeholder="排序" required="required" class="form-control">
  50 + </div>
  51 + </div>
  52 +
  53 + <div class="form-group">
  54 + <label for="status" class="col-sm-2 control-label">是否启用:</label>
  55 + <div class="radio">
  56 + <label><input type="radio" value="1" name="status" kl_vkbd_parsed="true">开启</label>
  57 + <label><input type="radio" value="0" name="status" kl_vkbd_parsed="true">关闭</label>
  58 + </div>
  59 + <input id="status" type="hidden" value="[[status]]" for="radio" required="required" kl_vkbd_parsed="true">
  60 + </div>
  61 +</script>
1 -<!DOCTYPE html>  
2 -<html lang="en">  
3 -<head>  
4 - <meta charset="UTF-8">  
5 - <title></title>  
6 -</head>  
7 -<body>  
8 -  
9 -</body>  
10 -</html>  
  1 +<div class="pageheader">
  2 + <div class="media">
  3 + <div class="pageicon pull-left">
  4 + <i class="fa fa-th-list"></i>
  5 + </div>
  6 + <div class="media-body">
  7 + <ul class="breadcrumb">
  8 + <li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
  9 + <li><a href="">标签管理</a></li>
  10 + <li>标签管理</li>
  11 + </ul>
  12 +
  13 + <div>
  14 + <div style="width: 30%;float: left;">
  15 + <h4>标签管理</h4>
  16 + </div>
  17 + </div>
  18 + </div>
  19 + </div>
  20 +</div>
  21 +
  22 +<div class="contentpanel">
  23 + <div class="panel panel-default" style="margin-bottom:10px;">
  24 + <div class="panel-body">
  25 + <a id="add-btn" href="javascript:;" class="btn btn-info">添加</a>
  26 + </div>
  27 + <div class="panel-body">
  28 +
  29 +
  30 + <div class="row">
  31 + <div class="panel-col">
  32 + <input type="text" id="articleTitle" class="form-control" placeholder="输入标签名称" style="height: 39px;"/>
  33 + </div>
  34 +
  35 + <div class="panel-col">
  36 + <select id="maxSortId" class="form-control">
  37 + <option value="-1">请选择分类</option>
  38 + </select>
  39 + </div>
  40 +
  41 + <div class="panel-col">
  42 + <select id="articleGender" class="form-control">
  43 + <option value="-1">是否热门</option>
  44 + <option value="1"></option>
  45 + <option value="0"></option>
  46 + </select>
  47 + </div>
  48 +
  49 +
  50 + <div class="panel-col">
  51 + <a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
  52 + <a id="all-btn" href="" class="btn btn-info">全部</a>
  53 + </div>
  54 +
  55 + </div>
  56 + </div>
  57 + </div>
  58 + <div class="panel panel-primary-head">
  59 + <div id="basicTable_wrapper" class="dataTables_wrapper no-footer">
  60 + <div class="dataTables_length" id="basicTable">
  61 + </div>
  62 + <nav>
  63 + <ul id="pagination" class="pagination pagination-lg"></ul>
  64 + </nav>
  65 + </div>
  66 + </div>
  67 +</div>
  68 +
  69 +
  70 +<script type="text/template" id="template">
  71 +
  72 +
  73 + <div class="form-group">
  74 + <label for="tagName" class="col-sm-2 control-label">标签名称:</label>
  75 + <div class="col-sm-10">
  76 + <input type="text" value="[[tagName]]" name="content" id="tagName" placeholder="标签名称" required="required" class="form-control">
  77 + </div>
  78 + </div>
  79 +
  80 +
  81 + <div class="form-group" id="maxsord">
  82 + <label for="classifyId" class="col-sm-2 control-label">标签分类:</label>
  83 + <div class="col-sm-10">
  84 + <input type="hidden" name="" value="[[id]]" id="id" class="form-control" pattern="" title="">
  85 + <select id="classifyId" value="[[classifyId]]" class="form-control">
  86 + <option value="-1">请选择分类</option>
  87 + </select>
  88 + </div>
  89 + </div>
  90 +
  91 + <div class="form-group">
  92 + <label for="isHot" class="col-sm-2 control-label">是否热门:</label>
  93 + <div class="radio">
  94 + <label><input type="radio" value="1" name="isHot" kl_vkbd_parsed="true"></label>
  95 + <label><input type="radio" value="0" name="isHot" kl_vkbd_parsed="true"></label>
  96 + </div>
  97 + <input id="isHot" type="hidden" value="[[isHot]]" for="radio" required="required" kl_vkbd_parsed="true">
  98 + </div>
  99 +
  100 + <div class="form-group">
  101 + <label for="status1" class="col-sm-2 control-label">是否启用:</label>
  102 + <div class="radio">
  103 + <label><input type="radio" value="1" name="status1" kl_vkbd_parsed="true"></label>
  104 + <label><input type="radio" value="0" name="status1" kl_vkbd_parsed="true"></label>
  105 + </div>
  106 + <input id="status1" type="hidden" value="[[status]]" for="radio" required="required" kl_vkbd_parsed="true">
  107 + </div>
  108 +
  109 +</script>