import React from 'react'; import './index.less'; import Assets from '@src/components/Assets'; import Page from '@src/containers/Page'; import { getMap } from '@src/services/Tools'; import Button from '../../../components/Button'; import { SingleItem } from '../../../components/Item'; import Footer from '../../../components/Footer'; import { Contact } from '../../../components/Other'; import { Main } from '../../../stores/main'; import { Course } from '../../../stores/course'; import { ServiceKey, ServiceParamMap } from '../../../../Constant'; const serviceIconMap = { textbook: 'mokao', vip: 'VIP_1', qx_cat: 'jijing', }; export default class extends Page { constructor(props) { props.size = 10; super(props); } init() { Main.getBase() .then(result => { this.setState({ base: result }); }); } initData() { const { id } = this.params; Course.getPackage(id) .then(result => { this.setState({ data: result }); }); } renderView() { const { data = {}, base = {} } = this.state; return (