Эх сурвалжийг харах

fix:时间组件样式修改、保存筛选条件格式处理

zhangsiya 1 жил өмнө
parent
commit
cf69ea68dc

+ 3 - 2
apps/bigmember_pc/src/components/selector/SearchTimeScopeSelector.vue

@@ -202,7 +202,7 @@ export default {
     }
 
     .date-time-container .date-time-item {
-      width: 124px;
+      width: 130px;
       height: 24px;
       line-height: 24px;
     }
@@ -214,8 +214,9 @@ export default {
     }
     .date-time-container {
       padding: 0;
-      background-color: transparent;
+      background-color: transparent !important;
       &.active {
+        background-color: transparent !important;
         input,
         .date-time-item.left::after {
           background-color: $color_main;

+ 1 - 1
apps/bigmember_pc/src/utils/format/search-bid-filter.js

@@ -495,7 +495,7 @@ export class FilterHistoryViewModel2AjaxModel {
     // 金额筛选整理
     const { minPrice, maxPrice } = this.formatPrice(map.price)
     // 时间筛选整理
-    const publishTime = map.publishTime?.includes('_') ? this.formatExactTime(map.publishTime) : this.formatTime(map.publishTime)
+    const publishTime = map.publishTime?.includes('_') ? this.formatExactTime(map.publishTime, '_', '_') : this.formatTime(map.publishTime)
     // 信息类型
     let subtype = this.formatInfoType(map.subtype)
     if (subtype) {

+ 1 - 1
apps/bigmember_pc/src/views/search/bidding/index.vue

@@ -185,7 +185,7 @@ const articleRef = ref({
             </div>
           </empty>
         </template>
-        <template #list-after v-if="isInApp && activeItemStyleType !== 'T' && isLogin">
+        <template #list-after v-if="listState.finished && isInApp && activeItemStyleType !== 'T' && isLogin">
           <div class="p-16px text-right over-run-tips" v-if="isFree && listState.total >= 500">
             为您展示前500条,
             <span class="highlight-text" @click="onFreeTaste">点击免费查看更多信息</span>

+ 16 - 2
apps/bigmember_pc/src/views/search/bidding/model/modules/filter.js

@@ -115,7 +115,7 @@ export function useSearchFilterModel(conf) {
   }
   // 格式化物业专版的筛选条件
   function getFormatAPIPropertyParams() {
-    const { publishTime, regionMap, notKey, subType } = filterState.value
+    const { publishTime, regionMap, notKey, subType, expireTime } = filterState.value
     const { area, city } = areaObjTwoToSingle(regionMap)
     const rSubtype = infoTypeMapFormat(subType)
     let rPublishTime = ''
@@ -125,11 +125,25 @@ export function useSearchFilterModel(conf) {
     } else {
       rPublishTime = FilterHistoryViewModel2AjaxModel.formatTime(publishTime, true, '-')
     }
+    let rExpireTime = ''
+    if(expireTime && expireTime.indexOf('_') > -1) {
+      const arr =  expireTime.split('_')
+      if(arr[0] !== '0') {
+        rExpireTime = arr[0]
+      }
+      if(arr[1] !== '0') {
+        rExpireTime += '_' + arr[1]
+      } else {
+        rExpireTime +=  '_'
+      }
+    } else {
+      rPublishTime = expireTime
+    }
     const params = {
       bidField: 'BIProperty',
       province: area,
       city,
-      expireTime: filterState.value.expireTime,
+      expireTime: rExpireTime,
       subInformation: filterState.value.subInformation?.join(),
       scale: filterState.value.scale?.join(),
       period:  filterState.value.period?.join(),