|
@@ -1,15 +1,108 @@
|
|
|
import ColHeader from '@/components/col-header'
|
|
|
+import { Row, Col, Button, CellGroup, Cell, Grid, GridItem, Icon } from 'vant'
|
|
|
import { defineComponent } from 'vue'
|
|
|
+import Course from './components/course'
|
|
|
import styles from './index.module.less'
|
|
|
|
|
|
+export const getAssetsHomeFile = (fileName: string) => {
|
|
|
+ const path = `./images/${fileName}`
|
|
|
+ const modules = import.meta.globEager('./images/*')
|
|
|
+ return modules[path].default
|
|
|
+}
|
|
|
+
|
|
|
export default defineComponent({
|
|
|
name: 'PianoRoom',
|
|
|
render() {
|
|
|
return (
|
|
|
<>
|
|
|
<div class={styles.roomHeader}>
|
|
|
- <ColHeader background="transparent" rightText="课程记录" />
|
|
|
+ <ColHeader
|
|
|
+ background="transparent"
|
|
|
+ rightText="课程记录"
|
|
|
+ onClickRight={() => {
|
|
|
+ this.$router.push('/courseRecord')
|
|
|
+ }}
|
|
|
+ border={false}
|
|
|
+ />
|
|
|
+ <Row class={styles.countTimer}>
|
|
|
+ <Col span={9}>
|
|
|
+ <p class={styles.timer}>
|
|
|
+ 900<span>分钟</span>
|
|
|
+ </p>
|
|
|
+ <p class={styles.title}>
|
|
|
+ <img src={getAssetsHomeFile('icon_last_timer.png')} />
|
|
|
+ <span>琴房剩余时长</span>
|
|
|
+ </p>
|
|
|
+ </Col>
|
|
|
+ <Col span={9}>
|
|
|
+ <p class={styles.timer}>
|
|
|
+ 900<span>分钟</span>
|
|
|
+ </p>
|
|
|
+ <p class={styles.title}>
|
|
|
+ <img src={getAssetsHomeFile('icon_freeze_timer.png')} />
|
|
|
+ <span>冻结时长</span>
|
|
|
+ </p>
|
|
|
+ </Col>
|
|
|
+ <Col span={6}>
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ round
|
|
|
+ size="small"
|
|
|
+ class={styles.chargeTimer}
|
|
|
+ onClick={() => {
|
|
|
+ this.$router.push('/accountRechargeTimer')
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 时长充值
|
|
|
+ <img src={getAssetsHomeFile('icon_arrow.png')} />
|
|
|
+ </Button>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
+
|
|
|
+ <CellGroup class={styles.studentList} border={false}>
|
|
|
+ <Cell
|
|
|
+ title={'我的学员 19 人'}
|
|
|
+ titleClass={styles.studentCount}
|
|
|
+ isLink
|
|
|
+ border={false}
|
|
|
+ />
|
|
|
+ <Cell valueClass={styles.btnGroupInvite}>
|
|
|
+ <Button color="#E0F7F3" round block>
|
|
|
+ <img src={getAssetsHomeFile('icon_invite_student.png')} />
|
|
|
+ 邀请学员
|
|
|
+ </Button>
|
|
|
+ <Button color="#E0F7F3" round block>
|
|
|
+ <img src={getAssetsHomeFile('icon_class_plan.png')} />
|
|
|
+ 排课
|
|
|
+ </Button>
|
|
|
+ </Cell>
|
|
|
+ </CellGroup>
|
|
|
</div>
|
|
|
+ <div class={styles.searchList}>
|
|
|
+ <div class={styles.dataItem}>
|
|
|
+ 2021年9月
|
|
|
+ <Icon
|
|
|
+ classPrefix="iconfont"
|
|
|
+ name="down"
|
|
|
+ size={8}
|
|
|
+ style={{ marginLeft: '4px' }}
|
|
|
+ color="#CCCCCC"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class={styles.dataItem}>
|
|
|
+ 所有课程
|
|
|
+ <Icon
|
|
|
+ classPrefix="iconfont"
|
|
|
+ name="down"
|
|
|
+ size={8}
|
|
|
+ style={{ marginLeft: '4px' }}
|
|
|
+ color="#CCCCCC"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <Course />
|
|
|
</>
|
|
|
)
|
|
|
}
|