浏览代码

Merge branch 'need-pool#643'

cxmo 1 年之前
父节点
当前提交
8585f4feb8
共有 1 个文件被更改,包括 20 次插入3 次删除
  1. 20 3
      pages-report/reportList.vue

+ 20 - 3
pages-report/reportList.vue

@@ -4,7 +4,7 @@
       <view class="flex search-wrap">
         <view style="flex: 1">
         <searchBox 
-          placeholder="请输入报告标题或关键字" 
+          placeholder="请输入报告标题或摘要或关键字" 
           :hasRightBtn="false" 
           :disabled="false"
           :clear="!searchVal"
@@ -38,7 +38,8 @@
       <view class="flex item" v-for="item in list" :key="item.report_id" @click="goReportDetail(item)">
         <image class="img" :src="item.report_img_url" mode="aspectFill" lazy-load />
         <view class="con">
-          <view class="title" v-html="item.title"></view>
+          <view class="title" :style="!item.abstract.length?'min-height: 70rpx;':''" v-html="item.title"></view>
+          <view class="abstract" v-html="item.abstract"></view>
           <view class="info">
             <view v-html="item.classify_name_second" style="display:inline-block"></view>
             <text v-if="item.classify_name_second" style="display:inline-block;margin:0 10rpx">&nbsp;·&nbsp;</text>
@@ -408,7 +409,23 @@ page{
       font-size: 28rpx;
       font-weight: bold;
       margin-bottom: 10rpx;
-      min-height: 70rpx;
+     // min-height: 70rpx;
+    }
+    .abstract{
+        /* width:100%;
+        overflow: hidden;
+        white-space: nowrap;
+        text-overflow: ellipsis; */
+        display: -webkit-box;
+        overflow: hidden;
+        text-overflow: ellipsis;
+        word-break: break-all;
+        -webkit-box-orient: vertical;
+        -webkit-line-clamp: 1;
+        color: #9C9791;
+        div{
+            color: #9C9791;
+        }
     }
     .info{
       font-size: 24rpx;