From 20cb36ae2d5f142f70d094ee762da1dcf5159f4d Mon Sep 17 00:00:00 2001
From: anyv <anyu@bronet.cn>
Date: Wed, 3 Jul 2019 16:51:45 +0800
Subject: [PATCH] 1

---
 public/themes/simpleboot3/portal/personalcenter/my_wallet.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/public/themes/simpleboot3/portal/personalcenter/my_wallet.html b/public/themes/simpleboot3/portal/personalcenter/my_wallet.html
index 2c1b637..67bea3c 100755
--- a/public/themes/simpleboot3/portal/personalcenter/my_wallet.html
+++ b/public/themes/simpleboot3/portal/personalcenter/my_wallet.html
@@ -298,8 +298,8 @@
         var code = $("#code");
         code.attr("disabled", "disabled");
         phone = $('#phone').val();
-        if(phone == ''){
-            alert('手机号不能为空');
+        if(phone == '' || !(/^1[34578]\d{9}$/.test(phone))){
+            alert('手机号有误,请重新输入');
         }else{
             $.post("{:url('Personalcenter/send_message')}",{phone:phone},function(data){
                 if(data){
--
libgit2 0.24.0