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) }