| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { logout } from "@/api/login"; |
| | | export default { |
| | | props: { |
| | | commendCardData: { |
| | | type: Array, |
| | | }, |
| | | total: {}, |
| | | }, |
| | | data() { |
| | | return {}; |
| | | return { |
| | | commendCardData: [ |
| | | { |
| | | img: "/images/trialCenter/累计注册用户.png", |
| | | count: "", |
| | | des: "累计注册用户", |
| | | }, |
| | | { |
| | | img: "/images/trialCenter/限时试用产品.png", |
| | | count: "", |
| | | des: "限时试用产品", |
| | | }, |
| | | { |
| | | img: "/images/trialCenter/累计服务企业.png", |
| | | count: "", |
| | | des: "累计服务企业", |
| | | }, |
| | | { |
| | | img: "/images/trialCenter/免费试用时长.png", |
| | | count: "", |
| | | des: "免费试用时长", |
| | | }, |
| | | ], |
| | | }; |
| | | }, |
| | | methods: { |
| | | getCount() { |
| | | this.commendCardData[0].count = this.total.totalUser; |
| | | this.commendCardData[1].count = this.total.totalFreeProd; |
| | | this.commendCardData[2].count = this.total.totalCompany; |
| | | this.commendCardData[3].count = this.total.totalFreeDay; |
| | | console.log(this.commendCardData); |
| | | this.$forceUpdate(); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |