fix: 🐛 修改店铺详情bug

master
Yer 2023-05-26 16:54:26 +08:00
parent 1c765f37cf
commit 1ef8dd26cf
1 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,6 @@
<div v-else> <div v-else>
<div class="promotion-decorate">{{ cateName }}</div> <div class="promotion-decorate">{{ cateName }}</div>
<div class="goods-list"> <div class="goods-list">
<empty v-if="goodsList.length === 0"/> <empty v-if="goodsList.length === 0"/>
<div <div
v-for="(item, index) in goodsList" v-for="(item, index) in goodsList"
@ -69,8 +68,9 @@
class="goods-show-info" class="goods-show-info"
@click="goGoodsDetail(item.id, item.goodsId)" @click="goGoodsDetail(item.id, item.goodsId)"
> >
<div class="goods-show-img"> <div class="goods-show-img">
<img :src="item.thumbnail" height="220" width="220" alt=""/> <img :src="item.small" height="220" width="220" alt=""/>
</div> </div>
<div class="goods-show-price"> <div class="goods-show-price">
<span> <span>
@ -254,7 +254,7 @@ export default {
goodsList(this.params) goodsList(this.params)
.then((res) => { .then((res) => {
if (res.success) { if (res.success) {
this.goodsList = res.result; this.goodsList = res.result.records;
this.total = res.result.total; this.total = res.result.total;
} }
}) })