From b200eed05d5bff2e12a45331bdc062f4b00bebf7 Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期四, 28 七月 2022 10:20:51 +0800 Subject: [PATCH] 列表样式 --- src/views/index/components/commendContent.vue | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/index/components/commendContent.vue b/src/views/index/components/commendContent.vue index 42c45dc..5e32f21 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="'/httpImage/' + item.logoUrl" alt="" /> + <ImageShow :src="item.logoUrl"> </ImageShow> <div class="title">{{ item.productName }}</div> <div class="des limitRow2">{{ item.description }}</div> <price :priceNew="item.priceBase ? item.priceBase : 0"></price> - <div class="button" @click="buyProduct(item.productName)">绔嬪嵆璐拱</div> + <div class="button" @click="buyProduct(item.id)">绔嬪嵆璐拱</div> </div> </div> </template> @@ -33,11 +33,11 @@ refresh() { this.$emit("refresh"); }, - buyProduct(productName) { + buyProduct(id) { this.$router.push({ path: "/productDetail", query: { - name: productName, + id: id, }, }); }, -- Gitblit v1.8.0