zaijin 2 ani în urmă
părinte
comite
c65dd093f2

+ 6 - 1
src/components/CourseVideo/index.vue

@@ -3,7 +3,7 @@
  * @Author: 空白格
  * @Date: 2022-08-24 13:48:47
  * @LastEditors: 空白格
- * @LastEditTime: 2022-08-30 11:26:12
+ * @LastEditTime: 2022-12-16 11:53:22
  * @FilePath: \veterans_client_web\src\components\CourseVideo\index.vue
  * @Copyright: Copyright (c) 2016~2022 by 空白格, All Rights Reserved.
 -->
@@ -274,6 +274,11 @@ export default {
       }
       .cvbr-bottom {
         padding: 20px 30px;
+        max-height: 40vh;
+        overflow-y: auto;
+        // &::-webkit-scrollbar {
+        //   width: 0;
+        // }
         &-list {
           &-item {
             color: #fff;

+ 2 - 2
src/layout/index.vue

@@ -3,7 +3,7 @@
  * @Author: 空白格
  * @Date: 2022-08-10 11:30:36
  * @LastEditors: 空白格
- * @LastEditTime: 2022-08-26 17:51:07
+ * @LastEditTime: 2022-12-16 14:21:22
  * @FilePath: \veterans_client_web\src\layout\index.vue
  * @Copyright: Copyright (c) 2016~2022 by 空白格, All Rights Reserved.
 -->
@@ -16,7 +16,7 @@
             <template v-if="currentPath === '/'">
               {{ nowDate }}
             </template>
-            <template v-else>贵州退役军人教育培训</template>
+            <template v-else>退役军人职业教育基地</template>
           </router-link>
         </div>
         <div class="header-box-right">

+ 4 - 3
src/views/AdaptiveTraining/OnlineCourseDetails/OnlineCourseDetailsIndex.vue

@@ -3,7 +3,7 @@
  * @Author: 空白格
  * @Date: 2022-08-24 10:44:26
  * @LastEditors: 空白格
- * @LastEditTime: 2022-08-25 11:45:37
+ * @LastEditTime: 2022-12-16 09:45:16
  * @FilePath: \veterans_client_web\src\views\AdaptiveTraining\OnlineCourseDetails\OnlineCourseDetailsIndex.vue
  * @Copyright: Copyright (c) 2016~2022 by 空白格, All Rights Reserved.
 -->
@@ -32,7 +32,7 @@
         />
       </div>
     </div>
-    <div class="course-details-comment" v-loading="commentObj.loading">
+    <div class="course-details-comment" v-if="isComments === 1" v-loading="commentObj.loading">
       <el-row :gutter="11">
         <el-col :xs="24" :sm="24" :md="16" :lg="16" :xl="16">
           <div class="course-details-comment-content">
@@ -165,6 +165,7 @@ export default {
           ],
         },
       },
+      isComments: 0
     };
   },
   created() {
@@ -175,7 +176,7 @@ export default {
       this.commentObj.queryParams.tabId = id;
       this.commentObj.form.tabId = id;
       this.getDetails();
-      this.getCommentList();
+      // this.getCommentList();
     }
   },
   methods: {

+ 2 - 2
src/views/Home/components/HeaderBanner.vue

@@ -3,7 +3,7 @@
  * @Author: 空白格
  * @Date: 2022-08-22 09:14:32
  * @LastEditors: 空白格
- * @LastEditTime: 2022-12-15 10:32:40
+ * @LastEditTime: 2022-12-16 14:59:50
  * @FilePath: \veterans_client_web\src\views\Home\components\HeaderBanner.vue
  * @Copyright: Copyright (c) 2016~2022 by 空白格, All Rights Reserved.
 -->
@@ -55,7 +55,7 @@ export default {
       bannerList: [
         {
           bannerUrl: require("@/assets/images/banner-1.png"),
-          bannerTxtUrl: require("@/assets/images/banner-1-text.png"),
+          // bannerTxtUrl: require("@/assets/images/banner-1-text.png"),
         },
       ],
     };

+ 7 - 2
src/views/SkillTraining/CourseVideo/CourseVideoIndex.vue

@@ -3,7 +3,7 @@
  * @Author: 空白格
  * @Date: 2022-08-16 13:29:35
  * @LastEditors: 空白格
- * @LastEditTime: 2022-08-29 09:35:02
+ * @LastEditTime: 2022-12-16 09:49:45
  * @FilePath: \veterans_client_web\src\views\SkillTraining\CourseVideo\CourseVideoIndex.vue
  * @Copyright: Copyright (c) 2016~2022 by 空白格, All Rights Reserved.
 -->
@@ -172,7 +172,6 @@ export default {
       this.commentObj.queryParams.tabId = id;
       this.commentObj.form.tabId = id;
       this.getDetails();
-      this.getCommentList();
     }
   },
   methods: {
@@ -186,6 +185,12 @@ export default {
       getSkillVideoDetails({ id: this.classesId }).then((res) => {
         if (res.code === 200) {
           this.detailsInfo = res?.data;
+          if (
+            this.detailsInfo.isComments &&
+            Number(this.detailsInfo.isComments) === 1
+          ) {
+            this.getCommentList();
+          }
         }
       });
     },

+ 5 - 0
yarn.lock

@@ -2616,6 +2616,11 @@ cross-spawn@^7.0.2, cross-spawn@^7.0.3:
     shebang-command "^2.0.0"
     which "^2.0.1"
 
+crypto-js@^4.1.1:
+  version "4.1.1"
+  resolved "https://registry.npmmirror.com/crypto-js/-/crypto-js-4.1.1.tgz#9e485bcf03521041bd85844786b83fb7619736cf"
+  integrity sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==
+
 crypto-random-string@^2.0.0:
   version "2.0.0"
   resolved "https://registry.npmmirror.com/crypto-random-string/-/crypto-random-string-2.0.0.tgz"