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
0080bab4847a8d5104238fd736021d8dd15a915c
1 parent
f1109c1e
tip:bad yoho.zepto
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
15 additions
and
13 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/interational.js
static/js/passport/login/login.js
static/js/passport/register/password.js
static/js/passport/register/register.js
static/package.json
static/js/passport/api.js
View file @
0080bab
...
...
@@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var
$
=
require
(
'yoho.
zepto
'
);
var
$
=
require
(
'yoho.
jquery
'
);
var
trim
=
$
.
trim
;
...
...
@@ -96,7 +96,7 @@ function bindClearEvt() {
$clear
;
$hasClear
.
append
(
'<div class="clear-input"></div>'
);
$clear
=
$hasClear
.
children
(
'.clear'
);
$clear
=
$hasClear
.
children
(
'.clear
-input
'
);
$clear
.
on
(
'touchstart'
,
function
(
e
)
{
var
$input
=
$clear
.
siblings
(
'.input'
);
...
...
@@ -108,7 +108,7 @@ function bindClearEvt() {
//反向逻辑
$hasClear
.
children
(
'.input'
).
bind
(
'input'
,
function
()
{
var
$this
=
$
(
this
),
$thisClear
=
$this
.
siblings
(
'.clear'
),
$thisClear
=
$this
.
siblings
(
'.clear
-input
'
),
val
=
trim
(
$this
.
val
());
if
(
val
===
''
)
{
...
...
static/js/passport/back/email-success.js
View file @
0080bab
...
...
@@ -4,7 +4,7 @@
* @date: 2015/10/8
*/
var
$
=
require
(
'yoho.
zepto
'
);
var
$
=
require
(
'yoho.
jquery
'
);
var
$resend
=
$
(
'#resend'
);
...
...
static/js/passport/back/email.js
View file @
0080bab
...
...
@@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var
$
=
require
(
'yoho.
zepto
'
);
var
$
=
require
(
'yoho.
jquery
'
);
var
$email
=
$
(
'#email'
),
$btnSure
=
$
(
'#btn-sure'
);
...
...
static/js/passport/back/mobile.js
View file @
0080bab
...
...
@@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var
$
=
require
(
'yoho.
zepto
'
);
var
$
=
require
(
'yoho.
jquery
'
);
var
$phoneNum
=
$
(
'#phone-num'
),
$countrySelector
=
$
(
'#country-selector'
),
...
...
static/js/passport/back/new-password.js
View file @
0080bab
...
...
@@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var
$
=
require
(
'yoho.
zepto
'
);
var
$
=
require
(
'yoho.
jquery
'
);
var
$pwd
=
$
(
'#pwd'
),
$btnOk
=
$
(
'#btn-ok'
);
...
...
static/js/passport/code.js
View file @
0080bab
...
...
@@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var
$
=
require
(
'yoho.
zepto
'
);
var
$
=
require
(
'yoho.
jquery
'
);
module
.
exports
=
function
(
useInRegister
)
{
var
$captcha
=
$
(
'#captcha'
),
...
...
static/js/passport/login/interational.js
View file @
0080bab
...
...
@@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var
$
=
require
(
'yoho.
zepto
'
);
var
$
=
require
(
'yoho.
jquery
'
);
var
$phoneNum
=
$
(
'#phone-num'
),
$countrySelect
=
$
(
'#country-select'
),
...
...
static/js/passport/login/login.js
View file @
0080bab
...
...
@@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/9/30
*/
var
$
=
require
(
'yoho.
zepto
'
);
var
$
=
require
(
'yoho.
jquery
'
);
var
$account
=
$
(
'#account'
),
$pwd
=
$
(
'#pwd'
),
...
...
static/js/passport/register/password.js
View file @
0080bab
...
...
@@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var
$
=
require
(
'yoho.
zepto
'
);
var
$
=
require
(
'yoho.
jquery
'
);
var
$pwd
=
$
(
'#pwd'
),
$btnSure
=
$
(
'#btn-sure'
);
...
...
static/js/passport/register/register.js
View file @
0080bab
...
...
@@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var
$
=
require
(
'yoho.
zepto
'
);
var
$
=
require
(
'yoho.
jquery
'
);
var
$phoneNum
=
$
(
'#phone-num'
),
$countrySelect
=
$
(
'#country-select'
),
...
...
static/package.json
View file @
0080bab
...
...
@@ -16,6 +16,8 @@
"spm"
:
{
"main"
:
"index.js"
,
"dependencies"
:
{
"yoho.zepto"
:
"1.1.6"
,
"yoho.jquery"
:
"1.8.3"
},
"devDependencies"
:
{
"expect.js"
:
"0.3.1"
...
...
@@ -30,4 +32,4 @@
"test"
:
"spm test"
,
"build"
:
"spm build"
}
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment