uni.showToast() 提示
网址: https://uniapp.dcloud.net.cn/api/ui/prompt.html#showtoast
uni.showToast({ icon: “none”, title: “请输入邮箱”, position: “top” });
let reg =
/^[a-zA-Z0-9]([a-z0-9]*[-\._]?[a-z0-9]+)*@([a-z0-9]*[-_]?[a-z0-9]+)+[\.][a-z]{2,3}([\.][a-z]{2})?$/i;
if (!reg.test(this.loginEmail)) {
uni.showToast({ icon: "none", title: "邮箱格式不正确", position: "top" });
return;
}