...
|
...
|
@@ -21,28 +21,29 @@ |
|
|
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="[[index]].src"/>
|
|
|
</td>
|
|
|
<td>
|
|
|
<div class="col-sm-12">
|
|
|
<select name="goTo" class="col-sm-4 observe" value="[[item.url.action]]"
|
|
|
<div class="form-group col-sm-12">
|
|
|
<select name="goTo" class="form-control observe" value="[[item.url.action]]"
|
|
|
data-field="[[index]].url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
|
|
|
<div class="col-sm-1"></div>
|
|
|
<input value="[[item.url.url]]" class=" col-sm-4 observe" required="required"
|
|
|
</div>
|
|
|
<div class="form-group col-sm-12">
|
|
|
<input value="[[item.url.url]]" class="form-control observe" required="required"
|
|
|
data-field="[[index]].url.url" placeholder="图片链接"/>
|
|
|
|
|
|
<p style="color:#999;margin-top: 5px;">链接中不能有英文单引号</p>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input value="[[item.alt]]" class="col-sm-4 observe" required="required"
|
|
|
<div class="form-group col-sm-12">
|
|
|
<input value="[[item.alt]]" class="form-control observe" required="required"
|
|
|
data-field="[[index]].alt" placeholder="图片描述"/>
|
|
|
|
|
|
<div class="col-sm-1"></div>
|
|
|
</div>
|
|
|
[[if contentData.template_name=='addfloor']]
|
|
|
<input value="[[item.altEn]]" class="col-sm-4 observe" required="required"
|
|
|
data-field="list.[[index]].altEn" placeholder="英文描述"/>
|
|
|
[[/if]]
|
|
|
<div class="form-group col-sm-12">
|
|
|
<input value="[[item.altEn]]" class="form-control observe" required="required"
|
|
|
data-field="[[index]].altEn" placeholder="英文描述"/>
|
|
|
</div>
|
|
|
[[/if]]
|
|
|
</td>
|
|
|
<td>
|
|
|
<a class="btn btn-danger" id="icon-delOne" data_index="[[index]]">删除</a>
|
...
|
...
|
@@ -59,13 +60,16 @@ |
|
|
<script type="text/template" id="brands-template">
|
|
|
<div class="rows">
|
|
|
[[if contentData.template_name=='appHotBrands']]
|
|
|
<div class="form-group col-sm-12">
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">标题</label>
|
|
|
<input class="col-sm-2 observe" type="text" value="[[contentData.data.title.title]]"
|
|
|
|
|
|
<div class="col-sm-4">
|
|
|
<input class="form-control observe" type="text" value="[[contentData.data.title.title]]"
|
|
|
data-field="title.title" placeholder="推荐品牌">
|
|
|
</div>
|
|
|
<label class="col-sm-1 control-label">显示名称</label>
|
|
|
|
|
|
<div class="col-sm-2 is_show_name_brand">
|
|
|
<div class="col-sm-4 is_show_name_brand ">
|
|
|
<label style="cursor: pointer;"><input type="radio" name="is_show_name" value="Y">是</label>
|
|
|
<label style="cursor: pointer;"><input type="radio" name="is_show_name" value="N">否</label>
|
|
|
</div>
|
...
|
...
|
@@ -73,47 +77,81 @@ |
|
|
</div>
|
|
|
[[/if]]
|
|
|
[[if contentData.template_name=='customBrands']]
|
|
|
<div class="form-group col-sm-12">
|
|
|
<div class="form-group ">
|
|
|
<label class="col-sm-1 control-label">标题</label>
|
|
|
<input class="col-sm-2 observe" type="text" value="[[contentData.data.title.title]]"
|
|
|
|
|
|
<div class="col-sm-4">
|
|
|
<input class="form-control observe" type="text" value="[[contentData.data.title.title]]"
|
|
|
data-field="title.title" placeholder="自定义品牌">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group ">
|
|
|
<label class="col-sm-1 control-label">附加参数</label>
|
|
|
<select class="col-sm-2 observe" value="[[contentData.data.title.param]]" data-field="title.param">
|
|
|
|
|
|
<div class="col-sm-4">
|
|
|
<select class="form-control observe" value="[[contentData.data.title.param]]" data-field="title.param">
|
|
|
[[layout parm1_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<label class="col-sm-2 control-label">附加参数值</label>
|
|
|
<input class="col-sm-2 observe" type="text" value="[[contentData.data.title.param_value]]"
|
|
|
|
|
|
<div class="col-sm-4">
|
|
|
<input class="form-control observe" type="text" value="[[contentData.data.title.param_value]]"
|
|
|
data-field="title.param_value" placeholder="附加参数值">
|
|
|
</div>
|
|
|
</div>
|
|
|
[[/if]]
|
|
|
[[if contentData.template_name=='kidsBrands']]
|
|
|
<div class="form-group col-sm-12">
|
|
|
<div class="form-group ">
|
|
|
<label class="col-sm-1 control-label">标题</label>
|
|
|
<input class="col-sm-2 observe" type="text" value="[[contentData.data.params.title]]"
|
|
|
|
|
|
<div class="col-sm-4 ">
|
|
|
<input class="form-control observe" type="text" value="[[contentData.data.params.title]]"
|
|
|
data-field="params.title">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group ">
|
|
|
<label class="col-sm-1 control-label">分类</label>
|
|
|
<select class="col-sm-2 observe" value="[[contentData.data.params.param]]" data-field="params.param">
|
|
|
|
|
|
<div class="col-sm-4 ">
|
|
|
<select class="form-control observe" value="[[contentData.data.params.param]]"
|
|
|
data-field="params.param">
|
|
|
[[layout parm2_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<label class="col-sm-1 control-label">附加参数值</label>
|
|
|
<input class="col-sm-2 observe" type="text" value="[[contentData.data.params.paramValue]]"
|
|
|
|
|
|
<div class="col-sm-4 ">
|
|
|
<input class="form-control observe" type="text" value="[[contentData.data.params.paramValue]]"
|
|
|
data-field="params.paramValue" placeholder="附加参数值">
|
|
|
</div>
|
|
|
<div class="form-group col-sm-12">
|
|
|
</div>
|
|
|
<div class="form-group ">
|
|
|
<label class="col-sm-1 control-label">更多名称</label>
|
|
|
<input class="col-sm-2 observe" type="text" value="[[contentData.data.params.more]]"
|
|
|
|
|
|
<div class="col-sm-4 ">
|
|
|
<input class="form-control observe" type="text" value="[[contentData.data.params.more]]"
|
|
|
data-field="params.more" placeholder="更多名称">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group ">
|
|
|
<label class="col-sm-1 control-label">跳转目的</label>
|
|
|
<select name="goTo" class="col-sm-2 observe" value="[[contentData.data.params.more_url.action]]"
|
|
|
|
|
|
<div class="col-sm-4 ">
|
|
|
<select name="goTo" class="form-control observe" value="[[contentData.data.params.more_url.action]]"
|
|
|
data-field="params.more_url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<label class="col-sm-1 control-label">链接</label>
|
|
|
<input value="[[contentData.data.params.more_url.url]]" class="col-sm-2 observe" required="required"
|
|
|
|
|
|
<div class="col-sm-4 ">
|
|
|
<input value="[[contentData.data.params.more_url.url]]" class="form-control observe" required="required"
|
|
|
data-field="params.more_url.url"/>
|
|
|
|
|
|
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
[[/if]]
|
|
|
</div>
|
|
|
<div class="panel-body">
|
...
|
...
|
@@ -129,17 +167,20 @@ |
|
|
<tbody>
|
|
|
[[each contentData.data.list as item index]]
|
|
|
<tr>
|
|
|
<td><input type="file" name="file" value="[[item.src]]" class="observe"
|
|
|
<td>
|
|
|
<input type="file" name="file" value="[[item.src]]" class="observe"
|
|
|
data-field="list.[[index]].src"/>
|
|
|
</td>
|
|
|
<td>
|
|
|
<div class="form-group">
|
|
|
[[if contentData.template_name=='kidsBrands']]
|
|
|
title:<input class="col-sm-8 observe" type="text" value="[[item.title]]"
|
|
|
<input class="form-control observe" type="text" value="[[item.title]]"
|
|
|
data-field="list.[[index]].title">
|
|
|
[[else]]
|
|
|
name:<input class="col-sm-8 observe" type="text" value="[[item.name]]"
|
|
|
<input class="form-control observe" type="text" value="[[item.name]]"
|
|
|
data-field="list.[[index]].name">
|
|
|
[[/if]]
|
|
|
</div>
|
|
|
</td>
|
|
|
<td>
|
|
|
<a class="btn btn-danger" id="remove_brand" data_index="[[index]]">删除</a>
|
...
|
...
|
@@ -255,14 +296,13 @@ |
|
|
<a href="JavaScript:;" id="nav-addOne" class="btn btn-primary btn-xs">添加一个</a>
|
|
|
</div>
|
|
|
</script>
|
|
|
<!-- 添加图标、楼层 -->
|
|
|
<!-- 领券频道 -->
|
|
|
<script type="text/template" id="getCoupon-template">
|
|
|
<div class="panel-body">
|
|
|
<div>
|
|
|
<table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>标题内容</th>
|
|
|
<th>图片</th>
|
|
|
<th>选项</th>
|
|
|
</tr>
|
...
|
...
|
@@ -272,30 +312,16 @@ |
|
|
<tr>
|
|
|
<td>
|
|
|
<div class="form-group">
|
|
|
<input value="[[item.title]]" class="form-control observe" required="required"
|
|
|
data-field="[[index]].title" placeholder="标题内容"/>
|
|
|
</div>
|
|
|
</td>
|
|
|
<td>
|
|
|
<div class="form-group">
|
|
|
<input type="file" name="file" value="[[item.image.src]]" class="form-control observe"
|
|
|
data-field="[[index]].image.src"/>
|
|
|
</div>
|
|
|
</td>
|
|
|
<td>
|
|
|
<div class="form-group">
|
|
|
<div class="isShow_coupon form-control">
|
|
|
<label style="cursor: pointer;"><input type="radio" name="isShow" value="YES">是</label>
|
|
|
<label style="cursor: pointer;"><input type="radio" name="isShow" value="NO">否</label>
|
|
|
</div>
|
|
|
<input type="hidden" id="isShow_coupon" value="[[contentData.data.isShow]]" for="radio"/>
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
<input value="[[item.couponID]]" class="form-control observe" required="required"
|
|
|
data-field="[[index]].couponID" placeholder="码"/>
|
|
|
data-field="[[index]].couponID" placeholder="领券码"/>
|
|
|
|
|
|
<p style="color:#999;margin-top: 5px;">多个以英文逗号隔开</p>
|
|
|
<p style="color:#999;margin-top: 5px;">多个领券码以英文逗号隔开</p>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<select name="goTo" class="form-control observe" value="[[item.image.url.action]]"
|
...
|
...
|
|