...
|
...
|
@@ -22,31 +22,26 @@ |
|
|
</td>
|
|
|
<td>
|
|
|
<div class="col-sm-12">
|
|
|
<label class="col-sm-2">跳转目的</label>
|
|
|
<select name="goTo" class="form-control observe" value="[[item.url.action]]"
|
|
|
<select name="goTo" class="col-sm-4 observe" value="[[item.url.action]]"
|
|
|
data-field="[[index]].url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<label class="col-sm-2">图片链接</label>
|
|
|
<input value="[[item.url.url]]" class="form-control observe" required="required"
|
|
|
data-field="[[index]].url.url"/>
|
|
|
<div class="col-sm-1"></div>
|
|
|
<input value="[[item.url.url]]" class=" col-sm-4 observe" required="required"
|
|
|
data-field="[[index]].url.url" placeholder="图片链接"/>
|
|
|
|
|
|
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
|
|
|
<p style="color:#999;margin-top: 5px;">链接中不能有英文单引号</p>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<label class="col-sm-2">图片描述</label>
|
|
|
<input value="[[item.alt]]" class="form-control observe" required="required"
|
|
|
data-field="[[index]].alt"/>
|
|
|
</div>
|
|
|
<input value="[[item.alt]]" class="col-sm-4 observe" required="required"
|
|
|
data-field="[[index]].alt" placeholder="图片描述"/>
|
|
|
|
|
|
<div class="col-sm-1"></div>
|
|
|
[[if contentData.template_name=='addfloor']]
|
|
|
<div class="col-sm-12">
|
|
|
<label class="col-sm-2">英文描述</label>
|
|
|
<input value="[[item.altEn]]" class="form-control observe" required="required"
|
|
|
data-field="list.[[index]].altEn"/>
|
|
|
</div>
|
|
|
<input value="[[item.altEn]]" class="col-sm-4 observe" required="required"
|
|
|
data-field="list.[[index]].altEn" placeholder="英文描述"/>
|
|
|
[[/if]]
|
|
|
</div>
|
|
|
</td>
|
|
|
<td>
|
|
|
<a class="btn btn-danger" id="icon-delOne" data_index="[[index]]">删除</a>
|
...
|
...
|
@@ -58,4 +53,120 @@ |
|
|
</div>
|
|
|
<a href="JavaScript:;" id="icon-addOne" class="btn btn-primary btn-xs">添加一个</a>
|
|
|
</div>
|
|
|
</script>
|
|
|
<!-- 推荐品牌-->
|
|
|
<script type="text/template" id="brands-template">
|
|
|
<div class="rows" id="brands1">
|
|
|
[[if contentData.template_name=='appHotBrands']]
|
|
|
<div class="form-group col-sm-12">
|
|
|
<label class="col-sm-1 control-label">标题</label>
|
|
|
<input class="col-sm-2" type="text" value="[[contentData.data.title.title]]"
|
|
|
data-field="title.title" placeholder="推荐品牌">
|
|
|
<label class="col-sm-1 control-label">显示名称</label>
|
|
|
<div class="col-sm-2 ">
|
|
|
<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>
|
|
|
<input type="hidden" id="is_show_name" value="[[contentData.data.is_show_name]]"
|
|
|
data-field="is_show_name" for="radio" />
|
|
|
</div>
|
|
|
[[/if]]
|
|
|
[[if contentData.template_name=='customBrands']]
|
|
|
<div class="form-group col-sm-12">
|
|
|
<label class="col-sm-1 control-label">标题</label>
|
|
|
<input class="col-sm-2 " type="text" value="[[contentData.data.title.title]]"
|
|
|
data-field="title.title" placeholder="自定义品牌">
|
|
|
<label class="col-sm-1 control-label">附加参数</label>
|
|
|
<select class="col-sm-2 " value="[[contentData.data.title.param]]">
|
|
|
<option value="-1">请选择附加参数</option>
|
|
|
<option value="1">大分类</option>
|
|
|
</select>
|
|
|
<label class="col-sm-1 control-label">附加参数值</label>
|
|
|
<input class="col-sm-2" type="text" value="[[contentData.data.title.param_value]]"
|
|
|
data-field="title.param_value" placeholder="附加参数值">
|
|
|
</div>
|
|
|
[[/if]]
|
|
|
[[if contentData.template_name=='kidsBrands']]
|
|
|
<div class="form-group col-sm-12">
|
|
|
<label class="col-sm-1 control-label">标题</label>
|
|
|
<input class="col-sm-2 " type="text" value="[[contentData.data.params.title]]"
|
|
|
data-field="params.title">
|
|
|
<label class="col-sm-1 control-label">分类</label>
|
|
|
<select class="col-sm-2 " value="[[contentData.data.params.param]]" data-field="params.param">
|
|
|
<option value="-1">请选择附加参数</option>
|
|
|
<option value="1">大分类</option>
|
|
|
</select>
|
|
|
<label class="col-sm-1 control-label">附加参数值</label>
|
|
|
<input class="col-sm-2 " type="text" value="[[contentData.data.params.paramValue]]"
|
|
|
data-field="params.paramValue" placeholder="附加参数值">
|
|
|
</div>
|
|
|
<div class="form-group col-sm-12">
|
|
|
<label class="col-sm-1 control-label">跳转目的</label>
|
|
|
<select name="goTo" class="col-sm-2 observe" value="[[contentData.data.params.more]]"
|
|
|
data-field="params.more">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
<label class="col-sm-1 control-label">链接</label>
|
|
|
<input value="[[contentData.data.params.more_url]]" class="col-sm-2 observe" required="required"
|
|
|
data-field="params.more_url"/>
|
|
|
|
|
|
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
|
|
|
</div>
|
|
|
[[/if]]
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">添加品牌:</label>
|
|
|
<div class="col-sm-8">
|
|
|
<ul class="cover-image-list col-sm-10" id="addPic" style="padding: 0;margin: 0;">
|
|
|
<li class="cover-image-item fileinput-button">
|
|
|
<div class="goods-img">
|
|
|
<a class="fileinput-button-icon" href="javascript:void(0);" id="addBrands">+</a>
|
|
|
</div>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div id="brands2">
|
|
|
|
|
|
</div>
|
|
|
</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]]
|
|
|
</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 ]]
|
|
|
<a class="btn">
|
|
|
<input type="checkbox" value="[[item.id]]" name="brandCheckBox">
|
|
|
<label>[[item.brand_name]]</label>
|
|
|
</a>
|
|
|
[[/each]]
|
|
|
</div>
|
|
|
[[/each]]
|
|
|
</div>
|
|
|
<input type="hidden" id="brandCheckBox" for="checkbox" value="[[Brdata]]" />
|
|
|
</div>
|
|
|
</script>
|
|
|
<script type="text/template" id="template3">
|
|
|
[[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]]">
|
|
|
</a>
|
|
|
<i class="remove-item-btn remove1 glyphicon glyphicon-remove-circle" data-index="[[index]]"></i>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<label class="col-sm-6">图片名称</label>
|
|
|
<input class="col-sm-6" type="text" value="[[brand.title]]" data-field="brand.title">
|
|
|
</div>
|
|
|
</li>
|
|
|
[[/each]]
|
|
|
</script> |
|
|
\ No newline at end of file |
...
|
...
|
|