Browse Source

确认身份证号跟手机号

master
mk 3 weeks ago
parent
commit
717d72bacc
  1. 2
      subpages/index/checkInUser/checkInUser.js
  2. 7
      subpages/mine/editUser/editUser.js

2
subpages/index/checkInUser/checkInUser.js

@ -109,7 +109,7 @@ Page({
}) })
return false return false
} }
if(this.data.form.telephone != 11){ if(this.data.form.telephone.length != 11){
wx.showToast({ wx.showToast({
title: '请确认手机号', title: '请确认手机号',
icon:'none' icon:'none'

7
subpages/mine/editUser/editUser.js

@ -102,6 +102,13 @@ Page({
}); });
}, },
onsubmit() { onsubmit() {
if(this.data.idCard.length !== 18){
wx.showToast({
title: '请确认身份证号',
icon:'none'
})
return false
}
bindIdCard({ bindIdCard({
idCard: this.data.idCard, idCard: this.data.idCard,
name: this.data.name, name: this.data.name,

Loading…
Cancel
Save