Authored by 马力

Merge branch 'dev_竞价优化'

... ... @@ -409,7 +409,8 @@ module.exports={
{name: 'productSkn', type: 'number'},
{name: 'taobaoUrl', type: 'string'},
{name: 'tmallUrl', type: 'string'},
{name: 'jdUrl', type: 'string'}
{name: 'jdUrl', type: 'string'},
{name: 'linkExistFlag', type: 'number'}
]
},
synChannelProduct:{
... ...
... ... @@ -87,6 +87,14 @@
<button class="btn btn-primary" id="save-taobaoUrl">立即比价</button>
</div>
</div>
<div class="form-group linkExistFlagDiv">
<label class="col-sm-1 control-label height40">竞价:</label>
<div class="col-sm-11" style="padding-top: 18px;">
<label><input type="radio" value="1" name="linkExistFlag" />有竞价</label>
<label><input type="radio" value="0" name="linkExistFlag" />无竞价</label>
<input type="hidden" id="linkExistFlag" value="" for="radio" />
</div>
</div>
</div>
<div class="panel-footer" style="display: none;">
... ...
... ... @@ -63,6 +63,18 @@ if (window.NETSALEDATA) {
$("#taobaoUrl").val(taobaoUrl);
$("#tmallUrl").val(tmallUrl);
$("#jdUrl").val(jdUrl);
var linkExistFlag = window.NETSALEDATA.productUrlBo.linkExistFlag;
$(":radio[name=linkExistFlag]").each(function(){
if(linkExistFlag == $(this).val()){
$(this).prop("checked",true);
}
});
$(document).on("change",":radio[name=linkExistFlag]",function(){
$("#linkExistFlag").val($(this).val());
});
$('input[name=linkExistFlag]').on('change', function() { linkExistFlag = $("#taobaoUrl").val(); });
$("#taobaoUrl").on('change', function() { taobaoUrl = $("#taobaoUrl").val(); });
$("#tmallUrl").on('change', function() { tmallUrl = $("#tmallUrl").val(); });
$("#jdUrl").on('change', function() { jdUrl = $("#jdUrl").val(); });
... ... @@ -73,7 +85,8 @@ if (window.NETSALEDATA) {
productSkn: window.NETSALEDATA.baseProductInfo.baseProduct.productSkn,
taobaoUrl: taobaoUrl,
tmallUrl : tmallUrl,
jdUrl : jdUrl
jdUrl : jdUrl,
linkExistFlag : $("#linkExistFlag").val()
}
});
return false;
... ...