Authored by zhangxiaoru

shop

... ... @@ -98,7 +98,6 @@ function shopListData(tabName, stoping) {
var opt,
$this = $(this),
fansCount = $this.parent().find('.fans-count').html();
console.log(fansCount)
shopId = $this.parents('.shop-info').data('id');
... ... @@ -133,13 +132,13 @@ function shopListData(tabName, stoping) {
if ($this.hasClass('already-collect')) {
$this.removeClass('already-collect');
tip.show('店铺取消收藏成功');
if(fansCount.indexOf('w') === -1) {
if (fansCount.indexOf('w') === -1) {
$this.parent().find('.fans-count').html(parseInt(fansCount) - 1);
}
} else {
$this.addClass('already-collect');
tip.show('店铺收藏成功');
if(fansCount.indexOf('w') === -1) {
if (fansCount.indexOf('w') === -1) {
$this.parent().find('.fans-count').html(parseInt(fansCount) + 1);
}
}
... ... @@ -211,8 +210,6 @@ function shopNavData() {
shopListData($('.shop-nav').find('li').eq(0).data('type'));
}
console.log($('.shop-nav').length);
// 导航点击事件
$('.shop-nav').find('li').on('click', function() {
var $this = $(this),
... ... @@ -231,7 +228,6 @@ function shopNavData() {
},
error: function() {
console.log('123');
// tip.show('网络断开连接了~');
$('.shop-nav').hide();
... ...
... ... @@ -106,7 +106,7 @@
.shop-name {
font-weight: bold;
font-size: 24px;
font-size: 26px;
height: 35px;
}
... ... @@ -114,7 +114,7 @@
color: #b0b0b0;
font-size: 22px;
position: relative;
bottom: -3px;
bottom: -7px;
}
}
... ...