mo преди 1 година
родител
ревизия
19174cdba1

+ 2 - 0
src/custom-plugins/guide-page/attent-guide.tsx

@@ -147,6 +147,8 @@ export default defineComponent({
           height: eleRect.height + height + 'px'
         };
         console.log(`coai-${data.step}`, data.box);
+      }else{
+        handleNext()
       }
     };
     onMounted(() => {

+ 3 - 0
src/custom-plugins/guide-page/class-guide.tsx

@@ -3,6 +3,7 @@ import {
   defineComponent,
   nextTick,
   onMounted,
+  onUnmounted,
   reactive,
   ref,
   watch
@@ -120,6 +121,8 @@ export default defineComponent({
           height: eleRect.height +height+ 'px'
         };
         console.log(`coai-${data.step}`,data.box);
+      }else{
+        handleNext()
       }
     };
     onMounted(() => {

+ 2 - 0
src/custom-plugins/guide-page/data-guide.tsx

@@ -128,6 +128,8 @@ export default defineComponent({
           height: eleRect.height +height+ 'px'
         };
         console.log(`coai-${data.step}`,data.box);
+      }else{
+        handleNext()
       }
     };
     onMounted(() => {

+ 3 - 1
src/custom-plugins/guide-page/home-guide.tsx

@@ -183,6 +183,8 @@ export default defineComponent({
           width: eleRect.width + width+'px',
           height: eleRect.height +height+ 'px'
         };
+      }else{
+        handleNext()
       }
     };
     onMounted(() => {
@@ -204,7 +206,7 @@ export default defineComponent({
       }
       data.step = data.step + 1;
       getStepELe();
-    };
+    }
 
     const endGuide = () => {
       let guideInfo =

+ 2 - 0
src/custom-plugins/guide-page/lessons-guide.tsx

@@ -167,6 +167,8 @@ export default defineComponent({
           height: eleRect.height +height+ 'px'
         };
         console.log(`coai-${data.step}`,data.box);
+      }else{
+        handleNext()
       }
     };
     onMounted(() => {

+ 2 - 0
src/custom-plugins/guide-page/music-guide.tsx

@@ -123,6 +123,8 @@ export default defineComponent({
           height: eleRect.height +height+ 'px'
         };
         console.log(`coai-${data.step}`,data.box);
+      }else{
+        handleNext()
       }
     };
     onMounted(() => {

+ 2 - 0
src/custom-plugins/guide-page/myColloge-guide.tsx

@@ -78,6 +78,8 @@ export default defineComponent({
           height: eleRect.height +height+ 'px'
         };
         console.log(`coai-${data.step}`,data.box);
+      }else{
+        handleNext()
       }
     };
     onMounted(() => {

+ 2 - 0
src/custom-plugins/guide-page/myResources-guide.tsx

@@ -82,6 +82,8 @@ export default defineComponent({
           height: eleRect.height +height+ 'px'
         };
         console.log(`coai-${data.step}`,data.box);
+      }else{
+        handleNext()
       }
     };
     onMounted(() => {

+ 2 - 0
src/custom-plugins/guide-page/shareResources-guide.tsx

@@ -118,6 +118,8 @@ export default defineComponent({
           };
         }
         console.log(`coai-${data.step}`,data.box);
+      }else{
+        handleNext()
       }
     };
     onMounted(() => {

+ 7 - 5
src/custom-plugins/guide-page/student-guide.tsx

@@ -57,13 +57,13 @@ export default defineComponent({
           img: getImage('student2.png'),
           imgStyle: {
             top: '100%',
-            left:  '-265px',
-            width: '515px',
-            height:'227px'
+            left:  px2vw(-265),
+            width:  px2vw(515),
+            height:px2vw(227)
           },
           btnsStyle: {
-            bottom: '30px',
-            left: px2vw(-90),
+            bottom:px2vw(30),
+            left: px2vw(-120),
           },
 
           eleRectPadding:{
@@ -102,6 +102,8 @@ export default defineComponent({
           height: eleRect.height +height+ 'px'
         };
         console.log(`coai-${data.step}`,data.box);
+      }else{
+        handleNext()
       }
     };
     onMounted(() => {

+ 2 - 0
src/custom-plugins/guide-page/teacher-guide.tsx

@@ -103,6 +103,8 @@ export default defineComponent({
           height: eleRect.height +height+ 'px'
         };
         console.log(`coai-${data.step}`,data.box);
+      }else{
+        handleNext()
       }
     };
     onMounted(() => {

+ 4 - 2
src/custom-plugins/guide-page/train-guide.tsx

@@ -78,6 +78,8 @@ export default defineComponent({
           height: eleRect.height +height+ 'px'
         };
         console.log(`coai-${data.step}`,data.box);
+      }else{
+        handleNext()
       }
     };
     onMounted(() => {
@@ -167,14 +169,14 @@ export default defineComponent({
                             onClick={() => endGuide()}>
                             完成
                           </div>
-                          <div
+                          {/* <div
                             class={styles.nextBtn}
                             onClick={() => {
                               data.step = 0;
                               getStepELe();
                             }}>
                             再看一遍
-                          </div>
+                          </div> */}
 
                         </>
                       ) : (

+ 1 - 0
src/views/studentList/index.tsx

@@ -137,6 +137,7 @@ export default defineComponent({
         {
           title: '操作',
           key: 'id',
+          width:300,
           render(row: any, index: number) {
             return (
               <>

+ 2 - 1
src/views/xiaoku-music/index.tsx

@@ -40,6 +40,7 @@ import {
 } from '../xiaoku-ai/api';
 import { useUserStore } from '/src/store/modules/users';
 import Musicguide from '@/custom-plugins/guide-page/music-guide'
+import TheEmpty from '/src/components/TheEmpty';
 export default defineComponent({
   name: 'XiaokuMusic',
   setup() {
@@ -349,7 +350,7 @@ export default defineComponent({
                   )}
                   {!data.loading && data.list.length === 0 && (
                     <div class={styles.empty}>
-                      <NEmpty />
+                      <TheEmpty></TheEmpty>
                     </div>
                   )}
                 </div>