import { reactive } from 'vue'
/*
https://oss.dayaedu.com/video-course/1657853010619green.png
https://oss.dayaedu.com/video-course/1657853051064gray.png
https://oss.dayaedu.com/video-course/1657853062314yellow.png
https://oss.dayaedu.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, // 手续费
  video_account_period: 0, // 视频课收款账期
  subjectList: [], // 声部列表
  templateList: [
    'https://oss.dayaedu.com/video-course/1657853010619green.png',
    'https://oss.dayaedu.com/video-course/1657853051064gray.png',
    'https://oss.dayaedu.com/video-course/1657853062314yellow.png',
    'https://oss.dayaedu.com/video-course/1657853076136linear.png'
  ], // 模板列表
  lessonGroup: {
    id: null,
    lessonName: '',
    lessonSubject: null as any,
    lessonDesc: '',
    lessonPrice: null as any,
    lessonCoverUrl: '',
    relationType: 'RECOMMEND',
    lessonCoverTemplateUrl: ''
  },
  lessonList: [
    {
      videoTitle: '',
      videoContent: '',
      videoUrl: '',
      coverUrl: '',
      relationList: [] as any,
      posterUrl: '' // 视频封面图
    }
  ]
})
// videoUrl: 'https://daya.ks3-cn-beijing.ksyun.com/202204/T1kHuSh.mp4',
// coverUrl: 'https://daya.ks3-cn-beijing.ksyun.com/202204/T1kK2ao.png'
