Authored by QC-L

添加点击事件

... ... @@ -33,12 +33,12 @@
</div>
<div class="product-name">{{brandName}}</div>
<div class='product-price-wrap'>
<span class='product-people-number'>{{collagedPersonNum}}人团</span>
<span class='product-people-number'>{{joinPeopleNum}}人团</span>
<span class='product-price'>{{formatCollagePrice}}</span>
</div>
{{#if joinPeopleNum}}
{{#if collagedPersonNum}}
<div class="product-price-wrap">
<span class="product-sell-number">已拼{{joinPeopleNum}}</span>
<span class="product-sell-number">已拼{{collagedPersonNum}}</span>
</div>
{{/if}}
</div>
... ...
... ... @@ -20,7 +20,8 @@ class Group extends Page {
groupTab: $('.group-tab'),
filterTab: $('.filter-nav'),
groupListContent: $('.goods-list'),
resourceList: $('.resource-collage-buy-prd-list')
resourceList: $('.resource-collage-buy-prd-list'),
resourceListC: $('.resource-collage-buy-prd-list-c')
};
this.shareData = {
shareImgUrl: $('.group').data('share-img'),
... ... @@ -148,6 +149,7 @@ class Group extends Page {
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));
this.selector.resourceListC.on('click', '.swiper-slide', this.checkDetail.bind(this));
}
fixedTab() {
let listHeight = this.selector.groupListContent.height();
... ...