Authored by 陶雨

逛调通

Showing 29 changed files with 206 additions and 326 deletions
... ... @@ -7,7 +7,9 @@ module.exports=function(app) {
app.get("/guang/article/sortindex","guang.articleCategory.Index", function () {
this.$extend = {
iscreate: true
iscreate: true,
moduleName: "文章分类管理",
pageName: "文章分类管理"
};
});
/*文章分类管理列表数据*/
... ...
... ... @@ -7,7 +7,9 @@ module.exports=function(app) {
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: "品牌关系列表"
};
});
/*品牌关注 列表数据*/
... ...
... ... @@ -7,7 +7,9 @@ module.exports=function(app) {
app.get("/guang/comments/index","guang.comment.Index", function () {
this.$extend = {
iscreate: true
iscreate: true,
moduleName: "评论管理",
pageName: "评论列表"
};
});
/*评论管理列表数据*/
... ...
... ... @@ -7,7 +7,9 @@ module.exports=function(app) {
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分类 列表数据*/
... ...
... ... @@ -7,7 +7,9 @@ module.exports=function(app) {
app.get("/guang/tags/index","guang.tag.Index", function () {
this.$extend = {
iscreate: true
iscreate: true,
moduleName: "标签管理",
pageName: "标签管理"
};
});
/*标签管理列表数据*/
... ...
... ... @@ -7,7 +7,9 @@ module.exports=function(app) {
app.get("/guang/tags/sort","guang.tagCategory.Index", function () {
this.$extend = {
iscreate: true
iscreate: true,
moduleName: "标签管理",
pageName: "标签分类管理"
};
});
/*标签分类管理列表数据*/
... ...
<%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;">
... ...
... ... @@ -30,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">
... ... @@ -38,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>
... ... @@ -57,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">
... ... @@ -65,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>
... ... @@ -73,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">
... ... @@ -91,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>
... ... @@ -99,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>
... ... @@ -109,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>
... ... @@ -126,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>
... ... @@ -202,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>
... ... @@ -220,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>
<!-- 文本弹层 -->
... ... @@ -345,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>
... ... @@ -364,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>
... ... @@ -393,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>
... ... @@ -411,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>
... ... @@ -435,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>
<!--添加商品/商品组--选择标签界面模板-->
... ... @@ -485,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">
... ... @@ -500,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">
... ... @@ -531,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>
... ... @@ -542,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>
... ... @@ -583,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="">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
... ...
... ... @@ -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();
... ...
... ... @@ -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";
... ...
... ... @@ -195,7 +195,6 @@ $(document).on('click', '.info-close', function () {
status: -1
}
}, function (res) {
console.log(111111);
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();
... ...