From 3ad5e6df619db267e10ec9435066f143cfd55ae0 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期五, 22 四月 2022 16:30:06 +0800 Subject: [PATCH] login type code --- 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