...
|
...
|
@@ -96,7 +96,8 @@ function shopListData(tabName, stoping) { |
|
|
// 店铺收藏
|
|
|
$('.collect-btn').on('click', function(e) {
|
|
|
var opt,
|
|
|
$this = $(this);
|
|
|
$this = $(this),
|
|
|
fansCount = parseInt($this.parent().find('.fans-count').html());
|
|
|
|
|
|
shopId = $this.parents('.shop-info').data('id');
|
|
|
|
...
|
...
|
@@ -131,9 +132,11 @@ function shopListData(tabName, stoping) { |
|
|
if ($this.hasClass('already-collect')) {
|
|
|
$this.removeClass('already-collect');
|
|
|
tip.show('店铺取消收藏成功');
|
|
|
$this.parent().find('.fans-count').html(fansCount - 1);
|
|
|
} else {
|
|
|
$this.addClass('already-collect');
|
|
|
tip.show('店铺收藏成功');
|
|
|
$this.parent().find('.fans-count').html(fansCount + 1);
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|