| | |
| | | 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(); |
| | |
| | | methods: { |
| | | getProduct() { |
| | | let param = { |
| | | page: 1, |
| | | size: 1, |
| | | inputText: this.$route.query.name, |
| | | archType: "", |
| | | gpuType: "", |
| | | publishStatus: 1, |
| | | productLabelId: "", |
| | | 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; |
| | | }); |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | color: #666; |
| | | } |
| | | } |
| | | |
| | | .heart { |
| | | min-height: calc(100vh - 210px); |
| | | } |
| | | } |
| | | </style> |