From bc2a7316ce753a6731d9d93faf553f450a9ccda3 Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Sun, 21 Apr 2024 13:43:06 +0800
Subject: [PATCH] first

---
 src/page/login/register.vue |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/page/login/register.vue b/src/page/login/register.vue
index 52bd8b9..6ff323b 100644
--- a/src/page/login/register.vue
+++ b/src/page/login/register.vue
@@ -11,12 +11,13 @@
             :placeholder="placeholder"
             size="medium"
             v-model="phone"
+            maxlength="10"
             clearable
             @input="handleInput()"
           >
+            <template slot="prepend">+91</template>
           </el-input>
-          <!-- <el-input style="margin-top: 0.46rem;" :placeholder="verification" :size="medium" v-model="code" clearable>
-          </el-input> -->
+
           <el-input
             style="margin-top: 0.46rem"
             show-password
@@ -122,7 +123,7 @@
     },
 
     async gook() {
-      if (isNull(this.phone)) {
+      if (this.phone.length !== 10) {
         Notify({ type: "warning", message: this.$t("hj28") });
       } else if (isNull(this.userPassword)) {
         Notify({ type: "warning", message: this.$t("hj30") });
@@ -273,7 +274,7 @@
       height: 70px;
       background-color: rgb(246, 246, 247) !important;
       // background: #1e1e1e;
-      border-radius: 8px;
+      // border-radius: 8px;
       font-size: 0.45rem !important;
       border: none;
     }
@@ -435,6 +436,11 @@
 /deep/.el-input__clear {
   font-size: 0.5rem !important;
 }
+/deep/ .el-input-group__prepend {
+  border: none !important;
+  border-radius: 0 !important;
+  font-size: 0.45rem !important;
+}
 
 .on .top_btn {
   background: #2d8cf0 !important;

--
Gitblit v1.9.3