From 6bf742b19037b59da70f2bc4119c9c0c68430870 Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Sat, 19 Jul 2025 18:22:38 +0800
Subject: [PATCH] 1

---
 src/page/markets/ipo.vue |   23 ++++++++++++++---------
 1 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/src/page/markets/ipo.vue b/src/page/markets/ipo.vue
index ecc4d18..90fc58d 100644
--- a/src/page/markets/ipo.vue
+++ b/src/page/markets/ipo.vue
@@ -11,12 +11,12 @@
     <div class="trading_card" v-for="i in list" :key="i.id">
       <div class="card_label1 flex-between-start">
         <div>
-          <p class="flex-start gp">
-            <span>{{ i.code }}</span>
-          </p>
           <p class="flex-start">
             <span class="label_icon">{{ i.stockType }}</span>
             <span class="label_name line-one">{{ i.name }}</span>
+          </p>
+          <p class="flex-start gp">
+            <span>{{ i.code }}</span>
           </p>
         </div>
 
@@ -49,8 +49,9 @@
       </p>
 
       <p class="card_buy flex-center" @click="buyOpen(i)">
-        <van-icon name="add-square" size=".4em" />
-        <span>{{ $t("申购") }}</span>
+        <van-icon name="add-square" size=".4em" v-show="i.isBuy == 0" />
+        <span v-if="i.isBuy == 0">{{ $t("申购") }}</span>
+        <span v-else-if="i.isBuy == 1" class="ygm">{{ $t("已申购") }}</span>
       </p>
     </div>
 
@@ -119,6 +120,7 @@
   methods: {
     // 购买弹窗
     buyOpen(i) {
+      if (i.isBuy != 0) return;
       this.popupData = i;
       this.buyShow = true;
     },
@@ -129,11 +131,11 @@
         applyNums: this.popupData.orderNumber,
         password: this.popupData.password,
         newlistId: this.popupData.newlistId,
-        type: this.popupData.type,
-      }
+        type: this.popupData.type
+      };
       let data = await api.getNewAdd(opt);
       console.log(data.status);
-      
+
       if (data.status == 0) {
         Toast.success();
         setTimeout(() => {
@@ -185,6 +187,9 @@
         font-size: 0.45em;
         font-weight: 600;
         margin-left: 0.2em;
+      }
+      .ygm {
+        color: #ddd;
       }
     }
     .card_label2,
@@ -239,7 +244,7 @@
         font-size: 0.3em;
       }
       .gp {
-        margin-bottom: 0.2em;
+        margin-top: 0.2em;
       }
     }
   }

--
Gitblit v1.9.3