Authored by xuhongyun

Merge branch 'dev_2.2' into test

@@ -23,6 +23,13 @@ @@ -23,6 +23,13 @@
23 <p>SKC: [[item.productSkc]]</p> 23 <p>SKC: [[item.productSkc]]</p>
24 <p>[[item.goodsName]]</p> 24 <p>[[item.goodsName]]</p>
25 <p>[[item.factoryGoodsName || '']]</p> 25 <p>[[item.factoryGoodsName || '']]</p>
  26 + <table><tr>
  27 + <td valign='top'>SKU:</td>
  28 + <td>
  29 + [[each item.goodsSizeList as item2 index2]]
  30 + [[item2.productSku || '']]
  31 + [[/each]]</td>
  32 + </tr></table>
26 </div> 33 </div>
27 <div class="cover-color">颜色封面:</div> 34 <div class="cover-color">颜色封面:</div>
28 </div> 35 </div>
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 <div class="form-group"> 11 <div class="form-group">
12 <label class="col-sm-1 control-label height40" for="searchKeys">商品关键词</label> 12 <label class="col-sm-1 control-label height40" for="searchKeys">商品关键词</label>
13 <div class="col-sm-6"> 13 <div class="col-sm-6">
14 - <input type="text" class="form-control" id="searchKeys" required="required" /> 14 + <input type="text" class="form-control" id="searchKeys" />
15 15
16 </div> 16 </div>
17 <div class="height40" style="color: red;">每个关键词请用英文“,”隔开</div> 17 <div class="height40" style="color: red;">每个关键词请用英文“,”隔开</div>
@@ -493,8 +493,9 @@ GOLABDATA.on("fenmian", function () { @@ -493,8 +493,9 @@ GOLABDATA.on("fenmian", function () {
493 } 493 }
494 494
495 if (!item.goodsImagesList || item.goodsImagesList == 0) { 495 if (!item.goodsImagesList || item.goodsImagesList == 0) {
496 - errorMsg += '<p>请设置skc:' + item.productSkc + '的封面</p>';  
497 return; 496 return;
  497 + }else {
  498 + errorMsg="pass";
498 } 499 }
499 $.each(item.goodsImagesList, function (_index, _item) { 500 $.each(item.goodsImagesList, function (_index, _item) {
500 if (!_item) { 501 if (!_item) {
@@ -506,12 +507,15 @@ GOLABDATA.on("fenmian", function () { @@ -506,12 +507,15 @@ GOLABDATA.on("fenmian", function () {
506 }); 507 });
507 //if (map.goodsImagesBoList.length == 0) return; 508 //if (map.goodsImagesBoList.length == 0) return;
508 map.goodsImagesBoList = JSON.stringify(map.goodsImagesBoList); 509 map.goodsImagesBoList = JSON.stringify(map.goodsImagesBoList);
509 - if (errorMsg === '') { 510 + if(typeof(map.productSkc) == "undefined"){
  511 + return '<p>请设置商品默认封面</p>';
  512 + }
  513 + if (errorMsg != '') {
510 return { 514 return {
511 "goodsImagesReq": JSON.stringify(map) 515 "goodsImagesReq": JSON.stringify(map)
512 } 516 }
513 } else { 517 } else {
514 - return errorMsg; 518 + return '<p>请设置至少一个skc的封面</p>';
515 } 519 }
516 520
517 }); 521 });