Browse Source

修改点击竹子bug

zdd 6 years ago
parent
commit
034d7f64f7

+ 1 - 1
CZKJ.GBRS2.WebMVC/Views/Home/Index.cshtml

@@ -208,7 +208,7 @@
208 208
                     马上行动吧!喂养“国国”宝宝“啦点击
209 209
                     捐竹子已有300万网友赠送竹子喽!
210 210
                 </p>
211
-                <button class="addLeaf">点击捐竹子<img class="hand" src="/assets/homeImg/hand.png" alt=""></button>
211
+                <a class="addLeaf">点击捐竹子<img class="hand" src="/assets/homeImg/hand.png" alt=""></a>
212 212
             </div>
213 213
             <div class="con">
214 214
                 <div class="swiper-container" id="videoBanner">

+ 3 - 1
CZKJ.GBRS2.WebMVC/wwwroot/assets/css/base.css

@@ -83,10 +83,12 @@ table {
83 83
   }
84 84
 }
85 85
 
86
+
86 87
 a:hover,
87 88
 a:active,
88 89
 a:focus {
89
-  text-decoration: none;
90
+    text-decoration: none;
91
+    color: inherit;
90 92
 }
91 93
 
92 94
 input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {

+ 2 - 2
CZKJ.GBRS2.WebMVC/wwwroot/assets/css/newsIndex.css

@@ -1447,7 +1447,7 @@ textarea::-webkit-input-placeholder {
1447 1447
     margin-top: 115%;
1448 1448
 }
1449 1449
 
1450
-.loveCon .left button {
1450
+.loveCon .left a {
1451 1451
     font-size: 16px;
1452 1452
     color: white;
1453 1453
     width: 107px;
@@ -1459,7 +1459,7 @@ textarea::-webkit-input-placeholder {
1459 1459
     border: none;
1460 1460
     margin: 12% auto 0;
1461 1461
     display: block;
1462
-    cursor: pointer;
1462
+    text-align:center;
1463 1463
 }
1464 1464
 
1465 1465
 .loveCon .left .hand {

+ 5 - 5
CZKJ.GBRS2.WebMVC/wwwroot/assets/js/newIndex.js

@@ -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
 })