apeng 4 vuotta sitten
vanhempi
commit
f391812144
2 muutettua tiedostoa jossa 27 lisäystä ja 29 poistoa
  1. 23 28
      assets/css/learn/detail/_id.scss
  2. 4 1
      pages/frontend/learn/detail/_id.vue

+ 23 - 28
assets/css/learn/detail/_id.scss

@@ -298,7 +298,7 @@
         }
         .questions {
           background: #fff;
-          padding: 16px;
+          padding-top: 6px;
           border-radius: 6px;
           margin-top: 12px;
           .el-collapse-item__arrow {
@@ -472,34 +472,29 @@
           }
         }
       }
-    }
-    .header-txt {
-      font-size: 16px;
-      color: #222;
-      font-family: PingFangSC, PingFangSC-Regular;
-      position: relative;
-      display: block;
-      padding-left: 16px;
-      height: 44px;
-      line-height: 44px;
-      font-weight: 500;
-      display: flex;
-      justify-content: space-between;
-      .section {
-        font-size: 12px;
-        color: #999;
-        margin-right: 12px;
+      .header-txt {
+        font-size: 16px;
+        color: #222;
+        font-family: PingFangSC, PingFangSC-Regular;
+        position: relative;
+        display: block;
+        padding-left: 16px;
+        height: 44px;
+        line-height: 44px;
+        font-weight: 500;
+        display: flex;
+        justify-content: space-between;
+      }
+      .header-txt:after {
+        content: '';
+        position: absolute;
+        left: 0;
+        top: 15px;
+        width: 2px;
+        height: 14px;
+        background: #308eff;
+        display: block;
       }
-    }
-    .header-txt:after {
-      content: '';
-      position: absolute;
-      left: 0;
-      top: 15px;
-      width: 2px;
-      height: 14px;
-      background: #308eff;
-      display: block;
     }
 
 }

+ 4 - 1
pages/frontend/learn/detail/_id.vue

@@ -139,7 +139,7 @@
                   <span class="name">{{ learnDetail.teacher.name }}</span>
                   <span class="job">{{ learnDetail.teacher.op }}</span>
                 </div>
-                <p class="lectruer-info">{{ learnDetail.teacher.content }}</p>
+                <p class="lectruer-info" v-html="learnDetail.teacher.content"></p>
               </div>
               <!--课程咨询-->
               <div class="class-consult">
@@ -339,6 +339,9 @@ export default {
 @import "@/assets/css/learn/detail/_id.scss";
 </style>
 <style lang="scss">
+.el-collapse {
+  margin: 0 16px;
+}
 .el-collapse-item__header {
   background: #f4f5f9;
   padding-left: 16px;