Authored by 陶雨

修复网销各种bug

... ... @@ -73,6 +73,8 @@ if ($('.contentpanel').data('type') == 'info') {
$('#edit-recommender, #edit-descriptioner').prop('contenteditable', false);
$('#saveAllInfo').hide();
$(".goods-img i").remove();
$("#search-key-list").hide();
// 上架审核的查看页面
if ($('.contentpanel').data('action') != 'audit') {
... ...
... ... @@ -200,6 +200,10 @@ common.util.__ajax({
});
}
if(res.data.length == 0) {
$("#goodsParams-footer").hide();
}
$('#goodsParamWrap').html(common.util.__template2($('#goodsParamTemp').html(), {
data: data
}));
... ...
... ... @@ -355,6 +355,9 @@ $(document).on('click', '.remove-item-btn', function() {
$(document).on("click", "#fenMainSave", function() {
var data = GOLABDATA.fire("fenmian");
if(typeof data == "undefined") {
return false;
}
common.util.__ajax({
url: '/netSale/manageProductImg',
data: data
... ... @@ -373,7 +376,7 @@ GOLABDATA.on("fenmian", function() {
map.productSkn = item.productSkn;
}
if (!item.goodsImagesList) {
if (!item.goodsImagesList || item.goodsImagesList == 0) {
common.util.__tip('请设置skc:' + item.productSkc + '的封面', 'warning');
return;
}
... ...
... ... @@ -8,7 +8,7 @@
</div>
<div id="goodsParamWrap" class="panel-body nopadding">
</div>
<div class="panel-footer">
<div class="panel-footer" id="goodsParams-footer">
<a href="javascript:;" class="btn btn-primary" id="propertySave">保存</a>
</div>
</div>
... ...
... ... @@ -16,7 +16,7 @@
</div>
<div class="height40" style="color: red;">每个关键词请用英文“,”隔开</div>
</div>
<div class="form-group">
<div class="form-group" id="search-key-list">
<label class="col-sm-1 control-label height40">搜索热词:</label>
<div class="col-sm-6" id="search-key">
... ...