Authored by 毕凯

店铺首页 请求地址修改

No preview for this file type
... ... @@ -177,7 +177,7 @@ function getParam(req) {
function newData(callback) {
var req = {};
req.url = '/index/search/search';
req.url = location.protocol + '//m.yohobuy.com/index/search/search';
req.data = {
type: 'newest',
order: '1',
... ... @@ -202,7 +202,7 @@ function newData(callback) {
function hotData(callback) {
var req = {};
req.url = '/index/search/search';
req.url = location.protocol + '//m.yohobuy.com/index/search/search';
req.data = {
type: 'hot',
order: '1',
... ... @@ -404,7 +404,7 @@ function search(opt) {
}
if (!opt.url) {
opt.url = '/index/search/search';
opt.url = location.protocol + '//m.yohobuy.com/index/search/search';
}
if (!opt.nextPage) {
... ... @@ -578,7 +578,7 @@ function getQueryString(name) {
$.ajax({
type: 'GET',
url: '/search/filter',
url: location.protocol + '//m.yohobuy.com/search/filter',
data: {
shop_id: brand ? '' : shopId,
brand: brand,
... ... @@ -728,7 +728,7 @@ $subNav.on('touchend touchcancel', function(e) {
type: 'shop_id',
id: shopId,
brand: brand,
url: '/index/search/search',
url: location.protocol + '//m.yohobuy.com/index/search/search',
nextPage: false
});
}
... ... @@ -749,7 +749,7 @@ function scrollHandler() {
type: 'shop_id',
id: shopId,
brand: brand,
url: '/index/search/search',
url: location.protocol + '//m.yohobuy.com/index/search/search',
nextPage: true
});
}
... ... @@ -767,7 +767,7 @@ search({
type: 'shop_id',
id: shopId,
brand: brand,
url: '/index/search/search',
url: location.protocol + '//m.yohobuy.com/index/search/search',
nextPage: false
});
... ...