Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郭成尧
8 years ago
Commit
d63da88dd1c2e810483bf97f237255c3dff04922
1 parent
d6e6468d
showYohoFamilyTip
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
4 deletions
apps/passport/views/action/login/login-new.hbs
apps/passport/views/action/sms/sms-login-new.hbs
public/js/passport/login/login-new.js
public/js/passport/smslogin/sms-login-new.js
apps/passport/views/action/login/login-new.hbs
View file @
d63da88
...
...
@@ -6,7 +6,7 @@
<button
class=
"close iconfont"
onclick=
"location.href='
{{
backUrl
}}
'"
>

</button>
<a
href=
"
{{
registerUrl
}}
"
class=
"register"
>
注册
</a>
</div>
<div
class=
"tip"
>
Yoho!Family账号可登录Yoho!Buy有货
<i
class=
"iconfont"
>

</i></div>
<div
class=
"tip"
>
Yoho!Family账号可登录Yoho!Buy有货
<i
id=
"showYohoFamilyTip"
class=
"iconfont"
>

</i></div>
</div>
</div>
<div
class=
"login-form"
>
...
...
apps/passport/views/action/sms/sms-login-new.hbs
View file @
d63da88
...
...
@@ -6,7 +6,7 @@
<button
class=
"close iconfont"
onclick=
"location.href='
{{
backUrl
}}
'"
>

</button>
<a
href=
"
{{
registerUrl
}}
"
class=
"register"
>
注册
</a>
</div>
<div
class=
"tip"
>
Yoho!Family账号可登录Yoho!Buy有货
<i
class=
"iconfont"
>

</i></div>
<div
class=
"tip"
>
Yoho!Family账号可登录Yoho!Buy有货
<i
id=
"showYohoFamilyTip"
class=
"iconfont"
>

</i></div>
</div>
</div>
<div
class=
"sms-login-form"
>
...
...
public/js/passport/login/login-new.js
View file @
d63da88
const
$
=
require
(
'yoho-jquery'
);
const
$captcha
=
$
(
'#js-img-check'
);
const
tip
=
require
(
'plugin/tip'
);
const
Modal2
=
require
(
'plugin/modal2'
);
const
showErrTip
=
tip
.
show
;
const
api
=
require
(
'../api'
);
const
trim
=
$
.
trim
;
...
...
@@ -23,7 +24,8 @@ class Login {
eyeClose
:
$
(
'.eye-close'
),
eyeOpen
:
$
(
'.eye-open'
),
getPswrdBtn
:
$
(
'#getPswrdBtn'
),
getPasswordBox
:
$
(
'.get-password-box'
)
getPasswordBox
:
$
(
'.get-password-box'
),
showYohoFamilyTip
:
$
(
'#showYohoFamilyTip'
)
};
this
.
view
.
loginBtn
.
on
(
'click'
,
this
.
login
.
bind
(
this
));
...
...
@@ -31,6 +33,15 @@ class Login {
this
.
view
.
passwordEyeIcon
.
on
(
'click'
,
this
.
passwordShowStatus
.
bind
(
this
));
this
.
view
.
getPswrdBtn
.
on
(
'click'
,
this
.
showGetPasswordBox
.
bind
(
this
));
this
.
view
.
getPasswordBox
.
on
(
'click'
,
this
.
hiddenGetPasswordBox
.
bind
(
this
));
this
.
view
.
showYohoFamilyTip
.
on
(
'click'
,
this
.
showYohoFamilyTip
.
bind
(
this
));
}
/**
* 展示弹窗
*/
showYohoFamilyTip
()
{
Modal2
.
alert
(
'Yoho!Family账号可登录Yoho!Buy有货、Yoho!Now、Mars及SHOW'
,
'Yoho!Family'
);
}
/**
...
...
public/js/passport/smslogin/sms-login-new.js
View file @
d63da88
import
$
from
'yoho-jquery'
;
import
tip
from
'plugin/tip'
;
import
Modal2
from
'plugin/modal2'
;
import
checkPoint
from
'./check-point'
;
import
Page
from
'yoho-page'
;
import
Validate
from
'plugin/validata'
;
...
...
@@ -23,7 +24,8 @@ class SmsLoginNew extends Page {
verifyCode
:
$
(
'input[name=verifyCode]'
),
smsLoginBtn
:
$
(
'#smsLoginBtn'
),
getPswrdBtn
:
$
(
'#getPswrdBtn'
),
getPasswordBox
:
$
(
'.get-password-box'
)
getPasswordBox
:
$
(
'.get-password-box'
),
showYohoFamilyTip
:
$
(
'#showYohoFamilyTip'
)
};
this
.
init
();
...
...
@@ -46,6 +48,7 @@ class SmsLoginNew extends Page {
this
.
selector
.
smsLoginBtn
.
on
(
'click'
,
this
.
login
.
bind
(
this
));
this
.
selector
.
getPswrdBtn
.
on
(
'click'
,
this
.
showGetPasswordBox
.
bind
(
this
));
this
.
selector
.
getPasswordBox
.
on
(
'click'
,
this
.
hiddenGetPasswordBox
.
bind
(
this
));
this
.
selector
.
showYohoFamilyTip
.
on
(
'click'
,
this
.
showYohoFamilyTip
.
bind
(
this
));
if
(
$captcha
.
data
(
'geetest'
))
{
this
.
selector
.
getVerifyCodeBtn
.
on
(
'click'
,
this
.
getVerifyCode
.
bind
(
this
));
...
...
@@ -56,6 +59,13 @@ class SmsLoginNew extends Page {
}
/**
* 展示弹窗
*/
showYohoFamilyTip
()
{
Modal2
.
alert
(
'Yoho!Family账号可登录Yoho!Buy有货、Yoho!Now、Mars及SHOW'
,
'Yoho!Family'
);
}
/**
* 图片验证码初始化
*/
imgVerifyInit
()
{
...
...
Please
register
or
login
to post a comment