Authored by wangshusheng

样式

... ... @@ -91,15 +91,25 @@
顶部Banner图(非必填),尺寸:640*200
</div>
</div>
<!--
<div class="form-group" id="productEditBackImage">
<label for="backImageUrl" class="col-sm-3 control-label">活动价背景图:</label>
<div class="col-sm-9">
<i class="remove-item-btn glyphicon glyphicon-remove-circle"></i>
<input type="file" id="backImageUrl" name="backImageUrl" value="[[backImageUrl]]" required extend="gif,png,jpg,jpeg,pdf" placeholder="活动价背景图" bucket="brandBanner" />
列表页活动背景图(非必填),尺寸:640*200
</div>
</div>
-->
<div class="form-group" id="productEditBackImage">
<label for="backImageUrl" class="col-sm-3 control-label">活动价背景图:</label>
<div class="col-sm-9">
<a class="fileinput-button-icon" href="javascript:void(0);"><img id="backImageUrl" src="[[backImageUrl]]" name="backImageUrl"></a>
<i class="remove-item-btn glyphicon glyphicon-remove-circle"></i>
<input type="file" id="backImageUrlFile" name="backImageUrl" value="[[backImageUrl]]" required extend="gif,png,jpg,jpeg,pdf" placeholder="活动价背景图" bucket="brandBanner" />
列表页活动背景图(非必填),尺寸:640*200
</div>
</div>
</div>
</script>
... ...
... ... @@ -286,6 +286,16 @@ $(document).on("click", "#emptyPoolImg", function () {
Bll.emptyPoolImg(item,index);
});
//删除活动价背景图
$(document).on('click', '.remove-item-btn', function () {
var backImageUrl = $(this).parent().find("#backImageUrl");
if (backImageUrl.length > 0) {
backImageUrl.attr("src", "");
$(this).parent().find("#backImageUrlFile").attr("value", "");
return;
}
});
//删除商品池
$(document).on("click", "#deletePool", function () {
var index = $(this).data("index");
... ...