lex 1 rok temu
rodzic
commit
0e4026ee3a

+ 2 - 13
src/student/down-load/download.tsx

@@ -35,8 +35,6 @@ export default defineComponent({
       // 线上地址
       // https://itunes.apple.com/cn/app/id1626971149?mt=8   学院
       // https://itunes.apple.com/cn/app/id1626971695?mt=8   酷乐秀
-      // https://appstore.ks3-cn-beijing.ksyuncs.com/clx-student-domain.apk
-      // https://appstore.ks3-cn-beijing.ksyuncs.com/clx-teacher-domain.apk
 
       // 酷乐秀 安卓 DEV:
       // 老师端:https://www.pgyer.com/N2U3https://www.pgyer.com/cooleshow
@@ -49,12 +47,10 @@ export default defineComponent({
       if (location.origin.indexOf('online.colexiu.com') > -1) {
         if (this.type === 'student') {
           urlIos = 'https://itunes.apple.com/cn/app/id1626971695?mt=8'
-          urlAndroid =
-            'https://appstore.ks3-cn-beijing.ksyuncs.com/clx-student-domain.apk'
+          urlAndroid = 'https://oss.dayaedu.com/appstore/clx-student-domain.apk'
         } else if (this.type === 'teacher') {
           urlIos = 'https://itunes.apple.com/cn/app/id1626971149?mt=8'
-          urlAndroid =
-            'https://appstore.ks3-cn-beijing.ksyuncs.com/clx-teacher-domain.apk'
+          urlAndroid = 'https://oss.dayaedu.com/appstore/clx-teacher-domain.apk'
         }
       } else {
         if (this.type === 'student') {
@@ -80,13 +76,6 @@ export default defineComponent({
         // }
       } else if (/(Android)/i.test(navigator.userAgent)) {
         window.location.href = urlAndroid
-        // if (this.type == 'student') {
-        //   window.location.href =
-        //     'https://appstore.ks3-cn-beijing.ksyuncs.com/clx-student-domain.apk'
-        // } else if (this.type == 'teacher') {
-        //   window.location.href =
-        //     'https://appstore.ks3-cn-beijing.ksyuncs.com/clx-teacher-domain.apk'
-        // }
       } else {
         this.$toast('请用手机或移动设备打开')
       }

+ 1 - 1
src/student/down-load/transfer.tsx

@@ -66,7 +66,7 @@ export default defineComponent({
           'https://itunes.apple.com/cn/app/id1626971695?mt=8'
       } else if (/(Android)/i.test(navigator.userAgent)) {
         window.location.href =
-          'https://appstore.ks3-cn-beijing.ksyuncs.com/clx-student-domain.apk'
+          'https://oss.dayaedu.com/appstore/clx-student-domain.apk'
       } else {
         this.$toast('请用手机或移动设备打开')
       }

+ 292 - 297
src/student/home/index.tsx

@@ -1,297 +1,292 @@
-import request from '@/student/home-layout-orchestra/request-home'
-import { verifyUrl } from '@/helpers/toolsValidate'
-import { openDefaultWebView } from '@/student/home-layout-orchestra/state-orchestra'
-import { PullRefresh, Swipe, SwipeItem, Image, Tabs, Tab, Popup } from 'vant'
-import { defineComponent } from 'vue'
-import HotAlbum from './components/hot-album'
-import InfoList from './components/info-list'
-import MenuList from './components/menu-list'
-import Music from './components/music'
-import RecommendSage from './components/recommend-sage'
-import TalentStyle from './components/talent-style'
-import TheHomeHeader from './components/TheHomeHeader'
-import VideoClass from './components/video-class'
-import styles from './index.module.less'
-import Download from './model/download'
-import popupClose from './images/popup-close.png'
-import {
-  listenerMessage,
-  postMessage,
-  promisefiyPostMessage,
-  removeListenerMessage
-} from '@/helpers/native-message'
-import { browser } from '@/helpers/utils'
-import { setLogout, state } from '@/state'
-import event from './event'
-
-export default defineComponent({
-  name: 'home-index',
-  props: {
-    album: {
-      type: Array,
-      default: () => {
-        return []
-      }
-    }
-  },
-  data() {
-    return {
-      loading: false,
-      height: 'auto' as any,
-      banner: [], // BANNER列表
-      appMenu: [], // 按钮列表
-      albumList: [], // 热门专辑
-      musicList: {
-        topMusicSheet: [] as any,
-        newMusicSheet: [] as any,
-        hotMusicSheet: [] as any
-      },
-      sageList: [], // 推荐达人
-      videoList: [], // 视频课
-      headerHeight: 0,
-      downloadStatus: false
-    }
-  },
-  async mounted() {
-    await this.init()
-
-    event.on('downloadApp', async () => {
-      // 管乐团里面,获取是否已安装酷乐秀
-      const type = browser().orchestraAndroid
-        ? 'com.cooleshow.student'
-        : 'ColexiuStudent://'
-      await promisefiyPostMessage({
-        api: 'isInstall',
-        content: { type: type }
-      }).then((res: any) => {
-        const content = res.content
-        state.orchestraInfo.installStatus = content.installStatus
-        this.downloadStatus = true
-      })
-    })
-
-    listenerMessage('webViewOnResume', () => {
-      promisefiyPostMessage({ api: 'getUserAccount' }).then((res: any) => {
-        const content = res.content
-        // console.log(state.orchestraInfo, 'state.orchestraInfo')
-        // console.log(content, 'content')
-        if (content.phone !== state.orchestraInfo.phone) {
-          // 判断是否已经有关联编号
-          if (content.unionId) {
-            window.location.reload()
-          } else {
-            state.orchestraInfo.token = content.token.split(' ')[1]
-            state.orchestraInfo.phone = content.phone
-            state.orchestraInfo.nickname = content.nickname
-            state.orchestraInfo.avatar = content.avatar
-            state.orchestraInfo.unionId = content.unionId || 0
-            // 13310106048
-            // 15088666723
-            setLogout()
-            // window.location.reload()
-            this.$router.push({
-              path: '/home-auth'
-            })
-          }
-        }
-      })
-    })
-
-    postMessage({ api: 'setBarStatus', content: { status: 0 } })
-  },
-  unmounted() {
-    removeListenerMessage('webViewOnResume', () => {
-      //
-    })
-  },
-  methods: {
-    async init() {
-      try {
-        const res = await request.post('/api-cms/news/app/home', {
-          data: {
-            clientType: 'STUDENT'
-          }
-        })
-        const result = res.data || {}
-        this.banner = result.banner || []
-        this.appMenu = this.arrChange(5, result.appMenu || [])
-
-        // 热门专辑
-        const album = await request.post('/api-student/music/album/list', {
-          data: {
-            albumStatus: 1,
-            clientId: 'STUDENT'
-          }
-        })
-        this.albumList = album.data.rows || []
-
-        // 曲谱
-        const music = await request.post(
-          '/api-student/music/sheet/appMusicSheet',
-          {
-            data: {}
-          }
-        )
-        const musicData = music.data || []
-        this.musicList = {
-          topMusicSheet: this.arrChange(4, musicData.topMusicSheet || []),
-          newMusicSheet: this.arrChange(4, musicData.newMusicSheet || []),
-          hotMusicSheet: this.arrChange(4, musicData.hotMusicSheet || [])
-        }
-
-        const sage = await request.get(
-          '/api-student/teacher/queryHotTeacherList'
-        )
-        this.sageList = sage.data || []
-
-        const video = await request.get(
-          '/api-student/courseSchedule/queryLiveAndVideo'
-        )
-        this.videoList = video.data.videoList || []
-      } catch {
-        //
-      }
-      setTimeout(() => {
-        this.loading = false
-      }, 500)
-    },
-    arrChange(num: number, arr: any) {
-      const newArr = [] as any
-      while (arr.length > 0) {
-        newArr.push(arr.splice(0, num))
-      }
-      return newArr
-    },
-    async onRefresh() {
-      await this.init()
-      setTimeout(() => {
-        this.loading = false
-      }, 500)
-    }
-  },
-  render() {
-    return (
-      <div class={styles.home}>
-        <TheHomeHeader
-          ref="header"
-          onHeaderDom={(height: number) => {
-            console.log(height, 'height')
-            this.headerHeight = height
-          }}
-          onCart={() => {
-            event.emit('downloadApp')
-          }}
-          onSearch={() => {
-            // 搜索详情
-            event.emit('downloadApp')
-          }}
-          onMore={() => {
-            event.emit('downloadApp')
-          }}
-        />
-
-        <PullRefresh
-          v-model={this.loading}
-          loading-text="正在刷新..."
-          success-text="刷新完成"
-          onRefresh={() => this.onRefresh()}
-        >
-          <div class={styles.hotContent}>
-            <Swipe class={styles.swipe} autoplay={3000}>
-              {this.banner.map((item: any) => (
-                <SwipeItem
-                  onClick={() => {
-                    // 判断url是否正常
-                    // if (verifyUrl(item.linkUrl)) {
-                    //   openDefaultWebView(item.linkUrl, () => {
-                    //     window.location.href = item.linkUrl
-                    //   })
-                    // }
-                    event.emit('downloadApp')
-                  }}
-                >
-                  <Image
-                    class={styles.swipeItemImg}
-                    src={item.coverImage}
-                    fit="fill"
-                  />
-                </SwipeItem>
-              ))}
-            </Swipe>
-
-            <MenuList productList={this.appMenu} />
-          </div>
-
-          <HotAlbum album={this.albumList} />
-
-          <Music title="推荐曲目" music={this.musicList?.topMusicSheet || []} />
-          <Music title="最新曲目" music={this.musicList?.newMusicSheet || []} />
-          <Music title="最热曲目" music={this.musicList?.hotMusicSheet || []} />
-
-          {/* 推荐达人 */}
-          <RecommendSage sage={this.sageList} />
-
-          {/* 精品视频课 */}
-          <VideoClass video={this.videoList} />
-
-          <Tabs
-            shrink
-            background="#f6f8f9"
-            class={styles.homeTabs}
-            sticky
-            offsetTop={this.headerHeight + 'px'}
-          >
-            <Tab title="达人风采" name="sage">
-              <TalentStyle />
-            </Tab>
-            <Tab title="热门资讯" name="info">
-              <InfoList />
-            </Tab>
-          </Tabs>
-        </PullRefresh>
-
-        <Popup
-          v-model:show={this.downloadStatus}
-          round
-          style={{ width: '86%', background: 'transparent' }}
-          closeable
-          closeIcon={popupClose}
-        >
-          <Download
-            buttonText={
-              state.orchestraInfo.installStatus ? '打开酷乐秀' : '下载酷乐秀'
-            }
-            onConfirm={() => {
-              const type = browser().orchestraAndroid
-                ? 'com.cooleshow.student'
-                : 'ColexiuStudent://'
-              if (state.orchestraInfo.installStatus) {
-                postMessage({ api: 'openApp', content: { type: type } })
-              } else {
-                // const urlIos =
-                //   'https://itunes.apple.com/cn/app/id1626971695?mt=8'
-                // const urlAndroid =
-                //   'https://appstore.ks3-cn-beijing.ksyuncs.com/clx-student-domain.apk'
-
-                const url = browser().orchestraAndroid
-                  ? window.location.origin +
-                    window.location.pathname +
-                    '#/download'
-                  : 'https://itunes.apple.com/cn/app/id1626971695?mt=8'
-                postMessage({
-                  api: 'downloadApp',
-                  content: { type: type, url: url }
-                })
-              }
-            }}
-          />
-        </Popup>
-        {/* 
-          ColexiuStudent IOS 学生端
-          com.cooleshow.student ADNROID 学生端
-          com.cooleshow.teacher ADNROID 老师端
-         */}
-      </div>
-    )
-  }
-})
+import request from '@/student/home-layout-orchestra/request-home'
+import { verifyUrl } from '@/helpers/toolsValidate'
+import { openDefaultWebView } from '@/student/home-layout-orchestra/state-orchestra'
+import { PullRefresh, Swipe, SwipeItem, Image, Tabs, Tab, Popup } from 'vant'
+import { defineComponent } from 'vue'
+import HotAlbum from './components/hot-album'
+import InfoList from './components/info-list'
+import MenuList from './components/menu-list'
+import Music from './components/music'
+import RecommendSage from './components/recommend-sage'
+import TalentStyle from './components/talent-style'
+import TheHomeHeader from './components/TheHomeHeader'
+import VideoClass from './components/video-class'
+import styles from './index.module.less'
+import Download from './model/download'
+import popupClose from './images/popup-close.png'
+import {
+  listenerMessage,
+  postMessage,
+  promisefiyPostMessage,
+  removeListenerMessage
+} from '@/helpers/native-message'
+import { browser } from '@/helpers/utils'
+import { setLogout, state } from '@/state'
+import event from './event'
+
+export default defineComponent({
+  name: 'home-index',
+  props: {
+    album: {
+      type: Array,
+      default: () => {
+        return []
+      }
+    }
+  },
+  data() {
+    return {
+      loading: false,
+      height: 'auto' as any,
+      banner: [], // BANNER列表
+      appMenu: [], // 按钮列表
+      albumList: [], // 热门专辑
+      musicList: {
+        topMusicSheet: [] as any,
+        newMusicSheet: [] as any,
+        hotMusicSheet: [] as any
+      },
+      sageList: [], // 推荐达人
+      videoList: [], // 视频课
+      headerHeight: 0,
+      downloadStatus: false
+    }
+  },
+  async mounted() {
+    await this.init()
+
+    event.on('downloadApp', async () => {
+      // 管乐团里面,获取是否已安装酷乐秀
+      const type = browser().orchestraAndroid
+        ? 'com.cooleshow.student'
+        : 'ColexiuStudent://'
+      await promisefiyPostMessage({
+        api: 'isInstall',
+        content: { type: type }
+      }).then((res: any) => {
+        const content = res.content
+        state.orchestraInfo.installStatus = content.installStatus
+        this.downloadStatus = true
+      })
+    })
+
+    listenerMessage('webViewOnResume', () => {
+      promisefiyPostMessage({ api: 'getUserAccount' }).then((res: any) => {
+        const content = res.content
+        // console.log(state.orchestraInfo, 'state.orchestraInfo')
+        // console.log(content, 'content')
+        if (content.phone !== state.orchestraInfo.phone) {
+          // 判断是否已经有关联编号
+          if (content.unionId) {
+            window.location.reload()
+          } else {
+            state.orchestraInfo.token = content.token.split(' ')[1]
+            state.orchestraInfo.phone = content.phone
+            state.orchestraInfo.nickname = content.nickname
+            state.orchestraInfo.avatar = content.avatar
+            state.orchestraInfo.unionId = content.unionId || 0
+            // 13310106048
+            // 15088666723
+            setLogout()
+            // window.location.reload()
+            this.$router.push({
+              path: '/home-auth'
+            })
+          }
+        }
+      })
+    })
+
+    postMessage({ api: 'setBarStatus', content: { status: 0 } })
+  },
+  unmounted() {
+    removeListenerMessage('webViewOnResume', () => {
+      //
+    })
+  },
+  methods: {
+    async init() {
+      try {
+        const res = await request.post('/api-cms/news/app/home', {
+          data: {
+            clientType: 'STUDENT'
+          }
+        })
+        const result = res.data || {}
+        this.banner = result.banner || []
+        this.appMenu = this.arrChange(5, result.appMenu || [])
+
+        // 热门专辑
+        const album = await request.post('/api-student/music/album/list', {
+          data: {
+            albumStatus: 1,
+            clientId: 'STUDENT'
+          }
+        })
+        this.albumList = album.data.rows || []
+
+        // 曲谱
+        const music = await request.post(
+          '/api-student/music/sheet/appMusicSheet',
+          {
+            data: {}
+          }
+        )
+        const musicData = music.data || []
+        this.musicList = {
+          topMusicSheet: this.arrChange(4, musicData.topMusicSheet || []),
+          newMusicSheet: this.arrChange(4, musicData.newMusicSheet || []),
+          hotMusicSheet: this.arrChange(4, musicData.hotMusicSheet || [])
+        }
+
+        const sage = await request.get(
+          '/api-student/teacher/queryHotTeacherList'
+        )
+        this.sageList = sage.data || []
+
+        const video = await request.get(
+          '/api-student/courseSchedule/queryLiveAndVideo'
+        )
+        this.videoList = video.data.videoList || []
+      } catch {
+        //
+      }
+      setTimeout(() => {
+        this.loading = false
+      }, 500)
+    },
+    arrChange(num: number, arr: any) {
+      const newArr = [] as any
+      while (arr.length > 0) {
+        newArr.push(arr.splice(0, num))
+      }
+      return newArr
+    },
+    async onRefresh() {
+      await this.init()
+      setTimeout(() => {
+        this.loading = false
+      }, 500)
+    }
+  },
+  render() {
+    return (
+      <div class={styles.home}>
+        <TheHomeHeader
+          ref="header"
+          onHeaderDom={(height: number) => {
+            console.log(height, 'height')
+            this.headerHeight = height
+          }}
+          onCart={() => {
+            event.emit('downloadApp')
+          }}
+          onSearch={() => {
+            // 搜索详情
+            event.emit('downloadApp')
+          }}
+          onMore={() => {
+            event.emit('downloadApp')
+          }}
+        />
+
+        <PullRefresh
+          v-model={this.loading}
+          loading-text="正在刷新..."
+          success-text="刷新完成"
+          onRefresh={() => this.onRefresh()}
+        >
+          <div class={styles.hotContent}>
+            <Swipe class={styles.swipe} autoplay={3000}>
+              {this.banner.map((item: any) => (
+                <SwipeItem
+                  onClick={() => {
+                    // 判断url是否正常
+                    // if (verifyUrl(item.linkUrl)) {
+                    //   openDefaultWebView(item.linkUrl, () => {
+                    //     window.location.href = item.linkUrl
+                    //   })
+                    // }
+                    event.emit('downloadApp')
+                  }}
+                >
+                  <Image
+                    class={styles.swipeItemImg}
+                    src={item.coverImage}
+                    fit="fill"
+                  />
+                </SwipeItem>
+              ))}
+            </Swipe>
+
+            <MenuList productList={this.appMenu} />
+          </div>
+
+          <HotAlbum album={this.albumList} />
+
+          <Music title="推荐曲目" music={this.musicList?.topMusicSheet || []} />
+          <Music title="最新曲目" music={this.musicList?.newMusicSheet || []} />
+          <Music title="最热曲目" music={this.musicList?.hotMusicSheet || []} />
+
+          {/* 推荐达人 */}
+          <RecommendSage sage={this.sageList} />
+
+          {/* 精品视频课 */}
+          <VideoClass video={this.videoList} />
+
+          <Tabs
+            shrink
+            background="#f6f8f9"
+            class={styles.homeTabs}
+            sticky
+            offsetTop={this.headerHeight + 'px'}
+          >
+            <Tab title="达人风采" name="sage">
+              <TalentStyle />
+            </Tab>
+            <Tab title="热门资讯" name="info">
+              <InfoList />
+            </Tab>
+          </Tabs>
+        </PullRefresh>
+
+        <Popup
+          v-model:show={this.downloadStatus}
+          round
+          style={{ width: '86%', background: 'transparent' }}
+          closeable
+          closeIcon={popupClose}
+        >
+          <Download
+            buttonText={
+              state.orchestraInfo.installStatus ? '打开酷乐秀' : '下载酷乐秀'
+            }
+            onConfirm={() => {
+              const type = browser().orchestraAndroid
+                ? 'com.cooleshow.student'
+                : 'ColexiuStudent://'
+              if (state.orchestraInfo.installStatus) {
+                postMessage({ api: 'openApp', content: { type: type } })
+              } else {
+                const url = browser().orchestraAndroid
+                  ? window.location.origin +
+                    window.location.pathname +
+                    '#/download'
+                  : 'https://itunes.apple.com/cn/app/id1626971695?mt=8'
+                postMessage({
+                  api: 'downloadApp',
+                  content: { type: type, url: url }
+                })
+              }
+            }}
+          />
+        </Popup>
+        {/*
+          ColexiuStudent IOS 学生端
+          com.cooleshow.student ADNROID 学生端
+          com.cooleshow.teacher ADNROID 老师端
+         */}
+      </div>
+    )
+  }
+})

+ 1 - 1
src/student/invite-teacher/invite-success/index.tsx

@@ -24,7 +24,7 @@ export default defineComponent({
           'https://itunes.apple.com/cn/app/id1626971695?mt=8'
       } else if (/(Android)/i.test(navigator.userAgent)) {
         window.location.href =
-          'https://appstore.ks3-cn-beijing.ksyuncs.com/clx-student-domain.apk'
+          'https://oss.dayaedu.com/appstore/clx-student-domain.apk'
       } else {
         this.$toast('请用手机或移动设备打开')
       }

+ 46 - 46
src/teacher/live-class/create-components/createState.ts

@@ -1,46 +1,46 @@
-import { reactive } from 'vue'
-
-export const basePlan = {
-  plan: '',
-  startTime: '',
-  endTime: '',
-  classNum: 1
-}
-
-export const createState = reactive({
-  subjectList: [], // 声部列表
-  active: 1,
-  rate: 0,
-  minutes: [] as any,
-  tabIndex: 1,
-  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'
-  ], // 模板列表
-  selectCourseList: [] as any, // 选择课程列表
-  coursePlanStatus: false, // 是否有锁课程
-  live: {
-    teacherId: '',
-    courseGroupId: '',
-    name: '',
-    subjectId: null as any,
-    courseIntroduce: '',
-    courseNum: null as any,
-    singleCourseMinutes: 0,
-    singleMins: null as any,
-    freeMinutes: 0,
-    coursePrice: null as any,
-    salesStartDate: '',
-    salesEndDate: '',
-    mixStudentNum: null as any,
-    backgroundPic: '',
-    backgroundPicTemplate: '',
-    coursePlanList: [
-      {
-        ...basePlan
-      }
-    ]
-  }
-})
+import { reactive } from 'vue'
+
+export const basePlan = {
+  plan: '',
+  startTime: '',
+  endTime: '',
+  classNum: 1
+}
+
+export const createState = reactive({
+  subjectList: [], // 声部列表
+  active: 1,
+  rate: 0,
+  minutes: [] as any,
+  tabIndex: 1,
+  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'
+  ], // 模板列表
+  selectCourseList: [] as any, // 选择课程列表
+  coursePlanStatus: false, // 是否有锁课程
+  live: {
+    teacherId: '',
+    courseGroupId: '',
+    name: '',
+    subjectId: null as any,
+    courseIntroduce: '',
+    courseNum: null as any,
+    singleCourseMinutes: 0,
+    singleMins: null as any,
+    freeMinutes: 0,
+    coursePrice: null as any,
+    salesStartDate: '',
+    salesEndDate: '',
+    mixStudentNum: null as any,
+    backgroundPic: '',
+    backgroundPicTemplate: '',
+    coursePlanList: [
+      {
+        ...basePlan
+      }
+    ]
+  }
+})

+ 50 - 50
src/teacher/video-class/createState.tsx

@@ -1,50 +1,50 @@
-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, // 手续费
-  video_account_period: 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: '',
-    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'
+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'