From 994e5e08cba4e6b9ce321b7cf5cb1ec8d19dfa22 Mon Sep 17 00:00:00 2001
From: ZZJ <zzjdsg2300@163.com>
Date: 星期二, 12 四月 2022 17:50:21 +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