index.tsx 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import { Cell, CellGroup, Image } from 'vant'
  2. import { defineComponent } from 'vue'
  3. import styles from './index.module.less'
  4. import iconTeacher from '@common/images/icon_teacher.png'
  5. export default defineComponent({
  6. name: 'OrderVideo',
  7. methods: {
  8. async onSubmit() {
  9. console.log('video submit')
  10. return true
  11. }
  12. },
  13. render() {
  14. return (
  15. <div class={styles.videoOrder}>
  16. <CellGroup border={false}>
  17. <Cell titleClass={styles.title} title="课程名称" />
  18. <Cell
  19. title="大号基础演奏"
  20. v-slots={{
  21. default: () => (
  22. <span class={styles.price}>
  23. <i>¥</i> 299.00
  24. </span>
  25. )
  26. }}
  27. />
  28. </CellGroup>
  29. <CellGroup border={false}>
  30. <Cell titleClass={styles.title} title="主讲老师" />
  31. <Cell
  32. class={styles.titleName}
  33. title="张李"
  34. v-slots={{
  35. icon: () => <Image class={styles.userLogo} src={iconTeacher} />
  36. }}
  37. />
  38. </CellGroup>
  39. <CellGroup border={false}>
  40. <Cell
  41. titleClass={styles.title}
  42. title="上课时间"
  43. value="(共4 课时)"
  44. />
  45. <Cell
  46. v-slots={{
  47. title: () => (
  48. <div>
  49. {[1, 2, 3].map(item => (
  50. <div class={styles.classItem}>
  51. <div class={styles.time}>2018-09-09 周五</div>
  52. <p>19:25 - 20:00</p>
  53. <p>19:25 - 20:00</p>
  54. </div>
  55. ))}
  56. </div>
  57. )
  58. }}
  59. />
  60. </CellGroup>
  61. </div>
  62. // 视频课
  63. )
  64. }
  65. })