From 4c8a466f75bf9eca29e9b5c9ad15db5757e5035d Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Wed, 28 Aug 2024 16:26:10 +0800
Subject: [PATCH] 首次提交
---
src/page/newUser/index.vue | 242 +++++-------------------------------------------
1 files changed, 25 insertions(+), 217 deletions(-)
diff --git a/src/page/newUser/index.vue b/src/page/newUser/index.vue
index 692320d..f6dd1d6 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.phone }}
+ ID:{{ userInfo.id }}
</div>
</div>
</div>
@@ -29,7 +29,7 @@
<van-row class="van-row-box">
<van-col span="20">
<div class="content-all">
- <span>{{ $t("賬戶總資產") }}({{ $USD }})</span>
+ <span>{{ $t("賬戶總資產") }}( $USD )</span>
<i @click="xy = !xy" class="iconfont xy"></i>
</div>
<div class="number-all">
@@ -163,49 +163,8 @@
</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>
@@ -216,14 +175,12 @@
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,Language },
+ components: { showHide },
data() {
return {
- pswDialog: false,
leverShow: false,
radio: "1",
// 显示隐藏
@@ -238,6 +195,15 @@
symbolCode: "INR",
symbol: "₹",
},
+ {
+ title: this.$t("美股資產"),
+ title3: this.$t("美股總資產"),
+ title1: this.$t("美股可用"),
+ title2: this.$t("美股冻结"),
+ accectType: "US",
+ symbolCode: "USD",
+ symbol: "$",
+ },
],
active: this.$t("印股資產"),
name: "",
@@ -250,43 +216,6 @@
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() {
@@ -295,96 +224,6 @@
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 });
@@ -398,11 +237,7 @@
}
},
kefu() {
- this.$store.commit("elAlertShow", {
- elAlertShow: true,
- elAlertText: this.$t("当前充值渠道已关闭请选择在线客服进行充值。")
- });
- // window.open(this.onlineService);
+ window.open(this.onlineService);
},
async getMoneyData() {
let data = await api.getMoney();
@@ -424,6 +259,7 @@
});
const arr = data.data.filter((item) => item.accectType === "ALL");
+ console.log(arr);
this.asstesAll = arr[0].totalMoney;
}
},
@@ -537,17 +373,17 @@
// }
this.$router.push("/setting");
},
- // handleOutLoginClick() {
- // // 退出登录
- // MessageBox.confirm(this.$t(""), this.$t("hj165"), {
- // confirmButtonText: this.$t("qr"),
- // 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);
@@ -645,34 +481,6 @@
</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;
}
--
Gitblit v1.9.3