From 52a0fa98a6ca44ea8284ee3f7822f1c85c8923e8 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Thu, 23 May 2024 17:37:11 +0800
Subject: [PATCH] 我的 增加印股,日股总资产

---
 src/page/login/register.vue |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/page/login/register.vue b/src/page/login/register.vue
index 61edde4..2f3595e 100644
--- a/src/page/login/register.vue
+++ b/src/page/login/register.vue
@@ -129,11 +129,7 @@
       } else if (isNull(this.rePassword)) {
         Notify({ type: "warning", message: this.$t("hj31") });
       } else {
-        if (!/(^[1-9]\d*$)/.test(this.phone)) {
-          Notify({ type: "warning", message: this.$t("hj28") });
-        } else if (this.phone.toString().length != 10) {
-          Notify({ type: "warning", message: this.$t("hj28") });
-        } else if (this.userPassword !== this.rePassword) {
+        if (this.userPassword !== this.rePassword) {
           this.password = 0;
           this.password2 = 0;
           Notify({ type: "warning", message: this.$t("hj32") });
@@ -151,6 +147,7 @@
           };
           let data = await api.register(opts);
           if (data.status === 0) {
+            Notify({ type: "success", message: data.msg });
             setTimeout(() => {
               this.$router.push("/login");
             }, 1000);

--
Gitblit v1.9.3