|
|
<%include '../../common/__ui/header'%>
|
|
|
<%include '../../common/__partail/ListHeader'%>
|
|
|
|
|
|
<div class="contentpanel">
|
|
|
<div class="panel">
|
|
|
<div class="selectShop">
|
|
|
<div class="form-group" style="float: left">
|
|
|
<select id="shop-select" name="shop-select" style="width: 320px;" class="form-control">
|
|
|
<option value="-1">请选择店铺</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
<div id="shopInfo" style="font-family:'microsoft yahei';font-size: 18px;line-height: 40px;float: left;margin-left: 40px">
|
|
|
<span id="shopId"><font color="#999">店铺ID:</font><b>--</b></span>
|
|
|
<span id="shopName" style="margin-left: 20px"><font color="#999">店铺名称:</font><b>--</b></span>
|
|
|
</div>
|
|
|
<div class="clearfix"></div>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<div class="panel-body" style="background: #eeeeee">
|
|
|
<div id="showCategory" style="display: none"></div>
|
|
|
<h1 id="initCategory" style="height: 500px;text-align: center;line-height: 500px;color: #999999">请先选择相关店铺!</h1>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<script type="text/template" id="listTemplate">
|
|
|
<div class="addCategory" style="margin-bottom: 20px">
|
|
|
<a class="btn btn-success addBtn"><i class="fa fa-plus"></i> 新增销售类目</a>
|
|
|
<span style="float: right;font-size: 16px;line-height:37px;font-family:'simhei'">
|
|
|
当前店铺共有:<b style="color: #5cb85c;font-size: 20px">[[data.length]]</b> 条销售类目,<font color="#f0ad4e">最多可以添加20条</font>
|
|
|
</span>
|
|
|
</div>
|
|
|
<table class="table table-striped table-bordered responsive dataTable no-footer" style="text-align: center">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th style="text-align: center">类目ID</th>
|
|
|
<th style="text-align: center">类目名称</th>
|
|
|
<th style="text-align: center">创建时间</th>
|
|
|
<th style="text-align: center">已关联商品数量</th>
|
|
|
<th style="text-align: center">操作</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody style="line-height: 27px">
|
|
|
[[if data.length > 0]]
|
|
|
[[each data as item _index]]
|
|
|
<tr>
|
|
|
<td style="line-height: 27px">[[item.id]]</td>
|
|
|
<td style="line-height: 27px">[[item.name]]</td>
|
|
|
<td style="line-height: 27px">[[item.date]]</td>
|
|
|
<td style="line-height: 27px">[[item.num]]</td>
|
|
|
<td style="line-height: 27px">
|
|
|
<a href='/shop/shopCategory/edit/[[item.id]]' class='btn btn-xs btn-primary'>编辑</a>
|
|
|
<a href='/shop/shopCategory/info/[[item.id]]' class='btn btn-xs btn-info'>查看</a>
|
|
|
<a href='javascript:' class='btn btn-xs btn-danger deleteBtn' data-index='"+_index+"'>删除</a>
|
|
|
</td>
|
|
|
</tr>
|
|
|
[[/each]]
|
|
|
[[else]]
|
|
|
<tr><td colspan="6">当前店铺暂无销售类目!</td></tr>
|
|
|
[[/if]]
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</script>
|
|
|
|
|
|
<%include '../../common/__ui/footer'%> |
|
|
\ No newline at end of file |
...
|
...
|
|