소스 검색

去掉手机号邮箱校验

jwyu 3 년 전
부모
커밋
e1e44c1863
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      pages/login.vue

+ 4 - 4
pages/login.vue

@@ -139,9 +139,9 @@ export default {
         async handleSendVerifyCode(type) {
         async handleSendVerifyCode(type) {
             let res
             let res
             if (type === 'tel') {
             if (type === 'tel') {
-                if (!telVerify(this.tel, this.telAreaList[this.telAreaIndex].value)) {
+                if (!this.tel) {
                     uni.showToast({
                     uni.showToast({
-                        title: "请输入正确手机号",
+                        title: "请输入手机号",
                         icon: "none"
                         icon: "none"
                     })
                     })
                     return
                     return
@@ -152,9 +152,9 @@ export default {
                 })
                 })
 
 
             } else {
             } else {
-                if (!emailVerify(this.email)) {
+                if (!this.email) {
                     uni.showToast({
                     uni.showToast({
-                        title: "请输入正确邮箱地址",
+                        title: "请输入邮箱地址",
                         icon: "none"
                         icon: "none"
                     })
                     })
                     return
                     return