From 5dfb843c29fdcc1693961b70a36ddee3fea85a4a Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Fri, 27 Feb 2026 16:33:11 +0800
Subject: [PATCH] 1

---
 src/page/list/favorites/data.list.vue |   77 ++++++++++++++++++++++++++------------
 1 files changed, 53 insertions(+), 24 deletions(-)

diff --git a/src/page/list/favorites/data.list.vue b/src/page/list/favorites/data.list.vue
index 8beeeb2..b7e19d3 100644
--- a/src/page/list/favorites/data.list.vue
+++ b/src/page/list/favorites/data.list.vue
@@ -8,7 +8,7 @@
           </div>
         </van-col>
         <van-col span="9"
-          ><div style="text-align: left">
+          ><div v-show="false" style="text-align: left">
             {{ $t("hj40") }}
           </div>
         </van-col>
@@ -54,17 +54,17 @@
                   >{{ item.name }}</span
                 >
               </div>
-              <div class="bt">
+             <!-- <div class="bt">
                 <span>{{ item.code }}</span>
-              </div>
+              </div> -->
             </div></van-col
           >
 
-          <van-col span="9">
-            <div style="text-align: left">
+          <van-col span="9" >
+            <div style="text-align: left" v-show="false">
               <div class="tp">
                 <span class="price_color">{{
-                  item.price | _toLocaleString(false)
+                  item.price
                 }}</span>
               </div>
               <div class="bt">
@@ -81,7 +81,16 @@
               </div>
             </div>
           </van-col>
+          <div style="width: 100%;display: flex;justify-content: space-between;align-items: center;margin-top: 10px;font-size: 10px;;">
+            <div>{{$t('hj59')}}:{{formatTimestamp(item.subscriptionTime)}}</div>
+            <div>{{$t('申购结束时间')}}:{{formatTimestamp(item.subscribeTime)}}</div>
+          </div>
+          <div style="width: 100%;display: flex;justify-content: space-between;align-items: center;margin-top: 10px;font-size: 10px;;">
+            <div>{{$t('上市时间')}}:{{formatTimestamp(item.listDate)}}</div>
+            <div>{{$t('hj314')}}:{{item.price}}円</div>
+          </div>
         </van-row>
+
       </div>
     </van-list>
 
@@ -99,7 +108,14 @@
           <div class="laber">
             {{ shengouObj.type === 1 ? $t("hj57") : $t("配售数量") }}:
           </div>
-          <input type="number" :value="fromData.value" @input="fromDatavalue" />
+          <input  style="width: 40%;"  type="text" :maxlength="9"  v-model="fromData.value" @input="fromDatavalue"  />
+        </div>
+        <div class="input-box" style="margin-top:20px;" v-if="shengouObj.password">
+        <!-- <div class="input-box" style="margin-top:20px;"> -->
+          <div class="laber">
+            {{$t("秘钥")}}:
+          </div>
+          <input style="width: 40%;" type="text" :maxlength="9"  v-model="fromData.password"  />
         </div>
 
         <div class="shijian">
@@ -110,11 +126,7 @@
               }}:
             </div>
             <div class="xgTime">
-              {{
-                $moment(shengouObj.subscriptionTime).format(
-                  "DD-MM-YYYY hh:mm:ss A"
-                )
-              }}
+              {{formatTimestamp(shengouObj.subscriptionTime)}}
             </div>
           </div>
           <div class="xgsj">
@@ -125,17 +137,13 @@
               <!-- {{ $t("hj60") }}: -->
             </div>
             <div class="xgTime">
-              {{
-                $moment(shengouObj.subscribeTime).format(
-                  "DD-MM-YYYY hh:mm:ss A"
-                )
-              }}
+              {{formatTimestamp(shengouObj.subscribeTime)}}
             </div>
           </div>
           <div class="xgsj">
             <div class="sjtlt">{{ $t("上市时间") }}:</div>
             <div class="xgTime">
-              {{ $moment(shengouObj.listDate).format("DD-MM-YYYY hh:mm:ss A") }}
+              {{formatTimestamp(shengouObj.listDate)}}
             </div>
           </div>
           <div class="xgsj">
@@ -143,9 +151,13 @@
             <div class="xgTime">{{ shengouObj.orderNumber }}</div>
           </div>
           <div class="xgsj">
+            <div class="sjtlt">{{ $t("hj101") }}:</div>
+            <div class="xgTime">{{ shengouObj.lever }}</div>
+          </div>
+          <div class="xgsj">
             <div class="sjtlt">{{ $t("hj120") }}:</div>
             <div class="xgTime">
-              {{ shengouObj.price | _toLocaleString(false) }}
+              {{ shengouObj.price  }}円
             </div>
           </div>
           <!-- <div class="xgsj">
@@ -203,6 +215,7 @@
     return {
       fromData: {
         value: 1,
+        password:''
       },
       loadings: false,
       show: false,
@@ -219,14 +232,30 @@
     this.getStock(this.active, this.zxactive);
   },
   methods: {
+    formatTimestamp(timestamp) {
+      const date = new Date(timestamp);  // 将时间戳转换为 Date 对象
+
+      const day = date.getDate();        // 日期
+      const month = date.getMonth() + 1; // 月份(从 0 开始,所以下标要加 1)
+      const year = date.getFullYear();   // 年份
+      const hours = date.getHours();     // 小时
+      const minutes = date.getMinutes(); // 分钟
+      const seconds = date.getSeconds(); // 秒钟
+
+      // 格式化为 "日月年/时分秒" 格式
+      return `${year}${this.$t('年')}${month}${this.$t('月')}${day}${this.$t('日')}/${hours}:${minutes}:${seconds}`;
+      // return `${month}`;
+    },
     fromDatavalue(e) {
-      this.fromData.value = e.target.value;
+      this.fromData.value = this.fromData.value.replace(/^(0+)|[^\d]+/g, '')
     },
     async newAddxg() {
-      console.log(this.shengouObj, "=====");
+      console.log(this.shengouObj.newlistId, "=====");
       const res = await api.getNewAdd({
         newCode: this.shengouObj.code,
         applyNums: this.fromData.value,
+        password: this.fromData.password,
+        newlistId: this.shengouObj.newlistId,
         type: this.shengouObj.type,
       });
       if (res.status === 0) {
@@ -240,6 +269,7 @@
     shengou(item) {
       this.show = true;
       this.shengouObj = item;
+      this.fromData.value = item.orderNumber
     },
     filterSH(val) {
       if (val === "sh") {
@@ -298,7 +328,6 @@
     height: 1.3rem;
     background: #f3f3f3;
     border-radius: 0.15rem;
-
     line-height: 1.3rem;
     padding-left: 10px;
     display: flex;
@@ -313,7 +342,7 @@
     width: 100%;
     height: 1.3rem;
     border-radius: 0.15rem;
-    background: #5c288c;
+    background: #185546;
     color: #fff;
     font-size: 0.4615rem;
     margin-top: 0.5rem;
@@ -417,4 +446,4 @@
   text-align: center;
   line-height: 35px;
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3