From a0b5604fcefa0c7900ecc50830b718f77bba8f39 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期五, 15 七月 2022 14:43:40 +0800 Subject: [PATCH] add cluster pwd --- src/views/index/components/rightColumn.vue | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/views/index/components/rightColumn.vue b/src/views/index/components/rightColumn.vue index 8bd0397..a60fbfb 100644 --- a/src/views/index/components/rightColumn.vue +++ b/src/views/index/components/rightColumn.vue @@ -2,7 +2,7 @@ <div class="rightColumn"> <div class="columnItem" v-for="(item, index) in product" :key="index"> <div class="title"> - <img :src="'/httpImage/' + item.logoUrl" alt="" /> + <ImageShow :src="item.logoUrl"></ImageShow> {{ item.modelName }} </div> <div class="des limitRow2"> @@ -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