Authored by weiqingting

Merge branch 'release/qqtest' of http://git.dev.yoho.cn/platform/yohobuy-portal-…

…fe into release/qqtest
... ... @@ -155,7 +155,7 @@ components.prototype={
$("select").each(function() {
var _value = $(this).attr("value");
if (_value) {
$("option[value='" + _value + "']", $(this)).attr("selected", true);
$("option[value='" + _value + "']", $(this)).prop("selected", true);
}
});
},
... ...
... ... @@ -25,8 +25,8 @@ var g = new common.grid({
else if(item.sort == "2") return "SALE";
}},
{display: "排序", name: "orderNum"},
{display: "标题", name: "title"},
{display: "封面图", name: "coverUrl", render: function (item) {
{display: "标题", name: "title", width:"300px"},
{display: "封面图", name: "coverUrl", height:"102px", render: function (item) {
return '<img src="'+item.coverUrl+'" height="100px" />';
}},
{display: "促销形式", name: "promotionName"},
... ... @@ -41,7 +41,12 @@ var g = new common.grid({
{display:"频道", name:"yhChannel", render: function (item) {
if(item.yhChannel) {
item.yhChannel = item.yhChannel.replace(/,/g,"|");
return yhChannelArr[item.yhChannel-1];
var arr = [];
var yhChannels = item.yhChannel.split("|");
for(var i = 0; i < yhChannels.length; i++) {
arr.push(yhChannelArr[yhChannels[i]-1]);
}
return arr.join(",");
}
}},
{display: "状态", name: "status", render: function (item) {
... ...
... ... @@ -88,7 +88,8 @@ var Bll = {
for (var i = 0; i < arr.length; i++) {
arr2[i] = arr[arr2[i]];
}
arr = arr2;
var fn1 = new Function("Bll", "arr2", "Bll.module.contentData." + $(this).data("array") + "=arr2");
fn1(Bll, arr2);
}
})
}
... ...
... ... @@ -145,7 +145,7 @@
2、Excel表头为:<span style="color: #67D267;">SKN、品牌、吊牌价、返币金额(大于零,最多俩位小数)</span><br>
3、第一行为表头内容,第二行开始为正式内容<br>
4、每个文件控制在2500行以内<br>
5、<a href="/ajax/link/batchImportYohoCoin" style="margin: 0; text-decoration: underline">下载样例.xlsx</a>
5、<a href="/ajax/link/yohoCoin" style="margin: 0; text-decoration: underline">下载样例.xlsx</a>
</td>
</tr>
</table>
... ... @@ -258,7 +258,7 @@
</tr>
<tr class="dataForEditor">
<td colspan="9" style="padding: 0">
<td colspan="9" style="padding: 0; border-left: 1px solid #ddd">
<table>
<tr>
<!--td width="50%"><b>反币时间</b></td-->
... ...
... ... @@ -14,10 +14,10 @@
<tbody>
[[each contentData.data as item index]]
<tr>
<td>
<td align="center">
[[index+1]]
</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="[[index]].src"/>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="[[index]].src"/>
</td>
<td>
<div class="form-group ">
... ... @@ -138,18 +138,18 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<thead>
<tr>
<th>品牌图标</th>
<th>品牌名称</th>
<th>操作</th>
<td align="center"><strong>品牌图标</strong></td>
<td align="center"><strong>品牌名称</strong></td>
<td align="center"><strong>操作</strong></td>
</tr>
</thead>
<tbody>
[[each contentData.data.list as item index]]
<tr>
<td>
<td align="center">
<input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/>
</td>
<td>
<td align="center">
<div class="form-group">
[[if contentData.template_name=='kidsBrands']]
<input class="form-control observe" type="text" value="[[item.title]]" data-field="list.[[index]].title">
... ... @@ -238,18 +238,18 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<thead>
<tr>
<th>序号</th>
<th>标签名称</th>
<th>导航链接</th>
<td align="center"><strong>序号</strong></td>
<td align="center"><strong>标签名称</strong></td>
<td align="center"><strong>导航链接</strong></td>
</tr>
</thead>
<tbody>
[[each contentData.data.nav as item index]]
<tr>
<td>
<td align="center">
[[index+1]]
</td>
<td>
<td align="center">
<div class="form-group">
<div class="col-sm-10">
<input value="[[item.name]]" class="form-control observe" required="required" data-field="nav.[[index]].name" placeholder="标签名称"/>
... ... @@ -290,18 +290,18 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<thead>
<tr>
<th>序号</th>
<th>图片</th>
<th>选项</th>
<td align="center"><strong>序号</strong></td>
<td align="center"><strong>图片</strong></td>
<td align="center"><strong>选项</strong></td>
</tr>
</thead>
<tbody>
[[each contentData.data as item index]]
<tr>
<td>
<td align="center">
[[index+1]]
</td>
<td>
<td align="center">
<div class="form-group">
<div class="col-sm-10">
<input type="file" name="file" value="[[item.image.src]]" class="form-control observe" data-field="[[index]].image.src" required placeholder="图片"/>
... ...
... ... @@ -28,15 +28,15 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<thead>
<tr>
<th>序号</th>
<th>资源位</th>
<th>选项</th>
<td align="center"><strong>序号</strong></td>
<td align="center"><strong>资源位</strong></td>
<td align="center"><strong>选项</strong></td>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td><input type="file" name="file" placeholder="图片" value="[[contentData.data.image.src]]" data-field="image.src" class="observe" required="required"/></td>
<td align="center">1</td>
<td align="center"><input type="file" name="file" placeholder="图片" value="[[contentData.data.image.src]]" data-field="image.src" class="observe" required="required"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -60,33 +60,36 @@
</script>
<!--多标签图片-->
<script type="text/template" id="multiLabelImage-template">
[[each contentData.data.label as item index]]
<div class="form-group">
[[each contentData.data.label as item index]]
<label class="control-label">标签[[index+1]]:</label>
<input type="text" class="observe" placeholder="名称" value="[[item.title]]" data-field="label.[[index]].title" required="required" style="width: 100px">
<label class="control-label">跳转目的</label>
<select name="goTo" class="observe" value="[[item.url.action]]" data-field="label.[[index]].url.action" style="width: 120px" >
[[layout action_template]]
</select>
<label>跳转地址</label>
<input type="text" class="observe" placeholder="跳转地址" value="[[item.url.url]]" data-field="label.[[index]].url.url" style="width: 120px" /><br>
[[/each]]
<div class="col-sm-12">
<label>标签[[index+1]]:</label>
<input type="text" class="observe form-control" placeholder="名称" value="[[item.title]]" data-field="label.[[index]].title" required="required" style="display:inline-block;width: 100px">
<label>跳转目的</label>
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="label.[[index]].url.action" style="display:inline-block;width: 160px">
[[layout action_template]]
</select>
<label>跳转地址</label>
<input type="text" class="observe form-control" placeholder="跳转地址" value="[[item.url.url]]" data-field="label.[[index]].url.url" style="display:inline-block;width: 160px" />
</div>
</div>
[[/each]]
<a href="JavaScript:;" class="btn btn-primary btn-xs addBtn" data-event="multiLabelImage.label">添加标签</a>
<div>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<thead>
<tr>
<th>序号</th>
<th>资源位</th>
<th>选项</th>
<td align="center"><strong>序号</strong></td>
<td align="center"><strong>资源位</strong></td>
<td align="center"><strong>选项</strong></td>
</tr>
</thead>
<tbody>
[[each contentData.data.image as item index]]
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" data-field="image.[[index]].src" class="observe" required="required"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" data-field="image.[[index]].src" class="observe" required="required"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -136,59 +139,66 @@
</div>
</div>
<div>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<thead>
<tr>
<th>序号</th>
<th>资源位</th>
<th>选项</th>
</tr>
</thead>
<tbody>
<h4>2T</h4>
<ul class="draggable" data-array="data.top_image">
[[each contentData.data.top_image as item index]]
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" data-field="top_image.[[index]].src" class="observe" required="required"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="form-control observe" data-field="top_image.[[index]].url.action" value="[[item.url.action]]" >
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="url" value="[[item.url.url]]" class="form-control observe" data-field="top_image.[[index]].url.url" required="required" />
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
</div>
</div>
</td>
</tr>
<li>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" data-field="top_image.[[index]].src" class="observe" required="required"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="form-control observe" data-field="top_image.[[index]].url.action" value="[[item.url.action]]" >
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="url" value="[[item.url.url]]" class="form-control observe" data-field="top_image.[[index]].url.url" required="required" />
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</ul>
<h4>nF</h4>
<ul class="draggable" data-array="data.list">
[[each contentData.data.list as item index]]
<tr>
<td>[[index+3]]</td>
<td><input type="file" name="file" value="[[item.src]]" data-field="list.[[index]].src" class="observe" required="required"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="form-control observe" data-field="list.[[index]].url.action" value="[[item.url.action]]" >
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="url" value="[[item.url.url]]" class="form-control observe" data-field="list.[[index]].url.url" required="required" />
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
</div>
</div>
</td>
</tr>
<li>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" data-field="list.[[index]].src" class="observe" required="required"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="form-control observe" data-field="list.[[index]].url.action" value="[[item.url.action]]" >
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="url" value="[[item.url.url]]" class="form-control observe" data-field="list.[[index]].url.url" required="required" />
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</tbody>
</table>
</ul>
</div>
<a href="JavaScript:;" class="btn btn-primary btn-xs addBtn" data-event="matchImage.list">添加一个</a>
</div>
... ... @@ -226,8 +236,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="big_image.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="big_image.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -260,8 +270,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -320,8 +330,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="big_image.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="big_image.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -354,8 +364,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -391,8 +401,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="big_image.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="big_image.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -425,8 +435,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -461,86 +471,80 @@
<input type="text" placeholder="左边图片标题" class="observe form-control input-form" data-field="left.title" value="[[contentData.data.left.title]]" required="required">
</div>
</div>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<thead>
<tr>
<th>序号</th>
<th>资源位</th>
<th>选项</th>
</tr>
</thead>
<tbody>
<ul class="draggable" data-array="data.left.list">
[[each contentData.data.left.list as item index]]
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="left.list.[[index]].src" required/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="form-control observe" value="[[item.url.action]]" data-field="left.list.[[index]].url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input value="[[item.url.url]]" class="form-control observe" data-field="left.list.[[index]].url.url" placeholder="url"/>
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input value="[[item.alt]]" class="form-control observe" data-field="left.list.[[index]].alt" placeholder="图片描述"/>
</div>
</div>
</td>
</tr>
<li>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="left.list.[[index]].src" required/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="form-control observe" value="[[item.url.action]]" data-field="left.list.[[index]].url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input value="[[item.url.url]]" class="form-control observe" data-field="left.list.[[index]].url.url" placeholder="url"/>
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input value="[[item.alt]]" class="form-control observe" data-field="left.list.[[index]].alt" placeholder="图片描述"/>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</tbody>
</table>
</ul>
<div class="form-group">
<div class="col-sm-10">
<label>右边图片标题:</label>
<input type="text" class="observe form-control input-form" placeholder="右边图片标题" data-field="right.title" value="[[contentData.data.right.title]]" required="required">
</div>
</div>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<thead>
<tr>
<th>序号</th>
<th>资源位</th>
<th>选项</th>
</tr>
</thead>
<tbody>
<ul class="draggable" data-array="data.right.list">
[[each contentData.data.right.list as item index]]
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="right.list.[[index]].src" required/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="form-control observe" value="[[item.url.action]]" data-field="right.list.[[index]].url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input value="[[item.url.url]]" class="form-control observe" data-field="right.list.[[index]].url.url" placeholder="url"/>
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input value="[[item.alt]]" class="form-control observe" data-field="right.list.[[index]].alt" placeholder="图片描述"/>
</div>
</div>
</td>
</tr>
<li>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="right.list.[[index]].src" required/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="form-control observe" value="[[item.url.action]]" data-field="right.list.[[index]].url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input value="[[item.url.url]]" class="form-control observe" data-field="right.list.[[index]].url.url" placeholder="url"/>
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input value="[[item.alt]]" class="form-control observe" data-field="right.list.[[index]].alt" placeholder="图片描述"/>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</tbody>
</table>
</ul>
</script>
<!--推荐(标题 + 12张图) -->
<script type="text/template" id="recommendContentFive-template">
... ... @@ -559,8 +563,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -630,8 +634,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" data-field="list.[[index]].src" class="observe"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" data-field="list.[[index]].src" class="observe"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -733,8 +737,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="banner_image.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="banner_image.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -773,8 +777,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="left.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="left.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -807,8 +811,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="big_image.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="big_image.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -841,8 +845,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="right.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="right.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -892,8 +896,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -951,8 +955,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="blocks.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="blocks.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -1006,8 +1010,8 @@
<tbody>
[[each contentData.data.imgs as item index]]
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="imgs.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="imgs.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -1058,8 +1062,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src" required/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src" required/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -1117,9 +1121,9 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td><button class="btn btn-danger btn-sm delBtn" type="button" data-event="carouselBanner.list" data-index="[[index]]">删除</button></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td align="center"><button class="btn btn-danger btn-sm delBtn" type="button" data-event="carouselBanner.list" data-index="[[index]]">删除</button></td>
</tr>
</tbody>
</table>
... ... @@ -1154,8 +1158,8 @@
</thead>
<tbody>
<tr>
<td>1</td>
<td><input type="file" name="file" value="[[contentData.data.src]]" class="observe" data-field="src" required/></td>
<td align="center">1</td>
<td align="center"><input type="file" name="file" value="[[contentData.data.src]]" class="observe" data-field="src" required/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -1198,8 +1202,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="[[index]].src" required/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="[[index]].src" required/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ...
... ... @@ -6,7 +6,6 @@
</div>
[[else if module.contentData.template_name=='appIconList']]
<div>
<div class="row title">[[module.contentData.template_intro]]</div>
<div class="app_icon_list">
<ul class="icon-list clearfix">
[[each module.contentData.data as item index]]
... ... @@ -212,9 +211,42 @@
</div>
</div>
[[else if module.contentData.template_name=='hotCategory']]
<div class="hotCategory">
<div class="wordText">
<span>热门品类</span>
<div class="hotCategory-info">
<div style="width:100%;height:100%;background-color: #fff;padding-top:3px" ;="">
<div style="margin:0 auto;border:1px solid #000;width:40%;font-size:1px;text-align:center;margin-bottom:10px;">[[module.contentData.data.title.name]]</div>
<div style="margin-right:10px;float:right;width:40px;margin-top:-27px;font-size:1px;">[[module.contentData.data.title.more_name]]</div>
<div style="clear:both;"></div>
<div style="width:50px;float:left;">
<div style="height:70px;width:100%">
[[each module.contentData.data.blocks as item index]]
<img style="height:22px;width:100%;margin-bottom:2px;" src="[[item.src]]">
[[/each]]
</div>
<div style="height:70px;width:100%">
[[each module.contentData.data.list as item index]]
<div style="height:22px;width:50%;margin-bottom:2px;font-size:1px;float:left">[[item.name]]</div>
[[/each]]
<div style="clear:both"></div>
</div>
</div>
<div style="width:5px;height:100%;float:left;">
</div>
<div style="width:100px;float:left;">
<img style="width:100px;height:100%;" src="[[module.contentData.data.imgs[0].src]]">
</div>
<div style="width:5px;height:100%;float:left;">
</div>
<div style="width:150px;float:left;">
[[each module.contentData.data.imgs as item index]]
[[if index!=0 && index <= 6]]
<img style="width:45px;height:90px;margin-left:5px;margin-top:10px;float:left;" src="[[item.src]]">
[[/if]]
[[/each]]
<div style="clear:both"></div>
</div>
<div style="clear:both"></div>
</div>
</div>
[[else if module.contentData.template_name=='debrisSlider']]
... ...
... ... @@ -66,49 +66,46 @@
<script type="text/template" id="template_dialog_grid">
<div class="rows">
<div id="grid-baseFrom">
<table class="table table-hover table-bordered responsive dataTable no-footer">
<thead>
<tr>
<th>序号</th>
<th>资源位</th>
<th>地址</th>
</tr>
</thead>
<tbody>
<ul class="draggable" data-array="data">
[[each contentData.data as item index]]
<tr>
<td>[[index+1]]</td>
<td>
<input type="file" name="file" id="src-[[index]]" value="[[item.src]]"
data-field="[[index]].src" data-index="[[index]]" required/>
</td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select class="form-control observe" data-field="[[index]].url.action"
value='[[item.url?item.url.action:""]]'>
[[layout action_template]]
</select>
</div>
</div>
<li>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td align="center">[[index+1]]</td>
<td align="center">
<input type="file" name="file" id="src-[[index]]" value="[[item.src]]"
data-field="[[index]].src" data-index="[[index]]" required/>
</td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select class="form-control observe" data-field="[[index]].url.action"
value='[[item.url?item.url.action:""]]'>
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input class="form-control observe" placeholder="跳转地址" data-field="[[index]].url.url"
value="[[item.url?item.url.url:'']]"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input class="form-control observe" value="[[item.alt?item.alt:'']]" placeholder="图片描述"
data-field='[[index]].alt'/>
</div>
</div>
</td>
</tr>
<div class="form-group">
<div class="col-sm-10">
<input class="form-control observe" placeholder="跳转地址" data-field="[[index]].url.url"
value="[[item.url?item.url.url:'']]"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input class="form-control observe" value="[[item.alt?item.alt:'']]" placeholder="图片描述"
data-field='[[index]].alt'/>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</tbody>
</table>
</ul>
</div>
</div>
</script>
... ...