Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
wangqing
9 years ago
Commit
6be65cc229ca8197d22b6a01a5dc76446028591a
2 parents
d528c81a
9a784a99
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
16 deletions
web-static/dist/yohobuy/0.0.1/index-debug.js
web-static/dist/yohobuy/0.0.1/index.js
web-static/js/common.js
web-static/dist/yohobuy/0.0.1/index-debug.js
View file @
6be65cc
...
...
@@ -1160,7 +1160,7 @@ function actionTipPic() {
}
});
logolink
=
$
(
'.first-nav-list .cur'
).
find
(
'a'
).
attr
(
'href'
);
$
(
'.main-link'
).
attr
(
'href'
,
link
);
$
(
'.main-link'
).
attr
(
'href'
,
l
ogol
ink
);
}
...
...
web-static/dist/yohobuy/0.0.1/index.js
View file @
6be65cc
This diff could not be displayed because it is too large.
web-static/js/common.js
View file @
6be65cc
...
...
@@ -10,23 +10,11 @@ var $body = $('body');
require
(
'./footer'
);
function
cookie
(
name
)
{
var
cookies
=
document
.
cookie
,
cookieVal
,
offset
;
if
(
document
.
cookie
&&
document
.
cookie
!==
''
)
{
offset
=
cookies
.
indexOf
(
name
+
'='
);
if
(
offset
>
-
1
)
{
offset
+=
name
.
length
+
1
;
cookieVal
=
decodeURIComponent
(
$
.
trim
(
cookies
.
substring
(
offset
,
cookies
.
indexOf
(
';'
,
offset
))));
}
}
var
re
=
new
RegExp
(
name
+
'=([^;$]*)'
,
'i'
),
matchPattern
=
'$1'
;
return
cookieVal
;
return
re
.
test
(
decodeURIComponent
(
document
.
cookie
))
?
RegExp
[
matchPattern
]
:
''
;
}
function
setCookie
(
name
,
value
,
options
)
{
...
...
Please
register
or
login
to post a comment