Authored by tanling

拼团商品列表

... ... @@ -2236,16 +2236,17 @@
<script type="text/template" id="collageBuyPrdList-template">
<div class="panel-body">
<div class="row">
<label class="col-sm-2 control-label">列表展示方向</label>
<label class="col-sm-2 control-label">列表展示方向<span class="red">*</span></label>
<div class="col-sm-6">
<select id="layout_float" name="layout_float" class="form-control observe input-form" value="[[contentData.data.layout_float]]" data-field="layout_float">
<option value="">请选择</option>
<select id="layout_float" name="layout_float" class="form-control observe input-form layout_float" value="[[contentData.data.layout_float]]" data-field="layout_float">
<option value="H">横向</option>
<option value="V">纵向</option>
<option value="C">轮播</option>
</select>
</div>
</div>
</div>
[[ if contentData.data.layout_float=="H" || contentData.data.layout_float=="V" ]]
<div class="panel-body">
<div class="row">
<label class="col-sm-2 control-label">活动ID</label>
... ... @@ -2254,15 +2255,31 @@
</div>
</div>
</div>
[[/if]]
<div class="panel-body">
<div class="row">
<label class="col-sm-2 control-label">优先的skn</label>
<label class="col-sm-2 control-label">优先的skn<span class="red">*</span>:</label>
<div class="col-sm-16">
<input type="text" placeholder="输入skn,多个skn以逗号分隔" class="observe form-control" value="[[contentData.data.sknList]]" data-field="sknList">
</div>
</div>
</div>
[[ if contentData.data.layout_float=="C" ]]
<div class="panel-body">
<div class="row">
<label>轮播速度<span class="red">*</span>:</label>
<input type="text" placeholder="轮播速度" placeholder="填0的表示不轮播" class="observe form-control input-form" data-field="speed" value="[[contentData.data.speed]]">ms
</div>
</div>
<div class="row">
<label class="col-sm-2 control-label">展示内容: </label>
<div class="col-sm-8">
<input type="checkbox" name="showProductName" class="showProductName" value="1" [[contentData.data.showProductName=="1"?"checked":""]]> 商品名称 &emsp;
<input type="checkbox" name="showGroupPrice" class="showGroupPrice" value="1" [[contentData.data.showGroupPrice=="1"?"checked":""]]> 拼团价格 &emsp;
<input type="checkbox" name="showGroupNum" class="showGroupNum" value="1" [[contentData.data.showGroupNum=="1"?"checked":""]]> 已拼数量 &emsp;
</div>
</div>
[[/if]]
</script>
<!--悬浮资源位-->
... ...
... ... @@ -1944,7 +1944,16 @@ var Button = [
template_name: "collageBuyPrdList",
dialog: "collageBuyPrdList-template",
__title:"拼团商品列表",
data: {"activityId":"", "sknList":"", layout_float: ""},
data: {
"activityId":"",
"sknList":"",
layout_float: "H",
"speed":"",
"showProductName":"",
"showGroupPrice":"",
"showGroupNum":""
},
"isNewFloor":"1"
},
{
... ...
... ... @@ -1036,6 +1036,15 @@ $(document).on("click", '.dataSourceNewProduct', function () {
});
// 拼团商品列表 列表展示方向发生变化,需要重新刷新页面
$(document).on("click", '.layout_float', function () {
var _layout_float = $(this).val();
Bll.module.contentData.data.layout_float = _layout_float;
Bll.renderDialog("collageBuyPrdList-template");
});
// 新商品列表
$(document).on("click", '.showName', function () {
var showName = $(this).val();
... ... @@ -1055,8 +1064,31 @@ $(document).on("click", '.showPrice', function () {
}else{
Bll.module.contentData.data.showPrice = "";
}
});
// 拼团商品列表
$(document).on("click", '.showProductName', function () {
if ($(this).is(":checked")){
Bll.module.contentData.data.showProductName = "1";
}else{
Bll.module.contentData.data.showProductName = "";
}
});
// 拼团商品列表
$(document).on("click", '.showGroupPrice', function () {
if ($(this).is(":checked")){
Bll.module.contentData.data.showGroupPrice = "1";
}else{
Bll.module.contentData.data.showGroupPrice = "";
}
});
// 拼团商品列表
$(document).on("click", '.showGroupNum', function () {
if ($(this).is(":checked")){
Bll.module.contentData.data.showGroupNum = "1";
}else{
Bll.module.contentData.data.showGroupNum = "";
}
});
//分隔图
... ...