|
@@ -177,24 +177,24 @@ console.log($('.leftScWrap .sLC:visible')[0].swper)
|
177
|
177
|
|
178
|
178
|
// 点击增加竹子
|
179
|
179
|
var ifAdd = false;
|
180
|
|
-$('.addLeaf').click(function () {
|
|
180
|
+$('.addLeaf').click(function (e) {
|
|
181
|
+ e.preventDefault();
|
181
|
182
|
if (ifAdd) {
|
182
|
183
|
alert('您已经捐过竹子了,感谢您的支持')
|
183
|
184
|
} else {
|
184
|
185
|
if ($('.loveCon .left .img .leafs').hasClass('cli')) {
|
185
|
186
|
return;
|
186
|
187
|
} else {
|
187
|
|
- $('.addLeaf').css('transform', 'scale(1.08)');
|
188
|
|
- $('.addLeaf').css('-webkit-transform', 'scale(1.08)');
|
|
188
|
+
|
189
|
189
|
$('.loveCon .left .img .leafs').addClass('cli');
|
190
|
190
|
setTimeout(function () {
|
191
|
191
|
$('.loveCon .left .img .leafs').removeClass('cli');
|
192
|
|
- $('.addLeaf').css('transform', 'scale(1)');
|
193
|
|
- $('.addLeaf').css('-webkit-transform', 'scale(1)');
|
|
192
|
+
|
194
|
193
|
}, 2000)
|
195
|
194
|
$('.donateWrap').slideDown();
|
196
|
195
|
statusNum();
|
197
|
196
|
ifAdd = true;
|
|
197
|
+ return false;
|
198
|
198
|
}
|
199
|
199
|
}
|
200
|
200
|
})
|