...
|
...
|
@@ -30,8 +30,8 @@ var $subNav = $('.home-sub-nav'), |
|
|
$ngc = $($goodsChildren.get(0)),
|
|
|
$pgc = $($goodsChildren.get(1)),
|
|
|
$dgc = $($goodsChildren.get(2)),
|
|
|
$shopId = $('input[name="shop_id"]').val(),
|
|
|
$appVersion = $('input[name="app_version"]').val();
|
|
|
shopId = $('input[name="shop_id"]').val(),
|
|
|
appVersion = $('input[name="app_version"]').val();
|
|
|
|
|
|
var winH = $(window).height(),
|
|
|
noResult = '<p class="no-result">未找到相关搜索结果</p>';
|
...
|
...
|
@@ -135,7 +135,7 @@ function newData(callback) { |
|
|
type: 'newest',
|
|
|
order: '1',
|
|
|
page: navInfo.new.page,
|
|
|
shop_id: $shopId
|
|
|
shop_id: shopId
|
|
|
};
|
|
|
req.callBack = function(data) {
|
|
|
$('#new-arrival').append(data);
|
...
|
...
|
@@ -157,7 +157,7 @@ function hotData(callback) { |
|
|
type: 'sales',
|
|
|
order: '1',
|
|
|
page: navInfo.hot.page,
|
|
|
shop_id: $shopId
|
|
|
shop_id: shopId
|
|
|
};
|
|
|
req.callBack = function(data) {
|
|
|
$('#popularity').append(data);
|
...
|
...
|
@@ -496,7 +496,9 @@ function search(opt) { |
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: '/product/newsale/filter',
|
|
|
data: defaultOpt,
|
|
|
data: {
|
|
|
shop_id: shopId
|
|
|
},
|
|
|
success: function(data) {
|
|
|
$goodsContainer.append(data);
|
|
|
|
...
|
...
|
@@ -623,7 +625,7 @@ $subNav.on('touchend touchcancel', function(e) { |
|
|
if (nav.reload) {
|
|
|
search({
|
|
|
type: 'shop_id',
|
|
|
id: $shopId,
|
|
|
id: shopId,
|
|
|
url: '/index/search/search',
|
|
|
nextPage: false
|
|
|
});
|
...
|
...
|
@@ -643,7 +645,7 @@ function scrollHandler() { |
|
|
if ($pre !== undefined) {
|
|
|
search({
|
|
|
type: 'shop_id',
|
|
|
id: $shopId,
|
|
|
id: shopId,
|
|
|
url: '/index/search/search',
|
|
|
nextPage: true
|
|
|
});
|
...
|
...
|
@@ -659,7 +661,7 @@ $(window).scroll(function() { |
|
|
//初始请求最新第一页数据
|
|
|
search({
|
|
|
type: 'shop_id',
|
|
|
id: $shopId,
|
|
|
id: shopId,
|
|
|
url: '/index/search/search',
|
|
|
nextPage: false
|
|
|
});
|
...
|
...
|
@@ -756,8 +758,8 @@ function collectShop() { |
|
|
|
|
|
qew.url = '/product/index/shopFav';
|
|
|
qew.data = {
|
|
|
shop_id: $shopId,
|
|
|
app_version: $appVersion
|
|
|
shop_id: shopId,
|
|
|
app_version: appVersion
|
|
|
};
|
|
|
postCollect(qew);
|
|
|
}
|
...
|
...
|
@@ -767,8 +769,8 @@ function cancelShop() { |
|
|
|
|
|
qew.url = '/product/index/cancelShopFav';
|
|
|
qew.data = {
|
|
|
shop_id: $shopId,
|
|
|
app_version: $appVersion
|
|
|
shop_id: shopId,
|
|
|
app_version: appVersion
|
|
|
};
|
|
|
postCollect(qew);
|
|
|
}
|
...
|
...
|
|