From bd6b0405a89e66f80ca777599b035d4ea7f3ea6a Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期二, 23 八月 2022 23:09:19 +0800 Subject: [PATCH] 隐藏主页和大屏菜单页 --- src/views/productDetail/index.vue | 18 ++++++++---------- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/views/productDetail/index.vue b/src/views/productDetail/index.vue index 9523177..654af17 100644 --- a/src/views/productDetail/index.vue +++ b/src/views/productDetail/index.vue @@ -27,7 +27,7 @@ import PayCard from "@/views/productDetail/components/PayCard"; import Footer from "@/components/Footer"; import Function from "@/views/productDetail/components/Function"; -import { findAllCenterProduct } from "@/api/product"; +import { getProductById } from "@/api/product"; export default { created() { this.getProduct(); @@ -49,16 +49,10 @@ methods: { getProduct() { let param = { - page: 1, - size: 1, - inputText: this.$route.query.name, - archType: "", - gpuType: "", - publishStatus: 1, - productType: 0, + id: this.$route.query.id, }; - findAllCenterProduct(param).then((res) => { - this.data.data = res.data.list[0]; + getProductById(param).then((res) => { + this.data.data = res.data; this.showData = true; }); }, @@ -78,5 +72,9 @@ color: #666; } } + + .heart { + min-height: calc(100vh - 210px); + } } </style> \ No newline at end of file -- Gitblit v1.8.0