From 1bc1a46999ef9f712d69657ba93da16b7463394d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=BE=81?= Date: Tue, 17 May 2022 16:43:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E7=9C=8B=E4=BA=86?= =?UTF-8?q?=E5=8F=88=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods/detail/_id.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pages/goods/detail/_id.vue b/pages/goods/detail/_id.vue index 48f70ea..60a138b 100644 --- a/pages/goods/detail/_id.vue +++ b/pages/goods/detail/_id.vue @@ -243,7 +243,7 @@ import { ApiPutAddCart } from "@/plugins/api/cart"; import { ApiGetGoodsDetail, ApiGetGoodsSkus, - ApiGetRecommendedGoodsList, + ApiGetGoodsList, } from "@/plugins/api/goods"; export default { componetns: { UiMoney, UiButton, UiGoodsItem, BsChosen }, @@ -271,10 +271,16 @@ export default { let id = this.$route.params.id; let res1 = await ApiGetGoodsDetail({ id }); let res2 = await ApiGetGoodsSkus({ productId: id }); - let res3 = await ApiGetRecommendedGoodsList(); + let res3 = await ApiGetGoodsList({ + length: 3, + pageIndex: 1, + name: "", + categoryId: "", + order: "", + }); vm.detailData = res1.result; vm.skuData = res2.result; - vm.recommendedData = res3.result; + vm.recommendedData = res3.result.records; vm.pageLoading = false; if ( vm.detailData.productActivityVO.isActivity &&