Authored by 毕凯

店铺首页 请求地址修改

No preview for this file type
@@ -177,7 +177,7 @@ function getParam(req) { @@ -177,7 +177,7 @@ function getParam(req) {
177 function newData(callback) { 177 function newData(callback) {
178 var req = {}; 178 var req = {};
179 179
180 - req.url = '/index/search/search'; 180 + req.url = location.protocol + '//m.yohobuy.com/index/search/search';
181 req.data = { 181 req.data = {
182 type: 'newest', 182 type: 'newest',
183 order: '1', 183 order: '1',
@@ -202,7 +202,7 @@ function newData(callback) { @@ -202,7 +202,7 @@ function newData(callback) {
202 function hotData(callback) { 202 function hotData(callback) {
203 var req = {}; 203 var req = {};
204 204
205 - req.url = '/index/search/search'; 205 + req.url = location.protocol + '//m.yohobuy.com/index/search/search';
206 req.data = { 206 req.data = {
207 type: 'hot', 207 type: 'hot',
208 order: '1', 208 order: '1',
@@ -404,7 +404,7 @@ function search(opt) { @@ -404,7 +404,7 @@ function search(opt) {
404 } 404 }
405 405
406 if (!opt.url) { 406 if (!opt.url) {
407 - opt.url = '/index/search/search'; 407 + opt.url = location.protocol + '//m.yohobuy.com/index/search/search';
408 } 408 }
409 409
410 if (!opt.nextPage) { 410 if (!opt.nextPage) {
@@ -578,7 +578,7 @@ function getQueryString(name) { @@ -578,7 +578,7 @@ function getQueryString(name) {
578 578
579 $.ajax({ 579 $.ajax({
580 type: 'GET', 580 type: 'GET',
581 - url: '/search/filter', 581 + url: location.protocol + '//m.yohobuy.com/search/filter',
582 data: { 582 data: {
583 shop_id: brand ? '' : shopId, 583 shop_id: brand ? '' : shopId,
584 brand: brand, 584 brand: brand,
@@ -728,7 +728,7 @@ $subNav.on('touchend touchcancel', function(e) { @@ -728,7 +728,7 @@ $subNav.on('touchend touchcancel', function(e) {
728 type: 'shop_id', 728 type: 'shop_id',
729 id: shopId, 729 id: shopId,
730 brand: brand, 730 brand: brand,
731 - url: '/index/search/search', 731 + url: location.protocol + '//m.yohobuy.com/index/search/search',
732 nextPage: false 732 nextPage: false
733 }); 733 });
734 } 734 }
@@ -749,7 +749,7 @@ function scrollHandler() { @@ -749,7 +749,7 @@ function scrollHandler() {
749 type: 'shop_id', 749 type: 'shop_id',
750 id: shopId, 750 id: shopId,
751 brand: brand, 751 brand: brand,
752 - url: '/index/search/search', 752 + url: location.protocol + '//m.yohobuy.com/index/search/search',
753 nextPage: true 753 nextPage: true
754 }); 754 });
755 } 755 }
@@ -767,7 +767,7 @@ search({ @@ -767,7 +767,7 @@ search({
767 type: 'shop_id', 767 type: 'shop_id',
768 id: shopId, 768 id: shopId,
769 brand: brand, 769 brand: brand,
770 - url: '/index/search/search', 770 + url: location.protocol + '//m.yohobuy.com/index/search/search',
771 nextPage: false 771 nextPage: false
772 }); 772 });
773 773