Bladeren bron

10.6 搜索优化

bding 2 jaren geleden
bovenliggende
commit
f2099099dd

+ 2 - 2
components/audioModule/index.vue

@@ -149,8 +149,8 @@ export default {
         this.curTime = parseInt(this.globalBgAudioManager.currentTime);
       }
       this.audioTime = curAudio.PlaySeconds;
-      this.title = curAudio.Name;
-      this.activityTitle = this.$store.state.audioBg.activityTitle;
+      this.title = curAudio.Name.replace(/<\/?font.*?>/g, "");
+      this.activityTitle = this.$store.state.audioBg.activityTitle.replace(/<\/?font.*?>/g, "");
       this.play = !this.globalBgAudioManager.paused;
       this.listenAudio();
     },

+ 7 - 2
pages-search/components/synthetical.vue

@@ -1,6 +1,6 @@
 <template>
   <view>
-    <view class="content-ul">
+    <view class="content-ul" v-if="haveData">
       <view class="item-ul">
         <block v-for="(item, index) in newDataList" :key="index">
           <view v-if="index % 2 == 0 && item.IsShowData">
@@ -46,6 +46,10 @@
         </block>
       </view>
     </view>
+    <view class="nodata" v-else>
+      <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/act_search.png" mode="" class="nodata_ico"></image>
+      <text>暂时没有符合条件的活动</text>
+    </view>
     <morning-dlg v-if="isMorningShow" :isMorningShow.sync="isMorningShow" :morningItem.sync="morningItem" />
   </view>
 </template>
@@ -80,6 +84,7 @@ export default {
       newDataList: [],
       isMorningShow: false, // 晨会的弹框
       morningItem: {}, // 晨会的弹框
+      haveData: true,
     };
   },
   watch: {
@@ -123,7 +128,7 @@ export default {
             listArr.push({ ...obj, IsShowData: obj.Article || obj.Newchart || obj.Roadshow || obj.Activity || obj.ThreeSummary || obj.IndustrialResource });
           });
         this.newDataList = this.pageNumSynthetical === 1 ? listArr : [...this.newDataList, ...listArr];
-        console.log(this.newDataList);
+        this.haveData = this.newDataList && this.newDataList.length ? true : false;
       }
     },
     // 晨会弹框显示

+ 1 - 0
pages-search/indedxSearch/indedxSearch.vue

@@ -561,6 +561,7 @@ export default {
     }
     .history {
       height: 270rpx;
+      overflow: hidden;
       .history-title {
         display: flex;
         align-items: center;