Authored by yyq

fix jsonp url

@@ -40,7 +40,7 @@ function actionSubscription() { @@ -40,7 +40,7 @@ function actionSubscription() {
40 if (email !== '' && emailReg.test(email)) { 40 if (email !== '' && emailReg.test(email)) {
41 try { 41 try {
42 $.ajax({ 42 $.ajax({
43 - url: '//new.yohobuy.com/common/emailsubscriber', 43 + url: '//www.yohobuy.com/common/emailsubscriber',
44 dataType: 'jsonp', 44 dataType: 'jsonp',
45 data: { 45 data: {
46 email: email, 46 email: email,
@@ -235,7 +235,7 @@ function getBannerAndNotice() { @@ -235,7 +235,7 @@ function getBannerAndNotice() {
235 code = bannerMap[UNIQUEBRAND + cookieMap._Channel]; 235 code = bannerMap[UNIQUEBRAND + cookieMap._Channel];
236 } 236 }
237 237
238 - $.getJSON('//new.yohobuy.com/common/getbanner?callback=?', { 238 + $.getJSON('//www.yohobuy.com/common/getbanner?callback=?', {
239 client_type: 'web', 239 client_type: 'web',
240 content_code: code 240 content_code: code
241 }, function(JsonData) { 241 }, function(JsonData) {
@@ -790,7 +790,7 @@ $subNav.on({ @@ -790,7 +790,7 @@ $subNav.on({
790 param.width = 337; 790 param.width = 337;
791 param.height = 250; 791 param.height = 250;
792 param._ = new Date(); 792 param._ = new Date();
793 - $.getJSON('//new.yohobuy.com/common/getbanner?callback=?', param, function(JsonData) { 793 + $.getJSON('//www.yohobuy.com/common/getbanner?callback=?', param, function(JsonData) {
794 if (JsonData.code === 200) { 794 if (JsonData.code === 200) {
795 $show.addClass('show'); 795 $show.addClass('show');
796 $show.find('img').attr('src', JsonData.data.src); 796 $show.find('img').attr('src', JsonData.data.src);
@@ -966,7 +966,7 @@ function searchSuggestHistory() { @@ -966,7 +966,7 @@ function searchSuggestHistory() {
966 $searchKey.attr('alt', false); 966 $searchKey.attr('alt', false);
967 } 967 }
968 968
969 - $.getJSON('//search.yohobuy.com/product/search/history?callback=?', param, function(jsonData) { 969 + $.getJSON('//www.yohobuy.com/product/search/history?callback=?', param, function(jsonData) {
970 970
971 if ($searchKey.val() === '') { 971 if ($searchKey.val() === '') {
972 972