Merge branch 'dev_比价跟价0329' into gray
Showing
1 changed file
with
9 additions
and
3 deletions
@@ -75,10 +75,16 @@ if (window.NETSALEDATA) { | @@ -75,10 +75,16 @@ if (window.NETSALEDATA) { | ||
75 | }); | 75 | }); |
76 | 76 | ||
77 | $('input[name=linkExistFlag]').on('change', function() { linkExistFlag = $("#taobaoUrl").val(); }); | 77 | $('input[name=linkExistFlag]').on('change', function() { linkExistFlag = $("#taobaoUrl").val(); }); |
78 | - $("#taobaoUrl").on('change', function() { taobaoUrl = $("#taobaoUrl").val(); }); | ||
79 | - $("#tmallUrl").on('change', function() { tmallUrl = $("#tmallUrl").val(); }); | ||
80 | - $("#jdUrl").on('change', function() { jdUrl = $("#jdUrl").val(); }); | 78 | + $("#taobaoUrl").on('change', function() { taobaoUrl = $("#taobaoUrl").val(); }); |
79 | + $("#tmallUrl").on('change', function() { tmallUrl = $("#tmallUrl").val(); }); | ||
80 | + $("#jdUrl").on('change', function() { jdUrl = $("#jdUrl").val(); }); | ||
81 | $("#save-urlList").on('click', function() { | 81 | $("#save-urlList").on('click', function() { |
82 | + if(taobaoUrl!="") | ||
83 | + if(taobaoUrl.indexOf("item.taobao.com")!=0 && taobaoUrl.indexOf("http:\\item.taobao.com")!=0 && taobaoUrl.indexOf("https:\\item.taobao.com")!=0) {util.__tip("淘宝URL不正确!");return false;} | ||
84 | + if(tmallUrl!="") | ||
85 | + if(tmallUrl.indexOf("detail.tmall.com")!=0 && tmallUrl.indexOf("http:\\detail.tmall.com")!=0 && tmallUrl.indexOf("https:\\detail.tmall.com")!=0 && tmallUrl.indexOf("item.tmall.com")!=0 && tmallUrl.indexOf("http:\\item.tmall.com")!=0 && tmallUrl.indexOf("https:\\item.tmall.com")!=0) {util.__tip("天猫URL不正确!");return false;} | ||
86 | + if(jdUrl!="") | ||
87 | + if(jdUrl.indexOf("item.jd.com")!=0 && jdUrl.indexOf("http:\\item.jd.com")!=0 && jdUrl.indexOf("https:\\item.jd.com")!=0) {util.__tip("京东URL不正确!");return false;} | ||
82 | common.util.__ajax({ | 88 | common.util.__ajax({ |
83 | url: '/netSale/saveProductUrlList', | 89 | url: '/netSale/saveProductUrlList', |
84 | data: { | 90 | data: { |
-
Please register or login to post a comment