Pārlūkot izejas kodu

修改租户和数字人间距

丸子 7 mēneši atpakaļ
vecāks
revīzija
928b1d8244
3 mainītis faili ar 12 papildinājumiem un 8 dzēšanām
  1. 1 1
      src/views/AIGeneralCourse.vue
  2. 9 5
      src/views/AILaboratory.vue
  3. 2 2
      src/views/Login.vue

+ 1 - 1
src/views/AIGeneralCourse.vue

@@ -236,7 +236,7 @@ const handleGradeSelect = command => {
     })
   }
 }
-// 添加切换抽屉显示状态的函数
+// 切换抽屉显示状态的函数
 const toggleDrawer = () => {
   drawerVisible.value = !drawerVisible.value
 }

+ 9 - 5
src/views/AILaboratory.vue

@@ -118,7 +118,7 @@ const navigateToAIQuestions = person => {
     path: '/ai-questions',
     query: {
       ...person,
-      from: 'ai-laboratory',  // 添加来源标识
+      from: 'ai-laboratory', 
       category: grade.value
     },
   })
@@ -257,7 +257,7 @@ const groupList = ref([
 }
 // 标题样式
 .title-box {
-  height: rpx(50);
+  height: rpx(35);
 }
 .box-icon {
   width: 100%;
@@ -283,6 +283,7 @@ const groupList = ref([
   display: flex;
   flex-wrap: wrap;
   overflow-y: auto;
+  // justify-content: center;
 }
 .content-box::-webkit-scrollbar {
   width: rpx(2);
@@ -302,13 +303,16 @@ const groupList = ref([
   flex: 0 0 calc(30% - rpx(10)); // 每个小盒子占三分之一宽度,减去间距
   // width: rpx(180);
   height: rpx(110);
-  margin-top: rpx(20);
-  margin-left: rpx(20);
+  margin-top: rpx(30);
+  margin-left: rpx(25);
   border-radius: rpx(6);
   border: 1px solid white;
   background: rgba($color: #ffffff, $alpha: 0.5);
   position: relative;
-  cursor: pointer; // 添加鼠标指针样式
+  cursor: pointer; // 鼠标指针样式
+  display: flex; // 此行,启用flex布局
+  flex-direction: column; // 此行,垂直排列子元素
+  align-items: center;
 }
 .people-box {
   position: absolute;

+ 2 - 2
src/views/Login.vue

@@ -21,7 +21,7 @@
             <el-input
               v-model="loginData.loginForm.tenantName"
               :prefix-icon="HomeFilled"
-              placeholder="租户"
+              placeholder="学校"
             />
           </el-form-item>
           <el-form-item prop="username">
@@ -91,7 +91,7 @@ const isLoggedIn = ref(false)
 
 // 输入框校验
 const rules = {
-  tenantName: [{ required: true, message: '请输入租户名称', trigger: 'blur' }],
+  tenantName: [{ required: true, message: '请输入学校名称', trigger: 'blur' }],
   username: [{ required: true, message: '请输入账号', trigger: 'blur' }],
   password: [{ required: true, message: '请输入密码', trigger: 'blur' }]
 }