ソースを参照

feat: 参标、取消参标对接

zhangyuhan 1 年間 前
コミット
46e2100640

+ 0 - 1
apps/bigmember_pc/src/components/push-list/ArticleStar.vue

@@ -448,7 +448,6 @@ export default {
     display: inline-block;
     width: 20px;
     height: 20px;
-    margin-left: 6px;
     background: transparent
       url(https://cdn-ali.jianyu360.com/images/collect.png) center no-repeat;
     background-size: contain;

+ 3 - 3
apps/bigmember_pc/src/composables/quick-join-bid/index.js

@@ -104,9 +104,9 @@ export function useQuickJoinBidModel({ id }) {
     $toast: that.$toast,
     onUpdate: () => {
       if (BidrenewalDialogElement?.value) {
-        // BidrenewalDialogElement?.value.passVisible = true
-        // BidrenewalDialogElement?.value.setid(this.sid)
-        // BidrenewalDialogElement?.value.refreshData()
+        BidrenewalDialogElement?.value.openDialog()
+        BidrenewalDialogElement?.value.setid(id)
+        BidrenewalDialogElement?.value.refreshData()
       }
     }
   })

+ 3 - 0
apps/bigmember_pc/src/views/BidrenewalDialog/index.vue

@@ -128,6 +128,9 @@ export default {
         }
       }
     },
+    openDialog() {
+      this.passVisible = true
+    },
     initFunction() {
       // 注册方法供外部调用
       const this_ = this

+ 21 - 2
apps/bigmember_pc/src/views/article-content/components/ContentHeader.vue

@@ -114,11 +114,25 @@ const bidCountdown = computed(() => {
           :cache="true"
           type="project"
           :params="contentId"
-        />
+        ></quick-monitor>
 
-        <div class="action-item" v-if="false">
+        <div
+          class="action-item"
+          v-if="JoinBidInfo.showParticipate"
+          @click="doChangeJoinBid('in')"
+        >
           <span class="iconfont icon-canbiao"></span>
+          <span class="text">参标</span>
         </div>
+        <div
+          class="action-item"
+          v-if="JoinBidInfo.showStopParticipate"
+          @click="doChangeJoinBid('out')"
+        >
+          <span class="iconfont icon-canbiao icon-stop-canbiao"></span>
+          <span class="text">终止参标</span>
+        </div>
+
         <div class="action-item">
           <article-star
             :id="contentId"
@@ -190,6 +204,7 @@ const bidCountdown = computed(() => {
   background-color: #fff;
   padding: 32px 40px;
   border-radius: 8px;
+
   .before-type {
     position: absolute;
     top: 0;
@@ -259,6 +274,10 @@ const bidCountdown = computed(() => {
       .iconfont {
         font-size: 18px;
         color: #9b9ca3;
+
+        &.icon-stop-canbiao {
+          color: #ff3b20;
+        }
       }
 
       .action-item {