소스 검색

fix:标讯搜索超强项目关键词高亮&ios底部占位

yangfeng 9 달 전
부모
커밋
5df7e072c5
2개의 변경된 파일18개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 1
      apps/mobile/src/components/recommend/index.vue
  2. 13 1
      apps/mobile/src/views/search/result/bidding/index.vue

+ 5 - 1
apps/mobile/src/components/recommend/index.vue

@@ -180,7 +180,11 @@ export default {
   },
   },
   methods: {
   methods: {
     getTitle({ title, keyWord }) {
     getTitle({ title, keyWord }) {
-      return replaceKeyword(title, keyWord || [])
+      return replaceKeyword(
+        title,
+        keyWord || [],
+        '<span class="highlight-text-orange-bd">' + keyWord + '</span>'
+      )
     },
     },
     onClickOutSide() {
     onClickOutSide() {
       this.activeName = ''
       this.activeName = ''

+ 13 - 1
apps/mobile/src/views/search/result/bidding/index.vue

@@ -164,7 +164,10 @@
         </div>
         </div>
       </div>
       </div>
       <!-- 超前项目推荐 & 定制化分析报告 P611需求:将报告插到列表第一条数据后面位置 -->
       <!-- 超前项目推荐 & 定制化分析报告 P611需求:将报告插到列表第一条数据后面位置 -->
-      <div class="recommend-card-container">
+      <div
+        class="recommend-card-container"
+        :style="{ opacity: cardLoaded ? 'unset' : '0' }"
+      >
         <RecommendCard
         <RecommendCard
           ref="recommendCardRef"
           ref="recommendCardRef"
           v-if="recommendInfo.show"
           v-if="recommendInfo.show"
@@ -425,6 +428,11 @@
             >查看更多</van-button
             >查看更多</van-button
           >
           >
         </div>
         </div>
+        <!-- 占位解决ios回弹底部遮挡 -->
+        <div
+          v-show="listState.list.length > 20 && $envs.inIOS"
+          class="seat"
+        ></div>
         <AppEmpty v-show="listState.list.length === 0 && listState.finished">
         <AppEmpty v-show="listState.list.length === 0 && listState.finished">
           <div class="empty-text" v-html="emptyText"></div>
           <div class="empty-text" v-html="emptyText"></div>
           <van-button
           <van-button
@@ -3216,6 +3224,10 @@ export default {
     padding-bottom: 50px;
     padding-bottom: 50px;
   }
   }
 }
 }
+.seat {
+  height: 60px;
+  background: #fff;
+}
 .sub-this-keywords {
 .sub-this-keywords {
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;