From ee00a45f408636ca2507733cf26252fa5ee25d52 Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Thu, 25 Apr 2024 01:01:39 +0800
Subject: [PATCH] first

---
 src/page/list/favorites/data.list.vue |   21 +++++++++++++--------
 1 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/src/page/list/favorites/data.list.vue b/src/page/list/favorites/data.list.vue
index 1780ca0..174fbf3 100644
--- a/src/page/list/favorites/data.list.vue
+++ b/src/page/list/favorites/data.list.vue
@@ -63,7 +63,9 @@
           <van-col span="9">
             <div style="text-align: left">
               <div class="tp">
-                <span class="price_color">{{ item.price }}</span>
+                <span class="price_color">{{
+                  item.price | _toLocaleString(false)
+                }}</span>
               </div>
               <div class="bt">
                 <span>Max: {{ item.orderNumber }}</span>
@@ -142,7 +144,9 @@
           </div>
           <div class="xgsj">
             <div class="sjtlt">{{ $t("hj120") }}:</div>
-            <div class="xgTime">{{ shengouObj.price }}</div>
+            <div class="xgTime">
+              {{ shengouObj.price | _toLocaleString(false) }}
+            </div>
           </div>
           <!-- <div class="xgsj">
             <div class="sjtlt">上市時間:</div>
@@ -219,12 +223,16 @@
       this.fromData.value = e.target.value;
     },
     async newAddxg() {
+      console.log(this.shengouObj, "=====");
       const res = await api.getNewAdd({
         newCode: this.shengouObj.code,
         applyNums: this.fromData.value,
+        type: this.fromData.type,
       });
       if (res.status === 0) {
         Notify({ type: "success", message: res.msg });
+        this.show = false;
+        this.fromData.value = "";
       } else {
         Notify({ type: "warning", message: res.msg });
       }
@@ -251,12 +259,9 @@
         stockType = array[0].name;
       }
       let opt = {
-        // pageNum: this.pageNumVal,
-        // pageSize: 15,
-        // stockPlate: "",
-        keyWords: this.sousuo,
-        // stockType: stockType,
-        // orderBy: "",
+        zt: 0,
+        getType: 1,
+        pageSize: 1000,
       };
       let data = await api.getStocklist(opt);
       this.loading = false;

--
Gitblit v1.9.3