diff --git a/subpages/index/checkInUser/checkInUser.js b/subpages/index/checkInUser/checkInUser.js index 6bc42a1..f75271d 100644 --- a/subpages/index/checkInUser/checkInUser.js +++ b/subpages/index/checkInUser/checkInUser.js @@ -109,7 +109,7 @@ Page({ }) return false } - if(this.data.form.telephone != 11){ + if(this.data.form.telephone.length != 11){ wx.showToast({ title: '请确认手机号', icon:'none' diff --git a/subpages/mine/editUser/editUser.js b/subpages/mine/editUser/editUser.js index 124e122..dbdb99d 100644 --- a/subpages/mine/editUser/editUser.js +++ b/subpages/mine/editUser/editUser.js @@ -102,6 +102,13 @@ Page({ }); }, onsubmit() { + if(this.data.idCard.length !== 18){ + wx.showToast({ + title: '请确认身份证号', + icon:'none' + }) + return false + } bindIdCard({ idCard: this.data.idCard, name: this.data.name,