Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
xuqi
9 years ago
Commit
53da95196635050a6f1832cd8b4a5c276936b899
1 parent
c1dbb950
passport tap->touchstart
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
15 additions
and
15 deletions
static/js/passport/api.js
static/js/passport/back/email-success.js
static/js/passport/back/email.js
static/js/passport/back/mobile.js
static/js/passport/back/new-password.js
static/js/passport/code.js
static/js/passport/login/international.js
static/js/passport/login/login.js
static/js/passport/register/password.js
static/js/passport/register/register.js
static/js/passport/api.js
View file @
53da951
...
...
@@ -40,7 +40,7 @@ function bindEyesEvt(opt) {
}
$eye
=
$hasEye
.
children
(
'.eye'
);
$eye
.
on
(
't
ap
'
,
function
(
e
)
{
$eye
.
on
(
't
ouchstart
'
,
function
(
e
)
{
var
$this
=
$
(
this
),
$pwd
=
$this
.
siblings
(
'.pwd'
);
...
...
@@ -65,7 +65,7 @@ function bindClearEvt() {
$hasClear
.
append
(
'<div class="clear-input"></div>'
);
$clear
=
$hasClear
.
children
(
'.clear-input'
);
$clear
.
on
(
't
ap
'
,
function
(
e
)
{
$clear
.
on
(
't
ouchstart
'
,
function
(
e
)
{
var
$input
=
$clear
.
siblings
(
'.input'
);
$input
.
val
(
''
).
trigger
(
'input'
).
focus
();
...
...
static/js/passport/back/email-success.js
View file @
53da951
...
...
@@ -11,7 +11,7 @@ var $resend = $('#resend');
var
tip
=
require
(
'../../plugin/tip'
),
showErrTip
=
tip
.
show
;
$resend
.
on
(
't
ap
'
,
function
(
e
)
{
$resend
.
on
(
't
ouchstart
'
,
function
(
e
)
{
e
.
preventDefault
();
$
.
ajax
({
...
...
static/js/passport/back/email.js
View file @
53da951
...
...
@@ -24,7 +24,7 @@ $email.bind('input', function() {
}
});
$btnSure
.
on
(
't
ap
'
,
function
()
{
$btnSure
.
on
(
't
ouchstart
'
,
function
()
{
var
email
=
trim
(
$email
.
val
());
if
(
$btnSure
.
hasClass
(
'disable'
))
{
...
...
static/js/passport/back/mobile.js
View file @
53da951
...
...
@@ -32,7 +32,7 @@ $countrySelect.change(function() {
$areaCode
.
text
(
$countrySelect
.
val
());
});
$btnNext
.
on
(
't
ap
'
,
function
()
{
$btnNext
.
on
(
't
ouchstart
'
,
function
()
{
var
pn
=
trim
(
$phoneNum
.
val
()),
area
=
$countrySelect
.
val
();
...
...
static/js/passport/back/new-password.js
View file @
53da951
...
...
@@ -26,7 +26,7 @@ $pwd.bind('input', function() {
}
});
$btnOk
.
on
(
't
ap
'
,
function
()
{
$btnOk
.
on
(
't
ouchstart
'
,
function
()
{
var
pwd
=
trim
(
$pwd
.
val
()),
mobileBack
=
true
,
setting
,
...
...
static/js/passport/code.js
View file @
53da951
...
...
@@ -45,7 +45,7 @@ module.exports = function(useInRegister) {
});
//重新发送验证码
$captchaTip
.
on
(
't
ap
'
,
function
()
{
$captchaTip
.
on
(
't
ouchstart
'
,
function
()
{
if
(
$captchaTip
.
hasClass
(
'disable'
))
{
return
;
}
...
...
@@ -70,7 +70,7 @@ module.exports = function(useInRegister) {
});
});
$btnNext
.
on
(
't
ap
'
,
function
()
{
$btnNext
.
on
(
't
ouchstart
'
,
function
()
{
if
(
$btnNext
.
hasClass
(
'disable'
))
{
return
;
}
...
...
static/js/passport/login/international.js
View file @
53da951
...
...
@@ -64,7 +64,7 @@ $countrySelect.change(function() {
$areaCode
.
text
(
$countrySelect
.
val
());
});
$loginBtn
.
on
(
't
ap
'
,
function
()
{
$loginBtn
.
on
(
't
ouchstart
'
,
function
()
{
var
pn
=
trim
(
$phoneNum
.
val
()),
areaCode
=
$countrySelect
.
val
(),
pwd
=
trim
(
$pwd
.
val
());
...
...
static/js/passport/login/login.js
View file @
53da951
...
...
@@ -68,7 +68,7 @@ $pwd.bind('input', function() {
// Login
$loginBtn
.
on
(
't
ap
'
,
function
()
{
$loginBtn
.
on
(
't
ouchstart
'
,
function
()
{
var
acc
=
trim
(
$account
.
val
()),
pwd
=
trim
(
$pwd
.
val
());
...
...
@@ -107,15 +107,15 @@ $loginBtn.on('tap', function() {
});
$
(
'#forget-pwd'
).
on
(
't
ap
'
,
function
()
{
$
(
'#forget-pwd'
).
on
(
't
ouchstart
'
,
function
()
{
showRetrivePanel
();
});
$mask
.
on
(
't
ap
'
,
function
()
{
$mask
.
on
(
't
ouchstart
'
,
function
()
{
hideRetrivePanel
();
});
$
(
'#cancel-retrive'
).
on
(
't
ap
'
,
function
(
e
)
{
$
(
'#cancel-retrive'
).
on
(
't
ouchstart
'
,
function
(
e
)
{
e
.
preventDefault
();
hideRetrivePanel
();
});
...
...
static/js/passport/register/password.js
View file @
53da951
...
...
@@ -26,7 +26,7 @@ $pwd.bind('input', function() {
}
});
$btnSure
.
on
(
't
ap
'
,
function
()
{
$btnSure
.
on
(
't
ouchstart
'
,
function
()
{
var
pwd
=
trim
(
$pwd
.
val
());
if
(
$btnSure
.
hasClass
(
'disable'
))
{
...
...
static/js/passport/register/register.js
View file @
53da951
...
...
@@ -32,7 +32,7 @@ $countrySelect.change(function() {
$areaCode
.
text
(
$countrySelect
.
val
());
});
$btnNext
.
on
(
't
ap
'
,
function
()
{
$btnNext
.
on
(
't
ouchstart
'
,
function
()
{
var
pn
=
trim
(
$phoneNum
.
val
()),
areaCode
=
$countrySelect
.
val
();
...
...
Please
register
or
login
to post a comment