【收货地址】新增/编辑 手机号码缺少验证

This commit is contained in:
linzj 2021-02-23 16:40:00 +08:00
parent 086771b5a2
commit 6948d28ae3

View File

@ -308,7 +308,8 @@ Page({
})
return;
}
if (mobile.length != 11) {
var regexp = /^[1]([3-9])[0-9]{9}$/;
if (!regexp.test(mobile)) {
wx.showToast({
title: '请输入正确的手机号码',
icon: "none"