Ver código fonte

去掉功能引导

lex-xin 5 meses atrás
pai
commit
9af09cf439

+ 19 - 26
src/components/layout/index.tsx

@@ -11,39 +11,30 @@ import {
 import LayoutSilder from './layoutSilder';
 import LayoutTop from './layoutTop';
 import styles from './index.module.less';
-import { NButton, NImage, NModal, NPopover, NSpace, useDialog } from 'naive-ui';
+import { NModal, NPopover, useDialog } from 'naive-ui';
 import Moveable from 'moveable';
-import toolStartClass from './images/toolStartClass.png';
+// import toolStartClass from './images/toolStartClass.png';
 import timerMeterClose from './images/close.png';
 import toolbox from './images/toolbox.png';
 import setTimeIcon from './images/setTimeIcon.png';
 import beatIcon from './images/beatIcon.png';
-import toneIcon from './images/toneIcon.png';
+// import toneIcon from './images/toneIcon.png';
 import iconWhiteBorad from './images/icon-whiteborad.png';
 import iconPen from './images/icon-pen.png';
-import iconNote from './images/icon-note.png';
-import beatImage from './images/beatImage.png';
-import toneImage from './images/toneImage.png';
-import setTimeImage from './images/setTimeImage.png';
-import dragingBoxIcon from './images/dragingBoxIcon.png';
+// import iconNote from './images/icon-note.png';
+// import beatImage from './images/beatImage.png';
+// import toneImage from './images/toneImage.png';
+// import setTimeImage from './images/setTimeImage.png';
+// import dragingBoxIcon from './images/dragingBoxIcon.png';
 import TimerMeter from '../timerMeter';
 import Metronome from '../Metronome';
 import { useRoute, useRouter } from 'vue-router';
-import { vaildUrl } from '/src/utils/urlUtils';
-import ChioseModal from '/src/views/home/modals/chioseModal';
-import {
-  eventGlobal,
-  iframeDislableKeyboard,
-  px2vw,
-  px2vwH
-} from '@/utils/index';
+import { eventGlobal } from '@/utils/index';
 import PlaceholderTone from './modals/placeholderTone';
-import { modalClickMask, state } from '/src/state';
+import { modalClickMask } from '/src/state';
 import PreviewWindow from '/src/views/preview-window';
-import { fscreen } from '@/utils/index';
 import AttendClass from '/src/views/prepare-lessons/model/attend-class';
 import Pen from '/src/views/attend-class/component/tools/pen';
-import study from '/src/views/home/components/study';
 import TheAuth from '../TheAuth';
 import useDrag from '@/hooks/useDrag';
 import { getGuidanceShow } from '@/hooks/useDrag/useDragGuidance';
@@ -393,12 +384,10 @@ export default defineComponent({
 
     const isNotPadding = computed(() => {
       const routePath = route.path;
-      const hidePath = [
-        '/xiaoku-list',
-      ];
-      
+      const hidePath = ['/xiaoku-list'];
+
       return hidePath.includes(routePath) ? true : false;
-    })
+    });
 
     onMounted(() => {
       initMoveable();
@@ -653,7 +642,12 @@ export default defineComponent({
         </div>
         <div class={styles.Wrapcore}>
           <LayoutTop></LayoutTop>
-          <div class={[styles.WrapcoreView, isNotPadding.value ? styles.isNotPadding : '']} id="WrapcoreViewWrap">
+          <div
+            class={[
+              styles.WrapcoreView,
+              isNotPadding.value ? styles.isNotPadding : ''
+            ]}
+            id="WrapcoreViewWrap">
             {/* <div class={styles.WrapcoreViewInfo}> */}
             <router-view>
               {(obj: any) => (
@@ -716,7 +710,6 @@ export default defineComponent({
               </div>
             </div>
             <div>
-
               <div
                 class={styles.booxToolItem}
                 onClick={() => startShowModal('iconPen')}>

+ 29 - 29
src/components/layout/layoutTop.tsx

@@ -195,29 +195,29 @@ export default defineComponent({
 
     // 功能引导
     const route = useRoute();
-    const helpNoteList = reactive({
-      baseListTab: ''
-    });
-    const helpNoteStatus = computed(() => {
-      const routePath = route.path;
-      const hidePath = [
-        '/classDetail',
-        '/classStudentDetail',
-        '/notation',
-        '/xiaoku-ai',
-        '/xiaoku-list',
-        '/studentDetail',
-        '/xiaoku-detail',
-        '/classStudentRecode',
-        '/afterWorkDetail'
-      ];
-      // 单独判断个人信息页面[学校设置]有引导
-      if (route.path === '/setting') {
-        return helpNoteList.baseListTab === 'school' ? true : false;
-      } else {
-        return hidePath.includes(routePath) ? false : true;
-      }
-    });
+    // const helpNoteList = reactive({
+    //   baseListTab: ''
+    // });
+    // const helpNoteStatus = computed(() => {
+    //   const routePath = route.path;
+    //   const hidePath = [
+    //     '/classDetail',
+    //     '/classStudentDetail',
+    //     '/notation',
+    //     '/xiaoku-ai',
+    //     '/xiaoku-list',
+    //     '/studentDetail',
+    //     '/xiaoku-detail',
+    //     '/classStudentRecode',
+    //     '/afterWorkDetail'
+    //   ];
+    //   // 单独判断个人信息页面[学校设置]有引导
+    //   if (route.path === '/setting') {
+    //     return helpNoteList.baseListTab === 'school' ? true : false;
+    //   } else {
+    //     return hidePath.includes(routePath) ? false : true;
+    //   }
+    // });
     return () => (
       <div class={styles.layoutTop}>
         <div class={styles.layoutLeft}>
@@ -236,15 +236,15 @@ export default defineComponent({
                 <div
                   class={[
                     styles.optons,
-                    !helpNoteStatus.value && styles.booxToolDisabled
+                    // !helpNoteStatus.value && styles.booxToolDisabled
                   ]}
                   id="home-1"
                   onClick={() => {
-                    if (!helpNoteStatus.value) return;
-                    // 默认滚动到页面顶部,在显示指引
-                    document.querySelector('#WrapcoreViewWrap')?.scrollTo(0, 0);
-                    console.log(route.name, 'guideInfo');
-                    eventGlobal.emit('teacher-guideInfo', route.name);
+                    // if (!helpNoteStatus.value) return;
+                    // // 默认滚动到页面顶部,在显示指引
+                    // document.querySelector('#WrapcoreViewWrap')?.scrollTo(0, 0);
+                    // console.log(route.name, 'guideInfo');
+                    // eventGlobal.emit('teacher-guideInfo', route.name);
                   }}>
                   <NImage src={gnydIcon} previewDisabled></NImage>
                 </div>

+ 10 - 16
src/views/attend-class/index.tsx

@@ -29,31 +29,25 @@ import playLoadData from './datas/data.json';
 import VideoPlay from './component/video-play';
 import {
   useMessage,
-  NDrawer,
-  NDrawerContent,
   NModal,
   NSpace,
   NButton,
-  NCollapse,
-  NCollapseItem,
   NTooltip
 } from 'naive-ui';
-import CardType from '@/components/card-type';
+// import CardType from '@/components/card-type';
 import Pen from './component/tools/pen';
 import AudioPay from './component/audio-pay';
-import TrainSettings from './model/train-settings';
+// import TrainSettings from './model/train-settings';
 import { useRoute } from 'vue-router';
 import {
   api_teacherChapterLessonCoursewareDetail,
   courseScheduleUpdate,
-  lessonCoursewareDetail,
-  lessonPreTrainingPage,
-  queryCourseware
+  lessonCoursewareDetail
 } from '../prepare-lessons/api';
-import { vaildUrl } from '/src/utils/urlUtils';
+// import { vaildUrl } from '/src/utils/urlUtils';
 import TimerMeter from '/src/components/timerMeter';
 import Metronome from '/src/components/Metronome';
-import { iframeDislableKeyboard, px2vw } from '/src/utils';
+// import { iframeDislableKeyboard, px2vw } from '/src/utils';
 import PlaceholderTone from '/src/components/layout/modals/placeholderTone';
 import { state as globalState, modalClickMask } from '/src/state';
 import Chapter from './model/chapter';
@@ -67,7 +61,7 @@ import rightIconArrange from './image/right_icon2.png';
 import rightIconPostil from './image/right_icon3.png';
 import rightIconWhiteboard from './image/right_icon4.png';
 import rightIconMetronome from './image/right_icon5.png';
-import rightIconTuner from './image/right_icon6.png';
+// import rightIconTuner from './image/right_icon6.png';
 import rightIconTimer from './image/right_icon7.png';
 import rightIconCall from './image/right_icon10.png';
 import rightIconPackUp from './image/right_icon11.png';
@@ -78,12 +72,12 @@ import bottomIconResource from './image/bottom_icon2.png';
 import bottomIconPre from './image/bottom_icon3.png';
 import bottomIconNext from './image/bottom_icon4.png';
 import rightIconTool from './image/right_icon12.png';
-import rightHideIcon from './image/right_hide_icon.png';
-import leftHideIcon from './image/left_hide_icon.png';
+// import rightHideIcon from './image/right_hide_icon.png';
+// import leftHideIcon from './image/left_hide_icon.png';
 import SelectResources from '../prepare-lessons/model/select-resources';
 import { getStudentAfterWork, getStudentList } from '../studentList/api';
-import TheNoticeBar from '/src/components/TheNoticeBar';
-import ClassWork from './model/class-work';
+// import TheNoticeBar from '/src/components/TheNoticeBar';
+// import ClassWork from './model/class-work';
 import SelectClass from './model/select-class';
 import SourceList from './model/source-list';
 import RhythmModal from './component/rhythm-modal';

+ 8 - 8
src/views/data-module/index.tsx

@@ -7,7 +7,7 @@ import CDatePicker from '/src/components/CDatePicker';
 import TrainData from '@/views/home/components/trainData';
 import PracticeData from '@/views/home/components/practiceData';
 import PracticeRanking from '@/views/home/components/practiceRanking';
-import DataGuide from '@/custom-plugins/guide-page/data-guide';
+// import DataGuide from '@/custom-plugins/guide-page/data-guide';
 import {
   getNowDateAndMonday,
   getNowDateAndSunday
@@ -28,7 +28,7 @@ export default defineComponent({
     const setTabs = (val: any) => {
       setTabsCaches(val, 'tabName', route);
     };
-    const showGuide = ref(false);
+    // const showGuide = ref(false);
     const timer = ref<[number, number]>([
       getNowDateAndMonday(new Date().getTime()),
       getNowDateAndSunday(new Date().getTime())
@@ -61,11 +61,11 @@ export default defineComponent({
       });
     };
 
-    onMounted(() => {
-      setTimeout(() => {
-        showGuide.value = true;
-      }, 800);
-    });
+    // onMounted(() => {
+      // setTimeout(() => {
+      //   showGuide.value = true;
+      // }, 800);
+    // });
     return () => (
       <div>
         <div class={styles.listWrap}>
@@ -129,7 +129,7 @@ export default defineComponent({
                 timer={timer.value}></PracticeRanking>
             </NTabPane>
           </NTabs>
-          {showGuide.value ? <DataGuide></DataGuide> : null}
+          {/* {showGuide.value ? <DataGuide></DataGuide> : null} */}
         </div>
       </div>
     );

+ 2 - 2
src/views/home/index.tsx

@@ -31,13 +31,13 @@ import { useUserStore } from '/src/store/modules/users';
 import dayjs from 'dayjs';
 import UpdatePassword from '/src/components/layout/modals/update-password';
 import AttendClass from '../prepare-lessons/model/attend-class';
-import { useResizeObserver } from '@vueuse/core';
+// import { useResizeObserver } from '@vueuse/core';
 import PlaceholderTone from '/src/components/layout/modals/placeholderTone';
 import PreviewWindow from '../preview-window';
 import { modalClickMask, state } from '/src/state';
 import SubjectModal from './modals/subject-modal';
 import { vaildMusicScoreUrl } from '/src/utils/urlUtils';
-import HomeGuide from '/src/custom-plugins/guide-page/home-guide';
+// import HomeGuide from '/src/custom-plugins/guide-page/home-guide';
 // import { state } from '/src/state';
 export const formatDateToDay = () => {
   const hours = dayjs().hour();

+ 6 - 6
src/views/natural-resources/index.tsx

@@ -4,7 +4,7 @@ import { NTabPane, NTabs } from 'naive-ui';
 import ShareResources from './components/share-resources';
 import MyResources from './components/my-resources';
 import MyCollect from './components/my-collect';
-import { eventGlobal } from '/src/utils';
+// import { eventGlobal } from '/src/utils';
 import { useCatchStore } from '/src/store/modules/catchData';
 
 export default defineComponent({
@@ -13,11 +13,11 @@ export default defineComponent({
     const catchStore = useCatchStore();
     const tab = ref('myResources');
     onMounted(async () => {
-      eventGlobal.on('teacher-guideInfo', (name: string) => {
-        if (name === 'natural-resources') {
-          eventGlobal.emit('natural-resources-guide', tab.value);
-        }
-      });
+      // eventGlobal.on('teacher-guideInfo', (name: string) => {
+      //   if (name === 'natural-resources') {
+      //     eventGlobal.emit('natural-resources-guide', tab.value);
+      //   }
+      // });
       // 获取教材分类列表
       await catchStore.getMusicSheetCategory(true);
     });