|
|
@ -243,7 +243,7 @@ import { ApiPutAddCart } from "@/plugins/api/cart";
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
ApiGetGoodsDetail,
|
|
|
|
ApiGetGoodsDetail,
|
|
|
|
ApiGetGoodsSkus,
|
|
|
|
ApiGetGoodsSkus,
|
|
|
|
ApiGetRecommendedGoodsList,
|
|
|
|
ApiGetGoodsList,
|
|
|
|
} from "@/plugins/api/goods";
|
|
|
|
} from "@/plugins/api/goods";
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
componetns: { UiMoney, UiButton, UiGoodsItem, BsChosen },
|
|
|
|
componetns: { UiMoney, UiButton, UiGoodsItem, BsChosen },
|
|
|
@ -271,10 +271,16 @@ export default {
|
|
|
|
let id = this.$route.params.id;
|
|
|
|
let id = this.$route.params.id;
|
|
|
|
let res1 = await ApiGetGoodsDetail({ id });
|
|
|
|
let res1 = await ApiGetGoodsDetail({ id });
|
|
|
|
let res2 = await ApiGetGoodsSkus({ productId: 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.detailData = res1.result;
|
|
|
|
vm.skuData = res2.result;
|
|
|
|
vm.skuData = res2.result;
|
|
|
|
vm.recommendedData = res3.result;
|
|
|
|
vm.recommendedData = res3.result.records;
|
|
|
|
vm.pageLoading = false;
|
|
|
|
vm.pageLoading = false;
|
|
|
|
if (
|
|
|
|
if (
|
|
|
|
vm.detailData.productActivityVO.isActivity &&
|
|
|
|
vm.detailData.productActivityVO.isActivity &&
|
|
|
|