From 9c4c9827594bb2a4633452a93682bcf5d87e7bb2 Mon Sep 17 00:00:00 2001 From: bobi1234 Date: Thu, 12 Jul 2018 10:20:34 +0800 Subject: [PATCH] =?UTF-8?q?user-edit.html=E9=A1=B5=E9=9D=A2=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=97=B6=E9=97=B4=E6=A0=A1=E9=AA=8C=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- user-edit.html | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/user-edit.html b/user-edit.html index 25025df..abeee99 100644 --- a/user-edit.html +++ b/user-edit.html @@ -58,7 +58,7 @@
- +
@@ -99,7 +99,7 @@
- +
@@ -121,7 +121,14 @@ }); form.verify({ - // myDateVerify: [/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/, '日期格式不正确'] + birthdayVerify: [/^((((1[6-9]|[2-9]\d)\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\d|3[01]))|(((1[6-9]|[2-9]\d)\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\d|30))|(((1[6-9]|[2-9]\d)\d{2})-0?2-(0?[1-9]|1\d|2[0-8]))|(((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))(\s(([01]\d{1})|(2[0123])):([0-5]\d):([0-5]\d))?$/, '日期格式不正确'] + }); + + form.on('submit(edit)', function (data) { + layer.msg("编辑成功!", {icon: 6, time: 1000, anim: 4}, function () { + parent.layer.close(parent.layer.getFrameIndex(window.name)); + }); + return false; }); })