فهرست منبع

feat: 运营商专版详情页附件id调整

cuiyalong 7 ماه پیش
والد
کامیت
3853bee5dc

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

@@ -1,6 +1,7 @@
 <template>
   <AttachmentDownload
-    :id="content.id"
+    v-if="attachmentId"
+    :id="attachmentId"
     :custom-skip="toBCustom"
     :title="content.title"
     :attachment-list="attachmentList"
@@ -28,6 +29,13 @@ export default {
       yyszbContent() {
         return this.content.yyszbContent
       },
+      attachmentId() {
+        if (this.yyszbContent) {
+          return this.content.bId
+        } else {
+          return this.content.id
+        }
+      },
       IsSunPublishContent() {
         return this.content.IsSunPublishContent || false
       },

+ 6 - 3
apps/mobile/src/views/article/content.vue

@@ -56,11 +56,11 @@ small-tab
                   :before-leave-page="beforeLeavePage"
                 />
                 <section
-                  v-if="!IsSunPublishContent"
+                  v-if="!toBCustom"
                   class="content-abstract-other bg-white"
                 >
                   <ContentAbstractEntList
-                    v-if="!IsCustomTopNet"
+                    v-if="!toBCustom"
                     class="content-abstract-ent-list-module"
                     :before-leave-page="beforeLeavePage"
                   />
@@ -137,7 +137,7 @@ small-tab
             <FreeUserBiddingMask v-else :before-leave-page="beforeLeavePage" />
           </template>
           <AdSingle
-            v-if="!IsCustomTopNet"
+            v-if="!toBCustom"
             :ad="getContentAdID"
             :show-close-icon="false"
             radius
@@ -339,6 +339,9 @@ export default {
     yyszbContent() {
       return this.content.yyszbContent
     },
+    toBCustom() {
+      return this.IsCustomTopNet || this.yyszbContent
+    },
     showMonitor() {
       return !this.yyszbContent
     },

+ 2 - 0
apps/mobile/src/views/search/result/bidding-custom/components/schema.js

@@ -311,6 +311,7 @@ export function createFilterOutsideSchemaItem(conf = {}) {
             component: componentTypeMap.infoType,
             props: {
               ioType: 'map',
+              onlySingleSelectLevel1: true,
               options: sItem.options
             }
           }
@@ -441,6 +442,7 @@ export function createFilterInsideSchemaItem(conf = {}) {
             component: componentTypeMap.infoType,
             props: {
               ioType: 'map',
+              onlySingleSelectLevel1: true,
               options: sItem.options
             }
           }

+ 6 - 0
apps/mobile/src/views/search/result/bidding-custom/index.vue

@@ -1127,6 +1127,12 @@ export default {
           splitter: ':',
           text: item.buyertel || ''
         },
+        {
+          label: '采购内容',
+          splitter: ':',
+          text: item.buy_content || ''
+        },
+
         {
           label: '项目编号',
           splitter: ':',

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

@@ -75,6 +75,7 @@ class CommonContentModel extends BaseModel {
     result.IsSunPublishContent = baseInfo.infoAttribute === 'zc_cgxx' // 阳光直采-采购信息
     // 是否运营商专版详情页
     result.yyszbContent = location.pathname.includes('/yyszb')
+    result.bId = baseInfo.bId || ''
 
     if (result.IsSunPublishContent) {
       // 处理拆条信息