Browse Source

fix(frontn): 课程-1v

Go 4 years ago
parent
commit
f31a97fe1e

+ 1 - 1
front/project/www/routes/course/vs/index.less

@@ -147,7 +147,7 @@
         }
 
         .other-answer-carousel {
-          padding: 50px 0;
+          padding: 30px 0;
         }
 
         .teach-item {

+ 3 - 3
front/project/www/routes/course/vs/page.js

@@ -25,9 +25,9 @@ export default class extends Page {
   init() {
     this.courseVsMap = {};
     this.faqMap = {};
-    this.faqs = [];
+    this.faqs = null;
     this.commentMap = {};
-    this.comments = [];
+    this.comments = null;
     this.promote = [];
     this.teacherMap = {};
     Main.getPromote().then(result => {
@@ -289,7 +289,7 @@ export default class extends Page {
       <div className="tab-layout">
         <AnswerCarousel
           hideBtn
-          list={faqs}
+          list={faqs || []}
           onFaq={() => this.setState({ showFaq: true, faq: { channel: 'course-vs', position: data.id } })}
         />
       </div>

+ 10 - 0
server/gateway-api/src/main/java/com/qxgmat/dto/response/CourseListDto.java

@@ -21,6 +21,8 @@ public class CourseListDto {
 
     private String videoType;
 
+    private String comment;
+
     private String extend;
 
     private String title;
@@ -298,4 +300,12 @@ public class CourseListDto {
     public void setTime(Integer time) {
         this.time = time;
     }
+
+    public String getComment() {
+        return comment;
+    }
+
+    public void setComment(String comment) {
+        this.comment = comment;
+    }
 }