Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
杨延青
9 years ago
Commit
8135818cc7ea975acd49f7fa39ce61d8021c6990
1 parent
1c837e9e
js 编译
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
31 deletions
static/dist/myohobuy/1.3.19/index-debug.js
static/dist/myohobuy/1.3.19/index.css
static/dist/myohobuy/1.3.19/index.js
static/dist/myohobuy/1.3.19/index-debug.js
View file @
8135818
...
...
@@ -1813,7 +1813,6 @@ function limitUsername() {
nameVal
=
$name
.
html
(),
nameSize
=
nameVal
.
length
,
bytesCount
=
0
,
bcount
=
0
,
newName
=
''
;
var
i
,
code
;
...
...
@@ -1828,16 +1827,9 @@ function limitUsername() {
}
if
(
bytesCount
>
8
)
{
newName
+=
'..'
;
}
for
(
i
=
0
;
i
<
nameSize
;
i
++
)
{
code
=
nameVal
.
charAt
(
i
);
bcount
=
bytesCountAction
(
code
,
bcount
);
if
(
bcount
>
bytesCount
-
2
)
{
newName
+=
code
;
}
newName
+=
'..'
+
nameVal
.
charAt
(
nameSize
-
1
);
}
else
{
newName
=
nameVal
;
}
$name
.
html
(
newName
);
...
...
@@ -4582,31 +4574,13 @@ $loginBtn.on('touchstart', function() {
password
:
pwd
},
success
:
function
(
data
)
{
var
res
,
time
;
var
res
;
if
(
data
.
code
===
200
)
{
res
=
data
.
data
;
$
.
ajax
({
url
:
res
.
session
,
dataType
:
'jsonp'
,
success
:
function
()
{
clearTimeout
(
time
);
//Cookie写入成功后,1s后跳转页面
setTimeout
(
function
()
{
location
.
href
=
res
.
href
;
},
1000
);
}
});
//3秒后强制跳转
time
=
setTimeout
(
function
()
{
location
.
href
=
res
.
href
;
},
3000
);
showErrTip
(
'登录成功'
);
location
.
href
=
res
.
href
;
}
else
{
showErrTip
(
data
.
message
);
}
...
...
@@ -4641,6 +4615,7 @@ $('#cancel-retrive').on('touchstart', function(e) {
//对初始有默认值的情况去初始化登录按钮状态
$account
.
trigger
(
'input'
);
$pwd
.
trigger
(
'input'
);
});
define
(
"js/passport/login/international"
,
[
"jquery"
],
function
(
require
,
exports
,
module
){
/**
...
...
static/dist/myohobuy/1.3.19/index.css
View file @
8135818
This diff could not be displayed because it is too large.
static/dist/myohobuy/1.3.19/index.js
View file @
8135818
This diff could not be displayed because it is too large.
Please
register
or
login
to post a comment