Browse Source

fix:vip和非vip用户调整

zhangsiya 1 year ago
parent
commit
c399eceff6

+ 4 - 1
apps/bigmember_pc/src/views/search/bidding/constant/search-filters.js

@@ -117,6 +117,8 @@ function createSearchBidBaseSchema(conf = {}) {
   const showVip = conf.showVip || false
   const infoType = conf.infoType
   const inInjectBI = conf.inInjectBI || false
+  const isInApp = conf.isInApp || false
+  const isVip = conf.isVip || false
 
   // 发布时间
   const publishTimeExpandFree = {
@@ -190,11 +192,11 @@ function createSearchBidBaseSchema(conf = {}) {
     },
     hooks: {}
   }
-
   const SearchBidBaseSchema = [
     {
       key: 'publishTime',
       label: '发布时间:',
+      labelHeight: isVip || !isInApp  ? '22px': '32px',
       defaultVal: 'thisyear',
       _name: 'time',
       _type: 'component',
@@ -203,6 +205,7 @@ function createSearchBidBaseSchema(conf = {}) {
     {
       key: 'selectType',
       label: '搜索范围:',
+      labelHeight: !isVip || !isInApp ? '22px' : '32px',
       defaultVal: ['content', 'title'],
       _name: 'type',
       _type: 'component',

+ 1 - 0
apps/bigmember_pc/src/views/search/bidding/model/base.js

@@ -246,6 +246,7 @@ export default function () {
   function disposeFilterSchema() {
     const conf = computed(() => {
       return {
+        isInApp: isInApp.value,
         isLogin: isLogin.value,
         vipUser: isVip.value && isInApp.value,
         oldUser: isOld.value && isInApp.value,

+ 1 - 1
apps/bigmember_pc/src/views/search/components/search-schema-filter.vue

@@ -66,7 +66,7 @@ const getPrefix = {
         'flex-items-start': showLabel && item.label
       }"
       >
-        <div class="search-schema-filter-label" v-if="showLabel && item.label">
+        <div class="search-schema-filter-label" v-if="showLabel && item.label" :style="{'line-height': item.labelHeight}">
           <slot name="item-label">
             {{ item.label }}
           </slot>