From e37e45cfe1123928dba5d9c5a427b0ee497b7ad6 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期二, 23 八月 2022 03:21:32 +0800 Subject: [PATCH] 修复算法配置的字段内容 --- src/views/index/components/commendContent.vue | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/index/components/commendContent.vue b/src/views/index/components/commendContent.vue index c0f8693..c8c5991 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 limitoRow2">{{ item.description }}</div> - <price :priceNew="item.priceBase"></price> - <div class="button" @click="buyProduct(item.productName)">绔嬪嵆璐拱</div> + <div class="des limitRow2">{{ item.description }}</div> + <price :priceNew="item.priceBase ? item.priceBase : 0"></price> + <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