import React from 'react'; import './index.less'; import Assets from '@src/components/Assets'; import Page from '@src/containers/Page'; import { getMap, formatMoney } from '@src/services/Tools'; import Footer from '../../../components/Footer'; import { FaqModal, FinishModal } from '../../../components/OtherModal'; import { CommentFalls, AnswerCarousel, Consultation, Contact } from '../../../components/Other'; import Button from '../../../components/Button'; import { User } from '../../../stores/user'; import { Main } from '../../../stores/main'; import { Course } from '../../../stores/course'; import { ServiceKey, ServiceParamMap } from '../../../../Constant'; import { Order } from '../../../stores/order'; import Video from '../../../components/Video'; export default class extends Page { initState() { return {}; } initData() { Main.getCourseIndex() .then(result => { this.setState({ courseIndex: result }); }); Main.getBase() .then(result => { this.setState({ base: result }); }); Course.listPackage({ isSpecial: true, page: 1, size: 3 }) .then(result => { this.setState({ packages: result.list || [] }); }); Main.listFaq({ page: 1, size: 100, channel: 'course-index' }).then(result => { this.setState({ faqs: result.list }); }); Main.listComment({ page: 1, size: 100, channel: 'course-index' }).then(result => { this.setState({ comments: result.list }); }); } renderView() { const { courseIndex = {}, base = {}, packages = [], faqs = [], comments = [], showFaq, faq = {}, showFinish } = this.state; return (