Authored by 郝肖肖

店铺新版路由 ajax

... ... @@ -24,6 +24,7 @@ var loading = require('../../plugin/loading');
var $goodsContainer = $('#goods-container'),
$defaultgc = $goodsContainer.children('.default-goods'),
$sgc = $goodsContainer.children('.sale-goods'),
$ngc = $goodsContainer.children('.new-goods'),
$pgc = $goodsContainer.children('.price-goods'),
$dgc = $goodsContainer.children('.discount-goods'),
... ... @@ -84,7 +85,7 @@ ellipsis.init();
(function() {
if ($('.domain').val()) {
$.ajax({
url: '/product/new/brandFav',
url: '/product/index/brandFav',
data: {
brandId: defaultOpt.brand
},
... ... @@ -101,7 +102,7 @@ ellipsis.init();
});
} else if ($('.shopId').val().length > 0) {
$.ajax({
url: '/product/new/baseShopFav',
url: '/product/index/baseShopFav',
data: {
shopId: $('.shopId').val()
},
... ... @@ -408,7 +409,7 @@ function search(opt) {
} else {
if (nav.reload) {
var goodList = [];
var jqEles = $(data).each(function(i, goodInfo) {
$(data).each(function(i, goodInfo) {
if ($(goodInfo).hasClass('good-info')) {
goodList.push(goodInfo);
}
... ...