Browse Source

Merge branch 'dev/v1.1.1_tsz' of jianyu/web into feature/v1.1.1

汤世哲 3 months ago
parent
commit
dadc15b33e
1 changed files with 15 additions and 56 deletions
  1. 15 56
      apps/mobile/src/views/article/components/ContentHeader.vue

+ 15 - 56
apps/mobile/src/views/article/components/ContentHeader.vue

@@ -39,22 +39,13 @@
         参标人:{{ cbPersonText }}
         参标人:{{ cbPersonText }}
       </span>
       </span>
       <!-- 无参标人和时间一行 -->
       <!-- 无参标人和时间一行 -->
-      <div v-else-if="showRenMaiButton" class="sub-info-line">
-        <div v-if="showCreditReport" class="creditreport-button" @click="creditReport">
-          <span class="creditreport-text">投标企业信用报告</span>
-        </div>
-        <div
-          class="relationship-button"
-          @click="findRenMai"
-        >
-          <span class="relationship-icon j-icon j-base-icon icon-renmai" />
-          <span class="relationship-text">找人脉</span>
-        </div>
-      </div>
-      <div v-else class="sub-info-line">
-        <div v-if="showCreditReport" class="creditreport-button" @click="creditReport">
-          <span class="creditreport-text">投标企业信用报告</span>
-        </div>
+      <div
+        v-else-if="showRenMaiButton"
+        class="relationship-button"
+        @click="findRenMai"
+      >
+        <span class="relationship-icon j-icon j-base-icon icon-renmai" />
+        <span class="relationship-text">找人脉</span>
       </div>
       </div>
     </div>
     </div>
     <div v-if="showRenMaiButton2" class="sub-info-line">
     <div v-if="showRenMaiButton2" class="sub-info-line">
@@ -148,9 +139,6 @@ export default {
         return ''
         return ''
       }
       }
     },
     },
-    showCreditReport() {
-      return articleTypeArr.includes(this.content?._ob?.topType || this.content?._ob?.subType || '')
-    },
     showRenMaiButton() {
     showRenMaiButton() {
       if (this.IsSunPublishContent) {
       if (this.IsSunPublishContent) {
         return ''
         return ''
@@ -167,6 +155,7 @@ export default {
       return this.otherModel.collectionTags
       return this.otherModel.collectionTags
     }
     }
   },
   },
+  created() {},
   methods: {
   methods: {
     async onCollectionTagClick(tag) {
     async onCollectionTagClick(tag) {
       if (this.beforeLeavePage) {
       if (this.beforeLeavePage) {
@@ -180,6 +169,7 @@ export default {
     },
     },
     async checkHasRemMaiPower() {
     async checkHasRemMaiPower() {
       this.renmai.loading = true
       this.renmai.loading = true
+      console.log('checkHasRemMaiPower')
       try {
       try {
         const res = await getUserResource()
         const res = await getUserResource()
         if (res && Array.isArray(res.data)) {
         if (res && Array.isArray(res.data)) {
@@ -193,25 +183,6 @@ export default {
         this.renmai.loading = false
         this.renmai.loading = false
       }
       }
     },
     },
-    creditReport() {
-      const buyer = this.summary?.buyers[0]?.name
-      const typeName = this.content?._ob?.topType || this.content?._ob?.subType
-      const breaker_name = `投标企业信用报告_${typeName}`
-      // 区分标讯类型埋点
-      try {
-        window.__EasyJTrack.addTrack(breaker_name, {
-          breaker_name
-        })
-      }
-      catch (e) {
-        console.log(e)
-      }
-      this.$router.push({
-        path: '/order/create/creditreport',
-        query: buyer ? { buyer } : {}
-      })
-    },
-
     async findRenMai() {
     async findRenMai() {
       const hasPower = await this.checkHasRemMaiPower()
       const hasPower = await this.checkHasRemMaiPower()
       if (hasPower) {
       if (hasPower) {
@@ -324,32 +295,20 @@ export default {
 }
 }
 
 
 .sub-info-line-r {
 .sub-info-line-r {
-  display: flex;
-  align-items: center;
-}
-.creditreport-button {
-  display: flex;
-  align-items: center;
-  justify-content: space-between;
-  margin-right: 10px;
-  padding: 2px 8px;
-  line-height: 20px;
-  color: #fff;
-  background: linear-gradient(to right, #5FD4E3, #28C1E2);
-  border-radius: 4px;
+  position: relative;
 }
 }
 .relationship-button {
 .relationship-button {
-  // position: relative;
-  // right: -16px;
-  // top: 0;
+  position: relative;
+  right: -16px;
+  top: 0;
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
   justify-content: space-between;
   justify-content: space-between;
   padding: 2px 12px;
   padding: 2px 12px;
   height: 24px;
   height: 24px;
   color: #fff;
   color: #fff;
-  background: linear-gradient(to right, #5FD4E3, #28C1E2);
-  border-radius: 4px;
+  background-color: $main;
+  border-radius: 14px 0 0 14px;
   .j-icon {
   .j-icon {
     margin-right: 4px;
     margin-right: 4px;
     width: 12px;
     width: 12px;