From 4d1142f68ab46428939b6d16913b98cad406f082 Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Sun, 07 Apr 2024 18:25:48 +0800
Subject: [PATCH] ne1

---
 src/page/newUser/index.vue |   30 ++++++++++++++++++------------
 1 files changed, 18 insertions(+), 12 deletions(-)

diff --git a/src/page/newUser/index.vue b/src/page/newUser/index.vue
index 0289d1b..a03bb21 100644
--- a/src/page/newUser/index.vue
+++ b/src/page/newUser/index.vue
@@ -33,24 +33,26 @@
               <i @click="xy = !xy" class="iconfont xy">&#xe8c7;</i>
             </div>
             <div class="number-all">
-              <showHide :text="userInfo.totalAssets" :flg="xy" />
+              <showHide :text="asstesAll" :flg="xy" />
             </div>
           </van-col>
         </van-row>
         <van-row style="margin-top: 18px">
-          <div class="van-col van-col--8" style="margin-top: 10px">
-            <div class="content-title DINPro">{{ $t("美股總資產") }}(USD)</div>
-            <div>
-              <div class="DINPro" style="font-size: 18px">
-                <showHide :text="userInfo.usTotalAssets" :flg="xy" />
-              </div>
+          <div
+            class="van-col van-col--8"
+            style="margin-top: 10px"
+            v-for="item in listAsstes"
+            :key="item.accectType"
+          >
+            <div class="content-title DINPro">
+              {{
+                item.accectType === "US" ? $t("美股總資產") : $t("馬股總資產")
+              }}
+              ({{ item.symbolCode }})
             </div>
-          </div>
-          <div class="van-col van-col--8" style="margin-top: 10px">
-            <div class="content-title">{{ $t("馬股總資產") }}(USD)</div>
             <div>
               <div class="DINPro" style="font-size: 18px">
-                <showHide :text="userInfo.masTotalAssets" :flg="xy" />
+                <showHide :text="item.availableBalance" :flg="xy" />
               </div>
             </div>
           </div>
@@ -183,6 +185,7 @@
       userInfo: [],
       onlineService: "",
       moneyList: [],
+      asstesAll: "0.00",
     };
   },
   created() {
@@ -209,6 +212,9 @@
             }
           });
         });
+
+        const arr = data.data.filter((item) => item.accectType === "ALL");
+        this.asstesAll = arr[0].totalMoneyUSD;
         console.log(this.listAsstes);
       }
     },
@@ -301,7 +307,7 @@
     },
     async getUserInfo() {
       // 获取用户信息
-      let data = await api.getUserInfo();
+      let data = await api.getUserInfodata();
       if (data.status === 0) {
         // 判断是否登录
         this.$store.commit("dialogVisible", false);

--
Gitblit v1.9.3