From abe3a86c15105f215992d78bcaaf9b51efa1d565 Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期四, 28 七月 2022 10:22:41 +0800 Subject: [PATCH] 解决冲突 --- src/views/productDetail/index.vue | 32 ++++++++++---------------------- 1 files changed, 10 insertions(+), 22 deletions(-) diff --git a/src/views/productDetail/index.vue b/src/views/productDetail/index.vue index 28ba0de..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,28 +49,12 @@ 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]; - this.showData = true; - }) - .catch((err) => { - console.log(err); - this.$notify({ - type: "error", - message: "鏌ヨ浜у搧澶辫触", - duration: 2500, - offset: 57, - }); - }); + getProductById(param).then((res) => { + this.data.data = res.data; + this.showData = true; + }); }, }, }; @@ -88,5 +72,9 @@ color: #666; } } + + .heart { + min-height: calc(100vh - 210px); + } } </style> \ No newline at end of file -- Gitblit v1.8.0