| | |
| | | <div class="trialCenter"> |
| | | <IndexHeader></IndexHeader> |
| | | <Banner></Banner> |
| | | <commendCard :commendCardData="commendCardData"></commendCard> |
| | | <SdkList></SdkList> |
| | | <ProductForm></ProductForm> |
| | | <commendCard ref="commendCard" :total="total"></commendCard> |
| | | <SdkList :freeSdk="freeSdk"></SdkList> |
| | | <ProductForm :freeProd="freeProd"></ProductForm> |
| | | <Connect></Connect> |
| | | <Footer :isBlack="true"></Footer> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getFreeList } from "@/api/product"; |
| | | |
| | | import IndexHeader from "@/components/IndexHeader"; |
| | | import Banner from "@/views/trialCenter/components/Banner"; |
| | | import commendCard from "@/views/trialCenter/components/commendCard"; |
| | |
| | | import Footer from "@/components/Footer"; |
| | | |
| | | export default { |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | | data() { |
| | | return { |
| | | commendCardData: [ |
| | | { |
| | | img: "/images/trialCenter/累计注册用户.png", |
| | | count: "10万+", |
| | | des: "累计注册用户", |
| | | }, |
| | | { |
| | | img: "/images/trialCenter/限时试用产品.png", |
| | | count: "10款+", |
| | | des: "限时试用产品", |
| | | }, |
| | | { |
| | | img: "/images/trialCenter/累计服务企业.png", |
| | | count: "800+", |
| | | des: "累计服务企业", |
| | | }, |
| | | { |
| | | img: "/images/trialCenter/免费试用时长.png", |
| | | count: "90天", |
| | | des: "免费试用时长", |
| | | }, |
| | | ], //推荐卡片数据 |
| | | total: {}, |
| | | freeProd: [], |
| | | freeSdk: [], |
| | | }; |
| | | }, |
| | | components: { |
| | |
| | | Footer, |
| | | ProductForm, |
| | | }, |
| | | methods: { |
| | | async getList() { |
| | | const res = await getFreeList(); |
| | | this.total = { |
| | | totalCompany: res.data.totalCompany, |
| | | totalFreeDay: res.data.totalFreeDay, |
| | | totalFreeProd: res.data.totalFreeProd, |
| | | totalUser: res.data.totalUser, |
| | | }; |
| | | this.freeSdk = res.data.freeSdk; |
| | | this.freeProd = res.data.freeProd; |
| | | setTimeout(() => { |
| | | this.$refs["commendCard"].getCount(); |
| | | }, 0); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |