From 246772ecc677b15cc9be2fbdd63d50f6216e099f Mon Sep 17 00:00:00 2001
From: ZZJ <zzjdsg2300@163.com>
Date: 星期三, 20 四月 2022 16:18:24 +0800
Subject: [PATCH] 注册登录验证码

---
 src/views/index/components/rightRrid.vue |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/views/index/components/rightRrid.vue b/src/views/index/components/rightRrid.vue
index d1f064b..aa1b5a2 100644
--- a/src/views/index/components/rightRrid.vue
+++ b/src/views/index/components/rightRrid.vue
@@ -9,7 +9,7 @@
         {{ item.description }}
       </div>
       <price :priceNew="item.priceBase"></price>
-      <div class="button">绔嬪嵆璐拱</div>
+      <div class="button" @click="buyProduct(item.modelName)">绔嬪嵆璐拱</div>
     </div>
   </div>
 </template>
@@ -38,6 +38,16 @@
       this.product = this.data.product;
     }
   },
+  methods: {
+    buyProduct(modelName) {
+      this.$router.push({
+        path: "/productDetail",
+        query: {
+          name: modelName,
+        },
+      });
+    },
+  },
 };
 </script>
 

--
Gitblit v1.8.0