.wxml
<input class='input' bindinput='bindPhoneInput'></input>
.js
bindPhoneInput(e) {
var that = this;
var phonetel = /^(13[0-9]|14[5-9]|15[012356789]|166|17[0-8]|18[0-9]|19[8-9])[0-9]{8}$/;
var val = e.detail.value;
if (!(phonetel).test(val)) {
}
},