Browse Source

修改样式

zengyicheng 2 years ago
parent
commit
97e42628af
2 changed files with 33 additions and 4 deletions
  1. 26 4
      src/components/courseDetail.vue
  2. 7 0
      src/components/study.vue

+ 26 - 4
src/components/courseDetail.vue

@@ -48,9 +48,7 @@
                 >
                   <span
                     style="
-                       {
-                        'margin-left':index>0?'10px': '';
-                      }
+                       color: #6c6c6c;
                     "
                     >{{ item + ":" }}</span
                   >
@@ -62,6 +60,21 @@
                   >
                 </div>
               </div>
+              <div class="cType" style="font-size: 18px;color: #6c6c6c;">
+                <div>
+                  创建者:<span style="color:#000;">{{
+                    courseDetail.username
+                  }}</span>
+                </div>
+                <div class="Tname">
+                  协同人员:<span
+                    v-for="(tname, tIndex) in Tname"
+                    :key="tIndex"
+                    style="margin: 0 5px;color:#000;"
+                    >{{ tname }}</span
+                  >
+                </div>
+              </div>
               <div class="people">
                 <div class="man">
                   <img src="../assets/people.png" alt />
@@ -154,6 +167,7 @@ export default {
       aStudentName: [],
       chapInfo: [],
       courseType: [],
+      Tname: [],
       courseTypeJson: {},
       userinfo: [],
       mr: require("../assets/icon/wheel.png"),
@@ -251,6 +265,7 @@ export default {
           this.courseDetail = res.data[0][0];
           var a = res.data[0];
           var b = res.data[1];
+          var c = res.data[2];
           for (var i = 0; i < b.length; i++) {
             // if (!this.id) {
             //   this.courseType[b[i].id] = [];
@@ -265,6 +280,9 @@ export default {
               }
             }
           }
+          for (var k = 0; k < c.length; k++) {
+            this.Tname.push(c[k].name);
+          }
           console.log(this.courseTypeJson.length);
           this.aStudentName = res.data[2];
           this.chapInfo = JSON.parse(this.courseDetail.chapters);
@@ -549,7 +567,7 @@ export default {
 }
 .all_choose {
   margin-right: 10px;
-  max-width: 180px;
+  max-width: 250px;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
@@ -627,4 +645,8 @@ export default {
 .noBRight {
   width: 100%;
 }
+.Tname {
+  margin-left: 40px;
+}
+
 </style>

+ 7 - 0
src/components/study.vue

@@ -109,6 +109,8 @@
             chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
               .toolChoose[0].tool.length == 0 &&
             chapInfoList[courseType].chapterInfo[0].video.length == 0 &&
+            chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
+              .taskDetail == '' &&
             !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
           "
         >
@@ -269,6 +271,11 @@
                   " -->
                 <div
                   class="vedioList"
+                  :class="
+                    vedio[taskCount].length == 0 && file[taskCount].length == 0 && textList[taskCount].length == 0
+                      ? 'listNoVedio'
+                      : ''
+                  "
                   v-if="
                     (vedio.length &&
                       vedio[taskCount] &&