createState.ts 1022 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import { reactive } from 'vue'
  2. export const basePlan = {
  3. plan: '',
  4. startTime: '',
  5. endTime: '',
  6. classNum: 1
  7. }
  8. export const createState = reactive({
  9. subjectList: [], // 声部列表
  10. active: 1,
  11. rate: 0,
  12. minutes: [] as any,
  13. tabIndex: 1,
  14. templateList: [
  15. 'https://daya.ks3-cn-beijing.ksyun.com/202110/Sn2OAjr.png',
  16. 'https://daya.ks3-cn-beijing.ksyun.com/202108/ShHJ1Bb.png',
  17. 'https://daya.ks3-cn-beijing.ksyun.com/202110/Sn76BUQ.png'
  18. ], // 模板列表
  19. selectCourseList: [] as any, // 选择课程列表
  20. coursePlanStatus: false, // 是否有锁课程
  21. live: {
  22. name: '',
  23. subjectId: null as any,
  24. courseIntroduce: '',
  25. courseNum: null as any,
  26. singleCourseMinutes: 0,
  27. singleMins: null as any,
  28. coursePrice: null as any,
  29. salesStartDate: '',
  30. salesEndDate: '',
  31. mixStudentNum: null as any,
  32. backgroundPic: '',
  33. backgroundPicTemplate: '',
  34. coursePlanList: [
  35. {
  36. ...basePlan
  37. }
  38. ]
  39. }
  40. })