Authored by 马力

Merge branch 'dev_竞价优化'

@@ -409,7 +409,8 @@ module.exports={ @@ -409,7 +409,8 @@ module.exports={
409 {name: 'productSkn', type: 'number'}, 409 {name: 'productSkn', type: 'number'},
410 {name: 'taobaoUrl', type: 'string'}, 410 {name: 'taobaoUrl', type: 'string'},
411 {name: 'tmallUrl', type: 'string'}, 411 {name: 'tmallUrl', type: 'string'},
412 - {name: 'jdUrl', type: 'string'} 412 + {name: 'jdUrl', type: 'string'},
  413 + {name: 'linkExistFlag', type: 'number'}
413 ] 414 ]
414 }, 415 },
415 synChannelProduct:{ 416 synChannelProduct:{
@@ -87,6 +87,14 @@ @@ -87,6 +87,14 @@
87 <button class="btn btn-primary" id="save-taobaoUrl">立即比价</button> 87 <button class="btn btn-primary" id="save-taobaoUrl">立即比价</button>
88 </div> 88 </div>
89 </div> 89 </div>
  90 + <div class="form-group linkExistFlagDiv">
  91 + <label class="col-sm-1 control-label height40">竞价:</label>
  92 + <div class="col-sm-11" style="padding-top: 18px;">
  93 + <label><input type="radio" value="1" name="linkExistFlag" />有竞价</label>
  94 + <label><input type="radio" value="0" name="linkExistFlag" />无竞价</label>
  95 + <input type="hidden" id="linkExistFlag" value="" for="radio" />
  96 + </div>
  97 + </div>
90 </div> 98 </div>
91 99
92 <div class="panel-footer" style="display: none;"> 100 <div class="panel-footer" style="display: none;">
@@ -63,6 +63,18 @@ if (window.NETSALEDATA) { @@ -63,6 +63,18 @@ if (window.NETSALEDATA) {
63 $("#taobaoUrl").val(taobaoUrl); 63 $("#taobaoUrl").val(taobaoUrl);
64 $("#tmallUrl").val(tmallUrl); 64 $("#tmallUrl").val(tmallUrl);
65 $("#jdUrl").val(jdUrl); 65 $("#jdUrl").val(jdUrl);
  66 + var linkExistFlag = window.NETSALEDATA.productUrlBo.linkExistFlag;
  67 + $(":radio[name=linkExistFlag]").each(function(){
  68 + if(linkExistFlag == $(this).val()){
  69 + $(this).prop("checked",true);
  70 + }
  71 + });
  72 +
  73 + $(document).on("change",":radio[name=linkExistFlag]",function(){
  74 + $("#linkExistFlag").val($(this).val());
  75 + });
  76 +
  77 + $('input[name=linkExistFlag]').on('change', function() { linkExistFlag = $("#taobaoUrl").val(); });
66 $("#taobaoUrl").on('change', function() { taobaoUrl = $("#taobaoUrl").val(); }); 78 $("#taobaoUrl").on('change', function() { taobaoUrl = $("#taobaoUrl").val(); });
67 $("#tmallUrl").on('change', function() { tmallUrl = $("#tmallUrl").val(); }); 79 $("#tmallUrl").on('change', function() { tmallUrl = $("#tmallUrl").val(); });
68 $("#jdUrl").on('change', function() { jdUrl = $("#jdUrl").val(); }); 80 $("#jdUrl").on('change', function() { jdUrl = $("#jdUrl").val(); });
@@ -73,7 +85,8 @@ if (window.NETSALEDATA) { @@ -73,7 +85,8 @@ if (window.NETSALEDATA) {
73 productSkn: window.NETSALEDATA.baseProductInfo.baseProduct.productSkn, 85 productSkn: window.NETSALEDATA.baseProductInfo.baseProduct.productSkn,
74 taobaoUrl: taobaoUrl, 86 taobaoUrl: taobaoUrl,
75 tmallUrl : tmallUrl, 87 tmallUrl : tmallUrl,
76 - jdUrl : jdUrl 88 + jdUrl : jdUrl,
  89 + linkExistFlag : $("#linkExistFlag").val()
77 } 90 }
78 }); 91 });
79 return false; 92 return false;