From dee2c4b17e18cba67315a62bc12ac24097767675 Mon Sep 17 00:00:00 2001 From: chenshihai Date: Tue, 21 Jun 2022 16:16:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E9=AA=8C=E8=AF=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/user/auth/bind_phone.tmpl | 80 +++++++++++- templates/user/auth/forgot_passwd.tmpl | 10 ++ templates/user/auth/forgot_passwd_phone.tmpl | 47 +++++++ templates/user/auth/phone_verify.tmpl | 130 +++++++++++++++++-- templates/user/auth/signin_phone.tmpl | 4 +- templates/user/settings/profile.tmpl | 12 +- 6 files changed, 264 insertions(+), 19 deletions(-) create mode 100644 templates/user/auth/forgot_passwd_phone.tmpl diff --git a/templates/user/auth/bind_phone.tmpl b/templates/user/auth/bind_phone.tmpl index 8b1378917..1e1493442 100644 --- a/templates/user/auth/bind_phone.tmpl +++ b/templates/user/auth/bind_phone.tmpl @@ -1 +1,79 @@ - +{{template "base/head" .}} +
+
+
+
+ {{.CsrfTokenHtml}} +

+ {{/*.i18n.Tr "auth.forgot_password_title"*/}} + 请绑定手机号 +

+
+ {{template "base/alert" .}} + + {{if .EnablePhone }} +
+
+ {{template "user/auth/phone_verify" .}} +
+
+ + {{end}} +
+
+ + +
+
+
+ +
+
+
+{{template "base/footer" .}} diff --git a/templates/user/auth/forgot_passwd.tmpl b/templates/user/auth/forgot_passwd.tmpl index 1e061763a..773ec94c7 100644 --- a/templates/user/auth/forgot_passwd.tmpl +++ b/templates/user/auth/forgot_passwd.tmpl @@ -1,4 +1,14 @@ {{template "base/head" .}} +
diff --git a/templates/user/auth/forgot_passwd_phone.tmpl b/templates/user/auth/forgot_passwd_phone.tmpl new file mode 100644 index 000000000..ca98b59e4 --- /dev/null +++ b/templates/user/auth/forgot_passwd_phone.tmpl @@ -0,0 +1,47 @@ +{{template "base/head" .}} + +
+
+
+
+ {{.CsrfTokenHtml}} +

+ {{.i18n.Tr "auth.forgot_password_title"}} +

+
+ {{template "base/alert" .}} + + {{if .EnablePhone }} +
+
+ {{template "user/auth/phone_verify" .}} +
+
+ + {{end}} + +
+
+ + +
+ +
+
+
+
+
+{{template "base/footer" .}} diff --git a/templates/user/auth/phone_verify.tmpl b/templates/user/auth/phone_verify.tmpl index 84d053a1e..935940961 100644 --- a/templates/user/auth/phone_verify.tmpl +++ b/templates/user/auth/phone_verify.tmpl @@ -1,7 +1,30 @@
+
+ 手机号码 +
-
-
-
向右拖动滑块填充拼图
-
-
-
-
-
+
+
+
+
+
向右拖动滑块填充拼图
+
+
+
+
+
+
+
+
+ 手机验证码 +
@@ -217,9 +286,28 @@
获取验证码
+
+
+ 新的登录密码 +
+
+ +
+
+
+
+
+
+ + +
+
+
+ diff --git a/templates/user/auth/signin_phone.tmpl b/templates/user/auth/signin_phone.tmpl index 35c00c6f9..6821c9049 100644 --- a/templates/user/auth/signin_phone.tmpl +++ b/templates/user/auth/signin_phone.tmpl @@ -23,9 +23,9 @@
{{.CsrfTokenHtml}} - + {{if .EnablePhone }} -
+
{{template "user/auth/phone_verify" .}}
{{end}} diff --git a/templates/user/settings/profile.tmpl b/templates/user/settings/profile.tmpl index eb0d271ce..f159ca1ca 100644 --- a/templates/user/settings/profile.tmpl +++ b/templates/user/settings/profile.tmpl @@ -33,13 +33,13 @@
- {{if .EnablePhone }} -
- -
- {{template "user/auth/phone_verify" .}} -
+ {{if .EnablePhone }} +
+ +
+ {{template "user/auth/phone_verify" .}}
+
{{end}}