...
|
...
|
@@ -16,7 +16,8 @@ class Group extends Page { |
|
|
floorsContentHeight: $('.floors').height(),
|
|
|
groupTab: $('.group-tab'),
|
|
|
filterTab: $('.filter-nav'),
|
|
|
groupListContent: $('.goods-list')
|
|
|
groupListContent: $('.goods-list'),
|
|
|
resourceList: $('.resource-collage-buy-prd-list')
|
|
|
};
|
|
|
this.navInfo = {
|
|
|
new: {
|
...
|
...
|
@@ -122,6 +123,7 @@ class Group extends Page { |
|
|
this.selector.groupTab.on('click', this.groupTabChange.bind(this));
|
|
|
this.selector.filterTab.on('click', 'li', this.filterTabChange.bind(this));
|
|
|
this.selector.groupListContent.on('click', '.group-product-cell', this.checkDetail.bind(this));
|
|
|
this.selector.resourceList.on('click', '.product-item', this.checkDetail.bind(this));
|
|
|
}
|
|
|
fixedTab() {
|
|
|
let listHeight = this.selector.groupListContent.height();
|
...
|
...
|
@@ -143,7 +145,7 @@ class Group extends Page { |
|
|
|
|
|
console.log(productSkn, activityId);
|
|
|
|
|
|
window.location.href = `/activity/group/goodsDetail?activityId=${activityId}&productSkn=${productSkn}`;
|
|
|
window.location.href = `/activity/group/detail?activityId=${activityId}&productSkn=${productSkn}`;
|
|
|
}
|
|
|
|
|
|
// 筛选tab切换
|
...
|
...
|
@@ -234,11 +236,9 @@ class Group extends Page { |
|
|
}
|
|
|
}
|
|
|
|
|
|
console.log(navInfo, 'filterTab', filterTab);
|
|
|
this.selector.filterTab.children('li').removeClass('active');
|
|
|
filterTab.$pre.addClass('active');
|
|
|
|
|
|
|
|
|
// 价格筛选状态设置
|
|
|
if (filterTab.$pre.hasClass('price')) {
|
|
|
navInfo.price.order = filterTab.order;
|
...
|
...
|
@@ -341,11 +341,7 @@ class Group extends Page { |
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: '/activity/group/search',
|
|
|
data: {
|
|
|
...params,
|
|
|
...pageParams,
|
|
|
page
|
|
|
},
|
|
|
data: searchParams,
|
|
|
async: false,
|
|
|
beforeSend: () => {
|
|
|
let cacheData = cacheStore.get(catchKey);
|
...
|
...
|
|