瀏覽代碼

代码优化

lex 2 年之前
父節點
當前提交
411e24b668

+ 1 - 0
src/school/companion-teacher/companion-detail.module.less

@@ -11,6 +11,7 @@
   }
   }
   .tagSubject {
   .tagSubject {
     margin-right: 10px;
     margin-right: 10px;
+    margin-bottom: 4px;
   }
   }
 }
 }
 .sectionCellGroup {
 .sectionCellGroup {

+ 2 - 0
src/school/companion-teacher/companion-teacher-register.module.less

@@ -134,6 +134,8 @@ span {
 
 
 .radioSection {
 .radioSection {
   position: relative;
   position: relative;
+  min-width: 32px;
+  justify-content: center;
 }
 }
 
 
 .radioItem {
 .radioItem {

+ 1 - 0
src/school/companion-teacher/index.module.less

@@ -12,6 +12,7 @@
   }
   }
   .tagSubject {
   .tagSubject {
     margin-right: 10px;
     margin-right: 10px;
+    margin-bottom: 4px;
   }
   }
 }
 }
 
 

+ 2 - 2
src/school/main.ts

@@ -30,8 +30,8 @@ postMessage(
     console.log(res, 'version')
     console.log(res, 'version')
   }
   }
 )
 )
-import Vconsole from 'vconsole'
-const vconsole = new Vconsole()
+// import Vconsole from 'vconsole'
+// const vconsole = new Vconsole()
 const paymentType = (window as any).paymentType // 浏览器设置
 const paymentType = (window as any).paymentType // 浏览器设置
 if (browser().isTeacher || paymentType === 'TEACHER') {
 if (browser().isTeacher || paymentType === 'TEACHER') {
   state.platformType = 'TEACHER'
   state.platformType = 'TEACHER'

+ 4 - 0
src/school/manage-teacher/manage-detail.module.less

@@ -4,6 +4,10 @@
   border-radius: 10px;
   border-radius: 10px;
 }
 }
 
 
+.manageTeacher {
+  --van-dialog-message-font-size: 16px !important;
+}
+
 .sectionCellGroup {
 .sectionCellGroup {
   :global {
   :global {
     .van-cell {
     .van-cell {

+ 3 - 3
src/school/manage-teacher/manage-detail.tsx

@@ -16,7 +16,7 @@ export default defineComponent({
     const detail = ref<any>({})
     const detail = ref<any>({})
     const state = reactive({
     const state = reactive({
       menuStatus: false,
       menuStatus: false,
-      status: false
+      status: true
     })
     })
     const getDetail = async () => {
     const getDetail = async () => {
       try {
       try {
@@ -58,7 +58,7 @@ export default defineComponent({
       getDetail()
       getDetail()
     })
     })
     return () => (
     return () => (
-      <>
+      <div class={styles.manageTeacher}>
         <OHeader />
         <OHeader />
 
 
         <CellGroup inset class={styles.detailCellGroup}>
         <CellGroup inset class={styles.detailCellGroup}>
@@ -165,7 +165,7 @@ export default defineComponent({
             )
             )
           }}
           }}
         </Dialog>
         </Dialog>
-      </>
+      </div>
     )
     )
   }
   }
 })
 })

+ 1 - 0
src/school/mass-message/component/manage-list/index.module.less

@@ -42,5 +42,6 @@
   }
   }
   .tagSubject {
   .tagSubject {
     margin-right: 10px;
     margin-right: 10px;
+    margin-bottom: 4px;
   }
   }
 }
 }

+ 1 - 0
src/school/mass-message/component/student-list/index.module.less

@@ -42,5 +42,6 @@
   }
   }
   .tagSubject {
   .tagSubject {
     margin-right: 10px;
     margin-right: 10px;
+    margin-bottom: 4px;
   }
   }
 }
 }

+ 1 - 0
src/school/mass-message/component/teacher-list/teacher-list.module.less

@@ -42,5 +42,6 @@
   }
   }
   .tagSubject {
   .tagSubject {
     margin-right: 10px;
     margin-right: 10px;
+    margin-bottom: 4px;
   }
   }
 }
 }

+ 3 - 0
src/school/orchestra/create-orchestra/select-teacher.module.less

