Parcourir la source

修复引导页

1
mo il y a 2 ans
Parent
commit
224f12ab40

+ 3 - 3
src/page-instrument/component/mode-type-mode/index.tsx

@@ -30,7 +30,7 @@ export default defineComponent({
 			console.log('加载完成', state.platform)
 		})
 		watch(() => headTopData.modeType, (val) => {
-			console.log(val)
+			console.log(val, 'headTopData.modeType')
 		})
 		return () => (<>
 			{
@@ -40,14 +40,14 @@ export default defineComponent({
 						<img id='aiTeacher-2' onClick={() => headTopData.handleChangeModeType("follow")} src={icons.icon_2} />
 						<img id='aiTeacher-3' onClick={() => headTopData.handleChangeModeType("evaluating")} src={icons.icon_3} />
 					</div>
-					{showPC.value ? <TeacherBootom></TeacherBootom> : null}
+					{showPC.value && headTopData.modeType === 'init' ? <TeacherBootom></TeacherBootom> : null}
 				</div> : <div class={[styles.wrap, headTopData.modeType === 'init' ? '' : styles.hidden]}>
 					<div class={[styles.infoWrap, headTopData.modeType === 'init' ? '' : styles.hidden]} >
 						<img id='studentB-0' onClick={() => headTopData.handleChangeModeType("practise")} src={icons.icon_1} />
 						<img id='studentB-1' onClick={() => headTopData.handleChangeModeType("follow")} src={icons.icon_2} />
 						<img id='studentB-2' onClick={() => headTopData.handleChangeModeType("evaluating")} src={icons.icon_3} />
 					</div>
-					{showStudent.value ? <StudentBottom></StudentBottom> : null}
+					{showStudent.value && headTopData.modeType === 'init' ? <StudentBottom></StudentBottom> : null}
 				</div>
 			}
 

BIN
src/page-instrument/custom-plugins/guide-page/images/studnetT3.png


+ 4 - 4
src/page-instrument/custom-plugins/guide-page/index.module.less

@@ -144,10 +144,10 @@
         }
       }
       .nextBtn {
-        width: 60px;
+        width: 74px;
         height: 25px;
         background: url('./images/nextBtn.png') no-repeat;
-        background-size: 60px 25px;
+        background-size: 74px 25px;
         line-height: 25px;
         font-size: 9px;
         padding: 0;
@@ -160,10 +160,10 @@
         }
       }
       .studentNext {
-        width: 60px;
+        width: 74px;
         height: 25px;
         background: url('./images/studentBtn.png') no-repeat;
-        background-size: 60px 25px;
+        background-size: 74px 25px;
         line-height: 25px;
         font-size: 9px;
         padding: 0;

+ 3 - 1
src/page-instrument/custom-plugins/guide-page/student-bottom.tsx

@@ -3,6 +3,7 @@ import { } from "vant";
 import { defineComponent, nextTick, onMounted, reactive, ref, watch } from "vue";
 import styles from "./index.module.less";
 import { getImage } from "./images";
+import { getQuery } from "/src/utils/queryString";
 
 export default defineComponent({
   name: "studentB-guide",
@@ -74,8 +75,9 @@ export default defineComponent({
       step: 0,
     });
     const tipShow = ref(false)
+    const query: any = getQuery();
    const guideInfo = localStorage.getItem('guideInfo')
-   if(guideInfo&&JSON.parse(guideInfo).studentB){
+   if(guideInfo&&JSON.parse(guideInfo).studentB || !query.showGuide){
     tipShow.value =false
    }else {
     tipShow.value =true

+ 5 - 2
src/page-instrument/custom-plugins/guide-page/student-top.tsx

@@ -3,6 +3,8 @@ import { } from "vant";
 import { defineComponent, nextTick, onMounted, reactive, ref, watch } from "vue";
 import styles from "./index.module.less";
 import { getImage } from "./images";
+import { useRoute } from "vue-router";
+import { getQuery } from "/src/utils/queryString";
 
 export default defineComponent({
   name: "studnetT-guide",
@@ -147,7 +149,7 @@ export default defineComponent({
             eleRect: {} as DOMRect,
             img: getImage("studnetT8.png"),
             handStyle: {
-              top: "-1.4rem",
+              top: "-.4rem",
               left:'0.4',
               transform: 'rotate(180deg)'
             },
@@ -166,8 +168,9 @@ export default defineComponent({
       step: 0,
     });
     const tipShow = ref(false)
+    const query: any = getQuery();
    const guideInfo = localStorage.getItem('guideInfo')
-   if(guideInfo&&JSON.parse(guideInfo).studnetT){
+   if(guideInfo&&JSON.parse(guideInfo).studnetT || !query.showGuide){
     tipShow.value =false
    }else {
     tipShow.value =true

+ 3 - 1
src/page-instrument/custom-plugins/guide-page/teacher-bootom.tsx

@@ -3,6 +3,7 @@ import { } from "vant";
 import { defineComponent, nextTick, onMounted, reactive, ref, watch } from "vue";
 import styles from "./index.module.less";
 import { getImage } from "./images";
+import { getQuery } from "/src/utils/queryString";
 
 export default defineComponent({
   name: "aiTeacher-guide",
@@ -94,7 +95,8 @@ export default defineComponent({
     
     const tipShow = ref(false)
    const guideInfo = localStorage.getItem('guideInfo')
-   if(guideInfo&&JSON.parse(guideInfo).teacherBottom){
+   const query: any = getQuery();
+   if(guideInfo&&JSON.parse(guideInfo).teacherBottom || !query.showGuide){
     tipShow.value =false
    }else {
     tipShow.value =true

+ 3 - 1
src/page-instrument/custom-plugins/guide-page/teacher-top.tsx

@@ -3,6 +3,7 @@ import { } from "vant";
 import { defineComponent, nextTick, onMounted, reactive, ref, watch } from "vue";
 import styles from "./index.module.less";
 import { getImage } from "./images";
+import { getQuery } from "/src/utils/queryString";
 
 export default defineComponent({
   name: "teacherTop-guide",
@@ -129,7 +130,8 @@ export default defineComponent({
       step: 0,
     });
     const tipShow = ref(false)
-   const guideInfo = localStorage.getItem('guideInfo')
+    const query: any = getQuery();
+   const guideInfo = localStorage.getItem('guideInfo' || !query.showGuide)
    if(guideInfo&&JSON.parse(guideInfo).teacherTop){
     tipShow.value =false
    }else {