Authored by weiqingting

Merge branch 'yohobuy_portak_dev_v4.8_20160620' of http://git.yoho.cn/fe/yohobuy…

…-portal-fe2 into yohobuy_portak_dev_v4.8_20160620
Showing 60 changed files with 1477 additions and 465 deletions
... ... @@ -5,9 +5,11 @@
module.exports=function(app) {
app.get("/guang/article/sortindex","guang.articleCategoryManager.Index", function () {
app.get("/guang/article/sortindex","guang.articleCategory.Index", function () {
this.$extend = {
iscreate: true
iscreate: true,
moduleName: "文章分类管理",
pageName: "文章分类管理"
};
});
/*文章分类管理列表数据*/
... ...
... ... @@ -5,9 +5,11 @@
module.exports=function(app) {
app.get("/guang/author/index","guang.authorManager.Index", function () {
app.get("/guang/author/index","guang.author.Index", function () {
this.$extend = {
iscreate: true
iscreate: true,
moduleName: "作者管理",
pageName: "作者列表"
};
});
/*作者管理列表数据*/
... ...
... ... @@ -7,7 +7,9 @@ module.exports=function(app) {
app.get("/guang/relationship/index","guang.brandConcern.Index", function () {
this.$extend = {
iscreate: true
iscreate: true,
moduleName: "品牌关系管理",
pageName: "品牌关系列表"
};
});
/*品牌关注 列表数据*/
... ...
... ... @@ -5,9 +5,11 @@
module.exports=function(app) {
app.get("/guang/comments/index","guang.commentManager.Index", function () {
app.get("/guang/comments/index","guang.comment.Index", function () {
this.$extend = {
iscreate: true
iscreate: true,
moduleName: "评论管理",
pageName: "评论列表"
};
});
/*评论管理列表数据*/
... ...
... ... @@ -6,25 +6,29 @@
module.exports=function(app) {
/*首页*/
app.get("/guang/article/index","guang.infoManager.Index", function () {
app.get("/guang/article/index","guang.info.Index", function () {
this.$extend = {
iscreate: true
iscreate: true,
moduleName: "资讯管理",
pageName: "资讯列表管理"
};
});
/*添加*/
app.get("/guang/article/contentAdd","guang.infoManager.Edit", function () {
app.get("/guang/article/contentAdd","guang.info.Edit", function () {
this.$extend = {
action:"/guang/article/addArticle",
pageTitle:"添加文章"
moduleName: "文章管理",
pageName: "添加文章"
};
});
/*编辑*/
app.get("/guang/article/contentEdit/:id","guang.infoManager.Edit", function () {
app.get("/guang/article/contentEdit/:id","guang.info.Edit", function () {
this.$extend = {
action:"/guang/article/updateArticle",
pageTitle:"修改文章"
moduleName: "文章管理",
pageName: "修改文章"
};
});
... ...
... ... @@ -5,9 +5,11 @@
module.exports=function(app) {
app.get("/guang/plustar/index","guang.plusStarManager.Index", function () {
app.get("/guang/plustar/index","guang.plusStar.Index", function () {
this.$extend = {
iscreate: true
iscreate: true,
moduleName: "Plus/Star",
pageName: "Plus/star管理"
};
});
/*Plus/Star 列表数据*/
... ...
... ... @@ -7,7 +7,9 @@ module.exports=function(app) {
app.get("/guang/plustarcategory/index","guang.plusStarCategory.Index", function () {
this.$extend = {
iscreate: true
iscreate: true,
moduleName: "plustar分类管理",
pageName: "plustar分类列表管理"
};
});
/*Plus/Star分类 列表数据*/
... ...
... ... @@ -5,9 +5,11 @@
module.exports=function(app) {
app.get("/guang/tags/index","guang.tagManager.Index", function () {
app.get("/guang/tags/index","guang.tag.Index", function () {
this.$extend = {
iscreate: true
iscreate: true,
moduleName: "标签管理",
pageName: "标签管理"
};
});
/*标签管理列表数据*/
... ...
... ... @@ -5,9 +5,11 @@
module.exports=function(app) {
app.get("/guang/tags/sort","guang.tagCategoryManager.Index", function () {
app.get("/guang/tags/sort","guang.tagCategory.Index", function () {
this.$extend = {
iscreate: true
iscreate: true,
moduleName: "标签管理",
pageName: "标签分类管理"
};
});
/*标签分类管理列表数据*/
... ...
... ... @@ -21,9 +21,9 @@ module.exports={
{name: 'size', type: 'Number'}
]
},
updateArticle:{
operation:{
title: "资讯管理-列表操作(修改、发布、关闭、推荐、取消推荐)",
url: '/guang/article/operation',
url: '/guang/article/updateArticle',
params: [
{name: 'id', type: 'Number'},
{name: 'articleTitle', type: 'String'},
... ...
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<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">
... ... @@ -39,8 +18,8 @@
<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">
<input type="hidden" name="" value="[[id]]" id="id" class="form-control" pattern="" title="">
<select id="parentId" value="[[parentId]]" class="form-control">
<option value="0">请选择分类</option>
</select>
</div>
... ... @@ -49,21 +28,21 @@
<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">
<input type="text" value="[[name]]" name="content" id="name" 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||0%>" name="content" id="orderBy" placeholder="排序" required="required" class="form-control">
<input type="number" value="[[orderBy||0]]" 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">
<input type="text" value="[[advertCode]]" name="content" id="advertCode" placeholder="广告码" required="required" class="form-control">
</div>
</div>
... ... @@ -73,6 +52,6 @@
<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" checked>关闭</label>
</div>
<input id="status" type="hidden" value="<%status%>" for="radio" kl_vkbd_parsed="true">
<input id="status" type="hidden" value="[[status]]" for="radio" kl_vkbd_parsed="true">
</div>
</script>
\ No newline at end of file
... ...
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<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">
... ... @@ -40,24 +19,24 @@
<div class="form-group">
<input type="hidden" name="" value="<%uid%>" id="uid" class="form-control" pattern="" title="">
<input type="hidden" name="" value="[[uid]]" id="uid" class="form-control" pattern="" title="">
<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">
<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">
<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%>">
<input type="file" id="avatar" name="colorValue" value="[[avatar]]">
</div>
</div>
... ...
... ... @@ -60,13 +60,13 @@
<script type="text/template" id="template">
<div id="templete-top">
<input type="hidden" name="" value="<%id%>" id="id" class="form-control" pattern="" title="">
<input type="hidden" name="" value="[[id]]" id="id" class="form-control" pattern="" title="">
<div class="form-group">
<label for="brandId" class="col-sm-2 control-label">品牌名称*:</label>
<div class="col-sm-10">
<select required="required" id="brandId" value="<%brandId%>" class="form-control">
<option value="<%brandId||-1%>"><%brandName||"请选择"%></option>
<select required="required" id="brandId" value="[[brandId]]" class="form-control">
<option value="[[brandId||-1]]">[[brandName||"请选择"]]</option>
</select>
</div>
</div>
... ... @@ -75,7 +75,7 @@
<div class="form-group">
<label class="col-sm-2 control-label">类型 <span class="asterisk">*</span></label>
<div class="col-sm-9">
<input for="radio" type="hidden" id="brandType" value="<%brandType%>"/>
<input for="radio" type="hidden" id="brandType" value="[[brandType]]"/>
<div class="rdio rdio-primary">
<input type="radio" id="int_new" value="1" name="brandType" required="">
<label for="int_new">新品</label>
... ... @@ -83,7 +83,7 @@
<div class="rdio rdio-primary">
<input type="radio" value="2" id="int_sale" name="brandType">
<label for="int_sale">折扣</label>
<select name="discount" id="discount" value="<%discount%>" style="display:none;">
<select name="discount" id="discount" value="[[discount]]" style="display:none;">
<option value="0">请选择</option>
<option value="1">1</option>
... ... @@ -116,7 +116,7 @@
<div class="form-group" id="activity-name" style="">
<label class="col-sm-3 control-label">活动名称<span class="asterisk">*</span></label>
<div class="col-sm-9">
<input type="text" id="activityName" name="activityName" value="<%activityName%>" class="form-control" placeholder="请填写活动名称" value="">
<input type="text" id="activityName" name="activityName" value="[[activityName]]" class="form-control" placeholder="请填写活动名称" value="">
</div>
</div>
... ... @@ -148,14 +148,14 @@
</script>
<script type="text/template" id="imgeUpload">
<%each pictureBoList as _item _index%>
<li class="cover-image-item image-list" data-index=<%_index%>>
[[each pictureBoList as _item _index]]
<li class="cover-image-item image-list" data-index=[[_index]]>
<div class="goods-img">
<a class="fileinput-button-icon" href="javascript:void(0);">
<img src="<%_item.replace(/(gif|png|jpg|jpeg)\?[^"]*/g,'$1')%>">
<img src="[[_item.replace(/(gif|png|jpg|jpeg)\?[^"]*/g,'$1')]]">
</a>
<i class="remove-item-btn remove1 glyphicon glyphicon-remove-circle" data-index="<%_index%>"></i>
<i class="remove-item-btn remove1 glyphicon glyphicon-remove-circle" data-index="[[_index]]"></i>
</div>
</li>
<%/each%>
[[/each]]
</script>
\ No newline at end of file
... ...
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<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;">
... ...
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<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="/guang/article/index">文章管理</a></li>
<li><%pageTitle%></li>
</ul>
<div>
<h4><%pageTitle%></h4>
</div>
</div>
</div>
<!-- media -->
</div>
<div class="contentpanel">
<div class="rows">
<div class="col-md-12">
... ... @@ -50,7 +30,7 @@
<div class="col-sm-8">
<input type="text" id="articleTitle" maxlength="80" class="form-control" placeholder="文章标题" required
value="<%articleTitle%>">
value="[[articleTitle]]">
</div>
</div>
<div class="form-group">
... ... @@ -58,12 +38,12 @@
<!--文章分类-->
<div class="col-sm-2">
<select class="form-control" id="maxSortId" required>
<option value="<%maxSortId||'-1'%>"><%maxSortName||'请选择一级分类'%></option>
<option value="[[maxSortId||'-1']]">[[maxSortName||'请选择一级分类']]</option>
</select>
</div>
<div class="col-sm-2">
<select class="form-control" id="minSortId">
<option value="<%minSortId||'-1'%>"><%minSortName||'请选择二级分类'%></option>
<option value="[[minSortId||'-1']]">[[minSortName||'请选择二级分类']]</option>
</select>
</div>
</div>
... ... @@ -77,7 +57,7 @@
<label></label>
<input type="radio" value="3" name="articleGender" checked>
<label>通用</label>
<input type="hidden" value="<%articleGender||3%>" id="articleGender" for="radio" required/>
<input type="hidden" value="[[articleGender||3]]" id="articleGender" for="radio" required/>
</div>
</div>
<div class="form-group">
... ... @@ -85,7 +65,7 @@
<div class="col-sm-8">
<select class="form-control" id="authorId" required>
<option value="<%authorId||''%>"><%authorName||'请选择'%></option>
<option value="[[authorId||'']]">[[authorName||'请选择']]</option>
</select>
</div>
</div>
... ... @@ -93,14 +73,14 @@
<label class="col-sm-2 control-label">文章摘要:</label>
<div class="col-sm-8">
<textarea rows="2" id="articleSummary" class="form-control" placeholder="文章摘要" required maxlength="85"><%articleSummary%></textarea>
<textarea rows="2" id="articleSummary" class="form-control" placeholder="文章摘要" required maxlength="85">[[articleSummary]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">封面图:<span class="red">*</span> </label>
<div class="col-sm-8">
<input type="file" name="coverImage" id="coverImage" value="<%coverImage%>" required placeholder="封面图"/>
<input type="file" name="coverImage" id="coverImage" value="[[coverImage]]" required placeholder="封面图"/>
</div>
</div>
<div class="form-group">
... ... @@ -111,7 +91,7 @@
<label>方形</label>
<input type="radio" value="2" name="coverImageType">
<label>长形</label>
<input type="hidden" id="coverImageType" value="<%coverImageType%>" for="radio"/>
<input type="hidden" id="coverImageType" value="[[coverImageType]]" for="radio"/>
</div>
</div>
... ... @@ -119,7 +99,7 @@
<label class="col-sm-2 control-label">文章类型:</label>
<div class="col-sm-8">
<select class="form-control" value="<%articleType%>" id="articleType">
<select class="form-control" value="[[articleType]]" id="articleType">
<option value="1">普通文章</option>
<option value="2">广告</option>
</select>
... ... @@ -129,7 +109,7 @@
<label class="col-sm-2 control-label">广告尺寸:</label>
<div class="col-sm-8">
<select class="form-control" value="<%adsImgSize%>" id="adsImgSize">
<select class="form-control" value="[[adsImgSize]]" id="adsImgSize">
<option value="">请选择广告图片尺寸</option>
<option value="10881088">1088X1088</option>
<option value="1088680">1088X680</option>
... ... @@ -146,7 +126,7 @@
<div class="col-sm-7">
<input type="text" name="url" id="url" value='<%url%>' class="form-control" placeholder="请输入内容链接"
<input type="text" name="url" id="url" value='[[url]]' class="form-control" placeholder="请输入内容链接"
readonly="true">
<p style="color:#999">注:链接中不能有英文单引号</p>
... ... @@ -222,7 +202,7 @@
<div class="col-sm-8">
<select name="goTo" id="goTo" class="form-control">
<%layout template_default_1%>
[[layout template_default_1]]
</select>
</div>
... ... @@ -240,109 +220,109 @@
</script>
<script type="text/template" id="template3">
<%each Brands as brand index%>
[[each Brands as brand index]]
<li class="cover-image-item image-list" data-index="2">
<div class="goods-img">
<a class="fileinput-button-icon" href="javascript:void(0);">
<img src="<%brand.brandIco%>">
<img src="[[brand.brandIco]]">
</a>
<i class="remove-item-btn remove1 glyphicon glyphicon-remove-circle" data-index="<%index%>"></i>
<i class="remove-item-btn remove1 glyphicon glyphicon-remove-circle" data-index="[[index]]"></i>
</div>
</li>
<%/each%>
[[/each]]
</script>
<script type="text/template" id="template4">
<%each tags as tag __index%>
<span class="tag"><span><%tag%></span><a href="#" title="Removing tag" data-index='<%__index%>'>x</a></span>
<%/each%>
[[each tags as tag __index]]
<span class="tag"><span>[[tag]]</span><a href="#" title="Removing tag" data-index='[[__index]]'>x</a></span>
[[/each]]
</script>
<script type="text/template" id="template5">
<div class="row" id="brandForm">
<div class="form-group">
<%each Brands as brand index%>
<a class="btn brand-index" href="#<%brand.name%>"><%brand.name%></a>
<%/each%>
[[each Brands as brand index]]
<a class="btn brand-index" href="#[[brand.name]]">[[brand.name]]</a>
[[/each]]
<input type="text" class="form-control" placeholder="搜索" id="brandsearch"/>
</div>
<div class="form-group brand-wrap" style="height: 400px;overflow: auto;">
<%each Brands as brand index%>
<div class="form-group" name="<%brand.name%>">
<%each brand.items as item __index %>
[[each Brands as brand index]]
<div class="form-group" name="[[brand.name]]">
[[each brand.items as item __index ]]
<a class="btn">
<input type="checkbox" value="<%item.id%>" name="brandCheckBox">
<label><%item.brand_name%></label>
<input type="checkbox" value="[[item.id]]" name="brandCheckBox">
<label>[[item.brand_name]]</label>
</a>
<%/each%>
[[/each]]
</div>
<%/each%>
[[/each]]
<div class="form-group" id="brandsearchwrap" name="brandsearch">
</div>
</div>
<input type="hidden" id="brandCheckBox" for="checkbox" value="<%Brdata%>"/>
<input type="hidden" id="brandCheckBox" for="checkbox" value="[[Brdata]]"/>
</div>
</script>
<!--文章内容--按钮-->
<script type="text/template" id="template_content_btns">
<%each btns as btn index%>
<li><a href="javascript:void(0)" name="text" class="add_btn" data-index="<%index%>"><%btn.template_intro%></a></li>
<%/each%>
[[each btns as btn index]]
<li><a href="javascript:void(0)" name="text" class="add_btn" data-index="[[index]]">[[btn.template_intro]]</a></li>
[[/each]]
<div class="clearfix"></div>
</script>
<!--文章内容--内容-->
<script type="text/template" id="template_content">
<%each modules as module index%>
<li class="form-group custom-group dragItem dragItem1" data-index="<%index%>" style="width: 100%">
<%if module.contentData.template_name=='text'%>
<div class="col-sm-12"><h3><%module.contentData.data.text%></h3></div>
<%else if module.contentData.template_name=='singleImage'%>
[[each modules as module index]]
<li class="form-group custom-group dragItem dragItem1" data-index="[[index]]" style="width: 100%">
[[if module.contentData.template_name=='text']]
<div class="col-sm-12"><h3>[[module.contentData.data.text]]</h3></div>
[[else if module.contentData.template_name=='singleImage']]
<div class="col-sm-12">
<img src="<%module.contentData.data[0].src%>" title="<%module.contentData.data[0].title%>">
<img src="[[module.contentData.data[0].src]]" title="[[module.contentData.data[0].title]]">
</div>
<%else if module.contentData.template_name=='smallPic'%>
<%each module.contentData.data as item i%>
[[else if module.contentData.template_name=='smallPic']]
[[each module.contentData.data as item i]]
<div class="col-sm-6">
<img src="<%item.src%>" title="<%item.title%>">
<img src="[[item.src]]" title="[[item.title]]">
</div>
<%/each%>
<%else if module.contentData.template_name=='goods'%>
<%each module.contentData.data as item i%>
[[/each]]
[[else if module.contentData.template_name=='goods']]
[[each module.contentData.data as item i]]
<div class="col-sm-6">
<img src="<%item.src%>" title="<%item.title%>">
<img src="[[item.src]]" title="[[item.title]]">
</div>
<%/each%>
<%else if module.contentData.template_name=='link'%>
[[/each]]
[[else if module.contentData.template_name=='link']]
<div class="col-sm-12">
<h3>添加链接</h3>
</div>
<%else if module.contentData.template_name=='goodsGroup'%>
[[else if module.contentData.template_name=='goodsGroup']]
<div class="form-group">
<%each module.contentData.data as items i%>
[[each module.contentData.data as items i]]
<div class="col-sm-3">
<img src="<%items.cover.cover%>">
<img src="[[items.cover.cover]]">
</div>
<%/each%>
[[/each]]
</div>
<%each module.contentData.data[0].list as item index%>
[[each module.contentData.data[0].list as item index]]
<div class="col-sm-6">
<img src="<%item.src%>" title="<%item.id%>">
<img src="[[item.src]]" title="[[item.id]]">
</div>
<%/each%>
[[/each]]
<%/if%>
[[/if]]
<div class="actions-box">
<div class="actions-wrap">
<span class="edit" data-index="<%index%>">编辑</span>
<span class="del" data-index="<%index%>">删除</span>
<span class="edit" data-index="[[index]]">编辑</span>
<span class="del" data-index="[[index]]">删除</span>
</div>
</div>
</li>
<%/each%>
[[/each]]
</script>
<!-- 文本弹层 -->
... ... @@ -365,18 +345,18 @@
</tr>
</thead>
<tbody>
<%each contentData.data as item index%>
[[each contentData.data as item index]]
<tr>
<td><%index+1%></td>
<td>[[index+1]]</td>
<!-- multiple="true" -->
<td><input type="file" name="file" id="src-<%index%>" value="<%item.src%>"
data-field="<%index%>.src" data-index="<%index%>"/></td>
<td><input type="file" name="file" id="src-[[index]]" value="[[item.src]]"
data-field="[[index]].src" data-index="[[index]]"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select class="form-control observe" data-field="<%index%>.url.action"
value='<%item.url.action%>'>
<%layout template_default_1%>
<select class="form-control observe" data-field="[[index]].url.action"
value='[[item.url.action]]'>
[[layout template_default_1]]
</select>
</div>
</div>
... ... @@ -384,22 +364,22 @@
<div class="form-group">
<div class="col-sm-10">
<textarea rows="2" class="form-control observe" placeholder="跳转地址"
data-field="<%index%>.url.url"><%item.url.url%></textarea>
data-field="[[index]].url.url">[[item.url.url]]</textarea>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input class="form-control observe" value="<%item.alt%>" placeholder="图片描述"
data-field='<%index%>.alt'/>
<input class="form-control observe" value="[[item.alt]]" placeholder="图片描述"
data-field='[[index]].alt'/>
</div>
</div>
</td>
</tr>
<%/each%>
[[/each]]
</tbody>
</table>
</div>
... ... @@ -413,11 +393,11 @@
<script type="text/template" id="template_dialog_imgmodule">
<div class="rows" id="moduleimgs">
<div class="form-group">
<%each datas as item index%>
[[each datas as item index]]
<div class="col-sm-2">
<img src="<% item %>" width="100%" height="100%">
<img src="[[ item ]]" width="100%" height="100%">
</div>
<%/each%>
[[/each]]
<div class="col-sm-2">
<input type="file" multiple="true" name="file" id="filemodelimgs"/>
</div>
... ... @@ -431,17 +411,17 @@
<div class="form-group">
<div class="col-sm-12">
<ul class="cover-image-list col-sm-10 imagegroup" id="goodspic">
<%each contentData.data as item index%>
[[each contentData.data as item index]]
<li class="cover-image-item image-list dragItem dragItem2" >
<div class="goods-img">
<a class="fileinput-button-icon" href="javascript:void(0);">
<img src="<%item.src%>">
<img src="[[item.src]]">
</a>
<i class="remove-item-btn removepic glyphicon glyphicon-remove-circle"
data-index="<%index%>"></i>
data-index="[[index]]"></i>
</div>
</li>
<%/each%>
[[/each]]
</ul>
</div>
... ... @@ -455,16 +435,16 @@
</script>
<script type="text/template" id="template_dialog_goodsimgs">
<%each datas as data index%>
[[each datas as data index]]
<li class="cover-image-item image-list dragItem dragItem2">
<div class="goods-img">
<a class="fileinput-button-icon" href="javascript:void(0);">
<img src="<%data.src%>">
<img src="[[data.src]]">
</a>
<i class="remove-item-btn removepic glyphicon glyphicon-remove-circle" data-index="<%index%>"></i>
<i class="remove-item-btn removepic glyphicon glyphicon-remove-circle" data-index="[[index]]"></i>
</div>
</li>
<%/each%>
[[/each]]
</script>
<!--添加商品/商品组--选择标签界面模板-->
... ... @@ -505,7 +485,7 @@
<!-- 推荐商品 -->
<script type="text/tempalte" id="template_dialog_remgoods">
<div class="rows" id="groupsgoods">
<%layout template_dialog_remgoodsgroup%>
[[layout template_dialog_remgoodsgroup]]
</div>
<div class="rows">
<div class="form-group">
... ... @@ -520,28 +500,28 @@
</script>
<script type="text/template" id="template_dialog_remgoodsgroup">
<%each contentData.data as items i%>
[[each contentData.data as items i]]
<div class="form-group">
<div class="col-sm-10">
<ul class="cover-image-list col-sm-10 imagegroup" data-i="<%i%>">
<%each items.list as item index%>
<ul class="cover-image-list col-sm-10 imagegroup" data-i="[[i]]">
[[each items.list as item index]]
<li class="cover-image-item image-list dragItem dragItem2" data-index="2">
<div class="goods-img">
<a class="fileinput-button-icon" href="javascript:void(0);">
<img src="<%item.src%>">
<img src="[[item.src]]">
</a>
<i class="remove-item-btn removepic glyphicon glyphicon-remove-circle"
data-index="<%index%>"></i>
data-index="[[index]]"></i>
</div>
</li>
<%/each%>
[[/each]]
</ul>
</div>
<div class="col-sm-2">
<button class="btn btn-info goodsSelectBtn" type="button" data-index="<%i%>">选择标签</button>
<button class="btn btn-info goodsSelectBtn" type="button" data-index="[[i]]">选择标签</button>
</div>
</div>
<%/each%>
[[/each]]
</script>
<!-- 一个连接 -->
<script type="text/template" id="template_dialog_link">
... ... @@ -551,8 +531,8 @@
<div class="col-sm-8">
<select class="form-control observe" data-field="0.url.action"
value='<%contentData.data[0].url.action%>'>
<%layout template_default_1%>
value='[[contentData.data[0].url.action]]'>
[[layout template_default_1]]
</select>
</div>
... ... @@ -562,7 +542,7 @@
<label class="col-sm-2 control-label">跳转地址:</label>
<div class="col-sm-8">
<textarea rows="2" class="form-control observe" placeholder="跳转地址" data-field="0.url.url"><%contentData.data[0].url.url%></textarea>
<textarea rows="2" class="form-control observe" placeholder="跳转地址" data-field="0.url.url">[[contentData.data[0].url.url]]</textarea>
</div>
</div>
... ... @@ -603,49 +583,49 @@
<script type="text/template" id="sorts-template">
<div class="form-group">
颜色:
<%each colors as item index%>
<input type="checkbox" name="color" data-index="<%index%>" value="<%item.id%>"><%item.colorName%>
<%/each%>
[[each colors as item index]]
<input type="checkbox" name="color" data-index="[[index]]" value="[[item.id]]">[[item.colorName]]
[[/each]]
<input type="hidden" id="colors1" for="checkbox">
</div>
<div class="form-group">
风格:
<%each styles as item index%>
<input type="checkbox" name="style" value="<%item.stylename%>"><%item.stylename%>
<%/each%>
[[each styles as item index]]
<input type="checkbox" name="style" value="[[item.stylename]]">[[item.stylename]]
[[/each]]
<input type="hidden" for="checkbox" id="styles1">
</div>
<div class="form-group">
品类:
<%each types as item index%>
<input type="checkbox" name="type" value="<%item.id%>"><%item.sortName%>
<%/each%>
[[each types as item index]]
<input type="checkbox" name="type" value="[[item.id]]">[[item.sortName]]
[[/each]]
<input type="hidden" for="checkbox" id="types1">
</div>
<div class="form-group">
品牌:
<%each brands as item index%>
<%each item.items as _item _index%>
<input type="checkbox" name="brand" value="<%_item.id%>"><%_item.brand_name%>
<%/each%>
<%/each%>
[[each brands as item index]]
[[each item.items as _item _index]]
<input type="checkbox" name="brand" value="[[_item.id]]">[[_item.brand_name]]
[[/each]]
[[/each]]
<input type="hidden" for="checkbox" id="brands1">
</div>
<div class="form-group">
性别:
<%each genders as item index%>
<input type="checkbox" name="gender" value="<%item.id%>"><%item.gendername%>
<%/each%>
[[each genders as item index]]
<input type="checkbox" name="gender" value="[[item.id]]">[[item.gendername]]
[[/each]]
<input type="hidden" for="checkbox" id="genders1">
</div>
</script>
<script type="text/template" id="tag-template">
<div class="form-group">
所有标签:
<%each sorts as item index%>
<input type="checkbox" name="color" value="<%item.id%>"><%item.id%>
<%/each%>
[[each sorts as item index]]
<input type="checkbox" name="color" value="[[item.id]]">[[item.id]]
[[/each]]
<input type="hidden" id="sorts1" for="checkbox">
</div>
... ...
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<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-heading">
... ... @@ -107,7 +86,7 @@
<label class="col-sm-3 control-label">标题</label>
<div class="col-sm-9">
<p id="title"><%articleTitle%></p>
<p id="title">[[articleTitle]]</p>
</div>
</div>
<div class="form-group">
... ... @@ -115,7 +94,7 @@
<div class="col-sm-9">
<input type="text" readonly="true" class="form-control hasDatepicker" name="publish_time"
value="<%publishTime%>"
value="[[publishTime]]"
style="width:180px;" id="datepicker" required="required">
</div>
</div>
... ...
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<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="">Plus</a></li>
<li>Star</li>
</ul>
<div>
<div style="width: 30%;float: left;">
<h4>Plus/star管理</h4>
</div>
</div>
</div>
</div>
</div>
<div class="contentpanel">
<div class="panel panel-default" style="margin-bottom:10px;">
<div class="panel-body">
... ... @@ -90,9 +69,9 @@
<div class="form-group">
<label for="brandType" 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="brandType" value="<%brandType%>" class="form-control">
<option value="<%brandType||-1%>"><%categoryName||"请选择"%></option>
<input type="hidden" name="" value="[[id]]" id="id" class="form-control" pattern="" title="">
<select id="brandType" value="[[brandType]]" class="form-control">
<option value="[[brandType||-1]]">[[categoryName||"请选择"]]</option>
</select>
</div>
</div>
... ... @@ -100,8 +79,8 @@
<div class="form-group">
<label for="brandId" class="col-sm-2 control-label">品牌名称:</label>
<div class="col-sm-10">
<select id="brandId" value="<%brandId%>" class="form-control">
<option value="<%brandId||-1%>"><%brandName||"请选择"%></option>
<select id="brandId" value="[[brandId]]" class="form-control">
<option value="[[brandId||-1]]">[[brandName||"请选择"]]</option>
</select>
</div>
</div>
... ... @@ -111,14 +90,14 @@
<div class="form-group">
<label for="bannerTitle" class="col-sm-2 control-label">品牌banner标题:</label>
<div class="col-sm-10">
<input type="text" value="<%bannerTitle%>" name="content" id="bannerTitle" placeholder="品牌banner标题" required="required" class="form-control">
<input type="text" value="[[bannerTitle]]" name="content" id="bannerTitle" placeholder="品牌banner标题" 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">
<input type="number" value="[[orderBy]]" name="content" id="orderBy" placeholder="排序" required="required" class="form-control">
</div>
</div>
... ... @@ -129,7 +108,7 @@
<label><input type="radio" value="2" name="gender" kl_vkbd_parsed="true"></label>
<label><input type="radio" value="3" name="gender" kl_vkbd_parsed="true">通用</label>
</div>
<input id="gender" type="hidden" value="<%gender%>" for="radio" required="required" kl_vkbd_parsed="true">
<input id="gender" type="hidden" value="[[gender]]" for="radio" required="required" kl_vkbd_parsed="true">
</div>
<div class="form-group">
... ... @@ -138,14 +117,14 @@
<label><input type="radio" value="1" name="status" kl_vkbd_parsed="true">可用</label>
<label><input type="radio" value="2" name="status" kl_vkbd_parsed="true">不可用</label>
</div>
<input id="status" type="hidden" value="<%status%>" for="radio" required="required" kl_vkbd_parsed="true">
<input id="status" type="hidden" value="[[status]]" for="radio" required="required" kl_vkbd_parsed="true">
</div>
<div class="form-group">
<label for="coverImg" class="col-sm-2 control-label">上传封面图:</label>
<div class="col-sm-8" id="colorUrlBox">
<input type="file" id="coverImg" name="coverImg" required="required" value="<%coverImg%>">
<input type="file" id="coverImg" name="coverImg" required="required" value="[[coverImg]]">
</div>
</div>
... ... @@ -179,14 +158,14 @@
<script type="text/template" id="imgeUpload">
<%each pictureBoList as _item _index%>
<li class="cover-image-item image-list" data-index=<%_index%>>
[[each pictureBoList as _item _index]]
<li class="cover-image-item image-list" data-index=[[_index]]>
<div class="goods-img">
<a class="fileinput-button-icon" href="javascript:void(0);">
<img src="<%_item%>">
<img src="[[_item]]">
</a>
<i class="remove-item-btn remove1 glyphicon glyphicon-remove-circle" data-index="<%_index%>"></i>
<i class="remove-item-btn remove1 glyphicon glyphicon-remove-circle" data-index="[[_index]]"></i>
</div>
</li>
<%/each%>
[[/each]]
</script>
... ...
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<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="">plustar分类管理</a></li>
<li>plustar分类列表管理</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">
... ... @@ -67,9 +46,9 @@
<div class="form-group">
<label for="categoryName" class="col-sm-2 control-label">分类名称</label>
<div class="col-sm-10">
<input type="text" name="" id="id" value="<%id%>" hidden="true"/>
<input type="text" name="" id="status" value="<%status%>" hidden="true"/>
<input type="text" value="<%categoryName%>" name="content" id="categoryName" placeholder="分类名称" required="required" class="form-control">
<input type="text" name="" id="id" value="[[id]]" hidden="true"/>
<input type="text" name="" id="status" value="[[status]]" hidden="true"/>
<input type="text" value="[[categoryName]]" name="content" id="categoryName" placeholder="分类名称" required="required" class="form-control">
<p style="color:gray;">注:分类名称必填</p>
</div>
... ... @@ -78,14 +57,14 @@
<div class="form-group">
<label for="contentCode" class="col-sm-2 control-label">资源位码(head)</label>
<div class="col-sm-10">
<input value="<%contentCode%>" name="contentCode" id="contentCode" placeholder="资源位码(head)" required="required" class="form-control">
<input value="[[contentCode]]" name="contentCode" id="contentCode" placeholder="资源位码(head)" required="required" class="form-control">
</div>
</div>
<div class="form-group">
<label for="contentCodeFoot" class="col-sm-2 control-label">资源位码(foot)</label>
<div class="col-sm-10">
<input value="<%contentCodeFoot%>" name="contentCodeFoot" id="contentCodeFoot" placeholder="资源位码(foot)" required="required" class="form-control">
<input value="[[contentCodeFoot]]" name="contentCodeFoot" id="contentCodeFoot" placeholder="资源位码(foot)" required="required" class="form-control">
</div>
</div>
... ...
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<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" style="padding-bottom: 0">
... ... @@ -70,12 +49,12 @@
<script type="text/template" id="template">
<div class="form-horizontal tagInfo">
<input type="hidden" value="<%id%>" id="id" class="form-control">
<input type="hidden" value="[[id]]" id="id" class="form-control">
<div class="form-group">
<label for="tagName" class="col-sm-2 control-label">标签名称:</label>
<div class="col-sm-offset-1 col-sm-5">
<input type="text" value="<%tagName%>" id="tagName" placeholder="标签名称" required="required" class="form-control">
<input type="text" value="[[tagName]]" id="tagName" placeholder="标签名称" required="required" class="form-control">
</div>
<div class="col-sm-2"><label style="color: #ff0000; line-height: 40px"> * 必填</label></div>
</div>
... ... @@ -83,8 +62,8 @@
<div class="form-group" id="maxsord">
<label for="classifyId" class="col-sm-2 control-label">标签分类:</label>
<div class="col-sm-offset-1 col-sm-5">
<select id="classifyId" value="<%classifyId%>" required="required" class="form-control">
<option value="<%classifyId || -1%>"><%classifyName || "请选择分类"%></option>
<select id="classifyId" value="[[classifyId]]" required="required" class="form-control">
<option value="[[classifyId || -1]]">[[classifyName || "请选择分类"]]</option>
</select>
</div>
<div class="col-sm-2"><label style="color: #ff0000; line-height: 40px"> * 必选</label></div>
... ... @@ -93,7 +72,7 @@
<div class="form-group">
<label for="orderBy" class="col-sm-2 control-label">排序:</label>
<div class="col-sm-offset-1 col-sm-5">
<input type="number" value="<%orderBy || 0%>" id="orderBy" placeholder="排序" required="required" class="form-control">
<input type="number" value="[[orderBy || 0]]" id="orderBy" placeholder="排序" required="required" class="form-control">
</div>
</div>
... ... @@ -103,7 +82,7 @@
<label class="radio-inline"><input type="radio" value="1" name="isHot" kl_vkbd_parsed="true"></label>
<label class="radio-inline"><input type="radio" value="0" name="isHot" kl_vkbd_parsed="true" checked></label>
</div>
<input id="isHot" type="hidden" value="<%isHot%>" for="radio" kl_vkbd_parsed="true">
<input id="isHot" type="hidden" value="[[isHot]]" for="radio" kl_vkbd_parsed="true">
</div>
<div class="form-group">
... ... @@ -112,13 +91,13 @@
<label class="radio-inline"><input type="radio" value="1" name="status" kl_vkbd_parsed="true"></label>
<label class="radio-inline"><input type="radio" value="0" name="status" kl_vkbd_parsed="true" checked></label>
</div>
<input id="status" type="hidden" value="<%status%>" for="radio" kl_vkbd_parsed="true">
<input id="status" type="hidden" value="[[status]]" for="radio" kl_vkbd_parsed="true">
</div>
<div class="form-group" style="margin-bottom: 0">
<label class="col-sm-2 control-label">上传图片:</label>
<div class="col-sm-offset-1 col-sm-9">
<div><input type="file" name="cover" value="<%cover || ''%>" id="cover"></div>
<div><input type="file" name="cover" value="[[cover || '']]" id="cover"></div>
<label style="color: #ff0000; padding-top: 5px; display: block; clear: both"> 提示:【新潮教室】中图片将用作明星头像,建议上传方形图片。</label>
</div>
</div>
... ...
... ... @@ -39,17 +39,17 @@
<div class="form-group">
<input type="hidden" name="" value="<%id%>" id="id" class="form-control" pattern="" title="">
<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">
<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">
<input type="number" value="[[orderBy]]" name="content" id="orderBy" placeholder="排序" required="required" class="form-control">
</div>
</div>
... ... @@ -59,6 +59,6 @@
<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" checked="checked">关闭</label>
</div>
<input id="status" type="hidden" value="<%status%>" for="radio" kl_vkbd_parsed="true">
<input id="status" type="hidden" value="[[status]]" for="radio" kl_vkbd_parsed="true">
</div>
</script>
\ No newline at end of file
... ...
/**
* Created by ty on 2016/6/21.
* 分类管理
*/
module.exports=function(app) {
/*分类管理首页*/
app.get("/operations/category/index","operations.category.Index");
/*分类管理添加页面*/
app.get("/operations/category/add","operations.category.Edit", "resourceManage_getUrlAction", function (response) {
this.$extend = {
data:response.data,
action:"/category/addCategory",
type:"add"
};
});
/*分类管理编辑页面*/
app.get("/operations/category/edit/:param","operations.category.Edit", "resourceManage_getUrlAction", function (response) {
this.$extend = {
data:response.data,
action:"/category/updateCategory",
type:"edit"
};
});
/*分类列表*/
app.post("/category/getCategoryList","category_getCategoryList");
/*更新分类状态*/
app.post("/category/updateCategoryStatus","category_updateCategoryStatus");
/*根据id获取分类对象*/
app.post("/category/getOneCategory","category_getOneCategory");
/*添加分类*/
app.post("/category/addCategory","category_addCategory");
/*修改分类*/
app.post("/category/updateCategory","category_updateCategory");
/*获取分类列表*/
app.post("/category/getCategories","category_getCategories");
}
\ No newline at end of file
... ...
/**
* Created by ty on 2016/6/21.
* app入口管理
*/
module.exports=function(app) {
/*入口信息管理界面*/
app.get("/operations/entrance/index","operations.entrance.Index", "resourceManage_getUrlAction", function (response) {
this.$extend = {
data:response.data
};
});
/*入口列表*/
app.post("/operations/entrance/selectEntranceList","entrance_selectEntranceList");
/*添加入口*/
app.post("/operations/entrance/insertEntrance","entrance_insertEntrance");
/*修改入口*/
app.post("/operations/entrance/updateEntrance","entrance_updateEntrance");
/*更改入口状态*/
app.post("/operations/entrance/publishEntrance","entrance_publishEntrance");
}
... ...
/**
* Created by ty on 2016/6/21.
* 热门意见管理
*/
module.exports=function(app) {
/*热门意见管理界面*/
app.get("/suggest/hotsuggest/index","operations.hotsuggest.Index");
/*获取热门意见列表*/
app.post("/suggest/suggestHot/getSuggestHotList","hotsuggest_getSuggestHotList");
/*新增热门意见*/
app.post("/suggest/suggestHot/addSuggestHot","hotsuggest_addSuggestHot");
/*修改热门意见*/
app.post("/suggest/suggestHot/updateSuggestHot","hotsuggest_updateSuggestHot");
/*删除/取消热门意见*/
app.post("/suggest/suggestHot/deleteSuggestHot","hotsuggest_deleteSuggestHot");
/*发布/撤回热门*/
app.post("/suggest/suggestHot/publishSuggestHot","hotsuggest_publishSuggestHot");
/*批量发布热门意见*/
app.post("/suggest/suggestHot/batchPublishSuggestHot","hotsuggest_batchPublishSuggestHot");
/*根据id查询热门意见---------暂未用到*/
app.post("/suggest/suggestHot/getSuggestHotById","hotsuggest_getSuggestHotById");
}
\ No newline at end of file
... ...
/**
* Created by ty on 2016/6/21.
* app意见反馈管理
*/
module.exports=function(app) {
/*意见反馈管理首页*/
app.get("/suggest/suggest/index","operations.suggest.Index");
/*列表*/
app.post("/suggest/suggest/getSuggestList","suggest_getSuggestList");
/*回复APP意见*/
app.post("/suggest/suggest/replySuggest","suggest_replySuggest");
/*设置热门/非热门接口*/
app.post("/suggest/suggest/setHotSuggest","suggest_setHotSuggest");
/*删除APP意见*/
app.post("/suggest/suggest/deleteSuggest","suggest_deleteSuggest");
/*发送APP意见*/
app.post("/suggest/suggest/publishSuggest","suggest_publishSuggest");
/*获取分类列表*/
app.post("/suggest/suggest/batchPublishSuggest","suggest_batchPublishSuggest");
}
\ No newline at end of file
... ...
/**
* Created by ty on 2016/6/21.
* 分类管理
*/
module.exports={
namespace:"category",
apis:{
getCategoryList:{
title: "分类列表",
url: "/category/getCategoryList",
params: [
{name: "platform", type: "string"},
{name: "status", type: "string"}
]
},
updateCategoryStatus:{
title: "更新分类状态",
url: "/category/updateCategoryStatus",
params: [
{name: "id", type: "number"},
{name: "status", type: "number"}
]
},
getOneCategory:{
title: "根据id获取分类对象",
url: "/category/getOneCategory",
params:[
{name:'id', type:'number'}
]
},
addCategory:{
title: "添加分类",
url: "/category/addCategory",
params:[
{name: "sortName", type: "string"},
{name: "sortNameEn", type: "string"},
{name: "sortIco", type: "string"},
{name: "sortIcoBig", type: "string"},
{name: "sortUrl", type: "string"},
{name: "firstSortId", type: "string"},
{name: "secondSortId", type: "string"},
{name: "threadSortId", type: "string"},
{name: "platform", type: "string"},
{name: "orderBy", type: "string"},
{name: "isNew", type: "string"},
{name: "isHot", type: "string"},
{name: "contentCode", type: "string"},
{name: "separativeSign", type: "string"},
{name: "sortNameColor", type: "string"},
{name: "isNewPage", type: "string"}
]
},
updateCategory:{
title: "修改分类",
url: "/category/updateCategory",
params:[
{name: "id", type: "number"},
{name: "sortName", type: "string"},
{name: "sortNameEn", type: "string"},
{name: "sortIco", type: "string"},
{name: "sortIcoBig", type: "string"},
{name: "sortUrl", type: "string"},
{name: "firstSortId", type: "string"},
{name: "secondSortId", type: "string"},
{name: "threadSortId", type: "string"},
{name: "platform", type: "string"},
{name: "orderBy", type: "string"},
{name: "isNew", type: "string"},
{name: "isHot", type: "string"},
{name: "contentCode", type: "string"},
{name: "separativeSign", type: "string"},
{name: "sortNameColor", type: "string"},
{name: "isNewPage", type: "string"}
]
},
getCategories:{
title: "获取分类列表",
url: "/category/getCategories"
}
}
}
\ No newline at end of file
... ...
/**
* Created by ty on 2016/6/21.
* app入口管理
*/
module.exports={
namespace:"entrance",
apis:{
selectEntranceList:{
title: "入口列表",
url:'/entrance/selectEntranceList',
params: [
{name: "platform", type:"string"},
{name: "status", type:"string"},
{name: "page", type:"number"},
{name: "size", type: "number"}
]
},
insertEntrance:{
title: "添加入口",
url: '/entrance/insertEntrance',
params: [
{name: "entryName", type:"string"},
{name: "clickBeforeImg", type:"string"},
{name: "clickAfterImg", type:"string"},
{name: "url", type:"string"},
{name: "platform", type:"string"},
{name: "orderBy", type:"string"},
{name: "status", type:"string"},
{name: "zipUrl", type:"string"},
{name: "channelId", type:"string"},
{name: "gender", type:"string"}
]
},
updateEntrance:{
title: "修改入口",
url: '/entrance/updateEntrance',
params: [
{name: "id", type:"number"},
{name: "entryName", type:"string"},
{name: "clickBeforeImg", type:"string"},
{name: "clickAfterImg", type:"string"},
{name: "url", type:"string"},
{name: "platform", type:"string"},
{name: "orderBy", type:"string"},
{name: "status", type:"string"},
{name: "zipUrl", type:"string"},
{name: "channelId", type:"string"},
{name: "gender", type:"string"}
]
},
publishEntrance:{
title: "更改入口状态",
url: '/entrance/publishEntrance',
params: [
{name: "id", type: "number"},
{name: "status", type: "string"}
]
}
}
}
\ No newline at end of file
... ...
/**
* Created by ty on 2016/6/21.
* 热门意见管理
*/
module.exports={
namespace:"hotsuggest",
apis:{
getSuggestHotList:{
title: "获取热门意见列表",
url:'/suggest/suggestHot/getSuggestHotList',
params: [
{name: "startTime", type:"string"},
{name: "endTime", type:"string"},
{name: "status", type:"string"},
{name: "clientType", type: "string"},
{name: "hasImage", type:"string"},
{name: "isReliable", type:"string"},
{name: "page", type:"number"},
{name: "size", type: "number"}
]
},
addSuggestHot:{
title: "新增热门意见",
url: '/suggest/suggestHot/addSuggestHot',
params: [
{name: "status", type:"number"},
{name: "clientType", type:"string"},
{name: "coverImage", type:"string"},
{name: "orderBy", type:"number"},
{name: "content", type:"string"},
{name: "replyContent", type:"string"}
]
},
updateSuggestHot:{
title: "修改热门意见",
url: '/suggest/suggestHot/updateSuggestHot',
params: [
{name: "id", type:"number"},
{name: "status", type:"number"},
{name: "clientType", type:"string"},
{name: "coverImage", type:"string"},
{name: "orderBy", type:"number"},
{name: "content", type:"string"},
{name: "replyContent", type:"string"}
]
},
publishSuggestHot:{
title: "发布/撤回热门",
url: '/suggest/suggestHot/publishSuggestHot',
params: [
{name: "id", type: "string"},
{name: "status", type: "number"}
]
},
batchPublishSuggestHot:{
title: "批量发布热门意见",
url: '/suggest/suggestHot/batchPublishSuggestHot',
params: [
{name: "id", type: "string"}
]
},
getSuggestHotById:{
title: "根据id查询热门意见---------暂未用到",
url: '/suggest/suggestHot/getSuggestHotById',
params: [
{name: "id", type: "string"}
]
}
}
}
\ No newline at end of file
... ...
/**
* Created by ty on 2016/6/21.
* app意见反馈管理
*/
module.exports={
namespace:"suggest",
apis:{
getSuggestList:{
title: "app意见反馈管理列表",
url: '/suggest/suggest/getSuggestList',
params: [
{name: 'page', type: 'Number', def: '1'},
{name: 'size', type: 'Number', def: '10'},
{name: 'uid', type: 'String'},//uid
{name: 'startTime', type: 'String'},//开始时间
{name: 'endTime', type: 'String'},//结束时间
{name: 'isHot', type: 'String'},//是否热门(0:不热门,1:热门)
{name: 'status', type: 'String'},//状态(0:未回复,1:已回复,2:已发送)
{name: 'clientType', type: 'String'},//来源
{name: 'appVersion', type: 'String'},//版本号
{name: 'replyPersonId', type: 'String'}//反馈人
]
},
replySuggest:{
title: "回复app意见",
url: '/suggest/suggest/replySuggest',
params: [
{name: 'id', type: 'String'},//id
{name: 'replyContent', type: 'String'}//回复内容
]
},
setHotSuggest:{
title: "设置热门/非热门接口",
url: '/suggest/suggest/setHotSuggest',
params: [
{name: 'id', type: 'String'},
{name: 'isHot', type: 'Number'}
]
},
deleteSuggest:{
title: "删除app意见",
url: '/suggest/suggest/deleteSuggest',
params: [
{name: 'id', type: 'String'}
]
},
publishSuggest:{
title: "发送APP意见",
url: '/suggest/suggest/publishSuggest',
params: [
{name: 'id', type: 'String'}
]
},
batchPublishSuggest:{
title: "批量发送APP意见",
url: '/suggest/suggest/batchPublishSuggest',
params: [
{name: 'id', type: 'String'}
]
}
}
}
\ No newline at end of file
... ...
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<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="/guang/article/index">分类管理</a></li>
<li>添加分类</li>
</ul>
<div>
<div style="width: 30%;float: left;">
<h4>添加分类</h4>
</div>
<div style="width: 70%;float: right;">
</div>
</div>
</div>
</div><!-- media -->
</div>
<div class="contentpanel">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">添加分类</h4>
</div><!-- panel-heading -->
<div id="info-content" class="panel-body" action="{{action}}" type="{{type}}">
</div><!-- panel-body -->
<div class="panel-footer">
<div class="row">
<div class="col-sm-9 col-sm-offset-3">
<a id="saveBtn" class="btn btn-primary mr5">添加</a>
<a href="/operations/category/index" class="btn btn-primary mr5">取消</a>
</div>
</div>
</div><!-- panel-footer -->
</div><!-- panel -->
</div>
</div>
</div>
<script type="text/template" id="content-template">
<div class="row form-bordered">
<div class="form-group">
<label class="col-sm-1 control-label">分类名称</label>
<div class="col-sm-9">
<input type="text" value="<%sortName%>" class="form-control observe" data-field="sortName" placeholder="分类名称" required>
<p style="color:#999">注:分类名称必填</p>
</div>
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-1 control-label">英文名称</label>
<div class="col-sm-9">
<input type="text" value="<%sortNameEn%>" class="form-control observe" data-field="sortNameEn" placeholder="英文名称" required>
</div>
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-1 control-label">色值</label>
<div class="col-sm-2">
<input type="text" value="<%sortNameColor%>" data-field="sortNameColor" class="form-control observe" prompt="色值">
</div>
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-1 control-label">上级分类</label>
<div class="col-sm-9" id="categories-content">
</div>
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-1 control-label">分类图标</label>
<div class="col-sm-9">
<input type="file" name="file" prompt="分类图标" value="<%sortIco%>" class="observe" data-field="sortIco">
</div>
</div>
<div class="form-group">
<label class="col-sm-1 control-label">分类大图标</label>
<div class="col-sm-9">
<input type="file" name="file" prompt="分类大图标" value="<%sortIcoBig%>" class="observe" data-field="sortIcoBig">
</div>
</div>
<div class="form-group">
<label class="col-sm-1 control-label">跳转方式</label>
<div class="col-sm-9">
<input type="radio" name="isNewPage" style="width:18px;height:18px;" value="N"> 当前页面打开
<input type="radio" style="width:18px;height:18px;" name="isNewPage" value="Y" checked> 新页面打开
</div>
<input type="hidden" id="isNewPage" for="radio" value="<%isNewPage%>">
</div>
<div class="form-group">
<label class="col-sm-1 control-label">跳转链接</label>
<div class="col-sm-9">
<input type="text" id="sortUrl" value='<%sortUrl%>' class="form-control" placeholder="跳转链接" required readonly style="cursor: not-allowed;">
<a class="btn btn-info" id="addUrl">添加链接</a>
<p style="color:#999">注:必填,链接中不能有英文单引号</p>
</div>
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-1 control-label">分隔符</label>
<div class="col-sm-9">
<input type="radio" name="separativeSign" style="width:18px;height:18px;" value="Y">
<input type="radio" style="width:18px;height:18px;" name="separativeSign" value="N" checked>
</div>
<input type="hidden" id="separativeSign" for="radio" value="<%separativeSign%>">
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-1 control-label">是否新品</label>
<div class="col-sm-9">
<input type="radio" name="isNew" style="width:18px;height:18px;" value="Y">
<input type="radio" style="width:18px;height:18px;" name="isNew" value="N" checked>
</div>
<input type="hidden" id="isNew" for="radio" value="<%isNew%>">
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-1 control-label">是否热门</label>
<div class="col-sm-9">
<input type="radio" name="isHot" style="width:18px;height:18px;" value="Y">
<input type="radio" style="width:18px;height:18px;" name="isHot" value="N" checked>
</div>
<input type="hidden" id="isHot" for="radio" value="<%isHot%>">
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-1 control-label">位置码</label>
<div class="col-sm-4">
<input type="text" data-field="contentCode" value="<%contentCode%>" class="form-control observe" placeholder="资源位位置码">
</div>
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-1 control-label">显示平台</label>
<div class="col-sm-8">
<input type="checkbox" value="iphone" style="width:18px;height:18px;margin-left:5px;" name="platform"> IOS手机
<input type="checkbox" value="ipad" style="width:18px;height:18px;margin-left:5px;" name="platform"> IOS Pad
<input type="checkbox" value="android" style="width:18px;height:18px;margin-left:5px;" name="platform"> 安卓手机
<input type="checkbox" value="androidpad" style="width:18px;height:18px;margin-left:5px;" name="platform"> 安卓Pad
<input type="checkbox" value="h5" style="width:18px;height:18px;margin-left:5px;" name="platform"> 手机网站
<input type="checkbox" value="web" style="width:18px;height:18px;margin-left:5px;" name="platform"> 网站
<input type="checkbox" value="platform" style="width:18px;height:18px;margin-left:5px;" name="platform"> 平台
</div>
<input type="hidden" id="platform" for="checkbox" value="<%platform%>">
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-1 control-label">排序</label>
<div class="col-sm-9">
<input type="text" value="<%orderBy%>" data-field="orderBy" class="form-control observe" placeholder="排序" required>
</div>
</div><!-- form-group -->
</div><!-- row -->
</script>
<script type="text/template" id="template2">
<div class="rows">
<div class="form-group">
<label class="col-sm-2 control-label">选择跳转目的地:</label>
<div class="col-sm-8">
<select name="goTo" id="goTo" class="form-control">
<%layout action_template%>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">跳转地址:</label>
<div class="col-sm-8">
<textarea rows="2" id="goToUrl" class="form-control" placeholder="跳转地址"></textarea>
</div>
</div>
</div>
</script>
<script type="text/template" id="categories-template">
<select id="firstSortId" value="<%firstSortId%>" data-field="firstSortId" style="width:150px;" tabindex="-1" title="" class="select2-offscreen observe">
<option value="">请选择根分类</option>
<%each categories as item index%>
<option value="<%item.id%>"><%item.sort_name%></option>
<%/each%>
</select>
<select id="secondSortId" value="<%secondSortId%>" data-field="secondSortId" style="width:150px;margin-left:10px;" tabindex="-1" class="select2-offscreen observe">
<option value="">请选择二级分类</option>
<%if firstSortId%>
<%each categories as item index%>
<%if item.id == firstSortId && !!item.sub%>
<%each item.sub as item1 index1%>
<option value="<%item1.id%>"><%item1.sort_name%></option>
<%/each%>
<%/if%>
<%/each%>
<%/if%>
</select>
<select id="threadSortId" value="<%threadSortId%>" data-field="threadSortId" style="width:150px;margin-left:10px;" tabindex="-1" title="" class="select2-offscreen observe">
<option value="">请选择三级分类</option>
<%if firstSortId%>
<%each categories as item index%>
<%if item.id == firstSortId && !!item.sub%>
<%each item.sub as item1 index1%>
<%if item1.id == secondSortId && !!item1.sub%>
<%each item1.sub as item2 index2%>
<option value="<%item2.id%>"><%item2.sort_name%></option>
<%/each%>
<%/if%>
<%/each%>
<%/if%>
<%/each%>
<%/if%>
</select>
</script>
<%include '../__partail/actions'%>
\ No newline at end of file
... ...
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<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 href="/operations/category/add" class="btn btn-info btn-xs">添加分类</a>
</div><!-- panel-heading -->
<div class="panel-body">
<div class="panel-col">
<select name="status" id="status" tabindex="-1" title="" class="form-control select2-offscreen brandBtn-group">
<option value="">选择状态</option>
<option value="0">关闭</option>
<option value="1">开启</option>
</select>
</div>
<div class="panel-col">
<select name="platform" id="platform" tabindex="-1" title="" class="form-control 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="all-btn" href="" class="btn btn-info">全部</a>
</div>
</div>
<div class="panel panel-primary-head">
<div class="basicTable_wrapper" id="basicTable">
</div>
</div>
<script type="text/template" id="grid-template">
<div class="dd" id="nestable" style="width:100%;">
<ol class="dd-list">
<%each data as item index%>
<li class="dd-item dd3-item" data-id="<%item.id%>">
<div class="dd3-content">
<table class="table table-striped table-bordered" style="width:95%;padding:0px;margin:0px;">
<tr>
<td><b><%item.sort_name%></b></td>
<td><%item.sort_name_en ? item.sort_name_en : " "%></td>
<td width="100px">
<%if !!item.sort_ico%>
<img src="<%item.sort_ico.replace('{mode}', '1').replace('{width}', '32').replace('{height}', '32')%>" width="32px"/>
<%/if%>
</td>
<td><%item.platform%></td>
<td><%!!!item.sort_level ? '' : item.sort_level%></td>
<td class="sorting_1"><%item.status == 1 ? '已开启' : '已关闭'%></td>
<td>
<a href="/operations/category/edit/<%item.id%>" class="btn btn-primary btn-xs">编辑</a>
<a href="JavaScript:;" data-status="<%1-item.status%>" data-id="<%item.id%>" class="btn <%item.status == 1 ? 'btn-danger' : 'btn-info'%> btn-xs updateStatus"><%item.status == 1 ? '关闭分类' : '开启分类'%></a>
</td>
</tr>
</table>
</div>
<%if item.sub%>
<ol class="dd-list">
<%each item.sub as item1 index%>
<li class="dd-item dd3-item" data-id="<%item1.id%>">
<div class="dd3-content" data-toggle="category">
<table class="table table-striped table-bordered" style="width:95%;padding:0px;margin:0px;">
<tr>
<td><b><%item1.sort_name%></b></td>
<td><%item1.sort_name_en ? item1.sort_name_en : " "%></td>
<td width="100">
<%if !!item1.sort_ico%>
<img src="<%item1.sort_ico.replace('{mode}', '1').replace('{width}', '32').replace('{height}', '32')%>" width="32px"/>
<%/if%>
</td>
<td><%item1.platform%></td>
<td><%!!!item1.sort_level ? '' : item1.sort_level%></td>
<td class="sorting_1"><%item1.status == 1 ? '已开启' : '已关闭'%></td>
<td>
<a href="/operations/category/edit/<%item1.id%>" class="btn btn-primary btn-xs">编辑</a>
<a href="JavaScript:;" data-status="<%1-item1.status%>" data-id="<%item1.id%>" class="btn <%item1.status == 1 ? 'btn-danger' : 'btn-info'%> btn-xs updateStatus"><%item1.status == 1 ? '关闭分类' : '开启分类'%></a>
</td>
</tr>
</table>
</div>
<%if item1.sub%>
<ol class="dd-list">
<%each item1.sub as item2 index%>
<li class="dd-item dd3-item" data-id="<%item2.id%>">
<div class="dd3-content" data-toggle="category">
<table class="table table-striped table-bordered" style="width:95%;padding:0px;margin:0px;">
<tr>
<td><b><%item2.sort_name%></b></td>
<td><%item2.sort_name_en ? item2.sort_name_en : " "%></td>
<td width="100">
<%if !!item2.sort_ico%>
<img src="<%item2.sort_ico.replace('{mode}', '1').replace('{width}', '32').replace('{height}', '32')%>" width="32px"/>
<%/if%>
</td>
<td><%item2.platform%></td>
<td><%!!!item2.sort_level ? '' : item2.sort_level%></td>
<td class="sorting_1"><%item2.status == 1 ? '已开启' : '已关闭'%></td>
<td>
<a href="/operations/category/edit/<%item2.id%>" class="btn btn-primary btn-xs">编辑</a>
<a href="JavaScript:;" data-status="<%1-item2.status%>" data-id="<%item2.id%>" class="btn <%item2.status == 1 ? 'btn-danger' : 'btn-info'%> btn-xs updateStatus"><%item2.status == 1 ? '关闭分类' : '开启分类'%></a>
</td>
</tr>
</table>
</div>
<%if item2.sub%>
<ol class="dd-list">
<%each item2.sub as item3 index%>
<li class="dd-item dd3-item" data-id="<%item3.id%>">
<div class="dd3-content" data-toggle="category">
<table class="table table-striped table-bordered" style="width:95%;padding:0px;margin:0px;">
<tr>
<td><b><%item3.sort_name%></b></td>
<td><%item3.sort_name_en ? item3.sort_name_en : " "%></td>
<td width="100">
<%if !!item3.sort_ico%>
<img src="<%item3.sort_ico.replace('{mode}', '1').replace('{width}', '32').replace('{height}', '32')%>" width="32px"/>
<%/if%>
</td>
<td><%item3.platform%></td>
<td><%!!!item3.sort_level ? '' : item3.sort_level%></td>
<td class="sorting_1"><%item3.status == 1 ? '已开启' : '已关闭'%></td>
<td>
<a href="/operations/category/edit/<%item3.id%>" class="btn btn-primary btn-xs">编辑</a>
<a href="JavaScript:;" data-status="<%1-item3.status%>" data-id="<%item3.id%>" class="btn <%item3.status == 1 ? 'btn-danger' : 'btn-info'%> btn-xs updateStatus"><%item3.status == 1 ? '关闭分类' : '开启分类'%></a>
</td>
</tr>
</table>
</div>
</li>
<%/each%>
</ol>
<%/if%>
</li>
<%/each%>
</ol>
<%/if%>
</li>
<%/each%>
</ol>
<%/if%>
</li>
<%/each%>
</ol>
</div>
</script>
\ No newline at end of file
... ...
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<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-entry"><i class="fa fa-plus"></i> 添加信息</a>
</div>
<div class="panel-body">
<div class="row">
<div class="panel-col">
<select id="entrance-status" tabindex="-1" title="" class="select2-offscreen brandBtn-group">
<option value="">请选择状态</option>
<option value="0">关闭</option>
<option value="1">开启</option>
</select>
</div>
<div class="panel-col">
<select id="entrance-platform" title="" class="select2-offscreen brandBtn-group">
<option value="" selected="">请选择类别</option>
<option value="1">手机</option>
<option value="2">ipad</option>
</select>
</div>
<a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
<a id="filter-all" href="/operations/entrance/index" class="btn btn-info">全部</a>
</div>
</div>
<div id="entrance-list"></div>
</div>
<script type="text/template" id="template-add">
<div class="row" id="base-form">
<div class="form-group">
<label class="col-sm-2 control-label">入口名称</label>
<div class="col-sm-8">
<input type="hidden" id="id" value="<%id%>" />
<input type="text" data-field="entryName" value="<%entryName%>" class="form-control observe" placeholder="入口名称" required="required">
</div>
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-2 control-label">点击前图片名</label>
<div class="col-sm-8">
<input type="text" value="<%clickBeforeImg%>" data-field="clickBeforeImg" placeholder="点击前的图片名称" class="form-control observe" required="required"/>
<p style="color:#999">注:图片文件的文件名。如:123.png</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">点击后图片名</label>
<div class="col-sm-8">
<input type="text" value="<%clickAfterImg%>" data-field="clickAfterImg" placeholder="点击后的图片名称" class="form-control observe" required="required"/>
<p style="color:#999">注:图片文件的文件名。如:123.png</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">上传</label>
<div class="col-sm-8">
<input id="zipUrl" value="<%zipUrl%>" class="form-control" type="text" disabled="disabled" style="cursor:default">
<div class="col-sm-4" style="position: relative">
<input id="zip" name="zip" extend="zip" type="file" style="position: absolute; top: 0;left: 0;">
<div class="file-name btn btn-default">请选择文件</div>
</div>
</div>
</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">
<%layout action_template%>
</select>
</div>
<div class="col-sm-4">
<input id="url" value="<%url%>" class="form-control" placeholder="URL地址" required="required" />
<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-8">
<select value="<%platform%>" data-field="platform" id="platform" style="width: 177px" tabindex="-1" class="observe">
<option value="1">手机</option>
<option value="2">ipad</option>
</select> &nbsp;&nbsp;
</div>
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-2 control-label">排序</label>
<div class="col-sm-4">
<input type="text" value="<%orderBy%>" data-field="orderBy" class="form-control observe number" placeholder="排序"/>
</div>
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-2 control-label">频道ID</label>
<div class="col-sm-4">
<input data-field="channelId" class="form-control observe number" type="text" placeholder="频道ID" value="<%channelId%>"/>
</div>
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-2 control-label">性别</label>
<div class="col-sm-4">
<select value="<%gender%>" data-field="gender" style="width: 177px" id="gender" tabindex="-1" title="" class="select2-offscreen observe">
<option value="1,3"></option>
<option value="2,3"></option>
<option value="1,2,3">通用</option>
</select> &nbsp;&nbsp;
</div>
</div><!-- form-group -->
</div>
</script>
<%include '../__partail/actions'%>
\ 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>
<a class="btn btn-primary pull-right" id="add">添加热门</a>
</div>
</div>
</div>
</div>
<div class="contentpanel">
<div class="panel panel-default" style="...">
<div class="panel-body">
<div class="row">
<div class="panel-col">
<input type="text" id="startTime" jsaction="time:end:endTime" class="form-control panel-input hasDatepicker " name="start_time" placeholder="开始时间"/>
</div>
<div class="panel-col">
<input type="text" id="endTime" jsaction="time:start:startTime" class="form-control panel-input hasDatepicker" name="end_time" placeholder="结束时间"/>
</div>
<div class="panel-col">
<select name="status" id="status-filter" tabindex="-1" title="" class="form-control">
<option value="-1">选择状态</option>
<option value="0">未编辑</option>
<option value="1">已编辑</option>
<option value="2">已发布</option>
</select>
</div>
<div class="panel-col">
<select name="clientType" id="clientType-filter" tabindex="-1" title="" class="form-control">
<option value="">来源</option>
<option value="iphone">iPhone</option>
<option value="android">Android</option>
<option value="h5">h5</option>
<option value="custom">自定义</option>
</select>
</div>
</div>
<div class="row" id="radios-select">
<div class="panel-col">
<label class="radio-inline"><input type="radio" name="hasImage" value="0">无图</label>
<label class="radio-inline"><input type="radio" name="hasImage" value="1">有图</label>
<input type="hidden" id="hasImage" for="radio">
</div>
<div class="panel-col">
<label class="radio-inline"><input type="radio" name="isReliable" value="0">不靠谱</label>
<label class="radio-inline"><input type="radio" name="isReliable" value="1">靠谱</label>
<input type="hidden" id="isReliable" for="radio">
</div>
</div>
<div class="row">
<a href="/suggest/hotsuggest/index" class="btn btn-info pull-right"><i class="fa fa-list"></i> 全部</a>
<a class="btn btn-info pull-right" style="margin-right: 5px!important" id="filter-info"><i class="fa fa-search"></i> 查询</a>
</div>
</div>
</div>
<div id="quick">
</div>
<div id="content-list"></div>
</div>
<script type="text/template" id="status-search">
<div class="pull-left">
<label class="radio-inline">
<input name="quick_select" type="radio" value="-1" <%quick_select.status=="-1"?"checked":""%>>全部
</label>
<label class="radio-inline">
<input name="quick_select" type="radio" value="0" <%quick_select.status=="0"?"checked":""%>>未编辑
<span style="color:#0066CC;"><%quick_select.uneditCount%> </span>
</label>
<label class="radio-inline">
<input name="quick_select" type="radio" value="1" <%quick_select.status=="1"?"checked":""%>>已编辑
<span style="color:#0066CC;"> <%quick_select.editedCount%></span>
</label>
<label class="radio-inline">
<input name="quick_select" type="radio" value="2" <%quick_select.status=="2"?"checked":""%>>已发布
<span style="color:#0066CC;"> <%quick_select.publishCount%></span>
</label>
</div>
<div class="pull-right">
<a id="batchPublish" href="javascript:;" class="btn btn-dark btn-xs pull-right">批量发布</a>
</div>
</script>
<script type="text/template" id="edit-template">
<div id="edit-content" class="row">
<div class="form-group">
<label class="col-sm-2 control-label">标题 <span class="red">*</span></label>
<div class="col-sm-8">
<input type="text" data-field="content" value="<%content%>" class="form-control observe" placeholder="标题" required>
<label style="color: #9f9f9f;"><span style="color: indianred;">限制27个字符</span></label>
</div>
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-2 control-label">封面图 </label>
<div class="col-sm-8">
<input type="file" name="封面图" value="<%imageUrl%>" id="coverImageUrl" data-field="coverImage">
<br>
<label style="color: #9f9f9f;">支持jpg/png/gif,尺寸:1080*523px;图片不是必选项 </label>
<br>
<button id="delImage" type="button" class="btn btn-xs btn-danger">删除</button>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">回复内容 <span class="red">*</span></label>
<div class="col-sm-8">
<textarea rows="3" data-field="replyContent" class="form-control observe" placeholder="回复内容" required><%replyContent%></textarea>
<label style="color: #9f9f9f;"><span style="color: indianred;">限制80个字符</span></label>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">排序</label>
<div class="col-sm-2">
<input type="text" value="<%orderBy%>" data-field="orderBy" class="form-control observe" placeholder="排序" required>
</div>
</div>
</div>
</script>
\ No newline at end of file
... ...
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<!--反馈管理界面-->
<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="...">
<div class="panel-body">
<div class="row">
<div class="panel-col">
<input type="text" value="" id="uid-filter" placeholder="UID"
class="form-control">
</div>
<div class="panel-col">
<input type="text" id="startTime" class="form-control panel-input hasDatepicker" name="start_time"
placeholder="开始时间" value="" kl_vkbd_parsed="true">
</div>
<div class="panel-col">
<input type="text" id="endTime" class="form-control panel-input hasDatepicker" name="end_time"
placeholder="结束时间" value="" kl_vkbd_parsed="true">
</div>
<div class="panel-col">
<select id="isHot-filter" class="form-control">
<option value="-1">是否热门</option>
<option value="0">不热门</option>
<option value="1">热门</option>
</select>
</div>
<div class="panel-col">
<select id="status-filter" class="form-control">
<option value="-1">选择状态</option>
<option value="0">未回复</option>
<option value="1">已回复</option>
<option value="2">已发送</option>
</select>
</div>
<div class="panel-col">
<select id="clientType-filter" class="form-control">
<option value="-1">选择来源</option>
<option value="iphone">iphone</option>
<option value="android">android</option>
</select>
</div>
<div class="panel-col" id="appVersion-content">
</div>
<div class="panel-col" id="replyPersonName-content">
</div>
<div class="panel-col">
<a id="filter-btn" href="javascript:;" class="btn btn-info">查询</a>
<a id="filter-all" href="/suggest/suggest/index" class="btn btn-info">全部</a>
</div>
</div>
</div>
</div>
<div id="quick">
</div>
<div id="content-list"></div>
</div>
<!--回复内容-->
<script type="text/template" id="replyTemplate">
<div class="form-group">
<label class="col-sm-2 control-label">回复内容</label>
<div class="col-sm-10">
<textarea style="resize: none;height:90px;width:90%;overflow: auto" rows="6" id="replyContent"
val="<%replyContent%>"><%replyContent%></textarea>
</div>
</div>
</script>
<script type="text/template" id="search-appVersion">
<select id="choose-appVersion" title="" class=" select2-offscreen form-control">
<option value="">选择版本号</option>
<%each data as item index%>
<option value="<%item.id%>"><%item.text%></option>
<%/each%>
</select>
</script>
<script type="text/template" id="search-replyPersonName">
<select id="choose-replyPersonName" title="" class="select2-offscreen form-control">
<option value="">选择回复人</option>
<%each data as item index%>
<option value="<%item.id%>"><%item.text%></option>
<%/each%>
</select>
</script>
<script type="text/template" id="quick-search">
<div class="pull-left">
<label class="radio-inline">
<%if quick_select.status=='-1'%>
<input name="quick_select" type="radio" value="-1" checked="checked">全部
<%else%>
<input name="quick_select" type="radio" value="-1">全部
<%/if%>
</label>
<label class="radio-inline">
<%if quick_select.status=='0'%>
<input name="quick_select" type="radio" value="0" checked="checked">未回复
<%else%>
<input name="quick_select" type="radio" value="0">未回复
<%/if%>
<span style="color:#0066CC;"><%quick_select.unReplyTotal%> </span>
</label>
<label class="radio-inline">
<%if quick_select.status=='1'%>
<input name="quick_select" type="radio" value="1" checked="checked">已回复
<%else%>
<input name="quick_select" type="radio" value="1" >已回复
<%/if%>
<span style="color:#0066CC;"> <%quick_select.replyTotal%></span>
</label>
</div>
<div class="pull-right">
<a id="batchExport" href="javascript:;" class="btn btn-dark">批量导出</a>
<a id="batchPublish" href="javascript:;" class="btn btn-dark">批量发送</a>
</div>
</script>
... ...
... ... @@ -6,7 +6,12 @@
module.exports=function(app) {
/*平台管理首页*/
app.get("/resource/platform/index","resourceManage.platformManage.Index");
app.get("/resource/platform/index","resource.platformManage.Index", function () {
this.$extend = {
moduleName: "平台管理",
pageName: "平台列表"
}
});
/*平台管理列表*/
app.post("/resources/findResPlatforms","platformManage_findResPlatforms");
... ...
... ... @@ -6,12 +6,12 @@
module.exports=function(app) {
/*资源管理首页*/
app.get("/resource/index/index","resourceManage.resourceManage.Index");
app.get("/resource/index/index","resource.resourceManage.Index");
/*资源内容管理页*/
app.get("/resource/content/index/:param","resourceManage.resourceManage.ContentManage", "resourceManage_getUrlAction", function (response) {
app.get("/resource/content/index/:param","resource.resourceManage.ContentManage", "resourceManage_getUrlAction", function (response) {
this.$extend = {
data:response.data.list
data:response.data
};
});
... ...
... ... @@ -6,7 +6,12 @@
module.exports=function(app) {
/*资源分类管理首页*/
app.get("/resource/sort/index","resourceManage.resourceSortManage.Index");
app.get("/resource/sort/index","resource.resourceSortManage.Index", function () {
this.$extend = {
moduleName: "资源分类管理",
pageName: "资源分类列表"
}
});
/*资源分类管理列表*/
app.post("/resources/resSortIndex","resourceSortManage_resSortIndex");
... ...
... ... @@ -31,12 +31,9 @@ module.exports={
},
deleteResPlatform:{
title: "删除平台",
url: '/resources/updateResPlatform',
url: '/resources/deleteResPlatform',
params: [
{name: 'platformId', type: 'number'},
{name: 'platformName', type: 'string'},
{name: 'platformFlag', type: 'string'},
{name: 'status', type: 'number'}
{name: 'platformId', type: 'number'}
]
}
}
... ...
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<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-heading">
<a class="btn btn-success " id="add-platform"><i class="fa fa-plus"></i> 添加平台</a>
... ... @@ -37,15 +16,15 @@
<div class="form-group">
<label class="col-sm-3 control-label">平台名称 <span class="asterisk">*</span></label>
<div class="col-sm-9">
<input type="hidden" value="<%platformId%>", id="platformId" />
<input type="text" name="platform_name" class="form-control" value="<%platformName%>" id="platformName" placeholder="请填写平台名称" required="required">
<input type="hidden" value="[[platformId]]", id="platformId" />
<input type="text" name="platform_name" class="form-control" value="[[platformName]]" id="platformName" placeholder="请填写平台名称" required="required">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">平台标志</label>
<div class="col-sm-9">
<input type="text" name="platform_flag" value="<%platformFlag%>" id="platformFlag" class="form-control">
<input type="text" name="platform_flag" value="[[platformFlag]]" id="platformFlag" class="form-control">
</div>
</div>
... ... @@ -62,7 +41,7 @@
</div><!-- rdio -->
<label id="genderError" class="error"></label>
</div>
<input type="hidden" value="<%status%>" id="status" for="radio" />
<input type="hidden" value="[[status]]" id="status" for="radio" />
</div><!-- form-group -->
</div>
... ...
... ... @@ -82,7 +82,7 @@
<%/each%>
</script>
<%include '../__partail/Actions'%>
<%include '../__partail/Taoyu'%>
<%include '../__partail/Weiqingting'%>
<%include '../__partail/Jiangming'%>
<%include '../__partail/actions'%>
<%include '../__partail/taoyu'%>
<%include '../__partail/weiqingting'%>
<%include '../__partail/jiangming'%>
... ...
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<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-heading">
<a class="btn btn-success " id="add-resource"><i class="fa fa-plus"></i> 添加资源分类</a>
... ... @@ -37,19 +16,19 @@
<div class="form-group">
<label class="col-sm-3 control-label">名称 <span class="asterisk">*</span></label>
<div class="col-sm-9">
<input type="hidden" value="<%sortId%>", id="sortId" />
<input type="text" name="platform_name" class="form-control" value="<%sortName%>" id="sortName" placeholder="请填写平台名称" required="required">
<input type="hidden" value="[[sortId]]", id="sortId" />
<input type="text" name="platform_name" class="form-control" value="[[sortName]]" id="sortName" placeholder="请填写平台名称" required="required">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">所属平台<span class="asterisk">*</span></label>
<div class="col-sm-9">
<select class="form-control attr_input" data-index='<%__index%>' value="<%platformId||''%>" id="platformId" required>
<select class="form-control attr_input" data-index='[[__index]]' value="[[platformId||'']]" id="platformId" required>
<option value="">请选择</option>
<%each platforms as item index%>
<option value="<%item.platformId%>"><%item.platformName%></option>
<%/each%>
[[each platforms as item index]]
<option value="[[item.platformId]]">[[item.platformName]]</option>
[[/each]]
</select>
</div>
</div>
... ... @@ -67,7 +46,7 @@
</div><!-- rdio -->
<label id="genderError" class="error"></label>
</div>
<input type="hidden" value="<%status%>" id="status" for="radio" />
<input type="hidden" value="[[status]]" id="status" for="radio" />
</div><!-- form-group -->
</div>
... ...
... ... @@ -33,7 +33,7 @@ var urlObj = {
// 逛
'guangGetAuthorList': '/guang/article/getAuthorList', // 逛-获取作者
'guangGetSortList': '/ajax/guang/article/getSortList', // 逛-获取作者
'guangGetSortList': '/guang/article/getSortList', // 逛-获取作者
'guangGetTagCategoryByStatus': '/guang/tagSort/getTagItems',
'guangCommentGetFilterItems': '/guang/comment/getItems', // 逛-评论列表-获取筛选条件
'guangPlusSatrChannel': '/guang/plustarcategory/getCategoryNames', // 逛-plus star 频道
... ... @@ -139,12 +139,12 @@ dropDown.prototype = {
},
processResults: function(data, params) {
params.page = params.page || 1;
data.data.data.unshift({
data.data.unshift({
id: '-1',
text: defaultName
});
return {
results: data.data.data
results: data.data
}
},
cache: true
... ...
... ... @@ -16,7 +16,7 @@ var util = {
dataType: 'json',
data: options.data || {},
success: function(result) {
res = result.data;
res = result;
if(res){
if (("" + res.code) === "200") {
notip ? (callback && callback.bind(this, res)()) : util.__tip(res.message, "success", callback && callback.bind(this, res)());
... ...
... ... @@ -2,7 +2,7 @@
* Created by wangqianjun on 16/3/22.
*/
var $ = require('jquery');
common = require('../common/common');
common = require('../../../common/common');
var ENUM = {
... ... @@ -109,7 +109,7 @@ $(document).on('click', '.info-del', function() {
} else {
common.util.__tip(res.message);
}
});
},true);
});
});
... ... @@ -124,7 +124,6 @@ function articleCategoryOP(prefix, url, item) {
//
return a.submit(url,function(option){
option.success=function(res){
res=res.data;
if(res.code=="200"){
a.$tip("提交成功", function() {
g.reload();
... ...
... ... @@ -4,7 +4,7 @@
'use strict';
var $ = require('jquery'),
common = require('../common/common');
common = require('../../../common/common');
var g = new common.grid({
... ... @@ -87,7 +87,6 @@ function articleCategoryOP(prefix, url, item) {
//
return a.submit(url,function(option){
option.success=function(res){
res=res.data;
if(res.code=="200"){
a.$tip("提交成功", function() {
g.reload();
... ...
... ... @@ -3,7 +3,7 @@
*/
var $ = require('jquery');
common = require('../common/common');
common = require('../../../common/common');
var imgArr = [];
... ... @@ -189,7 +189,6 @@ function plusStarOP(prefix, url, item) {
}
imgArr = [];
option.success=function(res){
res=res.data;
if(res.code=="200"){
a.$tip("提交成功", function() {
g.reload();
... ...
... ... @@ -2,7 +2,7 @@
* Created by wangqianjun on 16/3/22.
*/
var $ = require('jquery'),
common = require('../common/common');
common = require('../../../common/common');
var STATUS = 0;
... ... @@ -262,7 +262,6 @@ function commentOP(prefix, url, item) {
//
return a.submit(url,function(option){
option.success=function(res){
res=res.data;
if(res.code=="200"){
a.$tip("提交成功", function() {
g.reload();
... ...
var $ = require('jquery'),
common = require('../common/common');
require('../common/umeditor.config');
require('../common/umeditor');
require('../common/zh-cn');
common = require('../../../common/common');
require('../../../common/umeditor.config');
require('../../../common/umeditor');
require('../../../common/zh-cn');
var baidu;
... ... @@ -927,7 +927,6 @@ $(document).on("click", "#submit", function () {
option.data.brands = JSON.stringify(Bll.Brdata);
option.data.tag = Bll.Tags.join(',');
option.success = function (res) {
res = res.data;
if (res.code == "200") {
e.$tip("提交成功", function () {
location.href = "/guang/article/index";
... ...
... ... @@ -2,8 +2,8 @@
* Created by wangqianjun on 16/3/22.
*/
var $ = require('jquery');
common = require('../common/common');
datepicker = require('../util/datepicker');
common = require('../../../common/common');
datepicker = require('../../../common/util/datepicker');
var ENUM = {
GenderEnum: {
... ... @@ -195,7 +195,6 @@ $(document).on('click', '.info-close', function () {
status: -1
}
}, function (res) {
if (res.code == 200) {
common.util.__tip('关闭资讯成功', 'success');
g.reload();
... ...
... ... @@ -3,9 +3,9 @@
*/
var $ = require('jquery');
common = require('../common/common');
common = require('../../../common/common');
var ZeroClipboard=require("../util/ZeroClipboard.min");
var ZeroClipboard=require("../../../common/util/ZeroClipboard.min");
ZeroClipboard.config( { swfPath: "http://cdn.yoho.cn/yohobuy-portal/assets/images/ZeroClipboard.swf" } )
var imgArr = [];
... ... @@ -149,7 +149,7 @@ $(document).on('click', '.info-modify', function() {
//var item = res.data;
plusStarOP("编辑", '/guang/plustar/updatePlustar', res.data);
});
},true);
});
... ... @@ -200,7 +200,6 @@ function plusStarOP(prefix, url, item) {
imgArr = [];
option.success=function(res){
res=res.data;
if(res.code=="200"){
a.$tip("提交成功", function() {
g.reload();
... ...
... ... @@ -3,7 +3,7 @@
*/
var $ = require('jquery');
common = require('../common/common');
common = require('../../../common/common');
var ENUM = {
... ... @@ -145,7 +145,6 @@ function plusStarOP(prefix, url, item) {
//
return a.submit(url,function(option){
option.success=function(res){
res=res.data;
if(res.code=="200"){
a.$tip("提交成功", function() {
g.reload();
... ...
... ... @@ -2,7 +2,7 @@
* Created by wangqianjun on 16/3/22.
*/
var $ = require('jquery');
common = require('../common/common');
common = require('../../../common/common');
var ENUM = {
HotEnum: {
... ... @@ -98,7 +98,6 @@ function articleCategoryOP(prefix, url, item) {
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();
... ...
... ... @@ -2,7 +2,7 @@
* Created by wangqianjun on 16/3/22.
*/
var $ = require('jquery');
common = require('../common/common');
common = require('../../../common/common');
var ENUM = {
... ... @@ -103,7 +103,7 @@ $(document).on('click', '.info-del', function() {
} else {
common.util.__tip(res.message);
}
});
},true);
});
});
... ... @@ -117,7 +117,6 @@ function articleCategoryOP(prefix, url, item) {
//
return a.submit(url,function(option){
option.success=function(res){
res=res.data;
if(res.code=="200"){
a.$tip("提交成功", function() {
g.reload();
... ...
... ... @@ -4,8 +4,8 @@
*/
var $ = require('jquery'),
common = require('../common/common'),
util = require('../common/util');
common = require('../../../common/common'),
util = require('../../../common/util');
var g = new common.grid({
el: "#content-list",
... ... @@ -63,15 +63,15 @@ var Bll = {
function() {
e.submit(url,function(option){
//option.data;
console.log(option.data);
//console.log(option.data);
option.success=function(res){
dialog.close();
util.__tip(res.data.message, 'success');
util.__tip(res.message, 'success');
g.reload();
};
option.error=function(res){
dialog.close();
util.__tip(res.data.message);
util.__tip(res.message);
}
});
return false;
... ...
... ... @@ -4,8 +4,8 @@
*/
var $ = require('jquery'),
common = require('../common/common'),
util = require('../common/util');
common = require('../../../common/common'),
util = require('../../../common/util');
var ENUM = [];
var platformList = [];
... ... @@ -71,12 +71,12 @@ var Bll = {
//console.log(option.data);
option.success=function(res){
dialog.close();
util.__tip(res.data.message, 'success');
util.__tip(res.message, 'success');
Bll.init();
};
option.error=function(res){
dialog.close();
util.__tip(res.data.message);
util.__tip(res.message);
}
});
return false;
... ...