@@ -1,3 +1,6 @@
+.selectTeacher {
+  --van-dialog-message-font-size: 16px !important;
+}
 .cellGroup {
 .cellGroup {
   margin: 12px 13px;
   margin: 12px 13px;
   :global {
   :global {

+ 1 - 1
src/school/orchestra/create-orchestra/select-teacher.tsx

@@ -78,7 +78,7 @@ export default defineComponent({
     }
     }
 
 
     return () => (
     return () => (
-      <div>
+      <div class={styles.selectTeacher}>
         <OHeader title="选择老师" />
         <OHeader title="选择老师" />
 
 
         <CellGroup inset class={styles.cellGroup}>
         <CellGroup inset class={styles.cellGroup}>

+ 3 - 2
src/school/orchestra/modal/student-list.tsx

@@ -57,6 +57,7 @@ export default defineComponent({
       oPopover: false,
       oPopover: false,
       isLoad: false,
       isLoad: false,
       classList: [
       classList: [
+        { text: '全部', value: -1 },
         { text: '一年级', value: 1 },
         { text: '一年级', value: 1 },
         { text: '二年级', value: 2 },
         { text: '二年级', value: 2 },
         { text: '三年级', value: 3 },
         { text: '三年级', value: 3 },
@@ -71,7 +72,7 @@ export default defineComponent({
       } as any,
       } as any,
       class: {
       class: {
         id: null,
         id: null,
-        name: '年级'
+        name: '全部'
       } as any,
       } as any,
       list: [] as any,
       list: [] as any,
       listState: {
       listState: {
@@ -100,7 +101,7 @@ export default defineComponent({
             ...state.params,
             ...state.params,
             subjectId: props.subjectId,
             subjectId: props.subjectId,
             orchestraId: state.orchestra.id,
             orchestraId: state.orchestra.id,
-            currentGradeNum: state.class.id
+            currentGradeNum: state.class.id === -1 ? null : state.class.id
           }
           }
         })
         })
         state.listState.loading = false
         state.listState.loading = false

+ 1 - 0
src/school/train-planning/component/course-preview/index.module.less

@@ -18,6 +18,7 @@
 }
 }
 
 
 .coursePreview {
 .coursePreview {
+  --van-dialog-message-font-size: 16px !important;
 }
 }
 .orchestraTabs {
 .orchestraTabs {
   font-weight: 400;
   font-weight: 400;

+ 5 - 4
src/school/train-planning/component/course-preview/index.tsx

@@ -34,10 +34,11 @@ export default defineComponent({
     const courseTabsRef: any = ref()
     const courseTabsRef: any = ref()
 
 
     // 获取所有
     // 获取所有
-    const getClasses = async () => {
+    const getClasses = async (loading = true) => {
       try {
       try {
         const { data } = await request.post('/api-school/orchestra/trainingPlanListCache', {
         const { data } = await request.post('/api-school/orchestra/trainingPlanListCache', {
           requestType: 'form',
           requestType: 'form',
+          hideLoading: !loading,
           data: {
           data: {
             cacheId: route.query.cacheId
             cacheId: route.query.cacheId
           }
           }
@@ -171,9 +172,9 @@ export default defineComponent({
       } catch {
       } catch {
         //
         //
         state.isClick = false
         state.isClick = false
-        setTimeout(() => {
-          getClasses()
-        }, 1100)
+        getClasses(false)
+        // setTimeout(() => {
+        // }, 1100)
       }
       }
     }
     }
 
 

+ 4 - 0
src/school/train-planning/component/standard/index.module.less

@@ -1,3 +1,7 @@
+.standard {
+  --van-dialog-message-font-size: 16px !important;
+}
+
 .tips {
 .tips {
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;

+ 2 - 2
src/student/music-group/pre-apply/component/apply.tsx

@@ -197,7 +197,7 @@ export default defineComponent({
       // }
       // }
     })
     })
     return () => (
     return () => (
-      <>
+      <div class={styles.preApplyC}>
         <Form validateFirst scrollToError onSubmit={onSubmit} ref="form" class={styles.form}>
         <Form validateFirst scrollToError onSubmit={onSubmit} ref="form" class={styles.form}>
           <div class={styles.applyTitle}>学生信息</div>
           <div class={styles.applyTitle}>学生信息</div>
           <CellGroup inset class={styles.applyCellGroup}>
           <CellGroup inset class={styles.applyCellGroup}>
@@ -390,7 +390,7 @@ export default defineComponent({
             )
             )
           }}
           }}
         </Dialog>
         </Dialog>
-      </>
+      </div>
     )
     )
   }
   }
 })
 })

+ 3 - 0
src/student/music-group/pre-apply/index.module.less

@@ -311,6 +311,9 @@
   }
   }
 }
 }
 
 
+.preApplyC {
+  --van-dialog-message-font-size: 16px !important;
+}
 .dialogTitle {
 .dialogTitle {
   i {
   i {
     display: inline-block;
     display: inline-block;

+ 4 - 0
src/student/my-orchestra/apply-withdrawal.module.less

@@ -93,6 +93,10 @@
   }
   }
 }
 }
 
 
+.applyWithdrawal {
+  --van-dialog-message-font-size: 16px !important;
+}
+
 .dialogTitle {
 .dialogTitle {
   i {
   i {
     display: inline-block;
     display: inline-block;

+ 2 - 2
src/student/my-orchestra/apply-withdrawal.tsx

@@ -71,7 +71,7 @@ export default defineComponent({
       getDetails()
       getDetails()
     })
     })
     return () => (
     return () => (
-      <>
+      <div class={styles.applyWithdrawal}>
         <div class={styles.headers}>
         <div class={styles.headers}>
           <OHeader
           <OHeader
             background={headColor.headBg}
             background={headColor.headBg}
@@ -133,7 +133,7 @@ export default defineComponent({
             )
             )
           }}
           }}
         </Dialog>
         </Dialog>
-      </>
+      </div>
     )
     )
   }
   }
 })
 })