Authored by wangwei

热门品牌

... ... @@ -16,8 +16,11 @@
<label>添加皮肤</label>&emsp;
</div>
<div class="col-sm-3">
<input type="file" name="file" value="[[contentData.back_image]]" data-field="..back_image"/>
<input type="file" name="file" class="backImage" value="[[contentData.back_image]]" data-field="..back_image"/>
</div>
<div class="col-sm-1">
<input type="button" class="btn btn-danger delBackImage" value="删除皮肤">
</div>
</div>
</div>
[[/if]]
... ...
... ... @@ -2573,4 +2573,72 @@
</li>
[[/each]]
</ul>
</script>
<!--热门品牌个性化-->
<script type="text/template" id="bigDataHotBrand-template">
<div class="form-group">
<div class="col-sm-10">
<label>标题</label>
<input class="form-control observe input-form" type="text" value="[[contentData.data.title.title]]" data-field="title.title" placeholder="热门品牌-个性化">
&emsp;&emsp;&emsp;&emsp;<label>显示名称</label>
<label style="cursor: pointer;"><input type="radio" name="is_show_name_bigDataHotBrand" class="is_show_name_bigDataHotBrand" value="Y"></label>
<label style="cursor: pointer;"><input type="radio" name="is_show_name_bigDataHotBrand" class="is_show_name_bigDataHotBrand" value="N"></label>
<input type="hidden" id="is_show_name_bigDataHotBrand" value="[[contentData.data.is_show_name]]" for="radio"/>
</div>
</div>
<div class="from-group">
<div class="col-sm-6">
<label>应用范围</label>&emsp;&emsp;
<select class="form-control observe input-form" name="channel" value="[[contentData.data.title.channel]]" data-field="title.channel">
<option value="-1">选择频道</option>
<option value="1">男生</option>
<option value="2">女生</option>
<option value="3">潮童</option>
<option value="4">创意生活</option>
</select>
</div>
</div>
<div class="panel-body">
<div class="form-group">
<table class="table table-hover table-bordered responsive dataTable no-footer">
<thead>
<tr>
<th>图片</th>
<th>选项</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<input type="file" name="file" value="[[contentData.data.image.src]]"
class="observe" required="required"
data-field="image.src"/>
</td>
<td>
<div class="form-group ">
<select name="goTo" class="form-control observe"
value="[[contentData.data.image.url.action]]"
data-field="image.url.action">
[[layout action_template]]
</select>
</div>
<div class="form-group ">
<input value="[[contentData.data.image.url.url]]"
class="form-control observe"
data-field="image.url.url" placeholder="图片链接"/>
<p style="color:#999;margin-top: 5px;">链接中不能有英文单引号</p>
</div>
<div class="form-group ">
<input value="[[contentData.data.image.alt]]"
class="form-control observe"
data-field="image.alt" placeholder="图片描述"/>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</script>
\ No newline at end of file
... ...
... ... @@ -129,6 +129,16 @@
</ul>
</div>
</div>
[[else if module.contentData.template_name=='bigDataHotBrand']]
<div class="form-group">
<div class="row title">
[[module.contentData.data.title.title]]
</div>
<div class="col-sm-12">
<img src="[[module.contentData.data.image.src]]" class="custom-pic-img" style="margin:2px;">
</ul>
</div>
</div>
[[else if module.contentData.template_name=='customBrands']]
<div class="custom-pic">
<div class="custom-brand-title row title">[[module.contentData.data.title.title]]</div>
... ...
... ... @@ -343,6 +343,27 @@ var Button = [
}
},
{
button_name: "热门品牌-个性化",
template_intro: "热门品牌-个性化",
template_name: "bigDataHotBrand",
dialog: "bigDataHotBrand-template",
"data": {
"title": {
"title": "",
"channel":""
},
"is_show_name": "N",
"image": {
"src": "",
"alt": "",
"url": {
"action": "",
"url": ""
}
}
}
},
{
button_name: "自定义品牌",
template_intro: "自定义品牌",
template_name: "customBrands",
... ...
... ... @@ -737,11 +737,23 @@ $(document).on("click", '.is_show_name_brand', function () {
Bll.module.contentData.data.is_show_name = $(this).val();
Bll.renderDialog("brands-template");
});
//热门品牌个性化推荐
$(document).on("click", '.is_show_name_bigDataHotBrand', function () {
Bll.module.contentData.data.is_show_name = $(this).val();
Bll.renderDialog("bigDataHotBrand-template");
});
//图标入口 一行显示个数
$(document).on("click", '.icon-number', function () {
Bll.module.contentData.number = $(this).val();
Bll.renderDialog("icon-template");
});
//清空背景图片
$(document).on("click",".delBackImage",function(){
Bll.module.contentData.back_image = "";
Bll.renderDialog("icon-template");
});
//**********************************************************************************/
//复制
$(document).on("click", "#copyTab", function() {
... ...