1、js验证
var wxreg = /^[a-zA-Z]{1}[-_a-zA-Z0-9]{5,19}$/;
var phonereg = /^1[3456789]\d{9}$/;if(!wxreg.test(wx_no)){wx.showToast({title: '请输入正确的微信号',icon: 'none',duration: 1000})return false;
}else if(!phonereg.test(phone)){wx.showToast({title: '请输入正确的手机号',icon: 'none',duration: 1000})return false;
}