Browse Source

去掉手机号邮箱校验

jwyu 3 năm trước cách đây
mục cha
commit
e1e44c1863
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      pages/login.vue

+ 4 - 4
pages/login.vue

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