|
|
<%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>
|
|
|
|
...
|
...
|
|