From b9561cffe9dd66b267371e04e3eefe330de8219a Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Sun, 31 Mar 2024 16:58:29 +0800
Subject: [PATCH] 注册页面的客服地址错误

---
 src/page/newUser/setting.vue |   36 ++++--------------------------------
 1 files changed, 4 insertions(+), 32 deletions(-)

diff --git a/src/page/newUser/setting.vue b/src/page/newUser/setting.vue
index f58809b..2e6e049 100644
--- a/src/page/newUser/setting.vue
+++ b/src/page/newUser/setting.vue
@@ -164,6 +164,7 @@
 import * as api from "@/axios/api";
 import { Toast, MessageBox } from "mint-ui";
 import { isNull, pwdReg } from "@/utils/utils";
+import { mapMutations } from "vuex";
 
 export default {
   name: "newUser",
@@ -214,6 +215,8 @@
     }
   },
   methods: {
+    ...mapMutations(["undataToken"]),
+
     popClose() {
       this.settingDialog = false;
     },
@@ -273,17 +276,9 @@
       }
     },
     goWall() {
-      if (this.userInfo.length === 0) {
-        this.$store.commit("dialogVisible", true);
-        return;
-      }
       this.$router.push("/wallet");
     },
     gotoa(e) {
-      if (this.userInfo.length === 0) {
-        this.$store.commit("dialogVisible", true);
-        return;
-      }
       if (e == 0) {
         this.$router.push("/wallet");
       } else if (e == 1) {
@@ -301,10 +296,6 @@
     handleZh() {
       this.selectUserFlag = !this.selectUserFlag;
 
-      if (this.userInfo.length === 0) {
-        this.$store.commit("dialogVisible", true);
-        return;
-      }
       if (navigator.vibrate) {
         // 支持
         navigator.vibrate([55]);
@@ -345,10 +336,6 @@
         .catch(() => {});
     },
     goToSettings() {
-      if (this.userInfo.length === 0) {
-        this.$store.commit("dialogVisible", true);
-        return;
-      }
       // 每次打开dialog 清空密码数据
       this.pswDialog = !this.pswDialog;
       if (this.pswDialog) {
@@ -358,31 +345,15 @@
       }
     },
     handleGoToTransfer() {
-      if (this.userInfo.length === 0) {
-        this.$store.commit("dialogVisible", true);
-        return;
-      }
       this.$router.push("/transfers");
     },
     handleGoToAuthentication() {
-      if (this.userInfo.length === 0) {
-        this.$store.commit("dialogVisible", true);
-        return;
-      }
       this.$router.push("/authentications");
     },
     handleGoToAuthenticationaz() {
-      if (this.userInfo.length === 0) {
-        this.$store.commit("dialogVisible", true);
-        return;
-      }
       this.$router.push("/download");
     },
     handleGoToBankCard() {
-      if (this.userInfo.length === 0) {
-        this.$store.commit("dialogVisible", true);
-        return;
-      }
       this.$router.push("/bankCard");
     },
     async toRegister() {
@@ -392,6 +363,7 @@
       let data = await api.logout();
       if (data.status === 0) {
         // Toast(data.msg)
+        this.undataToken(null);
         this.$router.push("/login");
       } else {
         Toast(data.msg);

--
Gitblit v1.9.3