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/commendContent.vue |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/views/index/components/commendContent.vue b/src/views/index/components/commendContent.vue
index 3c3b324..c0f8693 100644
--- a/src/views/index/components/commendContent.vue
+++ b/src/views/index/components/commendContent.vue
@@ -8,11 +8,11 @@
       v-for="(item, index) in commendData"
       :key="index"
     >
-      <img :src="'http:/' + item.logoUrl" alt="" />
+      <img :src="'/httpImage/' + item.logoUrl" alt="" />
       <div class="title">{{ item.productName }}</div>
       <div class="des limitoRow2">{{ item.description }}</div>
       <price :priceNew="item.priceBase"></price>
-      <div class="button">绔嬪嵆璐拱</div>
+      <div class="button" @click="buyProduct(item.productName)">绔嬪嵆璐拱</div>
     </div>
   </div>
 </template>
@@ -33,6 +33,14 @@
     refresh() {
       this.$emit("refresh");
     },
+    buyProduct(productName) {
+      this.$router.push({
+        path: "/productDetail",
+        query: {
+          name: productName,
+        },
+      });
+    },
   },
 };
 </script>

--
Gitblit v1.8.0