Przeglądaj źródła

feat: 页面样式调整

cuiyalong 8 miesięcy temu
rodzic
commit
d0fd1bb27e

+ 1 - 1
apps/bigmember_pc/src/views/article-content/pages/Article.vue

@@ -146,7 +146,7 @@ const showSelfSiteTip = computed(() => {
 const showGetInLibTip = computed(() => {
   if (IsSunPublishContent.value) {
     if (ContentModel.value?._summary) {
-      return ContentModel.value.originalShow && ContentModel.value._summary?.buyerTel
+      return ContentModel.value.originalShow && !ContentModel.value._summary?.buyerTel
     } else {
       return false
     }

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

@@ -58,6 +58,9 @@ const getPrefix = {
 const getLabelStyle = (item) => {
   return item.labelStyle || {}
 }
+const getClassName = (item) => {
+  return item.className || {}
+}
 </script>
 
 <template>
@@ -74,8 +77,9 @@ const getLabelStyle = (item) => {
         v-for="(item, index) in schema"
         :key="getPrefix.item + index"
         :class="{
-        'flex-items-start': showLabel && item.label
-      }"
+          'flex-items-start': showLabel && item.label,
+          ...getClassName(item)
+        }"
       >
         <div class="search-schema-filter-label" v-if="showLabel && item.label" :style="{'line-height': item.labelHeight, ...getLabelStyle(item) }">
           <slot name="item-label">

+ 5 - 4
apps/bigmember_pc/src/views/search/sun/components/search-bid-header.vue

@@ -56,6 +56,7 @@ function goToPublish() {
 }
 
 function checkPower($event) {
+  return true
   if (!isLogin.value) {
     $bus.$emit('bidding:goLogin')
     return false
@@ -65,10 +66,10 @@ function checkPower($event) {
 }
 // 未登录--多个关键词切换处理
 function onSelectMoreKey() {
-  if (!isLogin.value) {
-    inputKeywordsState.value.selectMoreKey = false
-    $bus.$emit('bidding:goLogin')
-  }
+  // if (!isLogin.value) {
+  //   inputKeywordsState.value.selectMoreKey = false
+  //   $bus.$emit('bidding:goLogin')
+  // }
 }
 
 const showNewPublish = computed(() => {

+ 3 - 0
apps/bigmember_pc/src/views/search/sun/constant/search-filters.js

@@ -175,6 +175,9 @@ function createSearchBidBaseSchema(conf = {}) {
       _name: 'bmjzzt',
       _type: 'component',
       labelHeight: '25px',
+      className: {
+        'search-filter-bmjzzt-line': true
+      },
       labelStyle: {
         width: '98px',
         'white-space': 'nowrap'

+ 14 - 5
apps/bigmember_pc/src/views/search/sun/index.vue

@@ -120,7 +120,7 @@ const leaveSource = () => {
 </script>
 
 <template>
-  <div class="search-bidding-page">
+  <div class="search-sun-page">
     <div
       class="search-bidding-header-container"
       :class="{ 'b-rd-self': !showFilter }"
@@ -388,7 +388,7 @@ const leaveSource = () => {
     font-size: 16px;
   }
 }
-.search-bidding-page .sub-collection.tags-box {
+.search-sun-page .sub-collection.tags-box {
   display: flex;
   flex-direction: column;
   min-height: 340px;
@@ -596,21 +596,30 @@ const leaveSource = () => {
 
 <style lang="scss" scoped>
 .in-app {
-  .search-bidding-page {
+  .search-sun-page {
     margin-top: 0;
     width: 100%;
     padding: 24px;
   }
 }
 .in-web {
-  .search-bidding-page {
+  .search-sun-page {
     margin-top: 24px;
   }
 }
-.search-bidding-page {
+.search-sun-page {
   width: 1200px;
   margin: 0 auto;
 
+  ::v-deep {
+    .search-filter-bmjzzt-line {
+      height: 24px;
+    }
+    .more-filters-container {
+      margin-top: 12px;
+    }
+  }
+
   .search-bidding-header-container {
     background-color: #fff;
     border-radius: 8px 8px 0 0;

+ 1 - 1
apps/mobile/src/components/search/sun/filters.vue

@@ -806,7 +806,7 @@ export default {
         }
         case 'bmjzzt': {
           const { bmjzzt } = this.filters
-          this.cacheMoreFilters.industry = bmjzzt
+          this.cacheMoreFilters.bmjzzt = bmjzzt
           break
         }
         case 'more': {

+ 8 - 0
apps/mobile/src/ui/project-cell/index.vue

@@ -55,6 +55,9 @@
             :class="pushSourceTag.className"
             >{{ pushSourceTag.text }}</span
           >
+          <span class="tag-item red" v-if="publishType">
+            <slot name="tag-item">{{ publishType }}</slot>
+          </span>
           <span v-if="isFile && fileText" class="tag-item title-file main">
             <slot>{{ fileText.replace(/[\[\]]/g, '') }}</slot>
           </span>
@@ -163,6 +166,11 @@ export default {
       type: String,
       default: ''
     },
+    // 发布平台标签
+    publishType: {
+      type: String,
+      default: ''
+    },
     ellipsis: {
       type: Boolean,
       default: true

+ 1 - 1
apps/mobile/src/views/article/components/ContentMainText.vue

@@ -79,7 +79,7 @@ export default {
       }
       if (this.IsSunPublishContent) {
         if (this.content?._summary) {
-          return this.content.originalShow && this.content._summary?.buyerTel
+          return this.content.originalShow && !this.content._summary?.buyerTel
         } else {
           return false
         }

+ 6 - 5
apps/mobile/src/views/search/result/sun/index.vue

@@ -120,6 +120,7 @@
               :detail-list="item.detailList"
               :key="item.vKid"
               :title="item.title"
+              :publishType="item.publicType"
               :filetext_search="item.filetext_search"
               :fs_keys="item.fs_word"
               :time="item.dateTime"
@@ -1426,10 +1427,10 @@ export default {
 
       // 标签
       item.tagList = [
-        {
-          name: item.publicType || '',
-          className: 'red'
-        },
+        // {
+        //   name: item.publicType || '',
+        //   className: 'red'
+        // },
         region || '',
         buyerClass,
         // 有中标金额取中标金额,没有取预算,预算没有置空
@@ -1488,7 +1489,7 @@ export default {
           splitter: ':',
           text: item.deliveryLoc
         }
-      ]
+      ].filter(r => !!r.text)
     },
     goToDetail(item) {
       const { id, industry } = item

+ 1 - 1
data/data-models/modules/article/transform/content.js

@@ -78,7 +78,7 @@ class CommonContentModel extends BaseModel {
     }
 
     // TDK
-    result.tdk.title = baseInfo.title
+    result.tdk.title = result.title
     result.tdk.description = baseInfo?.description
     result.tdk.keywords = baseInfo?.keywords
     // Tags