Pārlūkot izejas kodu

feat(路由及样式): 新增空间定位训练框架

JutarryWu 7 mēneši atpakaļ
vecāks
revīzija
140c72fbf5
3 mainītis faili ar 62 papildinājumiem un 0 dzēšanām
  1. 43 0
      src/design/gloab.less
  2. 1 0
      src/design/index.less
  3. 18 0
      src/router/routes/entrance.ts

+ 43 - 0
src/design/gloab.less

@@ -0,0 +1,43 @@
+.app-container {
+  width: 100vw;
+  height: 100vh;
+  margin: 0;
+  padding: 0;
+  overflow: hidden;
+  background: #f5f5f5;
+  position: relative;
+
+  .flex-row {
+    display: flex;
+    flex-direction: row;
+  }
+
+  .flex-column {
+    display: flex;
+    flex-direction: column;
+  }
+
+  .flex-center {
+    display: flex;
+    justify-content: center;
+    align-items: center;
+  }
+
+  .bottom-block-btn {
+    position: absolute;
+    bottom: 50px;
+    left: 50%;
+    transform: translateX(-50%);
+    padding: 0;
+    height: 80px;
+    width: 575px;
+    border-radius: 40px;
+    font-size: 36px;
+  }
+
+  .van-nav-bar {
+    .van-nav-bar__title {
+      font-size: 38px;
+    }
+  }
+}

+ 1 - 0
src/design/index.less

@@ -1,5 +1,6 @@
 @import './vant/index.less';
 @import './transition/index.less';
+@import './gloab.less';
 // 进度条颜色
 #nprogress .bar {
   background: rgb(33, 166, 117) !important;

+ 18 - 0
src/router/routes/entrance.ts

@@ -32,6 +32,24 @@ export const entranceRoutes: AppRouteModule[] = [
       title: '下载',
       ignoreAuth: true
     }
+  },
+  {
+    path: '/cognitiveTasks/main',
+    name: 'cognitiveTasksMain',
+    component: () => import('/@/views/cognitiveTasks/main/index.vue'),
+    meta: {
+      title: '认知任务 - 介绍',
+      ignoreAuth: true
+    }
+  },
+  {
+    path: '/cognitiveTasks/spatialOrientationAbility',
+    name: 'cognitiveTasksSpatialOrientationAbility',
+    component: () => import('/@/views/cognitiveTasks/spatialOrientationAbility/index.vue'),
+    meta: {
+      title: '认知任务 - 空间定位',
+      ignoreAuth: true
+    }
   }
 ]