Browse Source

首页列表标题为英文显示问题

jwyu 2 years ago
parent
commit
71c4f33ae4
1 changed files with 18 additions and 16 deletions
  1. 18 16
      pages/report/report.vue

+ 18 - 16
pages/report/report.vue

@@ -41,7 +41,7 @@
             <view class="content-box" @click="goDetail(citem)">
               <view class="all-btn">全部</view>
               <view class="c-time">{{citem.publish_time|getListTime}}</view>
-              <view class="title">{{citem.title}}</view>
+              <view class="c-title">{{citem.title}}</view>
               <view class="desc" v-html="citem.content_sub"></view>
               <view class="tags">
                 <text style="margin-right:15px" v-if="citem.classify_name_first">#{{citem.classify_name_first}}</text>
@@ -403,21 +403,23 @@ export default {
         font-size: 24rpx;
         color: #333333;
       }
-    }
-
-    .title{
-      font-size: $global-font-size-lg;
-      font-weight: bold;
-    }
-    .desc{
-      line-height: 1.5;
-      margin-top: 10rpx;
-      color: #666666;
-    }
-    .tags{
-      margin-top: 20rpx;
-      color: #E3B377;
-      min-height: 40rpx;
+      .c-title{
+        font-size: $global-font-size-lg;
+        font-weight: bold;
+        word-wrap: break-word;
+        white-space: normal;
+        word-break: break-all;
+      }
+      .desc{
+        line-height: 1.5;
+        margin-top: 10rpx;
+        color: #666666;
+      }
+      .tags{
+        margin-top: 20rpx;
+        color: #E3B377;
+        min-height: 40rpx;
+      }
     }
   }
 }