Bladeren bron

Merge branch 'ktyq-test-new' of http://git.dayaedu.com/liushengqiang/music-score into ktyq-test-new

TIANYONG 10 maanden geleden
bovenliggende
commit
d0f0755727

+ 35 - 38
src/page-instrument/custom-plugins/guide-driver/index.tsx

@@ -68,7 +68,7 @@ export const PractiseDriver = defineComponent({
       }
       }
 
 
       // pc端不显示标题和模式切换引导
       // pc端不显示标题和模式切换引导
-      if(state.platform === IPlatform.PC) {
+      if (state.platform === IPlatform.PC) {
         length -= 2;
         length -= 2;
       } else {
       } else {
         // 判断是否有标题
         // 判断是否有标题
@@ -200,7 +200,6 @@ export const PractiseDriver = defineComponent({
         });
         });
       }
       }
 
 
-     
       if (state.platform === IPlatform.PC) {
       if (state.platform === IPlatform.PC) {
         if (state.setting.displayFingering) {
         if (state.setting.displayFingering) {
           options.steps?.push({
           options.steps?.push({
@@ -267,21 +266,21 @@ export const PractiseDriver = defineComponent({
           });
           });
         }
         }
       } else {
       } else {
-         options.steps?.push({
-           element: ".driver-6",
-           popover: {
-             title: "",
-             description: "",
-             popoverClass: "popoverClass popoverClass6",
-             align: "start",
-             side: "top",
-             nextBtnText: `下一步 (${options.steps.length + 1}/${length})`, //"下一步6/" + length,
-             showButtons: ["next"],
-             onPopoverRender: (popover: PopoverDOM, options: { config: Config; state: State }) => {
-               driverInitialPosition(popover, options);
-             },
-           },
-         });
+        options.steps?.push({
+          element: ".driver-6",
+          popover: {
+            title: "",
+            description: "",
+            popoverClass: "popoverClass popoverClass6",
+            align: "start",
+            side: "top",
+            nextBtnText: `下一步 (${options.steps.length + 1}/${length})`, //"下一步6/" + length,
+            showButtons: ["next"],
+            onPopoverRender: (popover: PopoverDOM, options: { config: Config; state: State }) => {
+              driverInitialPosition(popover, options);
+            },
+          },
+        });
 
 
         if (state.setting.displayFingering) {
         if (state.setting.displayFingering) {
           // 是否有指法图
           // 是否有指法图
@@ -308,8 +307,8 @@ export const PractiseDriver = defineComponent({
 
 
         if (!props.statusAll.modelTypeStatus) {
         if (!props.statusAll.modelTypeStatus) {
           options.steps?.push({
           options.steps?.push({
-            //
-            element: props.statusAll.titleType === "TEXT" ? ".driver-8 .van-notice-bar__content" : '".driver-8',
+            //props.statusAll.titleType === "TEXT" ? ".driver-8 .van-notice-bar__content" :
+            element: ".driver-8",
             popover: {
             popover: {
               title: "",
               title: "",
               description: "",
               description: "",
@@ -345,7 +344,8 @@ export const PractiseDriver = defineComponent({
             {
             {
               //  .van-notice-bar__content
               //  .van-notice-bar__content
               // element: ".driver-8 .van-notice-bar__content",
               // element: ".driver-8 .van-notice-bar__content",
-              element: props.statusAll.titleType === "TEXT" ? ".driver-8 .van-notice-bar__content" : '".driver-8',
+              // props.statusAll.titleType === "TEXT" ? ".driver-8 .van-notice-bar__content" :
+              element: ".driver-8",
               popover: {
               popover: {
                 title: "",
                 title: "",
                 description: "",
                 description: "",
@@ -406,15 +406,15 @@ export const PractiseDriver = defineComponent({
     let driverObj: any;
     let driverObj: any;
 
 
     const handleClickOutside = (event: any) => {
     const handleClickOutside = (event: any) => {
-        // 如果高亮没有结束则下进行下一步
-        if (driverNextStatus.value) return;
-        if (driverObj.isActive() && (event.target.nodeName === "path" || event.target.classList.contains("driver-popover") || event.target.classList.contains("driver-overlay"))) {
-          if (driverObj.isLastStep()) {
-            onDriverClose();
-          } else {
-            driverObj.moveNext(); // 跳转到下一步
-          }
+      // 如果高亮没有结束则下进行下一步
+      if (driverNextStatus.value) return;
+      if (driverObj.isActive() && (event.target.nodeName === "path" || event.target.classList.contains("driver-popover") || event.target.classList.contains("driver-overlay"))) {
+        if (driverObj.isLastStep()) {
+          onDriverClose();
+        } else {
+          driverObj.moveNext(); // 跳转到下一步
         }
         }
+      }
     };
     };
 
 
     const guideInfo = ref({} as any);
     const guideInfo = ref({} as any);
@@ -459,14 +459,13 @@ export const PractiseDriver = defineComponent({
       driverObj.destroy();
       driverObj.destroy();
       document.querySelector(".driver-popover-close-btn-custom")?.remove();
       document.querySelector(".driver-popover-close-btn-custom")?.remove();
       document.removeEventListener("click", handleClickOutside, true);
       document.removeEventListener("click", handleClickOutside, true);
-      state.hasDriverPop = false
+      state.hasDriverPop = false;
     };
     };
 
 
     onUnmounted(() => {
     onUnmounted(() => {
       document.removeEventListener("click", handleClickOutside, true);
       document.removeEventListener("click", handleClickOutside, true);
     });
     });
 
 
-
     return () => (
     return () => (
       <Teleport to="body">
       <Teleport to="body">
         {showCloseBtn.value && (
         {showCloseBtn.value && (
@@ -652,12 +651,12 @@ export const FollowDriver = defineComponent({
       driverObj.destroy();
       driverObj.destroy();
       document.querySelector(".driver-popover-close-btn-custom")?.remove();
       document.querySelector(".driver-popover-close-btn-custom")?.remove();
       document.removeEventListener("click", handleClickOutside, true);
       document.removeEventListener("click", handleClickOutside, true);
-      state.hasDriverPop = false
+      state.hasDriverPop = false;
     };
     };
 
 
     onUnmounted(() => {
     onUnmounted(() => {
       document.removeEventListener("click", handleClickOutside, true);
       document.removeEventListener("click", handleClickOutside, true);
-    })
+    });
 
 
     return () => (
     return () => (
       <Teleport to="body">
       <Teleport to="body">
@@ -871,7 +870,6 @@ export const EvaluatingDriver = defineComponent({
       document.removeEventListener("click", handleClickOutside, true);
       document.removeEventListener("click", handleClickOutside, true);
     });
     });
 
 
-
     return () => (
     return () => (
       <Teleport to="body">
       <Teleport to="body">
         {showCloseBtn.value && (
         {showCloseBtn.value && (
@@ -898,9 +896,9 @@ export const EvaluatingResultDriver = defineComponent({
     },
     },
   },
   },
   setup(props) {
   setup(props) {
-    let length = 4
-    if(!props.saveBtn) {
-      length -= 1
+    let length = 4;
+    if (!props.saveBtn) {
+      length -= 1;
     }
     }
     console.log(props.saveBtn, "props.saveBtn");
     console.log(props.saveBtn, "props.saveBtn");
     const driverNextStatus = ref(false);
     const driverNextStatus = ref(false);
@@ -1369,14 +1367,13 @@ export const EvaluatingReportDriver = defineComponent({
       driverObj.destroy();
       driverObj.destroy();
       document.querySelector(".driver-popover-close-btn-custom")?.remove();
       document.querySelector(".driver-popover-close-btn-custom")?.remove();
       document.removeEventListener("click", handleClickOutside, true);
       document.removeEventListener("click", handleClickOutside, true);
-      state.hasDriverPop = false
+      state.hasDriverPop = false;
     };
     };
 
 
     onUnmounted(() => {
     onUnmounted(() => {
       document.removeEventListener("click", handleClickOutside, true);
       document.removeEventListener("click", handleClickOutside, true);
     });
     });
 
 
-
     return () => (
     return () => (
       <Teleport to="body">
       <Teleport to="body">
         {showCloseBtn.value && (
         {showCloseBtn.value && (

+ 155 - 91
src/page-instrument/header-top/index.module.less

@@ -6,75 +6,86 @@
     flex-shrink: 0;
     flex-shrink: 0;
     margin-left: calc(-1 * var(--detailDataPaddingLeft));
     margin-left: calc(-1 * var(--detailDataPaddingLeft));
     padding: 0 30px;
     padding: 0 30px;
-    background: linear-gradient( 180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
+    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
+
     &.headerTopRight {
     &.headerTopRight {
         justify-content: flex-end;
         justify-content: flex-end;
     }
     }
 }
 }
-.modeWarn{
+
+.modeWarn {
     position: fixed;
     position: fixed;
     left: 30px;
     left: 30px;
     bottom: 20px;
     bottom: 20px;
     border-radius: 16px;
     border-radius: 16px;
-    background-color: rgba(12,51,107,0.61);
+    background-color: rgba(12, 51, 107, 0.61);
     padding: 6px 11px;
     padding: 6px 11px;
     align-items: center;
     align-items: center;
     display: flex;
     display: flex;
     opacity: 0;
     opacity: 0;
     transition: all .3s ease-in;
     transition: all .3s ease-in;
-    & > div{
+
+    &>div {
         margin-left: 4px;
         margin-left: 4px;
         font-weight: 500;
         font-weight: 500;
         font-size: 14px;
         font-size: 14px;
         line-height: 20px;
         line-height: 20px;
-        color: rgba(255,255,255,0.7);
-    }    
-    & > img{
+        color: rgba(255, 255, 255, 0.7);
+    }
+
+    &>img {
         width: 18px;
         width: 18px;
         height: 18px;
         height: 18px;
     }
     }
+
     &.modeWarnRight {
     &.modeWarnRight {
         left: inherit;
         left: inherit;
         right: 30px;
         right: 30px;
     }
     }
 }
 }
-.headTopLeftBox{
+
+.headTopLeftBox {
     position: fixed;
     position: fixed;
     top: 20px;
     top: 20px;
     left: 30px;
     left: 30px;
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
-    .img{
+
+    .img {
         width: 32px;
         width: 32px;
         height: 32px;
         height: 32px;
     }
     }
-    .listImg{
+
+    .listImg {
         margin-left: 16px;
         margin-left: 16px;
     }
     }
-    .title{
-        width: 216px;
+
+    .title {
+        width: 210px;
         margin-left: 10px;
         margin-left: 10px;
-        &.isMusicList{
-            :global{
-                .van-notice-bar{
-                    &::after{
+
+        &.isMusicList {
+            :global {
+                .van-notice-bar {
+                    &::after {
                         max-width: calc(216px + 16px);
                         max-width: calc(216px + 16px);
                         position: absolute;
                         position: absolute;
                         top: 0;
                         top: 0;
                         left: 0;
                         left: 0;
                         content: "";
                         content: "";
-                        width: calc(var(--noticeBarWidth,100%) + 16px);
+                        width: calc(var(--noticeBarWidth, 100%) + 16px);
                         height: 100%;
                         height: 100%;
                         background: url("./image/sj.png") no-repeat;
                         background: url("./image/sj.png") no-repeat;
                         background-size: 9px 6px;
                         background-size: 9px 6px;
-                        background-position: center right;                   
+                        background-position: center right;
                     }
                     }
-                    
+
                 }
                 }
             }
             }
         }
         }
-        :global{
-            .van-notice-bar{
+
+        :global {
+            .van-notice-bar {
                 height: 30px;
                 height: 30px;
                 line-height: 30px;
                 line-height: 30px;
                 padding: 0;
                 padding: 0;
@@ -84,12 +95,14 @@
             }
             }
         }
         }
     }
     }
+
     .hidenBack {
     .hidenBack {
         opacity: 0;
         opacity: 0;
         pointer-events: none;
         pointer-events: none;
     }
     }
 }
 }
-.modeChangeBox{
+
+.modeChangeBox {
     position: fixed;
     position: fixed;
     top: 20px;
     top: 20px;
     right: 30px;
     right: 30px;
@@ -99,21 +112,25 @@
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
     padding: 0 10px;
     padding: 0 10px;
-    .img{
+
+    .img {
         width: 18px;
         width: 18px;
         height: 18px;
         height: 18px;
     }
     }
-    .title{
+
+    .title {
         margin-left: 6px;
         margin-left: 6px;
         font-weight: 500;
         font-weight: 500;
         font-size: 14px;
         font-size: 14px;
         color: #FFFFFF;
         color: #FFFFFF;
     }
     }
 }
 }
+
 .headRight {
 .headRight {
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
     height: 100%;
     height: 100%;
+
     .btn {
     .btn {
         position: relative;
         position: relative;
         display: flex;
         display: flex;
@@ -121,13 +138,16 @@
         align-items: center;
         align-items: center;
         cursor: pointer;
         cursor: pointer;
         margin-right: 30px;
         margin-right: 30px;
-        &:last-child{
+
+        &:last-child {
             margin-right: 0;
             margin-right: 0;
         }
         }
+
         .iconBtn {
         .iconBtn {
             width: 24px;
             width: 24px;
             height: 24px;
             height: 24px;
         }
         }
+
         span {
         span {
             margin-top: 3px;
             margin-top: 3px;
             font-weight: 500;
             font-weight: 500;
@@ -135,97 +155,130 @@
             color: #FFFFFF;
             color: #FFFFFF;
             line-height: 17px;
             line-height: 17px;
         }
         }
-        &:active{
-            >span{
+
+        &:active {
+            >span {
                 color: #34D6FF
                 color: #34D6FF
-            };
+            }
+
+            ;
         }
         }
-        &.playType:active{
-            >img:nth-child(1){
+
+        &.playType:active {
+            >img:nth-child(1) {
                 content: url("./image/performAct.png");
                 content: url("./image/performAct.png");
-            }            
-            >img:nth-child(2){
+            }
+
+            >img:nth-child(2) {
                 content: url("./image/singAct.png");
                 content: url("./image/singAct.png");
             }
             }
         }
         }
-        &.playSource:active{
-            >img:nth-child(1){
+
+        &.playSource:active {
+            >img:nth-child(1) {
                 content: url("./image/musicAct.png");
                 content: url("./image/musicAct.png");
-            }            
-            >img:nth-child(2){
+            }
+
+            >img:nth-child(2) {
                 content: url("./image/backgroundAct.png");
                 content: url("./image/backgroundAct.png");
-            }            
-        }      
-        &.songSource:active{
-            >img:nth-child(1){
+            }
+        }
+
+        &.songSource:active {
+            >img:nth-child(1) {
                 content: url("./image/music1Act.png");
                 content: url("./image/music1Act.png");
-            }            
-            >img:nth-child(2){
+            }
+
+            >img:nth-child(2) {
                 content: url("./image/background1Act.png");
                 content: url("./image/background1Act.png");
-            }            
-            >img:nth-child(3){
+            }
+
+            >img:nth-child(3) {
                 content: url("./image/mingsongAct.png");
                 content: url("./image/mingsongAct.png");
             }
             }
         }
         }
-        &.section:active{
-            >img{
+
+        &.section:active {
+            >img {
                 content: url("./image/section2.png");
                 content: url("./image/section2.png");
             }
             }
         }
         }
-        &.isSection{
-            >span{
+
+        &.isSection {
+            >span {
                 color: #34D6FF
                 color: #34D6FF
-            };
+            }
+
+            ;
         }
         }
-        &.speed:active{
-            >img:nth-child(1){
+
+        &.speed:active {
+            >img:nth-child(1) {
                 content: url("./image/tickonAct.png");
                 content: url("./image/tickonAct.png");
-            }            
-            >img:nth-child(2){
+            }
+
+            >img:nth-child(2) {
                 content: url("./image/tickoffAct.png");
                 content: url("./image/tickoffAct.png");
-            } 
+            }
         }
         }
-        &.isSpeed{
-            >img:nth-child(1){
+
+        &.isSpeed {
+            >img:nth-child(1) {
                 content: url("./image/tickonAct.png");
                 content: url("./image/tickonAct.png");
-            }            
-            >img:nth-child(2){
+            }
+
+            >img:nth-child(2) {
                 content: url("./image/tickoffAct.png");
                 content: url("./image/tickoffAct.png");
-            } 
-            >span{
+            }
+
+            >span {
                 color: #34D6FF
                 color: #34D6FF
-            }; 
-        }      
-        &.settingMode:active{
-            >img{
+            }
+
+            ;
+        }
+
+        &.settingMode:active {
+            >img {
                 content: url("./image/icon_menuAct.png");
                 content: url("./image/icon_menuAct.png");
-            }            
-        }  
-        &.isSettingMode{
-            >img{
+            }
+        }
+
+        &.isSettingMode {
+            >img {
                 content: url("./image/icon_menuAct.png");
                 content: url("./image/icon_menuAct.png");
-            }            
-            >span{
+            }
+
+            >span {
                 color: #34D6FF
                 color: #34D6FF
-            }; 
-        }  
-        &.musicSheet:active{
-            >img{
+            }
+
+            ;
+        }
+
+        &.musicSheet:active {
+            >img {
                 content: url("./image/shengguiAct.png");
                 content: url("./image/shengguiAct.png");
-            }            
-        }       
-        &.isMusicSheet{
-            >img{
+            }
+        }
+
+        &.isMusicSheet {
+            >img {
                 content: url("./image/shengguiAct.png");
                 content: url("./image/shengguiAct.png");
-            }            
-            >span{
+            }
+
+            >span {
                 color: #34D6FF
                 color: #34D6FF
-            }; 
+            }
+
+            ;
         }
         }
     }
     }
-    .metronomeBtn{
+
+    .metronomeBtn {
         position: relative;
         position: relative;
-        .speedCon{
+
+        .speedCon {
             transform: scale(0.83);
             transform: scale(0.83);
             transform-origin: left bottom;
             transform-origin: left bottom;
             padding: 2px;
             padding: 2px;
@@ -237,11 +290,13 @@
             background: #FFC121;
             background: #FFC121;
             border-radius: 120px 120px 120px 1px;
             border-radius: 120px 120px 120px 1px;
             border: 1px solid #FFFFFF;
             border: 1px solid #FFFFFF;
-            >img{
+
+            >img {
                 width: 15px;
                 width: 15px;
                 height: 11px;
                 height: 11px;
             }
             }
-            >div{
+
+            >div {
                 margin-left: 1px;
                 margin-left: 1px;
                 font-weight: 600;
                 font-weight: 600;
                 font-size: 12px;
                 font-size: 12px;
@@ -262,6 +317,7 @@
     right: 30px;
     right: 30px;
     bottom: 12px;
     bottom: 12px;
     transition: bottom .2s ease;
     transition: bottom .2s ease;
+
     .btnWrap {
     .btnWrap {
         width: 50px;
         width: 50px;
         height: 50px;
         height: 50px;
@@ -272,6 +328,7 @@
             height: 100%;
             height: 100%;
         }
         }
     }
     }
+
     &.playLeftButton {
     &.playLeftButton {
         left: 46px !important;
         left: 46px !important;
         right: auto !important;
         right: auto !important;
@@ -283,7 +340,7 @@
         left: auto !important;
         left: auto !important;
         bottom: 12px !important;
         bottom: 12px !important;
     }
     }
-    
+
     .progress {
     .progress {
         position: absolute;
         position: absolute;
         left: 50%;
         left: 50%;
@@ -345,11 +402,13 @@
     background: url(./image/bg.png) no-repeat;
     background: url(./image/bg.png) no-repeat;
     background-size: 100% 100%;
     background-size: 100% 100%;
     transition: all .3s;
     transition: all .3s;
-    &.hidden{
+
+    &.hidden {
         opacity: 0;
         opacity: 0;
         transform: translateY(100%);
         transform: translateY(100%);
         pointer-events: none;
         pointer-events: none;
     }
     }
+
     .back {
     .back {
         position: absolute;
         position: absolute;
         width: 38px;
         width: 38px;
@@ -358,6 +417,7 @@
         top: 17px;
         top: 17px;
         cursor: pointer;
         cursor: pointer;
     }
     }
+
     .name {
     .name {
         position: absolute;
         position: absolute;
         left: 50%;
         left: 50%;
@@ -366,19 +426,23 @@
         width: 87px;
         width: 87px;
         height: 21px;
         height: 21px;
     }
     }
+
     .modeBox {
     .modeBox {
         width: 100%;
         width: 100%;
         margin-top: 90px;
         margin-top: 90px;
         display: flex;
         display: flex;
         justify-content: space-between;
         justify-content: space-between;
         padding: 0 36px;
         padding: 0 36px;
-        &.twoModeBox{
+
+        &.twoModeBox {
             justify-content: center;
             justify-content: center;
-            > .modeImg + .modeImg{
+
+            >.modeImg+.modeImg {
                 margin-left: 150px;
                 margin-left: 150px;
             }
             }
         }
         }
-        > .modeImg {
+
+        >.modeImg {
             width: calc((100% - 2*40px)/3);
             width: calc((100% - 2*40px)/3);
             max-width: 220px;
             max-width: 220px;
         }
         }
@@ -392,6 +456,6 @@
     opacity: 0;
     opacity: 0;
 }
 }
 
 
-.socketErrorStatus{
+.socketErrorStatus {
     top: 10vh;
     top: 10vh;
 }
 }

+ 34 - 25
src/page-instrument/header-top/index.tsx

@@ -95,7 +95,7 @@ export const headTopData = reactive({
     headTopData.modeType = "show";
     headTopData.modeType = "show";
   },
   },
   // 改变模式之前的状态
   // 改变模式之前的状态
-  oldPlayType: "play"
+  oldPlayType: "play",
 });
 });
 
 
 export const headData = reactive({
 export const headData = reactive({
@@ -108,7 +108,7 @@ let resetBtn: ComputedRef<{
   disabled: boolean;
   disabled: boolean;
 }>;
 }>;
 // 点击切换的时候才触发提醒
 // 点击切换的时候才触发提醒
-let isClickMode = false
+let isClickMode = false;
 /**
 /**
  * 处理模式切换
  * 处理模式切换
  * @param oldPlayType   没改变之前的播放模式
  * @param oldPlayType   没改变之前的播放模式
@@ -131,13 +131,13 @@ export function handlerModeChange(oldPlayType: "play" | "sing", oldPlaySource: I
     resetBtn && (resetBtn.value.display = false);
     resetBtn && (resetBtn.value.display = false);
   }
   }
   // 当模式改变的时候  放在这里是因为需要等谱面加载完成之后再提示(点击按钮模式切换才提示)
   // 当模式改变的时候  放在这里是因为需要等谱面加载完成之后再提示(点击按钮模式切换才提示)
-  if(isClickMode){
+  if (isClickMode) {
     showToast({
     showToast({
       message: state.playType === "play" ? "已切换为演奏场景" : "已切换为演唱场景",
       message: state.playType === "play" ? "已切换为演奏场景" : "已切换为演唱场景",
       position: "top",
       position: "top",
       className: "selectionToast",
       className: "selectionToast",
     });
     });
-    isClickMode = false
+    isClickMode = false;
   }
   }
 }
 }
 // 模式切换之后重新给times赋值
 // 模式切换之后重新给times赋值
@@ -261,7 +261,8 @@ export default defineComponent({
     // 是否显示引导
     // 是否显示引导
     const showGuide = ref(false);
     const showGuide = ref(false);
     const showStudentGuide = ref(false);
     const showStudentGuide = ref(false);
-    let  displayFingeringCache = false // 指法缓存
+    const showWebGuide = ref(true);
+    let displayFingeringCache = false; // 指法缓存
     /** 设置按钮 */
     /** 设置按钮 */
     const settingBtn = computed(() => {
     const settingBtn = computed(() => {
       // 音频播放中 禁用
       // 音频播放中 禁用
@@ -398,8 +399,8 @@ export default defineComponent({
         // 演唱和演奏 都有数据的时间不禁用
         // 演唱和演奏 都有数据的时间不禁用
         if (songIndex > 0 && index > 0) {
         if (songIndex > 0 && index > 0) {
           // 音频播放中 禁用
           // 音频播放中 禁用
-          if(state.playState === "play"){
-            return { display: true, disabled: true }
+          if (state.playState === "play") {
+            return { display: true, disabled: true };
           }
           }
           return { display: true, disabled: false };
           return { display: true, disabled: false };
         }
         }
@@ -412,7 +413,7 @@ export default defineComponent({
     /** 模式切换按钮 */
     /** 模式切换按钮 */
     const toggleBtn = computed(() => {
     const toggleBtn = computed(() => {
       // 不是演奏模式 影藏
       // 不是演奏模式 影藏
-      if(state.playType !== "play") return { display: false, disabled: false }
+      if (state.playType !== "play") return { display: false, disabled: false };
       // 选择模式, url设置模式 不显示
       // 选择模式, url设置模式 不显示
       if (headTopData.modeType !== "show" || !headTopData.showBack) return { display: false, disabled: false };
       if (headTopData.modeType !== "show" || !headTopData.showBack) return { display: false, disabled: false };
       // 跟练开始, 评测开始 播放开始 隐藏
       // 跟练开始, 评测开始 播放开始 隐藏
@@ -566,21 +567,29 @@ export default defineComponent({
       } else {
       } else {
         showStudentGuide.value = true;
         showStudentGuide.value = true;
       }
       }
+
+      if (query.showWebGuide === "false") {
+        showWebGuide.value = false;
+      }
     });
     });
 
 
     onUnmounted(() => {
     onUnmounted(() => {
       window.removeEventListener("message", changePlay);
       window.removeEventListener("message", changePlay);
     });
     });
-    const noticeBarWidth = ref<number>()
-    watch(()=>smoothAnimationState.isShow.value, ()=>{
-      // NoticeBar能不能滚动
-      if(smoothAnimationState.isShow.value && isMusicList.value){
-        nextTick(()=>{
-          const widthCon = (document.querySelector("#noticeBarRollDom .van-notice-bar__content") as any)?.offsetWidth || undefined
-          noticeBarWidth.value = widthCon
-        })
-      }
-    },{ immediate: true })
+    const noticeBarWidth = ref<number>();
+    watch(
+      () => smoothAnimationState.isShow.value,
+      () => {
+        // NoticeBar能不能滚动
+        if (smoothAnimationState.isShow.value && isMusicList.value) {
+          nextTick(() => {
+            const widthCon = (document.querySelector("#noticeBarRollDom .van-notice-bar__content") as any)?.offsetWidth || undefined;
+            noticeBarWidth.value = widthCon;
+          });
+        }
+      },
+      { immediate: true }
+    );
     // 设置改变触发
     // 设置改变触发
     watch(state.setting, () => {
     watch(state.setting, () => {
       console.log(state.setting, "state.setting");
       console.log(state.setting, "state.setting");
@@ -725,7 +734,7 @@ export default defineComponent({
               class={["driver-2", styles.btn, playTypeBtn.value.disabled && styles.disabled, styles.playType]}
               class={["driver-2", styles.btn, playTypeBtn.value.disabled && styles.disabled, styles.playType]}
               onClick={() => {
               onClick={() => {
                 const oldPlayType = state.playType;
                 const oldPlayType = state.playType;
-                headTopData.oldPlayType = oldPlayType
+                headTopData.oldPlayType = oldPlayType;
                 const oldPlaySource = state.playSource;
                 const oldPlaySource = state.playSource;
                 if (state.playType === "play") {
                 if (state.playType === "play") {
                   state.playType = "sing";
                   state.playType = "sing";
@@ -734,7 +743,7 @@ export default defineComponent({
                   state.playType = "play";
                   state.playType = "play";
                   state.playSource = state.music ? "music" : "background";
                   state.playSource = state.music ? "music" : "background";
                 }
                 }
-                isClickMode = true
+                isClickMode = true;
                 // 有指法并且显示指法的时候 切换到演唱模式 需要影藏指法
                 // 有指法并且显示指法的时候 切换到演唱模式 需要影藏指法
                 let isRefresh = false;
                 let isRefresh = false;
                 if (state.isShowFingering && state.fingeringInfo.name && (state.setting.displayFingering || displayFingeringCache)) {
                 if (state.isShowFingering && state.fingeringInfo.name && (state.setting.displayFingering || displayFingeringCache)) {
@@ -852,7 +861,7 @@ export default defineComponent({
             ) : null} */}
             ) : null} */}
             {state.musicRendered && !query.lessonTrainingId && !query.questionId && state.isConcert && (
             {state.musicRendered && !query.lessonTrainingId && !query.questionId && state.isConcert && (
               <div
               <div
-                class={[styles.btn, state.playState === "play" && fingeringBtn.value.disabled && styles.disabled, toggleMusicSheet.show && styles.isMusicSheet, styles.musicSheet,  "driver-10"]}
+                class={[styles.btn, state.playState === "play" && fingeringBtn.value.disabled && styles.disabled, toggleMusicSheet.show && styles.isMusicSheet, styles.musicSheet, "driver-10"]}
                 onClick={() => {
                 onClick={() => {
                   toggleMusicSheet.toggle(true);
                   toggleMusicSheet.toggle(true);
                 }}
                 }}
@@ -917,7 +926,7 @@ export default defineComponent({
         {isAllBtnsStudent.value && !query.isCbs && showGuideIndex.value && <StudentTop></StudentTop>} */}
         {isAllBtnsStudent.value && !query.isCbs && showGuideIndex.value && <StudentTop></StudentTop>} */}
 
 
         {/* 练习模式功能引导 加载音频完成 不是会员 */}
         {/* 练习模式功能引导 加载音频完成 不是会员 */}
-        {state.modeType === "practise" && headTopData.modeType !== "init" && !query.isCbs && state.audioDone && !state.isLoading && !state.isVip && (
+        {state.modeType === "practise" && headTopData.modeType !== "init" && !query.isCbs && state.audioDone && !state.isLoading && !state.isVip && showWebGuide.value && (
           <PractiseDriver
           <PractiseDriver
             statusAll={{
             statusAll={{
               subjectStatus: state.musicRendered && !query.lessonTrainingId && !query.questionId && state.isConcert,
               subjectStatus: state.musicRendered && !query.lessonTrainingId && !query.questionId && state.isConcert,
@@ -930,7 +939,7 @@ export default defineComponent({
           />
           />
         )}
         )}
         {/* 跟练模式功能引导 加载音频完成 不是会员 */}
         {/* 跟练模式功能引导 加载音频完成 不是会员 */}
-        {state.modeType === "follow" && headTopData.modeType !== "init" && !query.isCbs && state.audioDone && !state.isLoading && !state.isVip && (
+        {state.modeType === "follow" && headTopData.modeType !== "init" && !query.isCbs && state.audioDone && !state.isLoading && !state.isVip && showWebGuide.value && (
           <FollowDriver
           <FollowDriver
             statusAll={{
             statusAll={{
               subjectStatus: state.musicRendered && !query.lessonTrainingId && !query.questionId && state.isConcert,
               subjectStatus: state.musicRendered && !query.lessonTrainingId && !query.questionId && state.isConcert,
@@ -938,7 +947,7 @@ export default defineComponent({
           />
           />
         )}
         )}
         {/* 评测模式功能引导 加载音频完成 不是会员 */}
         {/* 评测模式功能引导 加载音频完成 不是会员 */}
-        {state.modeType === "evaluating" && headTopData.modeType !== "init" && !evaluatingData.earphoneMode && !query.isCbs && state.audioDone && !state.isLoading && !state.isVip && evaluatingData.websocketState && !evaluatingData.startBegin && evaluatingData.checkEnd && (
+        {state.modeType === "evaluating" && headTopData.modeType !== "init" && !evaluatingData.earphoneMode && !query.isCbs && state.audioDone && !state.isLoading && !state.isVip && evaluatingData.websocketState && !evaluatingData.startBegin && evaluatingData.checkEnd && showWebGuide.value && (
           <EvaluatingDriver
           <EvaluatingDriver
             statusAll={{
             statusAll={{
               subjectStatus: state.musicRendered && !query.lessonTrainingId && !query.questionId && state.isConcert,
               subjectStatus: state.musicRendered && !query.lessonTrainingId && !query.questionId && state.isConcert,
@@ -948,4 +957,4 @@ export default defineComponent({
       </>
       </>
     );
     );
   },
   },
-});
+});