Authored by linlong

品牌排序update

@@ -69,6 +69,7 @@ @@ -69,6 +69,7 @@
69 <label>促销短语:</label> 69 <label>促销短语:</label>
70 <input id="salesPhrase" class="form-control" type="text" value="[[salesPhrase]]" style="display: inline-block;width: 280px;"> 70 <input id="salesPhrase" class="form-control" type="text" value="[[salesPhrase]]" style="display: inline-block;width: 280px;">
71 </div> 71 </div>
  72 + <!--
72 <div class="form-group"> 73 <div class="form-group">
73 <label>是否热销:</label> 74 <label>是否热销:</label>
74 <span> 75 <span>
@@ -77,4 +78,5 @@ @@ -77,4 +78,5 @@
77 <input id="isHostsell" type="hidden" for="radio" value="[[isHostsell]]"> 78 <input id="isHostsell" type="hidden" for="radio" value="[[isHostsell]]">
78 </span> 79 </span>
79 </div> 80 </div>
  81 + -->
80 </script> 82 </script>
@@ -13,6 +13,7 @@ @@ -13,6 +13,7 @@
13 <div class="col-sm-2"> 13 <div class="col-sm-2">
14 <input type="text" class="form-control" id="sort0" value="0" required /> 14 <input type="text" class="form-control" id="sort0" value="0" required />
15 </div> 15 </div>
  16 + <!--
16 <label class="col-sm-1 control-label" for="sort1">奥莱</label> 17 <label class="col-sm-1 control-label" for="sort1">奥莱</label>
17 <div class="col-sm-2"> 18 <div class="col-sm-2">
18 <input type="text" class="form-control" id="sort1" value="0" required /> 19 <input type="text" class="form-control" id="sort1" value="0" required />
@@ -21,6 +22,7 @@ @@ -21,6 +22,7 @@
21 <div class="col-sm-2"> 22 <div class="col-sm-2">
22 <input type="text" class="form-control" id="sort2" value="0" required /> 23 <input type="text" class="form-control" id="sort2" value="0" required />
23 </div> 24 </div>
  25 + -->
24 </div> 26 </div>
25 <div class="col-sm-12" style="color: red;"><div class="col-sm-1"></div>提示:商品在品牌商品列表中的排序,数字越大越靠前</div> 27 <div class="col-sm-12" style="color: red;"><div class="col-sm-1"></div>提示:商品在品牌商品列表中的排序,数字越大越靠前</div>
26 </div> 28 </div>
@@ -310,6 +310,8 @@ var g = new common.grid({ @@ -310,6 +310,8 @@ var g = new common.grid({
310 } 310 }
311 HtmArr.push('<a href="/goods/netsale/info/' + item.productSkn + editPostion + '" class="btn btn-info btn-xs info-btn">查看</a>'); 311 HtmArr.push('<a href="/goods/netsale/info/' + item.productSkn + editPostion + '" class="btn btn-info btn-xs info-btn">查看</a>');
312 HtmArr.push('<a href="javascript:;" class="btn btn-success btn-xs chima-btn" data-index="' + item.__index + '">尺码</a>'); 312 HtmArr.push('<a href="javascript:;" class="btn btn-success btn-xs chima-btn" data-index="' + item.__index + '">尺码</a>');
  313 + HtmArr.push('<br><br><input type="text" style="width:100px" name="brandSort" />');
  314 + HtmArr.push('<a href="javascript:;" class="btn btn-success btn-xs brandSort-btn" data-index="' + item.__index + '" >品牌排序</a>');
313 return HtmArr.join(''); 315 return HtmArr.join('');
314 } 316 }
315 }] 317 }]
@@ -633,5 +635,28 @@ $(document).on("click", ".chima-btn", function () { @@ -633,5 +635,28 @@ $(document).on("click", ".chima-btn", function () {
633 } 635 }
634 }, true); 636 }, true);
635 }); 637 });
  638 +/**
  639 +*品牌排序
  640 +*/
  641 +$(document).on("click", ".brandSort-btn", function () {
  642 + var item = g.rows[$(this).data("index")];
  643 + var num = $("input:text[name='brandSort']").eq($(this).data("index")).val();
  644 + var searchSortList = [];
  645 + for (var i = 0; i < 3; i++) {
  646 + searchSortList[i] = {
  647 + id:item.productSearchId,
  648 + productSkn: item.productSkn,
  649 + modelId: i + 1,
  650 + projectId: 1,
  651 + intValue: num
  652 + };
  653 + }
  654 + common.util.__ajax({
  655 + url: '/netSale/saveSearchSort',
  656 + data: {
  657 + searchSortList: JSON.stringify(searchSortList)
  658 + }
  659 + });
  660 + });
636 //当点击“无需测量”,该列输入框不可编辑 661 //当点击“无需测量”,该列输入框不可编辑
637 common.sizeInfo.check(); 662 common.sizeInfo.check();