人生啊人生 1 сар өмнө
parent
commit
a8e2721214

+ 2 - 1
src/view/student/trainChapter/trainAssessment.vue

@@ -2,7 +2,8 @@
     <div class="trainAssessment">
         
         <div class="topRight" >
-            <NavMenus></NavMenus>
+            <!-- <NavMenus></NavMenus> -->
+            <NavMenus :back-confirm="false" ></NavMenus>
         </div>
         
         <div class="chapterThreeWorld" >

+ 8 - 5
src/view/student/trainMain/assessmentSelect.vue

@@ -115,6 +115,9 @@ onMounted(() => {
 
 </script>
 <style lang="scss" scoped>
+
+$proportion : 0.7;
+
 .assessmentSelect {
     position: absolute;
     width: 100%;
@@ -126,10 +129,10 @@ onMounted(() => {
 
         .card {
             position: relative;
-            width: 31.85rem;
-            height: 42.71rem;
+            width: 31.85rem * $proportion;
+            height: 42.71rem * $proportion;
             display: inline-block;
-            margin: 0px 3.21rem 0px 3.21rem;
+            margin: 0px 13rem * $proportion 0px 13rem * $proportion;
             // 手势
             cursor:pointer;
 
@@ -141,10 +144,10 @@ onMounted(() => {
                 position: absolute;
                 width: 100%;
                 font-weight: 500;
-                font-size: 2.5rem;
+                font-size: 2.5rem * $proportion;
                 color: #BBD3CF;
                 text-align: center;
-                bottom: 9.64rem;
+                bottom: 9.64rem * $proportion;
             }
 
         }

+ 8 - 8
src/view/student/trainMain/trainMain.vue

@@ -62,14 +62,14 @@ const itemClick = (type: 'training' | 'report' | 'report_share') => {
 
     if (type == 'assessment') {
         router.push({ path: `/train/assessmentSelect/${state.taskId}` }).then(() => {
-            // console.log("路由跳转完成了 ===>");
-            /**
-             * 由于 router.push 跳转页面,会导致来回切换三维场景存留一些其他参数
-             * 导致第一次进入三维界面是正常的,退回,切换回来,三维场景会出现报错
-             * 所以,这里切换到三维场景,要进行整个页面刷新一下
-             * 就可以解决这个问题,让它正常运行
-             */
-            window.location.reload();
+            // // console.log("路由跳转完成了 ===>");
+            // /**
+            //  * 由于 router.push 跳转页面,会导致来回切换三维场景存留一些其他参数
+            //  * 导致第一次进入三维界面是正常的,退回,切换回来,三维场景会出现报错
+            //  * 所以,这里切换到三维场景,要进行整个页面刷新一下
+            //  * 就可以解决这个问题,让它正常运行
+            //  */
+            // window.location.reload();
         });
     }