From e3097587828362e34352cf4f378c8f5a260ea700 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Thu, 19 Sep 2024 16:32:00 +0800
Subject: [PATCH] no message

---
 src/page/newUser/index.vue |  256 +++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 237 insertions(+), 19 deletions(-)

diff --git a/src/page/newUser/index.vue b/src/page/newUser/index.vue
index 7ab19ff..692320d 100644
--- a/src/page/newUser/index.vue
+++ b/src/page/newUser/index.vue
@@ -14,7 +14,7 @@
               {{ userInfo.realName }}
             </div>
             <div class="top_box_top" style="margin-top: 2px">
-              ID:{{ userInfo.id }}
+              ID:{{ userInfo.phone }}
             </div>
           </div>
         </div>
@@ -61,7 +61,7 @@
               >{{ $t("提款") }}</van-button
             >
           </van-col>
-          <van-col span="8" style="display: flex; justify-content: center">
+          <!-- <van-col span="8" style="display: flex; justify-content: center">
             <van-button
               @click="leverShow = true"
               class="btn-two"
@@ -69,7 +69,7 @@
             >
               {{ $t("申请杠杠") }}
             </van-button>
-          </van-col>
+          </van-col> -->
         </van-row>
 
         <van-dialog
@@ -128,7 +128,8 @@
                 </div>
                 <div class="li-USDT">
                   <div class="DINPro">
-                    {{ item.symbol }} {{ item.availableBalance | _toString }}
+                    {{ item.symbol }}
+                    {{ item.availableBalance | _toLocaleString }}
                   </div>
                   <!-- <div class="DINPro">
                     ≈ $ {{ item.availableBalanceUSD || "0.00" }}
@@ -141,7 +142,20 @@
                 </div>
                 <div class="li-USDT">
                   <div class="DINPro">
-                    {{ item.symbol }} {{ item.freezeMoney | _toString }}
+                    {{ item.symbol }}
+                    {{ item.freezeMoney | _toLocaleString }}
+                  </div>
+                  <!-- <div class="DINPro">≈ $ {{ item.freezeMoney || "0.00" }}</div> -->
+                </div>
+              </li>
+              <li>
+                <div class="li-title">
+                  {{ $t("待补金额") }}({{ item.symbolCode }})
+                </div>
+                <div class="li-USDT">
+                  <div class="DINPro">
+                    {{ item.symbol }}
+                    {{ item.amountToBeCovered | _toLocaleString }}
                   </div>
                   <!-- <div class="DINPro">≈ $ {{ item.freezeMoney || "0.00" }}</div> -->
                 </div>
@@ -149,8 +163,49 @@
             </ul>
           </van-tab>
         </van-tabs>
+      <!--  <div class="path" >
+          <div class="path_box" v-for="(item,index) in iconlist" :key="index" @click="nato(item.path)">
+            <div class="path_img">
+              <img alt :src="item.icon"/>
+            </div>
+            <div class="path_txt">{{item.title}}</div>
+          </div>
+        </div> -->
+
       </div>
     </div>
+    <Language ref="language" @onChange="onChange" />
+    <van-popup v-model="settingDialog" position="bottom" :style="{ height: '40%' }">
+      <div class="setting_content">
+        <div class="old_password">
+          <div class="left_titles">
+            <span>{{ $t("hj150") + ":" }}</span>
+          </div>
+          <div class="right_password_input">
+            <input type="password" v-model="oldPassword" />
+          </div>
+        </div>
+        <div class="old_password">
+          <div class="left_titles">
+            <span>{{ $t("hj151") + ":" }}</span>
+          </div>
+          <div class="right_password_input">
+            <input type="password" v-model="newPassword" />
+          </div>
+        </div>
+        <div class="old_password">
+          <div class="left_titles">
+            <span>{{ $t("hj152") + ":" }}</span>
+          </div>
+          <div class="right_password_input">
+            <input type="password" v-model="cirNewPassword" />
+          </div>
+        </div>
+        <div class="btn_setting" @click="changeLoginPsd()">
+          <span>{{ $t("hj153") }}</span>
+        </div>
+      </div>
+    </van-popup>
   </div>
 </template>
 
@@ -161,12 +216,14 @@
 import showHide from "@/components/showHide";
 import Vue from "vue";
 import { Notify } from "vant";
