Authored by 郝肖肖

search url

... ... @@ -300,7 +300,7 @@ function search(opt) {
$.ajax({
type: 'GET',
url: '/index/search/search',
url: location.protocol + '//m.yohobuy.com/index/search/search',
data: setting,
success: function(data) {
var noResult = '<p class="no-result">未找到相关搜索结果</p>',
... ...
... ... @@ -180,7 +180,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',
... ... @@ -205,7 +205,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',
... ... @@ -333,7 +333,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
});
}
... ... @@ -504,7 +504,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) {
... ... @@ -820,7 +820,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
});
}
... ...