Authored by xuhongyun

Build project

... ... @@ -14030,6 +14030,13 @@ webpackJsonp([45],{
//删除封面图
$(document).on('click', '.remove-item-btn', function () {
// 删除skn个性化推荐图片需要单独处理
var sknDefaultImg = $(this).parent().find("#sknDefaultImg");
if (sknDefaultImg.length > 0) {
sknDefaultImg.attr("src", "");
$(this).parent().find("#sknDefaultImgFile").attr("value", "");
return;
}
var index = $(this).parents(".cover-image-list").data("index");
var index1 = $(this).parents(".cover-image-item").index();
goodsList[index].goodsImagesList.splice(index1, 1);
... ...
... ... @@ -31,7 +31,8 @@
<li class="cover-image-item fileinput-button" data-index="0">
<div class="goods-img">
<a class="fileinput-button-icon" href="javascript:void(0);"><img id="sknDefaultImg" src="[[sknDefaultImg]]" name="sknDefaultImg"></a>
<input type="file" id="sknDefaultImgFile" name="sknDefaultImg" value="[[sknDefaultImg]]" placeholder="推荐位默认图片" />
<i class="remove-item-btn glyphicon glyphicon-remove-circle"></i>
<input type="file" id="sknDefaultImgFile" name="sknDefaultImg" value="[[sknDefaultImg]]" placeholder="推荐位默认图片" />
</div>
<div class="cover-color">
<a href="javascript:;" class="btn-use-img btn btn-default" data-productSkc="[[productSkn]]" data-index="[[index]]">调用图片</a>
... ...