|
@@ -1,9 +1,9 @@ |
|
|
<style> |
|
|
<style> |
|
|
.phone-verify-code { |
|
|
|
|
|
|
|
|
.__phone-verify-code { |
|
|
max-width: 519px; |
|
|
max-width: 519px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.phone-verify-code ._label-c { |
|
|
|
|
|
|
|
|
.__phone-verify-code ._label-c { |
|
|
display: flex; |
|
|
display: flex; |
|
|
justify-content: fixed-start; |
|
|
justify-content: fixed-start; |
|
|
align-items: center; |
|
|
align-items: center; |
|
@@ -11,13 +11,13 @@ |
|
|
display: none; |
|
|
display: none; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.phone-verify-code ._label-c ._label { |
|
|
|
|
|
|
|
|
.__phone-verify-code ._label-c ._label { |
|
|
font-size: 13px; |
|
|
font-size: 13px; |
|
|
font-weight: 700; |
|
|
font-weight: 700; |
|
|
color: rgba(0,0,0,.87); |
|
|
color: rgba(0,0,0,.87); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.phone-verify-code ._label-c.required ._label:after { |
|
|
|
|
|
|
|
|
.__phone-verify-code ._label-c.required ._label:after { |
|
|
margin: -0.2em 0 0 0.2em; |
|
|
margin: -0.2em 0 0 0.2em; |
|
|
content: '*'; |
|
|
content: '*'; |
|
|
color: #db2828; |
|
|
color: #db2828; |
|
@@ -25,12 +25,12 @@ |
|
|
vertical-align: top; |
|
|
vertical-align: top; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.phone-c { |
|
|
|
|
|
|
|
|
.__phone-verify-code .phone-c { |
|
|
display: flex; |
|
|
display: flex; |
|
|
margin: 0 0 1em; |
|
|
margin: 0 0 1em; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.phone-c .phone-area-c { |
|
|
|
|
|
|
|
|
.__phone-verify-code .phone-c .phone-area-c { |
|
|
height: 38px; |
|
|
height: 38px; |
|
|
width: 80px; |
|
|
width: 80px; |
|
|
margin-right: 10px; |
|
|
margin-right: 10px; |
|
@@ -41,11 +41,11 @@ |
|
|
box-sizing: border-box; |
|
|
box-sizing: border-box; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.phone-c .phone-area-c select { |
|
|
|
|
|
|
|
|
.__phone-verify-code .phone-c .phone-area-c select { |
|
|
outline: none; |
|
|
outline: none; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.phone-c .phone-num-c { |
|
|
|
|
|
|
|
|
.__phone-verify-code .phone-c .phone-num-c { |
|
|
height: 38px; |
|
|
height: 38px; |
|
|
flex: 1; |
|
|
flex: 1; |
|
|
display: flex; |
|
|
display: flex; |
|
@@ -54,16 +54,15 @@ |
|
|
box-sizing: border-box; |
|
|
box-sizing: border-box; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.phone-c .phone-num-c input { |
|
|
|
|
|
|
|
|
.__phone-verify-code .phone-c .phone-num-c input { |
|
|
height: 100%; |
|
|
height: 100%; |
|
|
width: 100% !important; |
|
|
width: 100% !important; |
|
|
padding: 9.5px 14px; |
|
|
padding: 9.5px 14px; |
|
|
box-sizing: border-box; |
|
|
box-sizing: border-box; |
|
|
border: none; |
|
|
|
|
|
outline: none; |
|
|
outline: none; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.slide-bar-wrap { |
|
|
|
|
|
|
|
|
.__phone-verify-code .slide-bar-wrap { |
|
|
display: flex; |
|
|
display: flex; |
|
|
height: 38px; |
|
|
height: 38px; |
|
|
margin: 0 0 1em; |
|
|
margin: 0 0 1em; |
|
@@ -72,7 +71,7 @@ |
|
|
position: relative; |
|
|
position: relative; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.slide-bar-c { |
|
|
|
|
|
|
|
|
.__phone-verify-code .slide-bar-c { |
|
|
flex: 1; |
|
|
flex: 1; |
|
|
display: flex; |
|
|
display: flex; |
|
|
height: 38px; |
|
|
height: 38px; |
|
@@ -81,7 +80,7 @@ |
|
|
position: relative; |
|
|
position: relative; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.slide-bar-c .slide-bar-bg { |
|
|
|
|
|
|
|
|
.__phone-verify-code .slide-bar-c .slide-bar-bg { |
|
|
height: 34px; |
|
|
height: 34px; |
|
|
flex: 1; |
|
|
flex: 1; |
|
|
background-color: rgb(245, 245, 246); |
|
|
background-color: rgb(245, 245, 246); |
|
@@ -90,7 +89,7 @@ |
|
|
position: relative; |
|
|
position: relative; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.slide-bar-c .slide-bar-bg .slide-txt { |
|
|
|
|
|
|
|
|
.__phone-verify-code .slide-bar-c .slide-bar-bg .slide-txt { |
|
|
position: absolute; |
|
|
position: absolute; |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
height: 100%; |
|
|
height: 100%; |
|
@@ -102,7 +101,7 @@ |
|
|
font-size: 14px; |
|
|
font-size: 14px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.slide-bar-c .slide-bar-bg .slide-bar { |
|
|
|
|
|
|
|
|
.__phone-verify-code .slide-bar-c .slide-bar-bg .slide-bar { |
|
|
position: absolute; |
|
|
position: absolute; |
|
|
width: 38px; |
|
|
width: 38px; |
|
|
height: 34px; |
|
|
height: 34px; |
|
@@ -113,17 +112,17 @@ |
|
|
top: -1px; |
|
|
top: -1px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.slide-bar-c .slide-bar-bg .slide-bar.sucess { |
|
|
|
|
|
|
|
|
.__phone-verify-code .slide-bar-c .slide-bar-bg .slide-bar.sucess { |
|
|
background-color: #d2f4ef; |
|
|
background-color: #d2f4ef; |
|
|
border: 1px solid #52ccba; |
|
|
border: 1px solid #52ccba; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.slide-bar-c .slide-bar-bg .slide-bar.error { |
|
|
|
|
|
|
|
|
.__phone-verify-code .slide-bar-c .slide-bar-bg .slide-bar.error { |
|
|
border-color: #f57a7a; |
|
|
border-color: #f57a7a; |
|
|
background-color: #fce1e1; |
|
|
background-color: #fce1e1; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.slide-bar-c .slide-bar-bg .slide-trigger { |
|
|
|
|
|
|
|
|
.__phone-verify-code .slide-bar-c .slide-bar-bg .slide-trigger { |
|
|
position: absolute; |
|
|
position: absolute; |
|
|
width: 38px; |
|
|
width: 38px; |
|
|
height: 34px; |
|
|
height: 34px; |
|
@@ -131,17 +130,29 @@ |
|
|
border-radius: 2px; |
|
|
border-radius: 2px; |
|
|
cursor: pointer; |
|
|
cursor: pointer; |
|
|
top: -1px; |
|
|
top: -1px; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
justify-content: center; |
|
|
|
|
|
align-items: center; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.slide-bar-c .slide-bar-bg .slide-trigger.sucess { |
|
|
|
|
|
background-color: #52ccba; |
|
|
|
|
|
|
|
|
.__phone-verify-code .slide-bar-c .slide-bar-bg .slide-trigger .icon { |
|
|
|
|
|
font-size: 16px; |
|
|
|
|
|
color: white; |
|
|
|
|
|
margin: 0; |
|
|
|
|
|
height: 16px; |
|
|
|
|
|
width: 16px; |
|
|
|
|
|
margin-top: -6px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.__phone-verify-code .slide-bar-c .slide-bar-bg .slide-trigger.sucess { |
|
|
|
|
|
background-color: #52ccba; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.slide-bar-c .slide-bar-bg .slide-trigger.error { |
|
|
|
|
|
|
|
|
.__phone-verify-code .slide-bar-c .slide-bar-bg .slide-trigger.error { |
|
|
background-color: #f57a7a; |
|
|
background-color: #f57a7a; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.slide-bar-c .slide-image-big { |
|
|
|
|
|
|
|
|
.__phone-verify-code .slide-bar-c .slide-image-big { |
|
|
position: absolute; |
|
|
position: absolute; |
|
|
width: 391px; |
|
|
width: 391px; |
|
|
height: 196px; |
|
|
height: 196px; |
|
@@ -152,7 +163,7 @@ |
|
|
display: none; |
|
|
display: none; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.slide-bar-c .slide-image-small { |
|
|
|
|
|
|
|
|
.__phone-verify-code .slide-bar-c .slide-image-small { |
|
|
position: absolute; |
|
|
position: absolute; |
|
|
left: 0; |
|
|
left: 0; |
|
|
width: 51px; |
|
|
width: 51px; |
|
@@ -160,12 +171,12 @@ |
|
|
box-shadow: 0 0 4px rgb(35 173 255); |
|
|
box-shadow: 0 0 4px rgb(35 173 255); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.slide-bar-c .verify-code-c { |
|
|
|
|
|
|
|
|
.__phone-verify-code .slide-bar-c .verify-code-c { |
|
|
display: flex; |
|
|
display: flex; |
|
|
height: 38px; |
|
|
height: 38px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.verify-code-c { |
|
|
|
|
|
|
|
|
.__phone-verify-code .verify-code-c { |
|
|
display: flex; |
|
|
display: flex; |
|
|
height: 38px; |
|
|
height: 38px; |
|
|
margin: 0 0 1em; |
|
|
margin: 0 0 1em; |
|
@@ -173,7 +184,7 @@ |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.verify-code-c .verify-code-num-c { |
|
|
|
|
|
|
|
|
.__phone-verify-code .verify-code-c .verify-code-num-c { |
|
|
flex: 1; |
|
|
flex: 1; |
|
|
height: 38px; |
|
|
height: 38px; |
|
|
box-sizing: border-box; |
|
|
box-sizing: border-box; |
|
@@ -182,16 +193,15 @@ |
|
|
display: flex; |
|
|
display: flex; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.verify-code-c .verify-code-num-c input { |
|
|
|
|
|
|
|
|
.__phone-verify-code .verify-code-c .verify-code-num-c input { |
|
|
height: 100%; |
|
|
height: 100%; |
|
|
width: 100% !important; |
|
|
width: 100% !important; |
|
|
padding: 9.5px 14px; |
|
|
padding: 9.5px 14px; |
|
|
box-sizing: border-box; |
|
|
box-sizing: border-box; |
|
|
border: none; |
|
|
|
|
|
outline: none; |
|
|
outline: none; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.verify-code-c .verify-code-send { |
|
|
|
|
|
|
|
|
.__phone-verify-code .verify-code-c .verify-code-send { |
|
|
display: flex; |
|
|
display: flex; |
|
|
width: 120px; |
|
|
width: 120px; |
|
|
height: 38px; |
|
|
height: 38px; |
|
@@ -199,7 +209,7 @@ |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.verify-code-c .verify-code-send .verify-code-send-btn { |
|
|
|
|
|
|
|
|
.__phone-verify-code .verify-code-c .verify-code-send .verify-code-send-btn { |
|
|
height: 100%; |
|
|
height: 100%; |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
margin-left: 10px; |
|
|
margin-left: 10px; |
|
@@ -214,13 +224,13 @@ |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.verify-code-c .verify-code-send .verify-code-send-btn.__disabled { |
|
|
|
|
|
|
|
|
.__phone-verify-code .verify-code-c .verify-code-send .verify-code-send-btn.__disabled { |
|
|
border: 1px solid #ddd; |
|
|
border: 1px solid #ddd; |
|
|
background-color: #ddd; |
|
|
background-color: #ddd; |
|
|
cursor: not-allowed; |
|
|
cursor: not-allowed; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.new-pass-word-wrap { |
|
|
|
|
|
|
|
|
.__phone-verify-code .new-pass-word-wrap { |
|
|
display: flex; |
|
|
display: flex; |
|
|
height: 38px; |
|
|
height: 38px; |
|
|
margin: 0 0 1em; |
|
|
margin: 0 0 1em; |
|
@@ -229,7 +239,7 @@ |
|
|
display: none; |
|
|
display: none; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.new-pass-word-wrap .new-pass-word-c { |
|
|
|
|
|
|
|
|
.__phone-verify-code .new-pass-word-wrap .new-pass-word-c { |
|
|
flex: 1; |
|
|
flex: 1; |
|
|
height: 38px; |
|
|
height: 38px; |
|
|
box-sizing: border-box; |
|
|
box-sizing: border-box; |
|
@@ -238,7 +248,7 @@ |
|
|
display: flex; |
|
|
display: flex; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.new-pass-word-wrap .new-pass-word-c input { |
|
|
|
|
|
|
|
|
.__phone-verify-code .new-pass-word-wrap .new-pass-word-c input { |
|
|
height: 100%; |
|
|
height: 100%; |
|
|
width: 100% !important; |
|
|
width: 100% !important; |
|
|
padding: 9.5px 14px; |
|
|
padding: 9.5px 14px; |
|
@@ -248,7 +258,7 @@ |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|
|
|
|
|
|
<div class="phone-verify-code"> |
|
|
|
|
|
|
|
|
<div class="__phone-verify-code"> |
|
|
<div class="phone-c"> |
|
|
<div class="phone-c"> |
|
|
<div class="phone-label _label-c required"> |
|
|
<div class="phone-label _label-c required"> |
|
|
<span class="_label">{{.i18n.Tr "phone.phone_number"}}</span> |
|
|
<span class="_label">{{.i18n.Tr "phone.phone_number"}}</span> |
|
@@ -268,7 +278,11 @@ |
|
|
<div class="slide-bar-bg"> |
|
|
<div class="slide-bar-bg"> |
|
|
<div class="slide-txt">{{.i18n.Tr "phone.drag_the_slider_to_fill_the_puzzle"}}</div> |
|
|
<div class="slide-txt">{{.i18n.Tr "phone.drag_the_slider_to_fill_the_puzzle"}}</div> |
|
|
<div class="slide-bar"></div> |
|
|
<div class="slide-bar"></div> |
|
|
<div class="slide-trigger"></div> |
|
|
|
|
|
|
|
|
<div class="slide-trigger"> |
|
|
|
|
|
<i class="arrow right icon"></i> |
|
|
|
|
|
<i class="check icon" style="display:none;"></i> |
|
|
|
|
|
<i class="close icon" style="display:none;"></i> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="slide-image-big"> |
|
|
<div class="slide-image-big"> |
|
|
<div class="slide-image-small" style="top:{{.SlideImageInfo.ImageY}}px"></div> |
|
|
<div class="slide-image-small" style="top:{{.SlideImageInfo.ImageY}}px"></div> |
|
@@ -414,11 +428,15 @@ |
|
|
self.canSendCode = true; |
|
|
self.canSendCode = true; |
|
|
self.dom.find('.slide-bar').addClass('sucess'); |
|
|
self.dom.find('.slide-bar').addClass('sucess'); |
|
|
self.dom.find('.slide-trigger').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('.slide-image-big').slideUp(); |
|
|
self.dom.find('.verify-code-send-btn').removeClass('__disabled'); |
|
|
self.dom.find('.verify-code-send-btn').removeClass('__disabled'); |
|
|
} else { |
|
|
} else { |
|
|
self.dom.find('.slide-bar').addClass('error'); |
|
|
self.dom.find('.slide-bar').addClass('error'); |
|
|
self.dom.find('.slide-trigger').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 () { |
|
|
setTimeout(function () { |
|
|
self.refreshImages(); |
|
|
self.refreshImages(); |
|
|
}, 300); |
|
|
}, 300); |
|
@@ -495,6 +513,8 @@ |
|
|
this.imgID = ''; |
|
|
this.imgID = ''; |
|
|
this.dom.find('.slide-bar').removeClass('sucess error').css('width', '30px'); |
|
|
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').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-txt').show(); |
|
|
this.dom.find('.slide-image-small').css('left', '0'); |
|
|
this.dom.find('.slide-image-small').css('left', '0'); |
|
|
this.dom.find('.verify-code-send-btn').addClass('__disabled'); |
|
|
this.dom.find('.verify-code-send-btn').addClass('__disabled'); |
|
@@ -519,12 +539,12 @@ |
|
|
var self = this; |
|
|
var self = this; |
|
|
var sendBtnEl = this.dom.find('.verify-code-send-btn'); |
|
|
var sendBtnEl = this.dom.find('.verify-code-send-btn'); |
|
|
var count = this.countDownNumber; |
|
|
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.canSendCode = false; |
|
|
this.countDownEnd = false; |
|
|
this.countDownEnd = false; |
|
|
var timer = setInterval(function () { |
|
|
var timer = setInterval(function () { |
|
|
count--; |
|
|
count--; |
|
|
sendBtnEl.addClass('__disabled').text(`${count}{{.i18n.Tr "phone.second_resend"}}`); |
|
|
|
|
|
|
|
|
sendBtnEl.addClass('__disabled').text(count + {{.i18n.Tr "phone.second_resend"}}); |
|
|
if (count <= 0) { |
|
|
if (count <= 0) { |
|
|
sendBtnEl.removeClass('__disabled').text({{.i18n.Tr "phone.get_verification_code"}}); |
|
|
sendBtnEl.removeClass('__disabled').text({{.i18n.Tr "phone.get_verification_code"}}); |
|
|
clearInterval(timer); |
|
|
clearInterval(timer); |
|
@@ -534,7 +554,7 @@ |
|
|
}, 1000); |
|
|
}, 1000); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
const phoneVerifyCode = new PhoneVerifyCode($('.phone-verify-code')); |
|
|
|
|
|
|
|
|
const phoneVerifyCode = new PhoneVerifyCode($('.__phone-verify-code')); |
|
|
}); |
|
|
}); |
|
|
})(); |
|
|
})(); |
|
|
</script> |
|
|
</script> |