浏览代码

修复优化

bd 2 年之前
父节点
当前提交
876ae281fe
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 3 3
      components/ItemComponent/reportItem.vue
  2. 1 1
      pages-search/components/summaryChart.vue

+ 3 - 3
components/ItemComponent/reportItem.vue

@@ -6,10 +6,10 @@
     <view class="item-image" v-if="list.BodyHtml">
       <image :src="list.BodyHtml"></image>
     </view>
-    <block v-if="list.Annotation">
-      <text class="item-content">{{ list.ArticleResponse == 4 ? "核心观点" : "核心结论" }}:</text>
+    <block v-if="list.Annotation || list.Body[0]">
+      <text class="item-content" v-if="!list.Body[0]">{{ list.ArticleResponse == 4 ? "核心观点" : "核心结论" }}:</text>
       <view class="item-rich-text">
-        <mp-html :content="richTextClamp(7) + list.Annotation + '</div>'" />
+        <mp-html :content="richTextClamp(7) + (list.Annotation || list.Body[0]) + '</div>'" />
       </view>
     </block>
     <view class="item-abstract text-Line" v-if="list.Abstract && list.ArticleResponse != 1"> 摘要:{{ list.Abstract }} </view>

+ 1 - 1
pages-search/components/summaryChart.vue

@@ -48,7 +48,7 @@ export default {
 
 <style lang="scss">
 .result-data-search-summary {
-  padding: 0rpx 12rpx;
+  padding-left: 15rpx;
   display: flex;
   justify-content: space-between;
   background-color: #f5f6fa;