...
|
...
|
@@ -32,7 +32,8 @@ var $subNav = $('.home-sub-nav'), |
|
|
$dgc = $($goodsChildren.get(2)),
|
|
|
shopId = $('input[name="shop_id"]').val(),
|
|
|
appVersion = $('input[name="app_version"]').val(),
|
|
|
brand = $('input[name="brand"]').val();
|
|
|
brand = $('input[name="brand"]').val(),
|
|
|
favId = $('input[name="favId"]').val();
|
|
|
|
|
|
var winH = $(window).height(),
|
|
|
noResult = '<p class="no-result">未找到相关搜索结果</p>';
|
...
|
...
|
@@ -147,10 +148,10 @@ function getPageGoods(info) { |
|
|
function getParam(req) {
|
|
|
if (brand) {
|
|
|
req.data.brand = brand;
|
|
|
} else {
|
|
|
if (shopId) {
|
|
|
req.data.shop_id = shopId;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (shopId) {
|
|
|
req.data.shop_id = shopId;
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -466,10 +467,9 @@ function search(opt) { |
|
|
|
|
|
if (brand) {
|
|
|
setting.brand = brand;
|
|
|
} else {
|
|
|
if (shopId) {
|
|
|
setting.shop_id = shopId;
|
|
|
}
|
|
|
}
|
|
|
if (shopId) {
|
|
|
setting.shop_id = shopId;
|
|
|
}
|
|
|
|
|
|
searching = true;
|
...
|
...
|
@@ -822,7 +822,7 @@ function collectShop() { |
|
|
|
|
|
qew.url = '/product/index/shopFav';
|
|
|
qew.data = {
|
|
|
shop_id: shopId,
|
|
|
shop_id: favId ? favId : shopId,
|
|
|
app_version: appVersion
|
|
|
};
|
|
|
postCollect(qew);
|
...
|
...
|
@@ -833,7 +833,7 @@ function cancelShop() { |
|
|
|
|
|
qew.url = '/product/index/cancelShopFav';
|
|
|
qew.data = {
|
|
|
shop_id: shopId,
|
|
|
shop_id: favId ? favId : shopId,
|
|
|
app_version: appVersion
|
|
|
};
|
|
|
postCollect(qew);
|
...
|
...
|
|