lex 2 years ago
parent
commit
0f5e08e66b

+ 2 - 1
public/project/preRegister.html

@@ -348,10 +348,11 @@
           var schoolDetail = await axios.post('/api-student/open/school/detail', {
             orchestraId: this.orchestraId
           })
+          console.log(schoolDetail)
           if (schoolDetail.data.code === 200) {
             var schoolSystem = schoolDetail.data.data.schoolSystem || 'sixYearSystem'
             this.schoolId = schoolDetail.data.data.id
-            if (schoolDetail === 'sixYearSystem') {
+            if (schoolSystem === 'sixYearSystem') {
               this.currentGrade.push({ text: '六年级', value: 6 })
             }
           }

+ 2 - 2
src/components/o-header/index.tsx

@@ -80,7 +80,7 @@ export default defineComponent({
   },
   unmounted() {
     if (this.desotry) {
-      // 设置是否显示导航栏 0 显示 1 显示
+      // 设置是否显示导航栏 0 显示 1 显示
       postMessage({ api: 'setBarStatus', content: { status: 1 } })
       // 设置返回按钮颜色
       postMessage({
@@ -91,7 +91,7 @@ export default defineComponent({
   },
   methods: {
     navBarInit(callBack?: Function) {
-      // 设置是否显示导航栏 0 显示 1 显示
+      // 设置是否显示导航栏 0 显示 1 显示
       postMessage({ api: 'setBarStatus', content: { status: 0 } })
       // 设置返回按钮颜色
       postMessage({

+ 1 - 1
src/school/mass-message/create-message.tsx

@@ -40,7 +40,7 @@ export default defineComponent({
       type: 'ADD',
       bucket: 'daya',
       sendStatus: false,
-      sendType: null as any,
+      sendType: 'IMMEDIATELY' as any,
       textMessage: null,
       sendTime: null as any,
       sendTimeStatus: false,

+ 11 - 0
src/student/my-orchestra/apply-withdrawal.tsx

@@ -22,6 +22,14 @@ export default defineComponent({
       id: route.query.id
     })
 
+    const getDetails = async () => {
+      try {
+        const { data } = await request.post('/api-student/student/getOrchestraDate/' + forms.id)
+      } catch {
+        //
+      }
+    }
+
     const onSubmit = async () => {
       // forms.status = true
       await request.post('/api-student/orchestra/leaveOrchestra', {
@@ -32,6 +40,9 @@ export default defineComponent({
         }
       })
     }
+    onMounted(() => {
+      getDetails()
+    })
     return () => (
       <>
         <div class={styles.headers}>

+ 1 - 1
src/student/my-orchestra/index.tsx

@@ -238,7 +238,7 @@ export default defineComponent({
                 </div>
               </List>
             ) : (
-              <OEmpty btnStatus={false} classImgSize="SMALL" tips="暂无相册" />
+              <OEmpty btnStatus={false} classImgSize="SMALL" tips="暂无训练相片" />
             )}
           </>
         ) : (

+ 2 - 2
vite.config.ts

@@ -12,9 +12,9 @@ function resolve(dir: string) {
 // https://vitejs.dev/config/
 // https://github.com/vitejs/vite/issues/1930 .env
 // const proxyUrl = 'https://mstutest.dayaedu.com/';
-const proxyUrl = 'http://47.98.131.38:8989/'
+// const proxyUrl = 'http://47.98.131.38:8989/'
 // const proxyUrl = 'http://192.168.3.143:8989/' // 尚科
-// const proxyUrl = 'http://192.168.3.26:8989/' // 刘俊驰
+const proxyUrl = 'http://192.168.3.26:8989/' // 刘俊驰
 export default defineConfig({
   base: './',
   plugins: [