From 89f4e051ca6e9e4fff1f4d1ce640cfe5e93858bb Mon Sep 17 00:00:00 2001 From: Yer <17633066053@163.com> Date: Fri, 28 Apr 2023 10:21:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20=E5=90=8E=E7=AB=AF=E4=BF=AE?= =?UTF-8?q?=E6=94=B9es=E5=95=86=E5=93=81=E8=BF=94=E5=9B=9E=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=AD=97=E6=AE=B5=EF=BC=8C=E5=89=8D=E7=AB=AF=E5=90=8C?= =?UTF-8?q?=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/product/shopPage.vue | 2 +- pages/product/shopPageGoods.vue | 4 ++-- pages/tabbar/home/template/tpl_goods.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/product/shopPage.vue b/pages/product/shopPage.vue index 6c1fe03..b0a0710 100644 --- a/pages/product/shopPage.vue +++ b/pages/product/shopPage.vue @@ -434,7 +434,7 @@ export default { async getGoodsData() { let res = await getGoodsList(this.goodsParams); if (res.data.success) { - this.goodsList.push(...res.data.result.content); + this.goodsList.push(...res.data.result.records); } }, diff --git a/pages/product/shopPageGoods.vue b/pages/product/shopPageGoods.vue index 7780148..f0a2444 100644 --- a/pages/product/shopPageGoods.vue +++ b/pages/product/shopPageGoods.vue @@ -53,7 +53,7 @@ // #TODO let goodsList = await getGoodsList(this.params); if (goodsList.data.success) { - this.goodsList.push(...goodsList.data.result.content); + this.goodsList.push(...goodsList.data.result.records); } }, }, @@ -74,4 +74,4 @@ margin-top: 40rpx; } } - + diff --git a/pages/tabbar/home/template/tpl_goods.vue b/pages/tabbar/home/template/tpl_goods.vue index db0a35e..bc0782c 100644 --- a/pages/tabbar/home/template/tpl_goods.vue +++ b/pages/tabbar/home/template/tpl_goods.vue @@ -145,7 +145,7 @@ export default { const res = await getGoodsList(this.params); if (res.data.success) { this.goodsResult = res.data.result - const result = res.data.result.content.map(item=>item.content) + const result = res.data.result.records this.goodsData.push(...result); console.log(this.goodsData) }