Showing
5 changed files
with
12 additions
and
3 deletions
@@ -73,6 +73,8 @@ if ($('.contentpanel').data('type') == 'info') { | @@ -73,6 +73,8 @@ if ($('.contentpanel').data('type') == 'info') { | ||
73 | $('#edit-recommender, #edit-descriptioner').prop('contenteditable', false); | 73 | $('#edit-recommender, #edit-descriptioner').prop('contenteditable', false); |
74 | 74 | ||
75 | $('#saveAllInfo').hide(); | 75 | $('#saveAllInfo').hide(); |
76 | + $(".goods-img i").remove(); | ||
77 | + $("#search-key-list").hide(); | ||
76 | 78 | ||
77 | // 上架审核的查看页面 | 79 | // 上架审核的查看页面 |
78 | if ($('.contentpanel').data('action') != 'audit') { | 80 | if ($('.contentpanel').data('action') != 'audit') { |
@@ -200,6 +200,10 @@ common.util.__ajax({ | @@ -200,6 +200,10 @@ common.util.__ajax({ | ||
200 | }); | 200 | }); |
201 | } | 201 | } |
202 | 202 | ||
203 | + if(res.data.length == 0) { | ||
204 | + $("#goodsParams-footer").hide(); | ||
205 | + } | ||
206 | + | ||
203 | $('#goodsParamWrap').html(common.util.__template2($('#goodsParamTemp').html(), { | 207 | $('#goodsParamWrap').html(common.util.__template2($('#goodsParamTemp').html(), { |
204 | data: data | 208 | data: data |
205 | })); | 209 | })); |
@@ -355,6 +355,9 @@ $(document).on('click', '.remove-item-btn', function() { | @@ -355,6 +355,9 @@ $(document).on('click', '.remove-item-btn', function() { | ||
355 | $(document).on("click", "#fenMainSave", function() { | 355 | $(document).on("click", "#fenMainSave", function() { |
356 | 356 | ||
357 | var data = GOLABDATA.fire("fenmian"); | 357 | var data = GOLABDATA.fire("fenmian"); |
358 | + if(typeof data == "undefined") { | ||
359 | + return false; | ||
360 | + } | ||
358 | common.util.__ajax({ | 361 | common.util.__ajax({ |
359 | url: '/netSale/manageProductImg', | 362 | url: '/netSale/manageProductImg', |
360 | data: data | 363 | data: data |
@@ -373,7 +376,7 @@ GOLABDATA.on("fenmian", function() { | @@ -373,7 +376,7 @@ GOLABDATA.on("fenmian", function() { | ||
373 | map.productSkn = item.productSkn; | 376 | map.productSkn = item.productSkn; |
374 | } | 377 | } |
375 | 378 | ||
376 | - if (!item.goodsImagesList) { | 379 | + if (!item.goodsImagesList || item.goodsImagesList == 0) { |
377 | common.util.__tip('请设置skc:' + item.productSkc + '的封面', 'warning'); | 380 | common.util.__tip('请设置skc:' + item.productSkc + '的封面', 'warning'); |
378 | return; | 381 | return; |
379 | } | 382 | } |
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | </div> | 8 | </div> |
9 | <div id="goodsParamWrap" class="panel-body nopadding"> | 9 | <div id="goodsParamWrap" class="panel-body nopadding"> |
10 | </div> | 10 | </div> |
11 | - <div class="panel-footer"> | 11 | + <div class="panel-footer" id="goodsParams-footer"> |
12 | <a href="javascript:;" class="btn btn-primary" id="propertySave">保存</a> | 12 | <a href="javascript:;" class="btn btn-primary" id="propertySave">保存</a> |
13 | </div> | 13 | </div> |
14 | </div> | 14 | </div> |
@@ -16,7 +16,7 @@ | @@ -16,7 +16,7 @@ | ||
16 | </div> | 16 | </div> |
17 | <div class="height40" style="color: red;">每个关键词请用英文“,”隔开</div> | 17 | <div class="height40" style="color: red;">每个关键词请用英文“,”隔开</div> |
18 | </div> | 18 | </div> |
19 | - <div class="form-group"> | 19 | + <div class="form-group" id="search-key-list"> |
20 | <label class="col-sm-1 control-label height40">搜索热词:</label> | 20 | <label class="col-sm-1 control-label height40">搜索热词:</label> |
21 | <div class="col-sm-6" id="search-key"> | 21 | <div class="col-sm-6" id="search-key"> |
22 | 22 |
-
Please register or login to post a comment