cuiyalong 1 жил өмнө
parent
commit
d77ba06a2f

+ 0 - 1
apps/mobile/src/composables/quick-monitor/component/QuickMonitor.vue

@@ -313,7 +313,6 @@ export default {
       try {
         const { success, msg, data } = await this.doChange()
         loading.clear()
-        console.log(msg)
         if (success) {
           // 判断是否开启推送提醒
           if (data?.msg_open) {

+ 2 - 2
apps/mobile/src/views/article/components/ContentAbstractEntList.vue

@@ -7,8 +7,8 @@
       :title="ent.name"
       :key="index"
       :isLink="ent.link"
-      :contactCount="ent?.detail?.contactCount"
-      :cooperateCount="ent?.detail?.cooperate"
+      :contactCount="ent?.detail?.contactCount || 0"
+      :cooperateCount="ent?.detail?.cooperate || 0"
       @click="toDetail(ent)"
     ></AbstractEnt>
   </section>

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

@@ -10,7 +10,12 @@
     @toMore="toMore"
   >
     <div class="header-action" slot="header-actions">
-      <QuickMonitor :id="recommendMap.id" type="ent" auto direction="row" />
+      <QuickMonitor
+        :id="recommendMap.winnerId"
+        type="ent"
+        auto
+        direction="row"
+      />
     </div>
   </RecommendProjectCard>
 </template>

+ 19 - 6
apps/mobile/src/views/article/components/ContentProjectTimeline.vue

@@ -5,12 +5,18 @@
     v-if="stepList.length"
   >
     <div class="action-right-container" slot="header-actions">
-      <span class="action-item clickable download-project-doc">
+      <span class="action-item clickable download-project-doc" v-if="false">
         <AppIcon name="xiazaixiangmubaogao"></AppIcon>
         <span class="action-text">下载项目报告</span>
       </span>
       <span class="action-item clickable follow-project">
-        <ActionMonitor :id="content.id" direction="row" />
+        <QuickMonitor
+          :id="content.id"
+          type="project"
+          :cache="true"
+          :auto="false"
+          direction="row"
+        />
       </span>
     </div>
     <div class="bg-white">
@@ -18,16 +24,22 @@
         :markedSameId="content.id"
         :stepList="stepList"
         @itemClick="itemClick"
-      ></TimeLine>
+      >
+        <template v-slot:step-footer="{ step }">
+          <span v-if="step.bidAmountFormatted">
+            {{ step.bidAmountFormatted }}中标
+          </span>
+        </template>
+      </TimeLine>
     </div>
   </ContentModuleCard>
 </template>
 <script>
 import ContentModuleCard from '@/views/article/ui/ContentModuleCard.vue'
-import ActionMonitor from '@/views/article/components/ActionMonitor.vue'
+import QuickMonitor from '@/composables/quick-monitor/component/QuickMonitor.vue'
 import { AppIcon, TimeLine } from '@/ui'
 import { mapState, mapGetters } from 'vuex'
-import { replaceKeyword, openAppOrWxPage } from '@/utils'
+import { replaceKeyword, openAppOrWxPage, formatMoney } from '@/utils'
 import { LINKS } from '@/data'
 
 export default {
@@ -35,7 +47,7 @@ export default {
   components: {
     AppIcon,
     TimeLine,
-    ActionMonitor,
+    QuickMonitor,
     ContentModuleCard
   },
   data() {
@@ -78,6 +90,7 @@ export default {
           ...p,
           step_time: p.time,
           tags: [p.tag],
+          bidAmountFormatted: p.bidAmount ? formatMoney(p.bidAmount) : '',
           content: replaceKeyword(p.title, projectName, [
             '<span class="highlight-text">',
             '</span>'

+ 0 - 9
apps/mobile/src/views/article/components/DataExportBanner.vue

@@ -26,15 +26,6 @@ export default {
   components: {
     [Icon.name]: Icon
   },
-  props: {
-    entType: {
-      type: String,
-      default: 'winner',
-      validator(value) {
-        return ['buyer', 'winner'].includes(value)
-      }
-    }
-  },
   created() {},
   methods: {
     toDataExport() {