import { reactive } from 'vue'
/*
https://ks3-cn-beijing.ksyuncs.com/video-course/1657853010619green.png
https://ks3-cn-beijing.ksyuncs.com/video-course/1657853051064gray.png
https://ks3-cn-beijing.ksyuncs.com/video-course/1657853062314yellow.png
https://ks3-cn-beijing.ksyuncs.com/video-course/1657853076136linear.png

'https://daya.ks3-cn-beijing.ksyun.com/202204/T3unJdc.png',
    'https://daya.ks3-cn-beijing.ksyun.com/202204/T3unJdl.png',
    'https://daya.ks3-cn-beijing.ksyun.com/202204/T3unJdK.png',
    'https://daya.ks3-cn-beijing.ksyun.com/202204/T3unJeA.png',

*/
export const createState = reactive({
  groupId: 0,
  active: 1,
  tabIndex: 1,
  loadingStatus: false,
  rate: 0, // 手续费
  subjectList: [], // 声部列表
  templateList: [
    'https://ks3-cn-beijing.ksyuncs.com/video-course/1657853010619green.png',
    'https://ks3-cn-beijing.ksyuncs.com/video-course/1657853051064gray.png',
    'https://ks3-cn-beijing.ksyuncs.com/video-course/1657853062314yellow.png',
    'https://ks3-cn-beijing.ksyuncs.com/video-course/1657853076136linear.png'
  ], // 模板列表
  lessonGroup: {
    id: null,
    lessonName: '',
    lessonSubject: null as any,
    lessonDesc: '',
    lessonPrice: null as any,
    lessonCoverUrl: '',
    lessonCoverTemplateUrl: ''
  },
  lessonList: [
    {
      videoTitle: '',
      videoContent: '',
      videoUrl: '',
      coverUrl: '',
      posterUrl: '' // 视频封面图
    }
  ]
})
// videoUrl: 'https://daya.ks3-cn-beijing.ksyun.com/202204/T1kHuSh.mp4',
// coverUrl: 'https://daya.ks3-cn-beijing.ksyun.com/202204/T1kK2ao.png'
