lex пре 2 година
родитељ
комит
f968e316c5

+ 6 - 3
src/views/live-class/index.tsx

@@ -10,7 +10,7 @@ import LiveItem from './live-item'
 import banner from '../video-class/images/banner.png'
 import { state } from '@/state'
 import OrganSearch from '@/student/practice-class/model/organ-search'
- 
+
 export default defineComponent({
   name: 'liveClass',
   data() {
@@ -40,7 +40,9 @@ export default defineComponent({
   },
   async mounted() {
     try {
-      const res = await request.get(`${this.apiSuffix}/subject/subjectSelect?type=LIVE`)
+      const res = await request.get(
+        `${this.apiSuffix}/subject/subjectSelect?type=LIVE`
+      )
       this.subjectList = res.data || []
     } catch {
       //
@@ -85,7 +87,8 @@ export default defineComponent({
         // 只有学生端会有version
         if (state.version) {
           params.version = state.version || '' // 处理ios审核版本
-          params.platform = 'ios-student'
+          params.platform =
+            state.platformType === 'STUDENT' ? 'ios-student' : 'ios-teacher'
         }
         // 判断是哪个端
         const url =

+ 5 - 4
src/views/music/album/index.tsx

@@ -27,18 +27,19 @@ export default defineComponent({
     const tempParams: any = {}
     if (state.version) {
       tempParams.version = state.version || '' // 处理ios审核版本
-      tempParams.platform = 'ios-student'
+      tempParams.platform =
+        state.platformType === 'STUDENT' ? 'ios-student' : 'ios-teacher'
     }
     if (state.platformType === 'TEACHER') {
       tempParams.myself = false
     }
-    console.log({...defauleParams})
+    console.log({ ...defauleParams })
     const params = reactive({
       search: (route.query.search as string) || '',
       albumTagIds: route.query.tagids || '',
       page: 1,
       ...tempParams,
-      ...defauleParams,
+      ...defauleParams
     })
     const data = ref<any>(null)
     const loading = ref(false)
@@ -110,7 +111,7 @@ export default defineComponent({
       show: false,
       name: '全部',
       id: ''
-    });
+    })
 
     return () => {
       return (

+ 13 - 12
src/views/music/list/index.tsx

@@ -40,7 +40,8 @@ export default defineComponent({
     const tempParams: any = {}
     if (state.version) {
       tempParams.version = state.version || '' // 处理ios审核版本
-      tempParams.platform = 'ios-student'
+      tempParams.platform =
+        state.platformType === 'STUDENT' ? 'ios-student' : 'ios-teacher'
     }
     const params = reactive({
       search: (route.query.search as string) || '',
@@ -105,7 +106,7 @@ export default defineComponent({
       FetchList()
       tagVisibility.value = false
     }
-    const onComfirmSubject = (item) => {
+    const onComfirmSubject = item => {
       params.page = 1
       params.subjectIds = item.id
       subject.id = item.id
@@ -204,16 +205,16 @@ export default defineComponent({
 
         {/* 声部弹框 */}
         <Popup
-            show={subject.show}
-            position="bottom"
-            round
-            closeable
-            safe-area-inset-bottom
-            onClose={() => (subject.show = false)}
-            onClosed={() => (subject.show = false)}
-          >
-            <SelectSubject isReset onComfirm={onComfirmSubject} />
-          </Popup>
+          show={subject.show}
+          position="bottom"
+          round
+          closeable
+          safe-area-inset-bottom
+          onClose={() => (subject.show = false)}
+          onClosed={() => (subject.show = false)}
+        >
+          <SelectSubject isReset onComfirm={onComfirmSubject} />
+        </Popup>
       </>
     )
   }

+ 2 - 1
src/views/music/songbook/album.tsx

@@ -15,7 +15,8 @@ export default defineComponent({
     // 只有学生端才有version
     if (tempState.version) {
       params.version = tempState.version || '' // 处理ios审核版本
-      params.platform = 'ios-student'
+      params.platform =
+        tempState.platformType === 'STUDENT' ? 'ios-student' : 'ios-teacher'
     }
     const apiSuffix =
       tempState.platformType === 'STUDENT' ? '/api-student' : '/api-teacher'

+ 2 - 1
src/views/music/songbook/list.tsx

@@ -18,7 +18,8 @@ export default defineComponent({
     // 学生端才会有version
     if (tempState.version) {
       params.version = tempState.version || '' // 处理ios审核版本
-      params.platform = 'ios-student'
+      params.platform =
+        tempState.platformType === 'STUDENT' ? 'ios-student' : 'ios-teacher'
     }
     const apiSuffix =
       tempState.platformType === 'STUDENT' ? '/api-student' : '/api-teacher'

+ 5 - 2
src/views/video-class/index.tsx

@@ -40,7 +40,9 @@ export default defineComponent({
   },
   async mounted() {
     try {
-      const res = await request.get(`${this.apiSuffix}/subject/subjectSelect?type=VIDEO`)
+      const res = await request.get(
+        `${this.apiSuffix}/subject/subjectSelect?type=VIDEO`
+      )
       this.subjectList = res.data || []
     } catch {
       //
@@ -72,7 +74,8 @@ export default defineComponent({
         // 只有学生端会有version
         if (state.version) {
           params.version = state.version || '' // 处理ios审核版本
-          params.platform = 'ios-student'
+          params.platform =
+            state.platformType === 'STUDENT' ? 'ios-student' : 'ios-teacher'
         }
         const url =
           state.platformType === 'STUDENT'