Forráskód Böngészése

Merge branch 'master' of https://git.cocorobo.cn/CocoRoboLabs/pbl-app

lsc 2 éve
szülő
commit
e27e38a12e

+ 1 - 1
src/views/course/components/courseTitle.vue

@@ -3,7 +3,7 @@
     <div class="ct-title">
       <div class="ct-chap">第{{ courseType + 1 }}阶段</div>
       <div class="ct-chap-title">{{ chapInfo.dyName }}</div>
-      <div class="ct-task">任务{{ taskCount + 1 }}</div>
+      <!-- <div class="ct-task">任务{{ taskCount + 1 }}</div> -->
     </div>
     <div class="ct-taskName">
       <div class="ct-task">任务{{ taskCount + 1 }}</div>

+ 11 - 2
src/views/home/components/courseItem.vue

@@ -41,7 +41,7 @@ export default {
   methods: {
     goTo(cid) {
       // eslint-disable-next-line prettier/prettier
-      this.$router.push({ path: '/courseDetail', query: { courseid: cid }})
+      this.$router.push({ path: '/courseDetail', query: { courseid: cid } })
     }
   }
 }
@@ -67,8 +67,13 @@ export default {
   }
   .cRight {
     padding: 0 10px;
+    display: flex;
+    flex-direction: column;
+    flex-wrap: nowrap;
+    align-items: flex-start;
+    justify-content: center;
     > div {
-      margin: 5px 0;
+      margin: 4px 0;
       font-size: 14px;
     }
     > div:nth-child(1) {
@@ -79,6 +84,10 @@ export default {
       overflow: hidden;
       text-overflow: ellipsis;
       word-break: break-word;
+      margin: 0 0 4px 0;
+    }
+    > div:last-child {
+      margin: 0;
     }
     .jdBox {
       display: flex;