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/rightColumn.vue | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/views/index/components/rightColumn.vue b/src/views/index/components/rightColumn.vue index 8bd0397..7318ed1 100644 --- a/src/views/index/components/rightColumn.vue +++ b/src/views/index/components/rightColumn.vue @@ -14,7 +14,7 @@ </li> </ul> <price :priceNew="item.priceBase"></price> - <div class="button">绔嬪嵆璐拱</div> + <div class="button" @click="buyProduct(item.modelName)">绔嬪嵆璐拱</div> </div> </div> </template> @@ -43,6 +43,16 @@ this.product = this.data.product; } }, + methods: { + buyProduct(modelName) { + this.$router.push({ + path: "/productDetail", + query: { + name: modelName, + }, + }); + }, + }, }; </script> -- Gitblit v1.8.0