Browse Source

优化显示

bayi 2 years ago
parent
commit
0469be394d
4 changed files with 3 additions and 4 deletions
  1. 1 1
      components/comment/index.less
  2. 1 1
      components/comment/index.wxss
  3. 0 1
      mixins/video.js
  4. 1 1
      pages/reading/index.js

+ 1 - 1
components/comment/index.less

@@ -61,7 +61,7 @@
     }
 
     .body {
-      height: 500rpx;
+      height: 40vh;
 
       .body-box {
         padding: 0rpx 22rpx;

+ 1 - 1
components/comment/index.wxss

@@ -56,7 +56,7 @@
   color: #333333;
 }
 .commentBox .comment .body {
-  height: 500rpx;
+  height: 40vh;
 }
 .commentBox .comment .body .body-box {
   padding: 0rpx 22rpx;

+ 0 - 1
mixins/video.js

@@ -87,7 +87,6 @@ module.exports = Behavior({
     openComment({
       target
     }) {
-      console.log(target);
       this.selectComponent('#comment').open(target.dataset.uid,target.dataset.id)
     },
     // 打开设置类型的评论组件

+ 1 - 1
pages/reading/index.js

@@ -270,7 +270,7 @@ Page({
     }
     let lessonText = JSON.parse(this.data.videoInfo.userReadExtend.lessonText).map((item) => {
       return item.text
-    }).join('\n')
+    }).join('')
     // https://www.chivox.com/opendoc/#/ChineseDoc/coreCn/Chinese/cn.sent.raw?id=%e5%8f%82%e6%95%b0%e8%af%b4%e6%98%8e <----参数说明
     wsEngine.start({
       request: {