diff --git a/src/pages/index/index.tsx b/src/pages/index/index.tsx index b460b63..fd16fd2 100644 --- a/src/pages/index/index.tsx +++ b/src/pages/index/index.tsx @@ -1,8 +1,9 @@ import { View, Text } from '@tarojs/components'; import { Component, ReactNode } from 'react'; import Taro from '@tarojs/taro'; -import { AtCard, AtTimeline } from 'taro-ui'; -import type CustomTabBar from '../../custom-tab-bar'; +import { AtCard, AtTimeline, AtAccordion } from 'taro-ui'; +import type CustomTabBar from '@/custom-tab-bar'; +import PageFooter from '@/components/PageFooter/PageFooter'; import './index.scss'; interface CardContent { @@ -22,6 +23,34 @@ function mainPageCard(c: CardContent): JSX.Element { ); } +class ExpandItem extends Component { + state = { + open: false, + }; + props = { + title: '', + content: , + }; + + handleClick(value: boolean) { + this.setState({ open: value }); + } + + render(): ReactNode { + return ( + + + {this.props.content} + + + ); + } +} + class DutyInfo extends Component { render(): ReactNode { return ( @@ -53,7 +82,14 @@ class TipsInfo extends Component { render(): ReactNode { return ( - 提示: + ); } @@ -69,12 +105,12 @@ export default class Index extends Component { }, stepInfoCard: { title: '维修步骤', - note: 'Tips', + note: 'Tips 请在20:30以前取走自己的物品哦', extra: '额外信息', content: , }, tipsInfoCard: { - title: '提醒事项', + title: '注意事项', note: 'Tips', extra: '额外信息', content: , @@ -98,9 +134,16 @@ export default class Index extends Component { {mainPageCard(this.state.dutyInfoCard)} - {mainPageCard(this.state.stepInfoCard)} - {mainPageCard(this.state.tipsInfoCard)} + + + ); }