From 44db498cedee7573d090797b1fe5c331c413b00a Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Mon, 22 Apr 2024 19:03:57 +0800
Subject: [PATCH] first

---
 src/page/newUser/index.vue |  106 +++++++++++++++++++----------------------------------
 1 files changed, 38 insertions(+), 68 deletions(-)

diff --git a/src/page/newUser/index.vue b/src/page/newUser/index.vue
index 0289d1b..3d27f0e 100644
--- a/src/page/newUser/index.vue
+++ b/src/page/newUser/index.vue
@@ -27,42 +27,31 @@
 
       <div class="content-box">
         <van-row class="van-row-box">
-          <van-col span="24">
+          <van-col span="20">
             <div class="content-all">
-              <span>{{ $t("賬戶總資產") }}(USD)</span>
+              <span>{{ $t("賬戶總資產") }}({{ $USD }})</span>
               <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-col span="4" style="display: flex; justify-content: flex-end">
+            <van-icon
+              @click="$router.push('/rechargelist')"
+              name="orders-o"
+              size="20"
+            />
+          </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>
-          </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" />
-              </div>
-            </div>
-          </div>
-        </van-row>
+
         <van-row style="margin-top: 16px">
           <van-col span="8" style="display: flex; justify-content: center">
-            <van-button
-              @click="$router.push('/recharge')"
-              class="btn-two"
-              type="primary"
-              >{{ $t("hj172") }}</van-button
-            >
+            <!-- @click="$router.push('/recharge')" -->
+            <!-- @click="kefu" -->
+            <van-button @click="kefu" class="btn-two" type="primary">
+              {{ $t("hj172") }}
+            </van-button>
           </van-col>
           <van-col span="8" style="display: flex; justify-content: center">
             <van-button
@@ -72,18 +61,6 @@
               >{{ $t("提款") }}</van-button
             >
           </van-col>
-          <!-- transferIndex -->
-          <van-col span="8" style="display: flex; justify-content: center">
-            <van-button
-              @click="$router.push('/transferIndex')"
-              class="btn-two"
-              type="default"
-              >{{ $t("hj245") }}</van-button
-            >
-          </van-col>
-          <!-- <van-col span="6" style="display: flex; justify-content: center">
-            <van-button class="btn-two" type="default">資金明細</van-button>
-          </van-col> -->
         </van-row>
       </div>
       <div class="content-list-box">
@@ -102,7 +79,7 @@
             :name="item.title"
           >
             <ul class="money">
-              <li>
+              <li style="text-align: left">
                 <div class="li-title">
                   {{ item.title1 }}({{ item.symbolCode }})
                 </div>
@@ -110,9 +87,9 @@
                   <div class="DINPro">
                     {{ item.symbol }} {{ item.availableBalance || "0.00" }}
                   </div>
-                  <div class="DINPro">
+                  <!-- <div class="DINPro">
                     ≈ $ {{ item.availableBalanceUSD || "0.00" }}
-                  </div>
+                  </div> -->
                 </div>
               </li>
               <li>
@@ -123,7 +100,7 @@
                   <div class="DINPro">
                     {{ item.symbol }} {{ item.freezeMoney || "0.00" }}
                   </div>
-                  <div class="DINPro">≈ $ {{ item.freezeMoney || "0.00" }}</div>
+                  <!-- <div class="DINPro">≈ $ {{ item.freezeMoney || "0.00" }}</div> -->
                 </div>
               </li>
             </ul>
@@ -149,31 +126,16 @@
       xy: true,
       listAsstes: [
         {
-          title: this.$t("美股資產"),
-          title1: this.$t("美股可用"),
-          title2: this.$t("美股冻结"),
-          accectType: "US",
-          symbol: "$",
-          symbolCode: "USD",
-        },
-        // {
-        //   title: this.$t("印股資產"),
-        //   title1: this.$t("印股可用"),
-        //   title2: this.$t("印股冻结"),
-        //   accectType: "IN",
-        //   symbol: "RM",
-        //   symbolCode: "MYR",
-        // },
-        {
-          title: this.$t("馬股資產"),
-          title1: this.$t("馬股可用"),
-          title2: this.$t("馬股冻结"),
-          accectType: "MAS",
-          symbol: "RM",
-          symbolCode: "MYR",
+          title: this.$t("印股資產"),
+          title3: this.$t("印股總資產"),
+          title1: this.$t("印股可用"),
+          title2: this.$t("印股冻结"),
+          accectType: "IN",
+          symbolCode: "INR",
+          symbol: "₹",
         },
       ],
-      active: this.$t("美股資產"),
+      active: this.$t("印股資產"),
       name: "",
       selectUserFlag: true,
       settingDialog: false,
@@ -183,6 +145,7 @@
       userInfo: [],
       onlineService: "",
       moneyList: [],
+      asstesAll: "0.00",
     };
   },
   created() {
@@ -191,6 +154,9 @@
     this.getInfoSite();
   },
   methods: {
+    kefu() {
+      window.open(this.onlineService);
+    },
     async getMoneyData() {
       let data = await api.getMoney();
       console.log(data);
@@ -209,7 +175,9 @@
             }
           });
         });
-        console.log(this.listAsstes);
+
+        const arr = data.data.filter((item) => item.accectType === "ALL");
+        this.asstesAll = arr[0].totalMoney;
       }
     },
     tabsChange(e) {
@@ -301,7 +269,7 @@
     },
     async getUserInfo() {
       // 获取用户信息
-      let data = await api.getUserInfo();
+      let data = await api.getUserInfodata();
       if (data.status === 0) {
         // 判断是否登录
         this.$store.commit("dialogVisible", false);
@@ -486,6 +454,8 @@
       color: #2d2f3c;
     }
     .li-USDT {
+      min-width: 180px;
+      text-align: right;
       font-style: normal;
       font-weight: 500;
       font-size: 0.37333rem;

--
Gitblit v1.9.3