Merge branch 'dev_比价跟价0329' into gray
Showing
1 changed file
with
6 additions
and
0 deletions
@@ -79,6 +79,12 @@ if (window.NETSALEDATA) { | @@ -79,6 +79,12 @@ if (window.NETSALEDATA) { | ||
79 | $("#tmallUrl").on('change', function() { tmallUrl = $("#tmallUrl").val(); }); | 79 | $("#tmallUrl").on('change', function() { tmallUrl = $("#tmallUrl").val(); }); |
80 | $("#jdUrl").on('change', function() { jdUrl = $("#jdUrl").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