Browse Source

1、账号申诉、更换管理员申诉、密码重置申诉页面增加验证手机号是否已注册的接口;2、暂时注释掉所有进入密码重置申诉的入口;3、密码重置申诉更换验证手机号逻辑,手机号已存在才可以进行下一步;4、去掉数据测试时的数据展示

hangb 7 years ago
parent
commit
8968e1c597

+ 2 - 17
components/appeal/ChangeManagerAppeal.vue

@@ -9,9 +9,7 @@
           <el-form :model="changeManager" :rules="rules" ref="changeManager" label-width="100px" class="demo-ruleForm">
             <el-form-item prop="mobile">
               <el-input v-model="changeManager.mobile"
-                        v-bind:class="{active: mobileExit}"
                         placeholder="新管理员手机号"></el-input>
-              <span class="tip tip-mobile" v-show="mobileExit">该手机已被注册</span>
             </el-form-item>
             <el-form-item prop="code">
               <el-input type="text" v-model="changeManager.code"
@@ -157,7 +155,6 @@
           callback(new Error('请填写正确的手机号'))
           this.getCodeBtnIsDisabled = true
           this.mobileChecked = false
-          this.mobileExit = false
         } else {
           if (this.changeManager.mobile !== '') {
             var reg = /^1[0-9]{10}$/
@@ -165,20 +162,9 @@
               callback(new Error('请填写正确的手机号'))
               this.getCodeBtnIsDisabled = true
               this.mobileChecked = false
-              this.mobileExit = false
             } else {
-              this.$http.get(`/update/user/mobile/hasRegister`, {params: {mobile: this.changeManager.mobile}})
-                .then(response => {
-                  if (response.data.content.hasRegister) {
-                    this.getCodeBtnIsDisabled = true
-                    this.mobileChecked = false
-                    this.mobileExit = true
-                  } else {
-                    this.getCodeBtnIsDisabled = false
-                    this.mobileChecked = true
-                    this.mobileExit = false
-                  }
-                })
+              this.getCodeBtnIsDisabled = false
+              this.mobileChecked = true
             }
           }
           callback()
@@ -390,7 +376,6 @@
         descriptionTip: true,
         isSpaceNameExist: false,
         mobileChecked: false,
-        mobileExit: false,
         codeChecked: false,
         spaceNameChecked: false,
         businessCodeChecked: false,

+ 12 - 12
components/appeal/PasswordRestAppeal.vue

@@ -9,9 +9,9 @@
           <el-form :model="passwordRest" :rules="rules" ref="passwordRest" label-width="100px" class="demo-ruleForm">
             <el-form-item prop="mobile">
               <el-input v-model="passwordRest.mobile"
-                        v-bind:class="{active: mobileExit}"
+                        v-bind:class="{active: mobileIsExit}"
                         placeholder="新手机号码"></el-input>
-              <span class="tip tip-mobile" v-show="mobileExit">该手机已被注册</span>
+              <span class="tip tip-mobile" v-show="mobileIsExit">该手机号未注册</span>
             </el-form-item>
             <el-form-item prop="code">
               <el-input type="text" v-model="passwordRest.code"
@@ -93,7 +93,7 @@
           callback(new Error('请填写正确的手机号'))
           this.getCodeBtnIsDisabled = true
           this.mobileChecked = false
-          this.mobileExit = false
+          this.mobileIsExit = false
         } else {
           if (this.passwordRest.mobile !== '') {
             var reg = /^1[0-9]{10}$/
@@ -101,18 +101,18 @@
               callback(new Error('请填写正确的手机号'))
               this.getCodeBtnIsDisabled = true
               this.mobileChecked = false
-              this.mobileExit = false
+              this.mobileIsExit = false
             } else {
-              this.$http.get(`/update/user/mobile/hasRegister`, {params: {mobile: this.passwordRest.mobile}})
+              this.$http.get(`/api/user/checkMobile`, {params: {mobile: this.passwordRest.mobile}})
                 .then(response => {
-                  if (response.data.content.hasRegister) {
-                    this.getCodeBtnIsDisabled = true
-                    this.mobileChecked = false
-                    this.mobileExit = true
-                  } else {
+                  if (response.data.hasRegister) {
                     this.getCodeBtnIsDisabled = false
                     this.mobileChecked = true
-                    this.mobileExit = false
+                    this.mobileIsExit = false
+                  } else {
+                    this.getCodeBtnIsDisabled = true
+                    this.mobileChecked = false
+                    this.mobileIsExit = true
                   }
                 })
             }
@@ -353,7 +353,7 @@
         contactNameChecked: false,
         contactTelChecked: false,
         contactEmailChecked: false,
-        mobileExit: false,
+        mobileIsExit: false,
         rules: {
           mobile: [
             {validator: validateMobile, trigger: 'blur'}

+ 5 - 5
components/reset/ForgetPasswordChooseStyle.vue

@@ -20,11 +20,11 @@
             <img src="/images/all/icon02.png" alt="" class="first"/>
             <span>通过验证邮箱</span><i class="fa fa-angle-right second"></i>
           </div>
-          <div v-show="showManualAppeal"
-               @click="goPasswordSetAppeal">
-            <img src="/images/all/icon04.png" alt="" class="first"/>
-            <span>通过人工申诉</span><i class="fa fa-angle-right second"></i>
-          </div>
+          <!--<div v-show="showManualAppeal"-->
+               <!--@click="goPasswordSetAppeal">-->
+            <!--<img src="/images/all/icon04.png" alt="" class="first"/>-->
+            <!--<span>通过人工申诉</span><i class="fa fa-angle-right second"></i>-->
+          <!--</div>-->
         </div>
       </div>
       <div class="content" v-show="showPhoneValid">

+ 1 - 1
pages/cloudcenter/enterprise/index.vue

@@ -6,7 +6,7 @@
         <div class="container">
           <div class="table-list">
             <div class="table-top">
-              <h3>成员列表{{user.userspace.admin.userUU === user.user.userUU}}{{isToggleDialogVisible}}</h3>
+              <h3>成员列表</h3>
               <a class="btn-us-apply" @click="user.userspace.admin.userUU === user.user.userUU ? toggle = !toggle : isToggleDialogVisible = true">申请列表</a>
             </div>
             <table class="table table-striped" v-if="member.content.length !== 0">