diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index b1e6852db..46c5d1453 100755 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -197,6 +197,7 @@ no_reply_address_helper = Domain name for users with a hidden email address. For [home] uname_holder = Username or Email Address +login_uname_holder=Username/Email/Phone number uname_holder_cloud_brain = cloudbrain username password_holder = Password switch_dashboard_context = Switch Dashboard Context diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index 7de657ea9..8ad520798 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -198,6 +198,7 @@ no_reply_address_helper=具有隐藏电子邮件地址的用户的域名。例 [home] uname_holder=登录名或电子邮箱地址 +login_uname_holder=用户名/邮箱/手机号 uname_holder_cloud_brain=云脑登录名 password_holder=密码 switch_dashboard_context=切换控制面板用户 diff --git a/templates/user/auth/phone_verify.tmpl b/templates/user/auth/phone_verify.tmpl index c679334f7..2bf774e43 100644 --- a/templates/user/auth/phone_verify.tmpl +++ b/templates/user/auth/phone_verify.tmpl @@ -1,9 +1,9 @@ -
+
{{.i18n.Tr "phone.phone_number"}} @@ -268,7 +278,11 @@
{{.i18n.Tr "phone.drag_the_slider_to_fill_the_puzzle"}}
-
+
+ + + +
@@ -414,11 +428,15 @@ self.canSendCode = true; self.dom.find('.slide-bar').addClass('sucess'); self.dom.find('.slide-trigger').addClass('sucess'); + self.dom.find('.slide-trigger .icon').hide(); + self.dom.find('.slide-trigger .icon.check').show(); self.dom.find('.slide-image-big').slideUp(); self.dom.find('.verify-code-send-btn').removeClass('__disabled'); } else { self.dom.find('.slide-bar').addClass('error'); self.dom.find('.slide-trigger').addClass('error'); + self.dom.find('.slide-trigger .icon').hide(); + self.dom.find('.slide-trigger .icon.close').show(); setTimeout(function () { self.refreshImages(); }, 300); @@ -495,6 +513,8 @@ this.imgID = ''; this.dom.find('.slide-bar').removeClass('sucess error').css('width', '30px'); this.dom.find('.slide-trigger').removeClass('sucess error').css('left', '0px'); + this.dom.find('.slide-trigger .icon').hide(); + this.dom.find('.slide-trigger .icon.arrow').show(); this.dom.find('.slide-txt').show(); this.dom.find('.slide-image-small').css('left', '0'); this.dom.find('.verify-code-send-btn').addClass('__disabled'); @@ -519,12 +539,12 @@ var self = this; var sendBtnEl = this.dom.find('.verify-code-send-btn'); var count = this.countDownNumber; - sendBtnEl.addClass('__disabled').text(`${count}{{.i18n.Tr "phone.second_resend"}}`); + sendBtnEl.addClass('__disabled').text(count + {{.i18n.Tr "phone.second_resend"}}); this.canSendCode = false; this.countDownEnd = false; var timer = setInterval(function () { count--; - sendBtnEl.addClass('__disabled').text(`${count}{{.i18n.Tr "phone.second_resend"}}`); + sendBtnEl.addClass('__disabled').text(count + {{.i18n.Tr "phone.second_resend"}}); if (count <= 0) { sendBtnEl.removeClass('__disabled').text({{.i18n.Tr "phone.get_verification_code"}}); clearInterval(timer); @@ -534,7 +554,7 @@ }, 1000); }; - const phoneVerifyCode = new PhoneVerifyCode($('.phone-verify-code')); + const phoneVerifyCode = new PhoneVerifyCode($('.__phone-verify-code')); }); })(); diff --git a/templates/user/auth/signin_inner.tmpl b/templates/user/auth/signin_inner.tmpl index bdcd6a5c6..32ce80dc5 100644 --- a/templates/user/auth/signin_inner.tmpl +++ b/templates/user/auth/signin_inner.tmpl @@ -28,7 +28,7 @@
-
+
{{if .IsCourse}}
{{else}} @@ -38,7 +38,7 @@
- +
{{if or (not .DisablePassword) .LinkAccountMode}}