+import Language from "@/components/Language/index.vue";
 
 export default {
   name: "newUser",
-  components: { showHide },
+  components: { showHide,Language },
   data() {
     return {
+      pswDialog: false,
       leverShow: false,
       radio: "1",
       // 显示隐藏
@@ -193,6 +250,43 @@
       onlineService: "",
       moneyList: [],
       asstesAll: "0.00",
+      iconlist:[{
+        icon:require('../../assets/img/usericon.png'),
+        path:'/bankCard1',
+        title: this.$t("关于我们"),
+      },
+      {
+        icon:require('../../assets/img/usericon.png'),
+        path:'/banklist',
+        title: this.$t("hj147"),
+      },
+      {
+        icon:require('../../assets/img/usericon.png'),
+        path:'/mm',
+        title: this.$t("hj144"),
+      },
+      {
+        icon:require('../../assets/img/usericon.png'),
+        path:'/authentications',
+        title: this.$t("hj146"),
+      },
+      // {
+      //   icon:require('../../assets/img/usericon.png'),
+      //   path:'/banklist',
+      //   title: this.$t("ysmrz"),
+      // },
+      {
+        icon:require('../../assets/img/usericon.png'),
+        path:'/yy',
+        title: this.$t("yy"),
+      },
+      {
+        icon:require('../../assets/img/usericon.png'),
+        path:'/tc',
+        title: this.$t("hj148"),
+      },
+      ],
+      language: "",
     };
   },
   created() {
@@ -201,6 +295,96 @@
     this.getInfoSite();
   },
   methods: {
+    clicklang() {
+      this.$refs.language.settingDialog = true;
+    },
+    onChange(e) {
+      this.language = e;
+      this.active = this.$t("印股資產")
+      this.listAsstes=[
+        {
+          title: this.$t("印股資產"),
+          title3: this.$t("印股總資產"),
+          title1: this.$t("印股可用"),
+          title2: this.$t("印股冻结"),
+          accectType: "IN",
+          symbolCode: "INR",
+          symbol: "₹",
+        },
+      ]
+      this.iconlist = [{
+        icon:require('../../assets/img/usericon.png'),
+        path:'/bankCard1',
+        title: this.$t("关于我们"),
+      },
+      {
+        icon:require('../../assets/img/usericon.png'),
+        path:'/banklist',
+        title: this.$t("hj147"),
+      },
+      {
+        icon:require('../../assets/img/usericon.png'),
+        path:'/mm',
+        title: this.$t("hj144"),
+      },
+      {
+        icon:require('../../assets/img/usericon.png'),
+        path:'/authentications',
+        title: 'KYC',
+      },
+      // {
+      //   icon:require('../../assets/img/usericon.png'),
+      //   path:'/banklist',
+      //   title: this.$t("ysmrz"),
+      // },
+      {
+        icon:require('../../assets/img/usericon.png'),
+        path:'/yy',
+        title: this.$t("yy"),
+      },
+      {
+        icon:require('../../assets/img/usericon.png'),
+        path:'/tc',
+        title: this.$t("hj148"),
+      },
+      ]
+    },
+    nato(path){
+      if(path=='/mm'){
+        this.goToSettings()
+      }else if (path=='/yy'){
+        this.clicklang()
+      }else if (path == '/tc'){
+        this.handleOutLoginClick()
+      }else{
+        this.$router.push(path);
+      }
+    },
+    async toRegister() {
+      // 注销登陆
+      window.localStorage.removeItem("USERTOKEN"); // 清空本地存储 USERTOKEN字段
+      this.clearCookie();
+      let data = await api.logout();
+      if (data.status === 0) {
+        // Toast(data.msg)
+        this.undataToken(null);
+        this.$router.push("/login");
+      } else {
+        Toast(data.msg);
+      }
+      this.$router.push("/login");
+    },
+    handleOutLoginClick() {
+      // 退出登录
+      MessageBox.confirm(this.$t("hj149"), this.$t(""), {
+        confirmButtonText: this.$t("qr"),
+        cancelButtonText: this.$t("hj106"),
+      })
+        .then(() => {
+          this.toRegister();
+        })
+        .catch(() => {});
+    },
     // 申请杠杠
     async confirmLever() {
       const res = await api.applyLever({ lever: this.radio });
@@ -214,7 +398,11 @@
       }
     },
     kefu() {
-      window.open(this.onlineService);
+      this.$store.commit("elAlertShow", {
+          elAlertShow: true,
+          elAlertText: this.$t("当前充值渠道已关闭请选择在线客服进行充值。")
+        });
+      // window.open(this.onlineService);
     },
     async getMoneyData() {
       let data = await api.getMoney();
@@ -230,6 +418,7 @@
               Vue.set(items, "freezeMoneyUSD", item.freezeMoneyUSD);
               Vue.set(items, "symbol", item.symbol);
               Vue.set(items, "symbolCode", item.symbolCode);
+              Vue.set(items, "amountToBeCovered", item.amountToBeCovered);
             }
           });
         });
@@ -348,17 +537,17 @@
       // }
       this.$router.push("/setting");
     },
-    handleOutLoginClick() {
-      // 退出登录
-      MessageBox.confirm(this.$t("hj149") + "?", this.$t("hj165"), {
-        confirmButtonText: this.$t("hj161"),
-        cancelButtonText: this.$t("hj106"),
-      })
-        .then(() => {
-          this.toRegister();
-        })
-        .catch(() => {});
-    },
+    // handleOutLoginClick() {
+    //   // 退出登录
+    //   MessageBox.confirm(this.$t(""), this.$t("hj165"), {
+    //     confirmButtonText: this.$t("qr"),
+    //     cancelButtonText: this.$t("hj106"),
+    //   })
+    //     .then(() => {
+    //       this.toRegister();
+    //     })
+    //     .catch(() => {});
+    // },
     goToSettings() {
       if (this.userInfo.length === 0) {
         this.$store.commit("dialogVisible", true);
@@ -456,6 +645,34 @@
 </script>
 
 <style scoped lang="less">
+  .path_txt{
+    text-align: center;
+  }
+  .path_img{
+
+    img{
+      width: 55px;
+      height: 55px;
+      margin-bottom: 10px;
+    }
+  }
+  .path_box{
+    width: 25%;
+    display: flex;
+    // justify-content: center;
+    align-items: center;
+    flex-direction: column;
+    margin-bottom: 20px;
+  }
+  .path{
+    margin: 0 20px;
+    margin-top: 20px;
+    padding: 20px 0;
+    display: flex;
+    flex-wrap: wrap;
+    border-radius: 12px;
+    box-shadow:  2px 2px 8px 2px rgba(0, 0, 0, 0.2);
+  }
 /deep/ .van-button--primary {
   background-color: #0066ed;
 }
@@ -510,6 +727,7 @@
       font-weight: 500;
       font-size: 0.37333rem;
       color: #2d2f3c;
+      text-align: left;
     }
     .li-USDT {
       min-width: 180px;
@@ -1016,4 +1234,4 @@
 input[type="file"] {
   display: none !important;
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3