Authored by zhangxiaoru

shop

@@ -98,7 +98,6 @@ function shopListData(tabName, stoping) { @@ -98,7 +98,6 @@ function shopListData(tabName, stoping) {
98 var opt, 98 var opt,
99 $this = $(this), 99 $this = $(this),
100 fansCount = $this.parent().find('.fans-count').html(); 100 fansCount = $this.parent().find('.fans-count').html();
101 - console.log(fansCount)  
102 101
103 shopId = $this.parents('.shop-info').data('id'); 102 shopId = $this.parents('.shop-info').data('id');
104 103
@@ -133,15 +132,15 @@ function shopListData(tabName, stoping) { @@ -133,15 +132,15 @@ function shopListData(tabName, stoping) {
133 if ($this.hasClass('already-collect')) { 132 if ($this.hasClass('already-collect')) {
134 $this.removeClass('already-collect'); 133 $this.removeClass('already-collect');
135 tip.show('店铺取消收藏成功'); 134 tip.show('店铺取消收藏成功');
136 - if(fansCount.indexOf('w') === -1) { 135 + if (fansCount.indexOf('w') === -1) {
137 $this.parent().find('.fans-count').html(parseInt(fansCount) - 1); 136 $this.parent().find('.fans-count').html(parseInt(fansCount) - 1);
138 - } 137 + }
139 } else { 138 } else {
140 $this.addClass('already-collect'); 139 $this.addClass('already-collect');
141 tip.show('店铺收藏成功'); 140 tip.show('店铺收藏成功');
142 - if(fansCount.indexOf('w') === -1) { 141 + if (fansCount.indexOf('w') === -1) {
143 $this.parent().find('.fans-count').html(parseInt(fansCount) + 1); 142 $this.parent().find('.fans-count').html(parseInt(fansCount) + 1);
144 - } 143 + }
145 } 144 }
146 } 145 }
147 146
@@ -211,8 +210,6 @@ function shopNavData() { @@ -211,8 +210,6 @@ function shopNavData() {
211 shopListData($('.shop-nav').find('li').eq(0).data('type')); 210 shopListData($('.shop-nav').find('li').eq(0).data('type'));
212 } 211 }
213 212
214 - console.log($('.shop-nav').length);  
215 -  
216 // 导航点击事件 213 // 导航点击事件
217 $('.shop-nav').find('li').on('click', function() { 214 $('.shop-nav').find('li').on('click', function() {
218 var $this = $(this), 215 var $this = $(this),
@@ -231,7 +228,6 @@ function shopNavData() { @@ -231,7 +228,6 @@ function shopNavData() {
231 228
232 }, 229 },
233 error: function() { 230 error: function() {
234 - console.log('123');  
235 231
236 // tip.show('网络断开连接了~'); 232 // tip.show('网络断开连接了~');
237 $('.shop-nav').hide(); 233 $('.shop-nav').hide();
@@ -106,7 +106,7 @@ @@ -106,7 +106,7 @@
106 106
107 .shop-name { 107 .shop-name {
108 font-weight: bold; 108 font-weight: bold;
109 - font-size: 24px; 109 + font-size: 26px;
110 height: 35px; 110 height: 35px;
111 } 111 }
112 112
@@ -114,7 +114,7 @@ @@ -114,7 +114,7 @@
114 color: #b0b0b0; 114 color: #b0b0b0;
115 font-size: 22px; 115 font-size: 22px;
116 position: relative; 116 position: relative;
117 - bottom: -3px; 117 + bottom: -7px;
118 } 118 }
119 } 119 }
120 120