panmeiyu 3 years ago
parent
commit
6cd438e458
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/views/Home.vue

+ 4 - 2
src/views/Home.vue

@@ -143,8 +143,8 @@
                     </ul>
                   </div>
                 </div>
-                <a href="javascript:;" class="preBtn"></a>
-                <a href="javascript:;" class="nextBtn"></a>
+                <a href="javascript:;" class="preBtn" @click="gotoPre()"></a>
+                <a href="javascript:;" class="nextBtn" @click="gotoNext()"></a>
               </div>
             </div>
           </div>
@@ -1024,6 +1024,8 @@ export default {
       _i.isclick = true;
       this.currentHero = _i.detailImg;
     },
+    gotoPre(){},
+    gotoNext(){},
   },
   beforeDestroy() {
     window.removeEventListener("scroll", this.toggleBodyClass);