Browse Source

```
fix(LoginDialog): 移除无用注释并优化验证码发送成功提示

移除了模拟发送验证码的注释代码,保持代码整洁

feat(LearningSystem): 调整学习系统页面样式结构

将外层容器类名从 padding12 bg_color_fff 修改为 typeInfo bg_color_fff,
重新组织了 CSS 样式层级结构

fix(pinglun): 为评论组件添加固定行数属性

为 el-input 组件添加 rows="1" 属性以确保 textarea 初始显示单行
```

zhangningning 1 tuần trước cách đây
mục cha
commit
2ad0d686ba

+ 0 - 3
src/components/LoginDialog.vue

@@ -514,10 +514,7 @@ const sendPasswordresetCode = async () => {
   if(res.code !== 200){
     return
   }
-
-  // 模拟发送验证码
   ElMessage.success(t('login.captchaSendSuccess'))
-  
   // 开始倒计时
   passwordresetCountdown.value = 60
   const timer = setInterval(() => {

+ 29 - 26
src/pages/LearningSystem/LearningSystem.vue

@@ -23,7 +23,7 @@
         </div>
       </div>
       <Breadcrumb />
-      <div class="padding12 bg_color_fff border_radius_16 box_shadow_card">
+      <div class="typeInfo bg_color_fff border_radius_16 box_shadow_card">
         <div class="typeList flex-between typeborder" :class="{isShow:isShowStudyStage}">
           <div class="gray font_size14 typeName">{{$t('common.studyStage')}}:</div>
           <div class="flex_1 gap10">
@@ -277,31 +277,34 @@
 
 <style scoped lang="scss">
 .LearningSystem {
-  .typeList{
-    padding: 20px 0;
-    height: 70px;
-    overflow: hidden;
-    &.isShow{
-      height: auto;
-    }
-    &.typeborder{
-      border-bottom: 1px dashed #DCDFE6;
-    }
-    .typeName{
-      margin-top: 6px;
-      min-width: 80px;
-      white-space: nowrap;
-    }
-    .typeItem{
-      margin: 4px 8px;
-      cursor: pointer;
-      padding: 4px 8px;
-      &.active{
-        background: rgba(45,113,255,0.1);
-        border-radius: 4px 4px 4px 4px;
-        
-        color: $primary-color;
-        font-weight: 600;
+  .typeInfo{
+    padding: 0 12px 0;
+    .typeList{
+      padding: 20px 0;
+      height: 70px;
+      overflow: hidden;
+      &.isShow{
+        height: auto;
+      }
+      &.typeborder{
+        border-bottom: 1px dashed #DCDFE6;
+      }
+      .typeName{
+        margin-top: 6px;
+        min-width: 80px;
+        white-space: nowrap;
+      }
+      .typeItem{
+        margin: 4px 8px;
+        cursor: pointer;
+        padding: 4px 8px;
+        &.active{
+          background: rgba(45,113,255,0.1);
+          border-radius: 4px 4px 4px 4px;
+          
+          color: $primary-color;
+          font-weight: 600;
+        }
       }
     }
   }

+ 1 - 0
src/pages/LearningSystem/components/pinglun.vue

@@ -6,6 +6,7 @@
       <div class="page-add flex_1">
         <div class="flex-between">
           <el-input type="textarea" v-model="comments" placeholder="请输入"  
+          :rows="1"
           autosize
           show-word-limit
           maxlength="500" style="width: 100%;flex:1;min-height:44px"/>