From cbc0c07421dea612d811825c8d6c61f75667b2f0 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Tue, 16 Jul 2024 10:20:25 +0800
Subject: [PATCH] 123
---
src/page/newUser/index.vue | 230 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 216 insertions(+), 14 deletions(-)
diff --git a/src/page/newUser/index.vue b/src/page/newUser/index.vue
index a8a81b8..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>
@@ -163,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>
@@ -175,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",
// 显示隐藏
@@ -207,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() {
@@ -215,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 });
@@ -228,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();
@@ -363,17 +537,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);
@@ -471,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;
}
--
Gitblit v1.9.3