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
Email Patches
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
afe58b17129e155698bf1114ef95ea25e867f43b
1 parent
32827f6a
modify to search goods list style
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
static/dist/myohobuy/1.1.8/index-debug.js
static/dist/myohobuy/1.1.8/index.css
static/dist/myohobuy/1.1.8/index.js
static/dist/myohobuy/1.1.8/index-debug.js
View file @
afe58b1
...
...
@@ -2017,6 +2017,7 @@ $search.on('focus', function() {
$cancelSearch
.
on
(
'touchend'
,
function
()
{
$box
.
removeClass
(
'action'
);
$indexLogo
.
removeClass
(
'action'
);
$search
.
blur
();
return
false
;
});
...
...
static/dist/myohobuy/1.1.8/index.css
View file @
afe58b1
This diff could not be displayed because it is too large.
static/dist/myohobuy/1.1.8/index.js
View file @
afe58b1
define
(
"index"
,[
"jquery"
,
"hammer"
,
"swiper"
,
"lazyload"
,
"mlellipsis"
,
"iscroll-probe"
,
"index"
],
function
(
e
,
a
,
n
){
var
s
;
e
(
"js/common"
),
e
(
"js/category/entry"
),
e
(
"js/guang/entry"
),
e
(
"js/home/entry"
),
e
(
"js/index/entry"
),
e
(
"js/passport/entry"
),
e
(
"js/product/entry"
),
n
.
exports
=
s
}),
define
(
"js/common"
,[
"jquery"
],
function
(
e
,
a
,
n
){
function
s
(
e
){
var
a
,
n
,
s
=
document
.
cookie
;
return
document
.
cookie
&&
""
!==
document
.
cookie
&&
(
n
=
s
.
indexOf
(
e
+
"="
),
n
>-
1
&&
(
n
+=
e
.
length
+
1
,
a
=
decodeURIComponent
(
d
.
trim
(
s
.
substring
(
n
,
s
.
indexOf
(
";"
,
n
)))))),
a
}
function
o
(
e
,
a
,
n
){
var
s
,
o
,
t
,
i
,
r
=
""
;
"undefined"
!=
typeof
a
&&
(
n
=
n
||
{},
null
===
a
&&
(
a
=
""
,
n
.
expires
=-
1
),
n
.
expires
&&
(
"number"
==
typeof
n
.
expires
||
n
.
expires
.
toUTCString
)
&&
(
"number"
==
typeof
n
.
expires
?(
i
=
new
Date
,
i
.
setTime
(
i
.
getTime
()
+
24
*
n
.
expires
*
60
*
60
*
1
e3
)):
i
=
n
.
expires
,
r
=
"; expires="
+
i
.
toUTCString
()),
s
=
n
.
path
?
"; path="
+
n
.
path
:
""
,
o
=
n
.
domain
?
"; domain="
+
n
.
domain
:
""
,
t
=
n
.
secure
?
"; secure"
:
""
,
document
.
cookie
=
[
e
,
"="
,
encodeURIComponent
(
a
),
r
,
s
,
o
,
t
].
join
(
""
))}
function
t
(){
var
e
,
a
=
s
(
"_UID"
);
return
"undefined"
==
typeof
a
?
0
:(
e
=
a
.
split
(
"::"
),
"undefined"
==
typeof
e
||
e
.
length
<
4
?
0
:
e
)}
function
i
(){
var
e
=
t
();
return
0
===
e
?
0
:
e
[
1
]}
function
r
(){
var
e
=
s
(
"_g"
);
return
"undefined"
==
typeof
e
?
""
:
JSON
.
parse
(
e
).
k
}
function
l
(){
0
!==
c
.
length
&&
(
d
(
"body"
).
height
()
<=
d
(
window
).
height
()?
c
.
addClass
(
"bottom"
):
c
.
removeClass
(
"bottom"
))}
var
d
=
e
(
"jquery"
),
c
=
d
(
"#yoho-footer"
);
!
function
(){
var
e
=
c
.
children
(
".op-row"
),
a
=
t
();
d
(
"body"
).
height
()
<=
d
(
window
).
height
()
&&
c
.
addClass
(
"bottom"
),
0
===
a
?
e
.
prepend
(
'<a href="/signin.html?refer='
+
location
.
href
+
'">登录</a><span class="sep-line">|</span><a href="/reg.html">注册</a>'
):
e
.
prepend
(
'Hi,<a class="user-name" href="/home?tmp='
+
Math
.
random
()
+
'">'
+
a
[
0
]
+
'</a><a href="/passport/signout/index?token='
+
a
[
3
]
+
'">退出</a>'
),
e
.
find
(
".back-to-top"
).
on
(
"touchend"
,
function
(){
return
d
(
window
).
scrollTop
(
0
),
!
1
}),
c
.
removeClass
(
"hide"
)}(),
function
(){
var
e
=
i
();
e
=
0
===
e
?
""
:
e
,
window
.
_ozuid
=
e
,
window
.
_yas
&&
window
.
_yas
(
1
*
new
Date
,
"1.0.8"
,
"yohobuy_m"
,
e
,
""
)}(),
window
.
cookie
=
s
,
window
.
setCookie
=
o
,
window
.
getUser
=
t
,
window
.
getUid
=
i
,
window
.
getShoppingKey
=
r
,
window
.
rePosFooter
=
l
}),
define
(
"js/category/entry"
,[
"jquery"
,
"hammer"
,
"swiper"
,
"lazyload"
,
"index"
],
function
(
e
,
a
,
n
){
e
(
"js/category/index"
),
e
(
"js/category/brand"
)}),
define
(
"js/category/index"
,[
"jquery"
,
"hammer"
],
function
(
e
,
a
,
n
){
var
s
,
o
,
t
=
e
(
"jquery"
),
i
=
e
(
"hammer"
),
r
=
t
(
".category-nav"
),
l
=
t
(
".category-container"
),
d
=
l
.
children
(
".content"
),
c
=
t
(
".sub-level li"
),
u
=
d
.
not
(
".hide"
);
!
function
(){
var
e
=
t
(
".yoho-header"
),
a
=
t
(
"#search-input"
),
n
=
t
(
window
).
height
()
-
e
.
outerHeight
()
-
a
.
outerHeight
()
-
r
.
outerHeight
();
l
.
css
(
"min-height"
,
n
),
d
.
height
(
n
)}(),
t
(
"#search-input"
).
focus
(
function
(){
t
(
this
).
blur
()}),
s
=
new
i
(
r
[
0
]),
s
.
on
(
"tap"
,
function
(
e
){
var
a
=
t
(
e
.
target
).
closest
(
"li"
),
n
=
a
.
index
();
a
.
hasClass
(
"focus"
)
||
(
r
.
find
(
"li.focus"
).
removeClass
(
"focus"
),
a
.
addClass
(
"focus"
),
u
.
addClass
(
"hide"
),
u
=
d
.
eq
(
n
).
removeClass
(
"hide"
))}),
o
=
new
i
(
l
[
0
]),
o
.
on
(
"tap"
,
function
(
e
){
var
a
,
n
,
s
,
o
=
t
(
e
.
target
);
if
(
n
=
o
.
closest
(
".p-level-item"
),
n
.
length
>
0
){
if
(
s
=
n
.
index
(),
a
=
o
.
closest
(
".content"
).
find
(
".sub-level"
),
o
.
hasClass
(
"focus"
))
return
;
o
.
closest
(
".primary-level"
).
children
(
".focus"
).
removeClass
(
"focus"
),
o
.
addClass
(
"focus"
),
a
.
not
(
".hide"
).
addClass
(
"hide"
),
a
.
eq
(
s
).
removeClass
(
"hide"
)}}),
c
.
on
(
"touchstart"
,
function
(){
c
.
removeClass
(
"highlight"
),
t
(
this
).
addClass
(
"highlight"
)}).
on
(
"touchend touchcancel"
,
function
(){
t
(
this
).
removeClass
(
"highlight"
)})}),
define
(
"js/category/brand"
,[
"jquery"
,
"hammer"
,
"swiper"
,
"lazyload"
,
"index"
],
function
(
e
,
a
,
n
){
function
s
(){
var
e
=
u
(
".brand-list"
).
find
(
"p"
);
e
.
on
(
"touchstart"
,
function
(){
e
.
css
(
"background"
,
"#fff"
),
u
(
this
).
css
(
"background"
,
"#eee"
)}).
on
(
"touchend touchcancel"
,
function
(){
u
(
this
).
css
(
"background"
,
"#fff"
)})}
function
o
(){
var
e
=
(
d
.
val
()
+
""
).
toLowerCase
(),
a
=
{},
n
=
0
,
o
=
""
;
""
!==
e
&&
(
u
.
each
(
l
,
function
(
n
,
s
){
u
.
isArray
(
s
)
&&
u
.
each
(
s
,
function
(
s
,
o
){
o
.
name
.
toLowerCase
().
indexOf
(
e
)
>-
1
&&
(
a
[
n
]
=
a
[
n
]
||
[],
a
[
n
].
push
(
o
))})}),
u
.
each
(
a
,
function
(
e
,
a
){
var
s
=
[
'<div class="brand-list bar-'
,
n
,
'">'
];
n
++
,
s
.
push
(
'<div class="title-bar"><h2>'
),
s
.
push
(
e
),
s
.
push
(
"</h2></div>"
),
u
.
each
(
a
,
function
(
e
,
a
){
s
.
push
(
'<p><a href="'
+
a
.
url
+
'">'
+
a
.
name
),
a
.
isNew
&&
s
.
push
(
'<i class="icon-hot">HOT</i>'
),
a
.
isHot
&&
s
.
push
(
'<i class="icon-new">NEW</i>'
),
s
.
push
(
"</a></p>"
)}),
s
.
push
(
"</div>"
),
o
+=
s
.
join
(
""
)})),
u
(
".search-result"
).
html
(
o
),
s
()}
var
t
,
i
,
r
,
l
,
d
,
c
,
u
=
e
(
"jquery"
),
p
=
e
(
"hammer"
),
h
=
e
(
"swiper"
),
f
=
e
(
"lazyload"
),
g
=
u
(
".brand-list"
),
m
=
u
(
".search-icon"
),
v
=
u
(
".newbrand-search"
).
outerHeight
(),
w
=
u
(
".yoho-header"
).
outerHeight
(),
y
=
parseInt
(
v
)
+
parseInt
(
w
)
-
1
;
t
=
new
h
(
".swiper-container"
,{
lazyLoading
:
!
0
,
loop
:
!
0
,
autoplay
:
3
e3
,
pagination
:
".swiper-pagination .pagination-inner"
}),
f
(
u
(
"img.lazy"
)),
u
(
".yoho-header"
).
css
({
"z-index"
:
2
,
position
:
"fixed"
,
top
:
0
}),
i
=
u
(
'<div class="title-bar fixed-title-bar"><h2></h2></div>'
),
i
.
css
({
position
:
"fixed"
,
top
:
y
}).
hide
(),
r
=
y
+
u
(
".hot-brand"
).
outerHeight
()
+
u
(
".banner-top"
).
outerHeight
(),
u
(
".brand-list"
).
last
().
append
(
i
),
u
(
window
).
scroll
(
function
(){
var
e
=
u
(
window
).
scrollTop
();
g
.
eq
(
0
).
offset
().
top
<
r
&&
i
.
hide
(),
g
.
each
(
function
(){
var
a
=
u
(
this
).
offset
().
top
-
y
;
e
>=
a
&&
i
.
css
({
display
:
"block"
}).
find
(
"h2"
).
html
(
u
(
this
).
find
(
".title-bar"
).
text
())})}),
s
(),
u
(
".brand-search-page"
).
length
&&
(
l
=
u
.
parseJSON
(
u
(
"#brands-data"
).
html
()),
d
=
u
(
"#keyword"
),
d
.
on
(
"input"
,
function
(){
d
.
val
().
length
?(
m
.
css
(
"color"
,
"#000"
),
u
(
this
).
closest
(
".search-box"
).
css
(
"width"
,
"11.25rem"
),
u
(
".search-action"
).
show
()):(
m
.
css
(
"color"
,
"#b2b2b2"
),
u
(
this
).
closest
(
".search-box"
).
css
(
"width"
,
"12.5rem"
),
u
(
".search-action"
).
hide
()),
o
()}).
focus
(),
c
=
new
p
(
u
(
".clear-text"
)[
0
]),
c
.
on
(
"tap"
,
function
(
e
){
e
.
preventDefault
(),
u
(
".search-result"
).
html
(
""
),
u
(
"#keyword"
).
val
(
""
).
trigger
(
"input"
),
e
.
srcEvent
.
stopPropagation
()}),
u
(
"form.search-box"
).
on
(
"submit"
,
function
(){
return
!
1
}))}),
define
(
"js/guang/entry"
,[
"jquery"
,
"hammer"
,
"lazyload"
,
"swiper"
,
"mlellipsis"
,
"iscroll-probe"
,
"index"
],
function
(
e
,
a
,
n
){
e
(
"js/guang/plus-star/list"
),
e
(
"js/guang/plus-star/detail"
),
e
(
"js/guang/home"
),
e
(
"js/guang/list"
),
e
(
"js/guang/detail"
)}),
define
(
"js/guang/plus-star/list"
,[
"jquery"
,
"hammer"
,
"lazyload"
,
"swiper"
,
"index"
],
function
(
e
,
a
,
n
){
var
s
,
o
,
t
=
e
(
"jquery"
),
i
=
e
(
"hammer"
),
r
=
e
(
"lazyload"
),
l
=
e
(
"swiper"
),
d
=
t
(
"#nav-tab > li"
),
c
=
t
(
"#ps-content > .content"
);
r
(
t
(
"img.lazy"
)),
s
=
new
l
(
".swiper-container"
,{
lazyLoading
:
!
0
,
pagination
:
".swiper-pagination"
}),
o
=
new
i
(
document
.
getElementById
(
"nav-tab"
)),
o
.
on
(
"tap"
,
function
(
e
){
var
a
=
t
(
e
.
target
).
closest
(
"li"
);
a
.
hasClass
(
"focus"
)
||
(
d
.
toggleClass
(
"focus"
),
c
.
toggleClass
(
"hide"
),
t
(
document
).
trigger
(
"scroll"
))})}),
define
(
"js/guang/plus-star/detail"
,[
"jquery"
,
"hammer"
,
"mlellipsis"
,
"lazyload"
],
function
(
e
,
a
,
n
){
var
s
,
o
,
t
,
i
,
r
=
e
(
"jquery"
),
l
=
e
(
"hammer"
),
d
=
e
(
"mlellipsis"
),
c
=
e
(
"lazyload"
),
u
=
r
(
"#intro"
),
p
=
r
(
"#intro-more-txt"
),
h
=
r
(
"#related-infos-container"
),
f
=
e
(
"js/guang/info"
),
g
=
e
(
"js/plugin/tip"
),
m
=
r
(
"#brand-info"
).
data
(
"id"
),
v
=
r
(
"#jump-to-app"
).
val
();
e
(
"js/plugin/wx-share"
),
d
.
init
(),
c
(
r
(
"img.lazy"
)),
u
[
0
].
mlellipsis
(
3
),
setTimeout
(
function
(){
s
=
u
.
text
(),
o
=
u
.
attr
(
"title"
)}),
f
.
initInfosEvt
(
h
),
t
=
new
l
(
document
.
getElementById
(
"more-intro"
)),
t
.
on
(
"tap"
,
function
(
e
){
var
a
=
r
(
e
.
target
).
closest
(
"#more-intro"
);
a
.
toggleClass
(
"spread"
),
a
.
hasClass
(
"spread"
)?(
u
.
text
(
o
),
p
.
text
(
"收起"
)):(
u
.
text
(
s
),
p
.
text
(
"more"
),
r
(
window
).
scrollTop
(
0
,
400
)),
e
.
preventDefault
()}),
i
=
new
l
(
document
.
getElementById
(
"brand-like"
)),
i
.
on
(
"tap"
,
function
(
e
){
var
a
=
"ok"
,
n
=
r
(
e
.
target
);
"1"
!==
v
&&
(
e
.
preventDefault
(),
n
.
hasClass
(
"like"
)
&&
(
a
=
"cancel"
),
r
.
ajax
({
type
:
"POST"
,
url
:
"/guang/opt/favoriteBrand"
,
data
:{
id
:
m
,
opt
:
a
},
success
:
function
(
e
){
200
===
e
.
code
?
n
.
toggleClass
(
"like"
):
400
===
e
.
code
||
412
===
e
.
code
?
location
.
href
=
e
.
data
:
g
.
show
(
e
.
message
)},
error
:
function
(){
g
.
show
(
"网络断开连接了~"
)}}))})}),
define
(
"js/guang/info"
,[
"jquery"
,
"hammer"
,
"mlellipsis"
,
"lazyload"
],
function
(
e
,
a
,
n
){
function
s
(
e
){
d
(
e
.
find
(
"img.lazy"
)),
e
.
each
(
function
(){
var
e
=
i
(
this
),
a
=
e
.
find
(
".info-title"
),
n
=
e
.
find
(
".info-text"
);
a
[
0
].
mlellipsis
(
2
),
n
[
0
].
mlellipsis
(
2
)})}
function
o
(
e
){
var
a
;
"undefined"
!=
typeof
e
&&
(
a
=
new
r
(
e
[
0
]),
a
.
on
(
"tap"
,
function
(
e
){
var
a
,
n
,
s
,
o
=
i
(
e
.
target
),
t
=
"ok"
;
a
=
o
.
closest
(
".like-btn"
),
a
.
length
>
0
&&
(
a
.
hasClass
(
"like"
)
&&
(
t
=
"cancel"
),
s
=
o
.
closest
(
".guang-info"
),
i
.
ajax
({
type
:
"POST"
,
url
:
"/guang/opt/praiseArticle"
,
data
:{
id
:
s
.
data
(
"id"
),
opt
:
t
},
success
:
function
(
e
){
var
n
=
e
.
code
;
200
===
n
&&
(
a
.
next
(
".like-count"
).
text
(
e
.
data
),
a
.
toggleClass
(
"like"
))},
error
:
function
(){
c
.
show
(
"网络断开连接了~"
)}})),
n
=
o
.
closest
(
".collect-btn"
),
n
.
length
>
0
&&
(
n
.
hasClass
(
"collected"
)
&&
(
t
=
"cancel"
),
s
=
o
.
closest
(
".guang-info"
),
i
.
ajax
({
type
:
"POST"
,
url
:
"/guang/opt/collectArticle"
,
data
:{
id
:
s
.
data
(
"id"
),
opt
:
t
},
success
:
function
(
e
){
e
.
code
&&
200
===
e
.
code
&&
n
.
toggleClass
(
"collected"
)},
error
:
function
(){
c
.
show
(
"网络断开连接了~"
)}}))}),
s
(
e
.
find
(
".guang-info"
)))}
function
t
(
e
,
a
){
var
n
;
g
||
a
.
end
||
(
1
===
a
.
page
&&
u
.
showLoadingMask
(),
n
=
e
.
find
(
".guang-info"
).
length
,
g
=!
0
,
i
.
ajax
({
type
:
"GET"
,
url
:
" /guang/index/page"
,
data
:
a
,
success
:
function
(
o
){
var
t
;
return
" "
===
o
?(
a
.
end
=!
0
,
g
=!
1
,
h
.
addClass
(
"hide"
),
void
f
.
removeClass
(
"hide"
)):(
e
.
append
(
o
),
t
=
n
>
0
?
e
.
find
(
".guang-info:gt("
+
(
n
-
1
)
+
")"
):
e
.
find
(
".guang-info"
),
s
(
t
),
1
===
a
.
page
&&
(
u
.
hideLoadingMask
(),
h
.
removeClass
(
"hide"
),
window
.
rePosFooter
()),
a
.
page
++
,
void
(
g
=!
1
))},
error
:
function
(){
c
.
show
(
"网络断开连接了~"
),
g
=!
1
}}))}
var
i
=
e
(
"jquery"
),
r
=
e
(
"hammer"
),
l
=
e
(
"mlellipsis"
),
d
=
e
(
"lazyload"
),
c
=
e
(
"js/plugin/tip"
),
u
=
e
(
"js/plugin/loading"
),
p
=
i
(
"#load-more-info"
),
h
=
i
(
""
),
f
=
i
(
""
),
g
=!
1
;
l
.
init
(),
p
.
length
>
0
&&
(
h
=
p
.
children
(
".loading"
),
f
=
p
.
children
(
".no-more"
)),
a
.
initInfosEvt
=
o
,
a
.
setLazyLoadAndMellipsis
=
s
,
a
.
loadMore
=
t
}),
define
(
"js/plugin/tip"
,[
"jquery"
],
function
(
e
,
a
,
n
){
function
s
(
e
,
a
){
var
n
,
s
;
"undefined"
!=
typeof
e
&&
(
n
=
e
.
toString
(),
s
=
a
&&
a
>
0
?
a
:
2
e3
,
o
.
text
(
n
).
show
(),
t
=
setTimeout
(
function
(){
"block"
===
o
.
css
(
"display"
)
&&
o
.
hide
()},
s
))}
var
o
,
t
,
i
=
e
(
"jquery"
);
!
function
(){
var
e
=
'<div id="yoho-tip" class="yoho-tip"></div>'
;
i
(
".yoho-page"
).
append
(
e
),
o
=
i
(
"#yoho-tip"
),
o
.
on
(
"touchend"
,
function
(){
o
.
hide
(),
clearTimeout
(
t
)})}(),
a
.
show
=
s
}),
define
(
"js/plugin/loading"
,[
"jquery"
],
function
(
e
,
a
,
n
){
function
s
(
e
){
var
a
=
'<div class="loading-mask hide"><div class="loading"></div></div>'
;
d
=!
0
,
void
0
===
e
&&
(
e
=
l
),
e
.
append
(
a
),
i
=
e
.
children
(
".loading-mask"
)}
function
o
(){
d
||
(
s
(),
d
=!
0
),
i
.
removeClass
(
"hide"
)}
function
t
(){
i
.
addClass
(
"hide"
)}
var
i
,
r
=
e
(
"jquery"
),
l
=
r
(
".yoho-page"
),
d
=!
1
;
a
.
init
=
s
,
a
.
showLoadingMask
=
o
,
a
.
hideLoadingMask
=
t
}),
define
(
"js/plugin/wx-share"
,[
"jquery"
],
function
(
e
,
a
,
n
){
var
s
=
e
(
"jquery"
);
n
.
exports
=
function
(){
var
e
=
"http://www.yohoshow.com/api/wechat/getSignPackage"
;
s
.
getJSON
(
e
+
"?pageurl="
+
encodeURIComponent
(
location
.
href
.
split
(
"#"
)[
0
])
+
"&callback=?"
,
function
(
e
){
var
a
,
n
,
s
,
o
;
void
0
!==
e
&&
""
!==
e
&&
(
a
=
e
.
appId
.
toString
(),
n
=
e
.
timestamp
,
s
=
e
.
nonceStr
.
toString
(),
o
=
e
.
signature
.
toString
(),
wx
.
config
({
debug
:
!
1
,
appId
:
a
,
timestamp
:
n
,
nonceStr
:
s
,
signature
:
o
,
jsApiList
:[
"checkJsApi"
,
"onMenuShareTimeline"
,
"onMenuShareAppMessage"
,
"onMenuShareQQ"
,
"onMenuShareWeibo"
,
"hideMenuItems"
,
"showMenuItems"
,
"hideAllNonBaseMenuItem"
,
"showAllNonBaseMenuItem"
,
"translateVoice"
,
"startRecord"
,
"stopRecord"
,
"onRecordEnd"
,
"playVoice"
,
"pauseVoice"
,
"stopVoice"
,
"uploadVoice"
,
"downloadVoice"
,
"chooseImage"
,
"previewImage"
,
"uploadImage"
,
"downloadImage"
,
"getNetworkType"
,
"openLocation"
,
"getLocation"
,
"hideOptionMenu"
,
"showOptionMenu"
,
"closeWindow"
,
"scanQRCode"
,
"chooseWXPay"
,
"openProductSpecificView"
,
"addCard"
,
"chooseCard"
,
"openCard"
]}))}),
wx
.
ready
(
function
(){
var
e
=
s
(
"#shareTitle"
).
val
(),
a
=
s
(
"#shareImg"
).
val
(),
n
=
s
(
"#shareDesc"
).
val
(),
o
=
s
(
"#shareLink"
).
val
(),
t
=
{
title
:
e
,
desc
:
n
,
imgUrl
:
a
,
link
:
o
};
wx
.
onMenuShareAppMessage
(
t
),
wx
.
onMenuShareTimeline
(
t
),
wx
.
onMenuShareQQ
(
t
),
wx
.
onMenuShareWeibo
(
t
)})}}),
define
(
"js/guang/home"
,[
"jquery"
,
"hammer"
,
"swiper"
,
"mlellipsis"
,
"lazyload"
,
"index"
],
function
(
e
,
a
,
n
){
var
s
,
o
,
t
=
e
(
"jquery"
),
i
=
e
(
"hammer"
),
r
=
e
(
"swiper"
),
l
=
e
(
"js/guang/info"
),
d
=
l
.
loadMore
,
c
=
t
(
"#load-more-info"
),
u
=
t
(
""
),
p
=
t
(
""
),
h
=
t
(
window
).
height
(),
f
=
t
(
"#info-list"
),
g
=
f
.
children
(
".info-list"
),
m
=
t
(
"#guang-nav"
),
v
=
m
.
children
(
".focus"
),
w
=
v
.
data
(
"type"
),
y
=
{};
c
.
length
>
0
&&
(
u
=
c
.
children
(
".loading"
),
p
=
c
.
children
(
".no-more"
)),
s
=
new
r
(
".swiper-container"
,{
lazyLoading
:
!
0
,
pagination
:
".swiper-pagination"
,
autoplay
:
3
e3
}),
l
.
initInfosEvt
(
f
),
function
(){
var
e
=
t
(
"#gender"
).
val
();
m
.
children
(
".guang-nav-item"
).
each
(
function
(){
var
a
=
t
(
this
).
data
(
"type"
),
n
=
t
(
this
).
hasClass
(
"focus"
);
y
[
a
]
=
{
page
:
n
?
2
:
1
,
gender
:
e
,
type
:
a
,
end
:
!
1
}})}(),
o
=
new
i
(
m
[
0
]),
o
.
on
(
"tap"
,
function
(
e
){
var
a
,
n
,
s
=
t
(
e
.
target
).
closest
(
".guang-nav-item"
);
s
.
hasClass
(
"focus"
)
||
(
n
=
s
.
index
(),
s
.
addClass
(
"focus"
),
v
.
removeClass
(
"focus"
),
a
=
g
.
eq
(
n
),
v
=
s
,
w
=
s
.
data
(
"type"
),
1
===
y
[
w
].
page
?(
u
.
addClass
(
"hide"
),
p
.
addClass
(
"hide"
),
d
(
a
,
y
[
w
])):
y
[
w
].
end
?(
u
.
addClass
(
"hide"
),
p
.
removeClass
(
"hide"
)):(
u
.
removeClass
(
"hide"
),
p
.
addClass
(
"hide"
)),
g
.
not
(
".hide"
).
addClass
(
"hide"
),
a
.
removeClass
(
"hide"
),
1
===
y
[
w
].
page
&&
window
.
rePosFooter
())}),
t
(
document
).
scroll
(
function
(){
var
e
=
g
.
not
(
".hide"
);
t
(
window
).
scrollTop
()
+
h
>=
t
(
document
).
height
()
-
.
25
*
e
.
height
()
&&
d
(
e
,
y
[
w
])})}),
define
(
"js/guang/list"
,[
"jquery"
,
"hammer"
,
"mlellipsis"
,
"lazyload"
],
function
(
e
,
a
,
n
){
var
s
=
e
(
"jquery"
),
o
=
e
(
"js/guang/info"
),
t
=
o
.
loadMore
,
i
=
s
(
window
).
height
(),
r
=
s
(
"#author-infos"
),
l
=
s
(
"#tag"
),
d
=
s
(
"#gender"
),
c
=
s
(
"#isApp"
),
u
=
{
page
:
2
,
end
:
!
1
},
p
=
s
(
"#info-list"
);
o
.
initInfosEvt
(
p
),
r
.
length
>
0
&&
s
.
extend
(
u
,{
authorId
:
r
.
data
(
"id"
),
isApp
:
c
.
val
()}),
l
.
length
>
0
&&
s
.
extend
(
u
,{
tag
:
l
.
val
(),
gender
:
d
.
val
(),
isApp
:
c
.
val
()}),
s
(
document
).
scroll
(
function
(){
s
(
window
).
scrollTop
()
+
i
>=
s
(
document
).
height
()
-
.
25
*
p
.
height
()
&&
t
(
p
,
u
)})}),
define
(
"js/guang/detail"
,[
"jquery"
,
"mlellipsis"
,
"lazyload"
,
"iscroll-probe"
],
function
(
e
,
a
,
n
){
function
s
(
e
){
var
a
=
e
.
offset
().
left
,
n
=-
C
+
a
+
y
/
2
+
"px"
;
r
.
css
({
backgroundPosition
:
n
+
" bottom"
}),
v
&&
b
.
css
({
backgroundPosition
:
n
+
" bottom"
})}
function
o
(
e
){
var
a
,
n
,
o
,
t
=
p
(
e
.
currentTarget
),
h
=
t
.
index
();
t
.
hasClass
(
"focus"
)
||
(
l
.
filter
(
".focus"
).
removeClass
(
"focus"
),
v
&&
(
a
=
t
.
closest
(
".fixed-thumb-container"
).
length
>
0
?
r
:
b
,
n
=
a
.
find
(
".thumb"
).
eq
(
h
),
b
.
find
(
".thumb.focus"
).
removeClass
(
"focus"
),
n
.
addClass
(
"focus"
)),
t
.
addClass
(
"focus"
),
s
(
t
),
d
.
not
(
".hide"
).
addClass
(
"hide"
),
o
=
d
.
eq
(
h
),
o
.
removeClass
(
"hide"
),
f
(
o
.
find
(
".lazy"
)),
v
?
u
&&
u
.
scrollToElement
(
c
,
400
):
p
(
"body"
).
animate
({
scrollTop
:
i
.
offset
().
top
},
400
),
u
&&
u
.
refresh
())}
function
t
(){
var
e
,
a
,
n
,
s
,
o
,
t
=
p
(
"#scroller"
),
l
=
p
(
".yoho-header"
),
d
=
0
;
return
l
.
length
>
0
&&
(
d
=
l
.
outerHeight
()),
u
=
new
g
(
"#wrapper"
,{
probeType
:
3
,
mouseWheel
:
!
0
,
click
:
!
0
}),
document
.
addEventListener
(
"touchmove"
,
function
(
e
){
e
.
preventDefault
()},
!
1
),
w
?(
e
=
p
(
window
).
height
()
-
d
,
o
=
b
[
0
],
a
=
r
.
outerHeight
(),
n
=
i
.
outerHeight
(),
s
=
i
.
offset
().
top
-
d
,
void
u
.
on
(
"scroll"
,
function
(){
var
i
=-
this
.
y
,
r
=
o
.
className
;
s
-
e
+
a
>=
i
?
-
1
===
r
.
indexOf
(
"fixed-bottom"
)
&&
b
.
addClass
(
"fixed-bottom"
).
removeClass
(
"hide"
):
s
>=
i
?
-
1
===
r
.
indexOf
(
"hide"
)
&&
b
.
addClass
(
"hide"
).
removeClass
(
"fixed-bottom fixed-top"
):
s
+
n
-
a
>=
i
?
-
1
===
r
.
indexOf
(
"fixed-top"
)
&&
b
.
addClass
(
"fixed-top"
).
removeClass
(
"hide absolute"
).
css
(
"top"
,
""
):
s
+
n
>=
i
?(
-
1
===
r
.
indexOf
(
"absolute"
)
&&
b
.
addClass
(
"absolute"
).
removeClass
(
"fixed-top hide"
),
o
.
style
.
top
=
s
+
d
+
n
-
a
-
i
+
"px"
):
i
>
s
+
n
&&-
1
===
r
.
indexOf
(
"hide"
)
&&
b
.
addClass
(
"hide"
).
removeClass
(
"absolute"
),
t
.
trigger
(
"scroll"
)})):
void
u
.
on
(
"scroll"
,
function
(){
t
.
trigger
(
"scroll"
)})}
var
i
,
r
,
l
,
d
,
c
,
u
,
p
=
e
(
"jquery"
),
h
=
e
(
"mlellipsis"
),
f
=
e
(
"lazyload"
),
g
=
e
(
"iscroll-probe"
),
m
=
p
(
".author .intro"
),
v
=!
1
,
w
=
p
(
".collocation-block"
).
length
>
0
?
!
0
:
!
1
,
y
=
0
,
b
=
p
(
""
),
c
=
document
.
querySelector
(
"#wrapper .collocation-block"
),
C
=
p
(
window
).
width
();
e
(
"js/plugin/wx-share"
)(),
window
.
onload
=
function
(){
u
&&
u
.
refresh
()},
a
.
i
=
function
(
e
){
var
a
=
navigator
.
userAgent
.
indexOf
(
"iPhone"
)
>
0
?
!
0
:
!
1
;
v
=
a
&&
e
,
h
.
init
(),
f
(
p
(
".lazy"
)),
p
(
".info-list .title, .one-good .reco-name"
).
each
(
function
(){
this
.
mlellipsis
(
2
)}),
m
.
offset
()
&&
parseInt
(
m
.
offset
().
left
,
10
)
===
parseInt
(
m
.
css
(
"margin-left"
),
10
)
&&
m
.
css
(
"padding-top"
,
0
),
v
&&
(
p
(
".yoho-header"
).
length
>
0
?
p
(
"#wrapper"
).
addClass
(
"ios has-head"
):
p
(
"#wrapper"
).
addClass
(
"ios"
)),
w
&&
(
i
=
p
(
".collocation-block"
),
r
=
i
.
children
(
".thumb-container"
),
l
=
r
.
find
(
"li"
),
d
=
i
.
find
(
".prod"
),
y
=
l
.
width
(),
v
&&
(
b
=
p
(
"#wrapper"
).
after
(
r
.
clone
().
addClass
(
"fixed-thumb-container fixed-bottom"
)).
next
(
".thumb-container"
),
f
(
b
.
find
(
".lazy"
),{
event
:
"sporty"
})),
s
(
l
.
filter
(
".focus"
)),
r
.
delegate
(
".thumb"
,
"touchend"
,
o
),
v
&&
b
.
delegate
(
".thumb"
,
"touchend"
,
o
)),
v
&&
t
()}}),
define
(
"js/home/entry"
,[
"jquery"
,
"hammer"
,
"swiper"
,
"lazyload"
,
"index"
],
function
(
e
,
a
,
n
){
e
(
"js/home/home"
),
e
(
"js/home/maybe-like"
)}),
define
(
"js/home/home"
,[
"jquery"
,
"hammer"
,
"swiper"
,
"lazyload"
,
"index"
],
function
(
e
,
a
,
n
){
function
s
(){
b
.
hasClass
(
"menu-open"
)
&&
(
b
.
removeClass
(
"menu-open"
),
m
(
".overlay"
).
hide
(),
m
(
".sub-nav"
).
removeClass
(
"show"
),
j
.
removeClass
(
"on"
),
m
(
"body"
).
css
({
height
:
"auto"
,
overflow
:
"auto"
}))}
function
o
(){
k
+=
10
,
q
.
css
({
transform
:
"rotateX("
+
k
+
"deg)"
,
"-webkit-transform"
:
"rotateX("
+
k
+
"deg)"
,
"-moz-transform"
:
"rotateX("
+
k
+
"deg)"
}),
k
/
90
%
2
===
1
&&
(
z
?(
q
.
addClass
(
"animate"
),
z
=!
1
):(
q
.
removeClass
(
"animate"
),
z
=!
0
)),
k
/
90
%
2
===
0
&&
k
%
360
!==
0
?
window
.
setTimeout
(
o
,
3
e3
):
k
%
360
===
0
?
window
.
setTimeout
(
o
,
6
e4
):
c
(
function
(){
o
()})}
var
t
,
i
,
r
,
l
,
d
,
c
,
u
,
p
,
h
,
f
,
g
,
m
=
e
(
"jquery"
),
v
=
e
(
"hammer"
),
w
=
e
(
"swiper"
),
y
=
e
(
"lazyload"
),
b
=
m
(
".mobile-wrap"
),
C
=
m
(
".overlay"
),
j
=
m
(
".side-nav"
),
x
=
m
(
".sub-nav"
),
k
=
0
,
q
=
m
(
".home-header .logo"
),
z
=!
0
;
e
(
"js/home/maybe-like"
),
y
(
m
(
"img.lazy"
)),
g
=
new
v
(
m
(
".nav-btn"
)[
0
]),
g
.
on
(
"tap"
,
function
(
e
){
return
e
.
preventDefault
(),
b
.
addClass
(
"menu-open"
),
C
.
show
().
css
(
"opacity"
,.
3
),
j
.
addClass
(
"on"
),
m
(
"body"
).
css
({
height
:
m
(
window
).
height
(),
width
:
m
(
window
).
width
(),
overflow
:
"hidden"
}),
e
.
srcEvent
.
stopPropagation
(),
!
1
}),
m
(
".overlay"
).
on
(
"touchstart"
,
function
(
e
){
return
s
(),
!
1
}),
j
.
on
(
"touchstart"
,
"li"
,
function
(
e
){
return
m
(
this
).
find
(
".sub-nav"
).
size
()
>
0
&&
(
m
(
".sub-nav"
).
removeClass
(
"show"
),
m
(
this
).
find
(
".sub-nav"
).
addClass
(
"show"
)),
e
.
stopPropagation
(),
e
.
target
.
pathname
===
location
.
pathname
?(
s
(),
!
1
):
void
0
}),
x
.
each
(
function
(){
m
(
this
).
find
(
"li"
).
eq
(
0
).
on
(
"touchstart"
,
function
(
e
){
return
m
(
".sub-nav"
).
removeClass
(
"show"
),
e
.
stopPropagation
(),
!
1
})}).
on
(
"touchstart"
,
function
(
e
){
e
.
currentTarget
!==
e
.
target
&&
x
.
find
(
"li"
).
removeClass
(
"current"
)}),
j
.
children
(
"ul"
).
children
(
"li"
).
on
(
"touchstart"
,
function
(){
j
.
children
(
"ul"
).
children
(
"li"
).
css
(
"background"
,
"#fff"
),
m
(
this
).
css
(
"background"
,
"#eee"
)}).
on
(
"touchend touchcancel"
,
function
(){
m
(
this
).
css
(
"background"
,
"#fff"
)}),
m
(
".banner-swiper"
).
find
(
"li"
).
size
()
>
1
&&
(
t
=
new
w
(
".banner-swiper"
,{
lazyLoading
:
!
0
,
lazyLoadingInPrevNext
:
!
0
,
loop
:
!
0
,
autoplay
:
3
e3
,
autoplayDisableOnInteraction
:
!
1
,
paginationClickable
:
!
0
,
slideElement
:
"li"
,
pagination
:
".banner-top .pagination-inner"
})),
r
=
new
w
(
".brands-swiper"
,{
grabCursor
:
!
0
,
slidesPerView
:
"auto"
,
wrapperClass
:
"brands-list"
,
slideElement
:
"li"
}),
i
=
new
w
(
".recommend-swiper"
,{
grabCursor
:
!
0
,
slidesPerView
:
"auto"
,
wrapperClass
:
"recommend-list"
,
slideElement
:
"li"
}),
m
(
".trend-topic-swiper"
).
find
(
"li"
).
size
()
>
1
&&
(
l
=
new
w
(
".trend-topic-swiper"
,{
loop
:
!
0
,
autoplay
:
3
e3
,
autoplayDisableOnInteraction
:
!
1
,
paginationClickable
:
!
0
,
slideElement
:
"li"
,
pagination
:
".trend-topic-content .pagination-inner"
})),
m
(
".category-swiper"
).
each
(
function
(
e
,
a
){
h
=
"category-swiper"
+
e
,
m
(
this
).
addClass
(
h
),
m
(
"."
+
h
).
find
(
".swiper-slide"
).
size
()
>
1
&&
(
d
=
new
w
(
"."
+
h
,{
loop
:
!
0
,
autoplay
:
3
e3
,
autoplayDisableOnInteraction
:
!
1
,
paginationClickable
:
!
0
,
slideElement
:
"li"
,
pagination
:
"."
+
h
+
" .pagination-inner"
}))}),
c
=
function
(){
var
e
=
null
,
a
=
[
"webkit"
,
"moz"
,
"ms"
];
for
(
p
=
0
;
p
<
a
.
length
;
p
++
)
u
=
a
[
p
]
+
"RequestAnimationFrame"
,
window
[
u
]
&&
(
f
=!
0
,
e
=
u
);
return
f
?
function
(
a
){
window
[
e
](
a
)}:
function
(
e
){
window
.
setTimeout
(
e
,
67
)}}(),
setTimeout
(
o
,
3
e3
),
m
(
"#yoho-footer"
).
css
({
"margin-bottom"
:
"2.5rem"
}),
a
.
set
=
function
(
e
){
window
.
setCookie
(
"_Channel"
,
e
,{
expires
:
365
,
domain
:
".m.yohobuy.com"
})}}),
define
(
"js/home/maybe-like"
,[
"jquery"
,
"hammer"
,
"lazyload"
],
function
(
e
,
a
,
n
){
function
s
(){
m
||
(
m
=!
0
,
p
.
showLoadingMask
(),
d
.
ajax
({
type
:
"GET"
,
url
:
i
,
data
:{
page
:
v
+
1
},
success
:
function
(
e
){
return
" "
===
e
?(
m
=!
1
,
p
.
hideLoadingMask
(),
void
(
w
&&
(
i
=
"1,3"
===
w
?
"/boys/bottomBanner"
:
"/girls/bottomBanner"
,
d
.
ajax
({
type
:
"GET"
,
url
:
i
,
success
:
function
(
e
){
e
&&
e
.
img
&&
(
d
(
"#load-more-img"
).
show
(),
d
(
"#load-more-img a"
).
attr
(
"href"
,
e
.
url
),
d
(
"#load-more-img a > img"
).
attr
(
"src"
,
e
.
img
))},
error
:
function
(){}})))):(
t
=
g
.
find
(
".good-info"
).
length
,
g
.
append
(
e
),
h
(
0
===
t
?
g
.
find
(
".good-info"
).
find
(
"img.lazy"
):
g
.
find
(
".good-info:gt("
+
(
t
-
1
)
+
")"
).
find
(
"img.lazy"
)),
m
=!
1
,
p
.
hideLoadingMask
(),
void
v
++
)},
error
:
function
(){
u
.
show
(
"网络断开连接了~"
),
m
=!
1
,
p
.
hideLoadingMask
()}}))}
var
o
,
t
,
i
,
r
,
l
,
d
=
e
(
"jquery"
),
c
=
e
(
"hammer"
),
u
=
e
(
"js/plugin/tip"
),
p
=
e
(
"js/plugin/loading"
),
h
=
e
(
"lazyload"
),
f
=
d
(
window
).
height
(),
g
=
d
(
"#goods-list"
),
m
=!
1
,
v
=
0
,
w
=
null
,
y
=
d
(
".mobile-wrap"
).
hasClass
(
"kids-wrap"
)?
!
0
:
!
1
,
b
=
d
(
".mobile-wrap"
).
hasClass
(
"lifestyle-wrap"
)?
!
0
:
!
1
,
C
=
d
(
"#maybe-like-nav"
);
y
?
i
=
"/product/recom/maylikekids"
:
b
?
i
=
"/product/recom/maylikelife"
:(
w
=
d
(
".mobile-wrap"
).
hasClass
(
"boys-wrap"
)?
"1,3"
:
"2,3"
,
i
=
"/product/recom/maylike?gender="
+
w
),
r
=
C
.
children
(
".focus"
),
b
&&
(
o
=
new
c
(
C
[
0
]),
o
.
on
(
"tap"
,
function
(
e
){
var
a
,
n
=
d
(
e
.
target
).
closest
(
"li"
),
s
=
d
(
".goods-list"
);
e
.
preventDefault
(),
n
.
hasClass
(
"focus"
)
||
(
l
=
n
.
index
(),
n
.
addClass
(
"focus"
),
r
.
removeClass
(
"focus"
),
s
.
not
(
".hide"
).
addClass
(
"hide"
),
a
=
s
.
eq
(
l
),
a
.
removeClass
(
"hide"
),
r
=
n
,
d
(
document
).
trigger
(
"scroll"
),
e
.
srcEvent
.
stopPropagation
())})),
p
.
init
(
d
(
".maybe-like"
)),
d
(
".maybe-like p"
).
on
(
"touchstart"
,
function
(
e
){
s
()}),
d
(
window
).
scroll
(
function
(){
d
(
window
).
scrollTop
()
+
f
>=
d
(
document
).
height
()
&&
s
()})}),
define
(
"js/index/entry"
,[
"jquery"
,
"hammer"
],
function
(
e
,
a
,
n
){
e
(
"js/index/search"
),
e
(
"js/index/footer"
),
e
(
"js/index/channel"
)}),
define
(
"js/index/search"
,[
"jquery"
,
"hammer"
],
function
(
e
,
a
,
n
){
var
s
,
o
,
t
=
e
(
"jquery"
),
i
=
e
(
"hammer"
),
r
=
t
(
"#search-input input"
),
l
=
t
(
"#search-input .clear-input"
),
d
=
t
(
".search-icon"
),
c
=
t
(
"#search-form"
),
u
=
t
(
".history"
),
p
=
t
(
"#clear-history"
),
h
=
e
(
"js/index/write-search"
),
f
=
h
.
getRanToken
();
s
=
new
i
(
p
[
0
]),
s
.
on
(
"tap"
,
function
(){
localStorage
.
removeItem
(
"historys"
),
u
.
html
(
""
)}),
r
.
on
(
"input"
,
function
(){
""
===
r
.
val
()?(
d
.
css
(
"color"
,
"#b2b2b2"
),
l
.
addClass
(
"hide"
)):(
d
.
css
(
"color"
,
"#666"
),
l
.
removeClass
(
"hide"
))}),
o
=
new
i
(
l
[
0
]),
o
.
on
(
"tap"
,
function
(){
r
.
val
(
""
).
trigger
(
"input"
)}),
t
(
"#search"
).
on
(
"touchend"
,
function
(){
return
t
(
this
).
closest
(
"form"
).
submit
(),
!
1
}),
function
(){
var
e
,
a
,
n
,
s
=
""
;
if
(
localStorage
&&
(
a
=
localStorage
.
getItem
(
"historys"
),
a
&&
a
.
length
>
0
)){
for
(
a
=
a
.
split
(
f
),
n
=
0
;
n
<
a
.
length
;
n
++
)
e
=
a
[
n
],
""
!==
e
&&
(
s
+=
'<li><a href="/?query='
+
e
+
'">'
+
e
+
"</li>"
);
u
.
html
(
s
),
p
.
removeClass
(
"hide"
)}}(),
h
.
bindWirteLocal
(
c
)}),
define
(
"js/index/write-search"
,[],
function
(
e
,
a
,
n
){
function
s
(){
return
t
}
function
o
(
e
){
e
.
on
(
"submit"
,
function
(){
var
e
,
a
=
this
.
query
.
value
;
if
(
localStorage
){
if
(
e
=
localStorage
.
getItem
(
"historys"
),
e
=
e
?
e
:
""
,
e
.
indexOf
(
t
+
a
+
t
)
>-
1
)
return
;
""
===
e
&&
(
a
=
t
+
a
),
e
+=
a
+
t
,
localStorage
.
setItem
(
"historys"
,
e
)}})}
var
t
=
" ??++ "
;
a
.
getRanToken
=
s
,
a
.
bindWirteLocal
=
o
}),
define
(
"js/index/footer"
,[
"jquery"
,
"hammer"
],
function
(
e
,
a
,
n
){
function
s
(){
var
e
=
"http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho&g_f=995445"
,
a
=
new
Date
;
setTimeout
(
function
(){
new
Date
-
a
<
2
e3
&&
(
window
.
location
=
e
)},
500
)}
var
o
,
t
=
e
(
"jquery"
),
i
=
e
(
"hammer"
);
e
(
"js/common"
),
t
(
"#float-layer-close"
).
on
(
"touchend"
,
function
(
e
){
return
t
(
"#float-layer-app"
).
hide
(),
window
.
setCookie
(
"_float-layer-app"
,
"id490655927"
,{
domain
:
".yohobuy.com"
}),
window
.
setCookie
(
"_float-layer-app-close"
,
1
,{
domain
:
".yohobuy.com"
,
expires
:
1
}),
!
1
}),
t
(
"#float-layer-btn"
)
&&
t
(
"#float-layer-btn"
)[
0
]
&&
(
o
=
new
i
(
t
(
"#float-layer-btn"
)[
0
]),
o
.
on
(
"tap"
,
function
(
e
){
s
(
"bottom"
),
e
.
srcEvent
.
stopPropagation
()}),
window
.
cookie
(
"_float-layer-app"
)?
t
(
"#float-layer-app"
).
hide
():
t
(
"#float-layer-app"
).
show
())}),
define
(
"js/index/channel"
,[
"jquery"
],
function
(
e
,
a
,
n
){
var
s
=
e
(
"jquery"
),
o
=
s
(
".search-box"
),
t
=
s
(
".box"
),
i
=
s
(
".index-search"
),
r
=
s
(
".index-logo"
),
l
=
s
(
".index-channel a"
),
d
=
o
.
children
(
'input[type="text"]'
),
c
=
t
.
children
(
".no-search"
),
u
=
o
.
children
(
".search-icon"
);
e
(
"js/common"
),
d
.
on
(
"focus"
,
function
(){
t
.
addClass
(
"action"
),
r
.
addClass
(
"action"
)}).
on
(
"input"
,
function
(){
""
===
d
.
val
()?
u
.
addClass
(
"empty"
):
u
.
removeClass
(
"empty"
)}),
c
.
on
(
"touchend"
,
function
(){
return
t
.
removeClass
(
"action"
),
r
.
removeClass
(
"action"
),
!
1
}),
o
.
children
(
".clear-text"
).
on
(
"touchstart"
,
function
(){
d
.
val
(
""
).
focus
().
trigger
(
"input"
)}),
o
.
children
(
".search-icon"
).
on
(
"touchstart"
,
function
(){
i
.
submit
()}),
s
(
".index-channel img"
).
on
(
"load error"
,
function
(){
window
.
rePosFooter
&&
window
.
rePosFooter
()}),
l
.
on
(
"touchstart"
,
function
(){
l
.
css
({
background
:
"#000"
,
color
:
"#fff"
,
borderColor
:
"#fff"
}),
s
(
this
).
css
({
background
:
"rgba(255, 255, 255, 0.5)"
,
color
:
"#000"
,
borderColor
:
"#000"
})}).
on
(
"touchend touchcancel"
,
function
(){
s
(
this
).
css
({
background
:
"#000"
,
color
:
"#fff"
,
borderColor
:
"#fff"
})})}),
define
(
"js/passport/entry"
,[
"jquery"
],
function
(
e
,
a
,
n
){
e
(
"js/passport/register/register"
),
e
(
"js/passport/register/code"
),
e
(
"js/passport/register/password"
),
e
(
"js/passport/login/login"
),
e
(
"js/passport/login/international"
),
e
(
"js/passport/back/mobile"
),
e
(
"js/passport/back/code"
),
e
(
"js/passport/back/email"
),
e
(
"js/passport/back/email-success"
),
e
(
"js/passport/back/new-password"
)}),
define
(
"js/passport/register/register"
,[
"jquery"
],
function
(
e
,
a
,
n
){
var
s
=
e
(
"jquery"
),
o
=
s
(
"#phone-num"
),
t
=
s
(
"#country-select"
),
i
=
s
(
"#area-code"
),
r
=
s
(
"#btn-next"
),
l
=
e
(
"js/passport/api"
),
d
=
e
(
"js/plugin/tip"
),
c
=
s
.
trim
,
u
=
d
.
show
;
l
.
selectCssHack
(
s
(
"#country-select"
)),
l
.
bindClearEvt
(),
o
.
bind
(
"input"
,
function
(){
""
===
c
(
o
.
val
())?
r
.
addClass
(
"disable"
):
r
.
removeClass
(
"disable"
)}),
t
.
change
(
function
(){
i
.
text
(
t
.
val
())}),
r
.
on
(
"touchstart"
,
function
(){
var
e
=
c
(
o
.
val
()),
a
=
t
.
val
();
r
.
hasClass
(
"disable"
)
||
(
l
.
phoneRegx
[
a
].
test
(
e
)?
s
.
ajax
({
url
:
"/passport/reg/verifymobile"
,
type
:
"POST"
,
data
:{
areaCode
:
a
.
replace
(
"+"
,
""
),
phoneNum
:
e
},
success
:
function
(
e
){
200
===
e
.
code
?
location
.
href
=
e
.
data
:
u
(
e
.
message
)}}):
u
(
"手机号格式不正确,请重新输入"
))})}),
define
(
"js/passport/api"
,[
"jquery"
],
function
(
e
,
a
,
n
){
function
s
(
e
){
var
a
,
n
=
r
(
".has-eye"
);
e
&&
"open"
===
e
.
status
?
n
.
append
(
'<div class="eye"></div>'
):
n
.
append
(
'<div class="eye close"></div>'
),
a
=
n
.
children
(
".eye"
),
a
.
on
(
"touchstart"
,
function
(
e
){
var
a
=
r
(
this
),
n
=
a
.
siblings
(
".pwd"
);
e
.
preventDefault
(),
a
.
toggleClass
(
"close"
),
a
.
hasClass
(
"close"
)?
n
.
attr
(
"type"
,
"password"
):
n
.
attr
(
"type"
,
"text"
),
n
.
focus
()})}
function
o
(){
var
e
,
a
=
r
(
".has-clear"
);
a
.
append
(
'<div class="clear-input"></div>'
),
e
=
a
.
children
(
".clear-input"
),
e
.
on
(
"touchstart"
,
function
(
a
){
var
n
=
e
.
siblings
(
".input"
);
n
.
val
(
""
).
trigger
(
"input"
).
focus
(),
a
.
preventDefault
()}),
a
.
children
(
".input"
).
bind
(
"input"
,
function
(){
var
e
=
r
(
this
),
a
=
e
.
siblings
(
".clear-input"
),
n
=
l
(
e
.
val
());
""
===
n
?
a
.
hide
():
a
.
show
()})}
function
t
(
e
){
return
e
.
length
>=
6
&&
e
.
length
<=
20
?
!
0
:
!
1
}
function
i
(
e
){
function
a
(){
var
a
=
e
.
find
(
"option:selected"
).
text
().
length
;
switch
(
a
){
case
2
:
e
.
outerWidth
(
90
);
break
;
case
3
:
e
.
outerWidth
(
110
);
break
;
default
:
e
.
outerWidth
(
130
)}}
var
n
=
navigator
.
userAgent
;
n
.
match
(
/uc/i
)
&&
n
.
match
(
/android/i
)?
e
.
change
(
function
(){
a
()}):
e
.
removeClass
(
"in-android-uc"
)}
var
r
=
e
(
"jquery"
),
l
=
r
.
trim
,
d
=
/^
([
a-zA-Z0-9
]
+
[
_|
\_
|
\.
|-
]?)
*
[
a-zA-Z0-9
]
+@
([
a-zA-Z0-9
]
+
[
_|
\_
|
\.
|-
]?)
*
[
a-zA-Z0-9
]
+
\.[
a-zA-Z
]{2,3}
$/
,
c
=
{
"+86"
:
/^
1
[
35847
]{
1
}[
0
-
9
]{
9
}
$
/
,
"+852"
:
/^
[
965
]{
1
}[
0
-
9
]{
7
}
$
/
,
"+853"
:
/^
[
0
-
9
]{
8
}
$
/
,
"+886"
:
/^
[
0
-
9
]{
10
}
$
/
,
"+65"
:
/^
[
98
]{
1
}[
0
-
9
]{
7
}
$
/
,
"+60"
:
/^
1
[
1234679
]{
1
}[
0
-
9
]{
8
}
$
/
,
"+1"
:
/^
[
0
-
9
]{
10
}
$
/
,
"+82"
:
/^
01
[
0
-
9
]{
9
}
$
/
,
"+44"
:
/^
7
[
789
][
0
-
9
]{
8
}
$
/
,
"+81"
:
/^
0
[
9
|
8
|
7
][
0
-
9
]{
9
}
$
/
,
"+61"
:
/^
[
0
-
9
]{
11
}
$
/
};
n
.
exports
=
{
emailRegx
:
d
,
phoneRegx
:
c
,
bindEyesEvt
:
s
,
bindClearEvt
:
o
,
pwdValidate
:
t
,
selectCssHack
:
i
}}),
define
(
"js/passport/register/code"
,[
"jquery"
],
function
(
e
,
a
,
n
){
e
(
"js/passport/code"
)(
!
0
)}),
define
(
"js/passport/code"
,[
"jquery"
],
function
(
e
,
a
,
n
){
var
s
=
e
(
"jquery"
);
n
.
exports
=
function
(
a
){
function
n
(){
var
e
,
a
=
59
;
e
=
setInterval
(
function
(){
0
===
a
?(
i
.
text
(
"重发验证码"
).
removeClass
(
"disable"
),
clearInterval
(
e
)):
i
.
text
(
"重发验证码 ("
+
a
--+
"秒)"
)},
1
e3
)}
var
o
=
s
(
"#captcha"
),
t
=
s
(
"#btn-next"
),
i
=
s
(
"#captcha-tip"
),
r
=
s
(
"#phone-num"
).
val
(),
l
=
s
(
"#area-code"
).
val
().
replace
(
"+"
,
""
),
d
=
e
(
"js/passport/api"
),
c
=
e
(
"js/plugin/tip"
),
u
=
s
.
trim
,
p
=
c
.
show
,
h
=
a
?
"reg"
:
"back"
;
d
.
bindClearEvt
(),
o
.
bind
(
"input"
,
function
(){
""
!==
u
(
o
.
val
())?
t
.
removeClass
(
"disable"
):
t
.
addClass
(
"disable"
)}),
i
.
on
(
"touchstart"
,
function
(){
i
.
hasClass
(
"disable"
)
||
s
.
ajax
({
type
:
"POST"
,
url
:
"/passport/"
+
h
+
"/sendcode"
,
data
:{
phoneNum
:
r
,
areaCode
:
l
},
success
:
function
(
e
){
200
===
e
.
code
?(
i
.
text
(
"重发验证码 (60秒)"
).
addClass
(
"disable"
),
n
()):
p
(
e
.
message
)}})}),
t
.
on
(
"touchstart"
,
function
(){
t
.
hasClass
(
"disable"
)
||
s
.
ajax
({
type
:
"POST"
,
url
:
"/passport/"
+
h
+
"/verifycode"
,
data
:{
phoneNum
:
r
,
areaCode
:
l
,
code
:
u
(
o
.
val
()),
token
:
s
(
"#token"
).
val
()},
success
:
function
(
e
){
200
===
e
.
code
?
location
.
href
=
e
.
data
:
p
(
e
.
message
)}})}),
n
()}}),
define
(
"js/passport/register/password"
,[
"jquery"
],
function
(
e
,
a
,
n
){
var
s
=
e
(
"jquery"
),
o
=
s
(
"#pwd"
),
t
=
s
(
"#btn-sure"
),
i
=
e
(
"js/passport/api"
),
r
=
e
(
"js/plugin/tip"
),
l
=
s
.
trim
,
d
=
r
.
show
;
i
.
bindEyesEvt
({
status
:
"open"
}),
o
.
bind
(
"input"
,
function
(){
""
===
l
(
o
.
val
())?
t
.
addClass
(
"disable"
):
t
.
removeClass
(
"disable"
)}),
t
.
on
(
"touchstart"
,
function
(){
var
e
=
l
(
o
.
val
());
t
.
hasClass
(
"disable"
)
||
(
i
.
pwdValidate
(
e
)
===!
1
?
d
(
"密码6-20位,请重新输入"
):
s
.
ajax
({
type
:
"POST"
,
url
:
"/passport/reg/setpassword"
,
data
:{
password
:
e
,
phoneNum
:
s
(
"#phone-num"
).
val
(),
areaCode
:
s
(
"#area-code"
).
val
(),
token
:
s
(
"#token"
).
val
()},
success
:
function
(
e
){
200
===
e
.
code
?(
d
(
"注册成功"
),
setTimeout
(
function
(){
location
.
href
=
e
.
data
},
1
e3
)):
d
(
e
.
message
)}}))})}),
define
(
"js/passport/login/login"
,[
"jquery"
],
function
(
e
,
a
,
n
){
function
s
(){
p
&&
h
?
d
.
removeClass
(
"disable"
):
d
.
addClass
(
"disable"
)}
function
o
(){
c
.
show
(),
u
.
show
()}
function
t
(){
c
.
hide
(),
u
.
hide
()}
var
i
=
e
(
"jquery"
),
r
=
i
(
"#account"
),
l
=
i
(
"#pwd"
),
d
=
i
(
"#btn-login"
),
c
=
i
(
"#retrive-pwd-mask"
),
u
=
i
(
"#retrive-pwd-ways"
),
p
=!
1
,
h
=!
1
,
f
=
e
(
"js/passport/api"
),
g
=
e
(
"js/plugin/tip"
),
m
=
i
.
trim
,
v
=
g
.
show
;
f
.
bindEyesEvt
(),
f
.
bindClearEvt
(),
r
.
bind
(
"input"
,
function
(){
p
=
""
!==
m
(
r
.
val
())?
!
0
:
!
1
,
s
()}),
l
.
bind
(
"input"
,
function
(){
h
=
""
===
m
(
l
.
val
())?
!
1
:
!
0
,
s
()}),
d
.
on
(
"touchstart"
,
function
(){
var
e
=
m
(
r
.
val
()),
a
=
m
(
l
.
val
());
d
.
hasClass
(
"disable"
)
||
((
/^
[
0-9
]
+$/
.
test
(
e
)
||
f
.
emailRegx
.
test
(
e
))
&&
f
.
pwdValidate
(
a
)?
i
.
ajax
({
type
:
"POST"
,
url
:
"/passport/login/auth"
,
data
:{
account
:
e
,
password
:
a
},
success
:
function
(
e
){
200
===
e
.
code
?(
v
(
"登录成功"
),
setTimeout
(
function
(){
location
.
href
=
e
.
data
},
1
e3
)):
v
(
e
.
message
)},
error
:
function
(){
v
(
"网络断开连接啦~"
)}})
:
v
(
"账号或密码有错误,请重新输入"
))}),
i
(
"#forget-pwd"
).
on
(
"touchstart"
,
function
(){
o
()}),
c
.
on
(
"touchstart"
,
function
(){
t
()}),
i
(
"#cancel-retrive"
).
on
(
"touchstart"
,
function
(
e
){
e
.
preventDefault
(),
t
()}),
r
.
trigger
(
"input"
),
l
.
trigger
(
"input"
)}),
define
(
"js/passport/login/international"
,[
"jquery"
],
function
(
e
,
a
,
n
){
function
s
(){
c
&&
u
?
d
.
removeClass
(
"disable"
):
d
.
addClass
(
"disable"
)}
var
o
=
e
(
"jquery"
),
t
=
o
(
"#phone-num"
),
i
=
o
(
"#country-select"
),
r
=
o
(
"#area-code"
),
l
=
o
(
"#pwd"
),
d
=
o
(
"#btn-login"
),
c
=!
1
,
u
=!
1
,
p
=
e
(
"js/passport/api"
),
h
=
e
(
"js/plugin/tip"
),
f
=
o
.
trim
,
g
=
h
.
show
;
p
.
selectCssHack
(
i
),
p
.
bindEyesEvt
(),
p
.
bindClearEvt
(),
t
.
bind
(
"input"
,
function
(){
c
=
""
===
f
(
t
.
val
())?
!
1
:
!
0
,
s
()}),
l
.
bind
(
"input"
,
function
(){
var
e
=
f
(
l
.
val
());
u
=
""
===
e
?
!
1
:
!
0
,
s
()}),
i
.
change
(
function
(){
r
.
text
(
i
.
val
())}),
d
.
on
(
"touchstart"
,
function
(){
var
e
=
f
(
t
.
val
()),
a
=
i
.
val
(),
n
=
f
(
l
.
val
());
d
.
hasClass
(
"disable"
)
||
(
p
.
phoneRegx
[
a
].
test
(
e
)
&&
p
.
pwdValidate
(
n
)?
o
.
ajax
({
type
:
"POST"
,
url
:
"/passport/login/auth"
,
data
:{
areaCode
:
a
.
replace
(
"+"
,
""
),
account
:
e
,
password
:
n
},
success
:
function
(
e
){
200
===
e
.
code
?(
g
(
"登录成功"
),
setTimeout
(
function
(){
location
.
href
=
e
.
data
},
1
e3
)):
g
(
e
.
message
)},
error
:
function
(){
g
(
"网络断开连接啦~"
)}})
:
g
(
"账号或密码有错误,请重新输入"
))}),
t
.
trigger
(
"input"
),
l
.
trigger
(
"input"
)}),
define
(
"js/passport/back/mobile"
,[
"jquery"
],
function
(
e
,
a
,
n
){
var
s
=
e
(
"jquery"
),
o
=
s
(
"#phone-num"
),
t
=
s
(
"#country-select"
),
i
=
s
(
"#area-code"
),
r
=
s
(
"#btn-next"
),
l
=
e
(
"js/passport/api"
),
d
=
e
(
"js/plugin/tip"
),
c
=
s
.
trim
,
u
=
d
.
show
;
l
.
selectCssHack
(
s
(
"#country-select"
)),
l
.
bindClearEvt
(),
o
.
bind
(
"input"
,
function
(){
""
===
c
(
o
.
val
())?
r
.
addClass
(
"disable"
):
r
.
removeClass
(
"disable"
)}),
t
.
change
(
function
(){
i
.
text
(
t
.
val
())}),
r
.
on
(
"touchstart"
,
function
(){
var
e
=
c
(
o
.
val
()),
a
=
t
.
val
();
r
.
hasClass
(
"disable"
)
||
(
l
.
phoneRegx
[
a
].
test
(
e
)?
s
.
ajax
({
url
:
"/passport/back/sendcode"
,
type
:
"POST"
,
data
:{
areaCode
:
a
.
replace
(
"+"
,
""
),
phoneNum
:
e
},
success
:
function
(
e
){
200
===
e
.
code
?
location
.
href
=
e
.
data
:
u
(
e
.
message
)}}):
u
(
"手机号格式不正确,请重新输入"
))})}),
define
(
"js/passport/back/code"
,[
"jquery"
],
function
(
e
,
a
,
n
){
e
(
"js/passport/code"
)(
!
1
)}),
define
(
"js/passport/back/email"
,[
"jquery"
],
function
(
e
,
a
,
n
){
var
s
=
e
(
"jquery"
),
o
=
s
(
"#email"
),
t
=
s
(
"#btn-sure"
),
i
=
e
(
"js/passport/api"
),
r
=
e
(
"js/plugin/tip"
),
l
=
s
.
trim
,
d
=
r
.
show
;
i
.
bindClearEvt
(),
o
.
bind
(
"input"
,
function
(){
""
===
l
(
o
.
val
())?
t
.
addClass
(
"disable"
):
t
.
removeClass
(
"disable"
)}),
t
.
on
(
"touchstart"
,
function
(){
var
e
=
l
(
o
.
val
());
t
.
hasClass
(
"disable"
)
||
(
i
.
emailRegx
.
test
(
e
)?
s
.
ajax
({
url
:
"/passport/back/sendemail"
,
type
:
"POST"
,
data
:{
email
:
e
},
success
:
function
(
e
){
200
===
e
.
code
?
location
.
href
=
e
.
data
:
d
(
e
.
message
)}}):
d
(
"邮箱格式不正确,请重新输入"
))})}),
define
(
"js/passport/back/email-success"
,[
"jquery"
],
function
(
e
,
a
,
n
){
var
s
=
e
(
"jquery"
),
o
=
s
(
"#resend"
),
t
=
e
(
"js/plugin/tip"
),
i
=
t
.
show
;
o
.
on
(
"touchstart"
,
function
(
e
){
e
.
preventDefault
(),
s
.
ajax
({
url
:
o
.
data
(
"url"
),
type
:
"GET"
,
success
:
function
(
e
){
i
(
200
===
e
.
code
?
e
.
message
:
e
.
message
)}})})}),
define
(
"js/passport/back/new-password"
,[
"jquery"
],
function
(
e
,
a
,
n
){
var
s
=
e
(
"jquery"
),
o
=
s
(
"#pwd"
),
t
=
s
(
"#btn-ok"
),
i
=
e
(
"js/passport/api"
),
r
=
e
(
"js/plugin/tip"
),
l
=
s
.
trim
,
d
=
r
.
show
,
c
=
s
(
"#phone-num"
);
i
.
bindEyesEvt
({
status
:
"open"
}),
o
.
bind
(
"input"
,
function
(){
""
===
l
(
o
.
val
())?
t
.
addClass
(
"disable"
):
t
.
removeClass
(
"disable"
)}),
t
.
on
(
"touchstart"
,
function
(){
var
e
,
a
,
n
=
l
(
o
.
val
()),
r
=!
0
;
t
.
hasClass
(
"disable"
)
||
(
e
=
{
password
:
n
},
0
===
c
.
length
&&
(
r
=!
1
),
r
?(
s
.
extend
(
e
,{
phoneNum
:
c
.
val
(),
areaCode
:
s
(
"#areaCode"
).
val
(),
token
:
s
(
"#token"
).
val
()}),
a
=
"/passport/back/passwordByMobile"
):(
s
.
extend
(
e
,{
code
:
s
(
"#email-code"
).
val
()}),
a
=
"/passport/back/passwordByEmail"
),
i
.
pwdValidate
(
n
)?
s
.
ajax
({
type
:
"POST"
,
url
:
a
,
data
:
e
,
success
:
function
(
e
){
200
===
e
.
code
?(
d
(
"密码修改成功"
),
setTimeout
(
function
(){
location
.
href
=
e
.
data
},
1
e3
)):
d
(
e
.
message
)}}):
d
(
"密码6-20位,请重新输入"
))})}),
define
(
"js/product/entry"
,[
"jquery"
,
"swiper"
,
"hammer"
,
"lazyload"
,
"index"
],
function
(
e
,
a
,
n
){
e
(
"js/product/newsale/newarrival"
),
e
(
"js/product/newsale/discount"
),
e
(
"js/product/list"
),
e
(
"js/product/detail/detail"
)}),
define
(
"js/product/newsale/newarrival"
,[
"jquery"
,
"swiper"
,
"hammer"
,
"lazyload"
,
"index"
],
function
(
e
,
a
,
n
){
function
s
(
e
){
var
a
,
n
,
s
,
o
,
l
,
u
,
p
=
{};
if
(
!
d
){
if
(
e
){
for
(
n
in
T
)
T
.
hasOwnProperty
(
n
)
&&
(
T
[
n
].
reload
=!
0
);
switch
(
z
.
children
(
".active"
).
removeClass
(
"active"
),
E
.
addClass
(
"active"
),
e
.
type
){
case
"gender"
:
a
=
{
gender
:
e
.
id
};
break
;
case
"brand"
:
a
=
{
brand
:
e
.
id
};
break
;
case
"sort"
:
a
=
{
sort
:
e
.
id
};
break
;
case
"color"
:
a
=
{
color
:
e
.
id
};
break
;
case
"size"
:
a
=
{
size
:
e
.
id
};
break
;
case
"price"
:
a
=
{
price
:
e
.
id
};
break
;
case
"discount"
:
a
=
{
discount
:
e
.
id
};
break
;
case
"limit"
:
a
=
{
limit
:
e
.
id
};
break
;
case
"channel"
:
a
=
{
channel
:
e
.
id
};
break
;
case
"p_d"
:
a
=
{
p_d
:
e
.
id
}}
c
.
extend
(
C
,
a
)}
if
(
E
.
hasClass
(
"today"
)?(
o
=
"today"
,
l
=
1
):
E
.
hasClass
(
"week"
)?(
o
=
"week"
,
l
=
2
):
E
.
hasClass
(
"sale"
)
&&
(
o
=
"sale"
,
l
=
3
),
s
=
T
[
o
],
u
=
s
.
page
+
1
,
s
.
reload
)
u
=
1
;
else
if
(
s
.
end
)
return
;
c
.
extend
(
p
,
C
,{
dayLimit
:
l
,
page
:
u
}),
d
=!
0
,
m
.
showLoadingMask
(),
c
.
ajax
({
type
:
"GET"
,
url
:
"/product/newsale/selectNewSale"
,
data
:
p
,
success
:
function
(
e
){
var
a
,
n
;
switch
(
o
){
case
"today"
:
a
=
t
;
break
;
case
"week"
:
a
=
i
;
break
;
case
"sale"
:
a
=
r
}
" "
===
e
?(
s
.
end
=!
0
,
s
.
reload
&&
a
.
html
(
b
)):
s
.
reload
?(
a
.
html
(
e
),
h
(
a
.
find
(
".lazy"
))):(
n
=
a
.
find
(
".good-info"
).
length
,
a
.
append
(
e
),
h
(
a
.
find
(
".good-info:gt("
+
(
n
-
1
)
+
") .lazy"
))),
s
.
reload
=!
1
,
s
.
page
=
u
,
d
=!
1
,
m
.
hideLoadingMask
(),
window
.
rePosFooter
()},
error
:
function
(){
f
.
show
(
"网络断开连接了~"
),
d
=!
1
,
m
.
hideLoadingMask
()}})}}
var
o
,
t
,
i
,
r
,
l
,
d
,
c
=
e
(
"jquery"
),
u
=
e
(
"swiper"
),
p
=
e
(
"hammer"
),
h
=
e
(
"lazyload"
),
f
=
e
(
"js/plugin/tip"
),
g
=
e
(
"js/plugin/filter"
),
m
=
e
(
"js/plugin/loading"
),
v
=
c
(
"#goods-container"
),
w
=
v
.
children
(),
t
=
c
(
w
.
get
(
0
)),
i
=
c
(
w
.
get
(
1
)).
addClass
(
"hide"
),
r
=
c
(
w
.
get
(
2
)).
addClass
(
"hide"
),
y
=
c
(
window
).
height
(),
b
=
'<p class="no-result">未找到相关搜索结果</p>'
,
C
=
{
gender
:
c
(
"#gender"
).
val
(),
brand
:
c
(
"#brand"
).
val
(),
sort
:
c
(
"#sort"
).
val
(),
msort
:
c
(
"#msort"
).
val
(),
misort
:
c
(
"#misort"
).
val
(),
color
:
c
(
"#color"
).
val
(),
size
:
c
(
"#size"
).
val
(),
price
:
c
(
"#price"
).
val
(),
discount
:
c
(
"#discount"
).
val
(),
limit
:
c
(
"#limit"
).
val
(),
channel
:
c
(
"#channel"
).
val
(),
p_d
:
c
(
"#p_d"
).
val
(),
dayLimit
:
1
,
style
:
c
(
"#style"
).
val
()},
j
=
c
.
extend
({},
C
),
x
=
new
Date
,
k
=
x
.
getMonth
()
+
1
,
q
=
x
.
getDate
(),
z
=
c
(
"#list-nav"
),
T
=
{
today
:{
reload
:
!
0
,
page
:
0
,
end
:
!
1
},
week
:{
reload
:
!
0
,
page
:
0
,
end
:
!
1
},
sale
:{
reload
:
!
0
,
page
:
0
,
end
:
!
1
}},
E
=
z
.
find
(
".active"
);
e
(
"js/product/suspend-cart"
),
c
(
"#today a"
).
text
(
k
+
"月"
+
q
+
"号"
),
c
(
".swiper-container .swiper-slide"
).
length
>
1
&&
(
o
=
new
u
(
".swiper-container"
,{
lazyLoading
:
!
0
,
lazyLoadingInPrevNext
:
!
0
,
loop
:
!
0
,
autoplay
:
3
e3
,
autoplayDisableOnInteraction
:
!
0
,
paginationClickable
:
!
0
,
pagination
:
".banner-top .pagination-inner"
})),
c
.
ajax
({
type
:
"GET"
,
url
:
"/product/newsale/filter"
,
data
:
C
,
success
:
function
(
e
){
v
.
append
(
e
),
g
.
initFilter
({
fCbFn
:
s
,
hCbFn
:
function
(){
E
.
addClass
(
"active"
),
E
.
siblings
(
".filter"
).
removeClass
(
"active"
)}})}}),
h
(
c
(
".lazy"
)),
l
=
new
p
(
z
[
0
]),
l
.
on
(
"tap"
,
function
(
e
){
var
a
,
n
,
o
,
l
=
c
(
e
.
target
).
closest
(
"li"
);
if
(
e
.
preventDefault
(),
l
.
hasClass
(
"filter"
))
l
.
hasClass
(
"active"
)?(
g
.
hideFilter
(),
E
.
addClass
(
"active"
),
l
.
removeClass
(
"active"
)):(
E
=
l
.
siblings
(
".active"
),
E
.
removeClass
(
"active"
),
l
.
addClass
(
"active"
),
g
.
showFilter
());
else
{
if
(
l
.
hasClass
(
"today"
)?
n
=
"today"
:
l
.
hasClass
(
"week"
)?
n
=
"week"
:
l
.
hasClass
(
"sale"
)
&&
(
n
=
"sale"
),
a
=
T
[
n
],
!
l
.
hasClass
(
"active"
)){
if
(
o
=
l
.
siblings
(
".active"
),
E
=
l
,
o
.
hasClass
(
"filter"
))
g
.
hideFilter
();
else
{
switch
(
v
.
children
(
".container:not(.hide)"
).
addClass
(
"hide"
),
n
){
case
"today"
:
t
.
removeClass
(
"hide"
);
break
;
case
"week"
:
i
.
removeClass
(
"hide"
);
break
;
case
"sale"
:
r
.
removeClass
(
"hide"
)}
g
.
resetFilter
(),
C
=
c
.
extend
({},
j
)}
o
.
removeClass
(
"active"
),
l
.
addClass
(
"active"
)}
a
.
reload
&&
s
()}
e
.
srcEvent
.
stopPropagation
()}),
c
(
window
).
scroll
(
function
(){
c
(
window
).
scrollTop
()
+
y
>
c
(
document
).
height
()
-
.
25
*
v
.
height
()
-
50
&&
void
0
!==
E
&&
s
()}),
s
()}),
define
(
"js/plugin/filter"
,[
"jquery"
,
"hammer"
],
function
(
e
,
a
,
n
){
function
s
(){
u
.
addClass
(
"hide"
)}
function
o
(){
u
.
removeClass
(
"hide"
)}
function
t
(){
var
e
=
g
(
".filter-body .sub-item"
);
e
.
on
(
"touchstart"
,
function
(){
e
.
removeClass
(
"highlight"
),
g
(
this
).
addClass
(
"highlight"
)}).
on
(
"touchend touchcancel"
,
function
(){
g
(
this
).
removeClass
(
"highlight"
)})}
function
i
(
e
){
e
.
hasClass
(
"active"
)
||
(
e
.
siblings
(
".active"
).
removeClass
(
"active"
),
e
.
addClass
(
"active"
))}
function
r
(
e
){
var
a
,
n
,
s
=
e
.
closest
(
".sub-classify"
),
o
=
s
.
siblings
(
".shower"
);
return
e
.
hasClass
(
"chosed"
)?
s
:(
s
.
children
(
".chosed"
).
removeClass
(
"chosed"
),
e
.
addClass
(
"chosed"
),
a
=
g
.
trim
(
e
.
html
()),
n
=
g
.
trim
(
o
.
html
()),
o
.
html
(
n
.
substring
(
0
,
n
.
indexOf
(
"</span>"
)
+
7
)
+
a
.
substring
(
0
,
a
.
indexOf
(
"<i"
))),
0
===
e
.
index
()?
o
.
addClass
(
"default"
):
o
.
removeClass
(
"default"
),
s
)}
function
l
(
e
){
var
a
,
n
=
e
.
data
(
"id"
);
a
=
r
(
e
),
p
&&
p
({
type
:
a
.
data
(
"type"
),
id
:
n
}),
s
()}
function
d
(
e
){
var
a
;
p
=
e
.
fCbFn
,
h
=
e
.
hCbFn
,
f
=
e
.
missStatus
,
t
(),
u
=
g
(
".filter-mask"
),
a
=
new
m
(
u
[
0
]),
a
.
on
(
"tap"
,
function
(
e
){
var
a
,
n
=
g
(
e
.
target
);
e
.
preventDefault
(),
n
.
closest
(
".filter-body"
).
length
>
0
?(
a
=
n
.
closest
(
".sub-item"
),
a
.
length
>
0
?(
a
=
n
.
closest
(
"li"
),
l
(
a
)):(
a
=
n
.
closest
(
".classify-item"
),
e
.
srcEvent
.
stopPropagation
(),
i
(
a
))):(
s
(),
h
&&
h
())})}
function
c
(){
"undefined"
!=
typeof
u
&&
(
g
(
".sub-classify"
).
each
(
function
(){
r
(
g
(
this
).
children
(
":first-child"
))}),
i
(
g
(
".classify > :first-child"
)))}
var
u
,
p
,
h
,
f
,
g
=
e
(
"jquery"
),
m
=
e
(
"hammer"
);
a
.
initFilter
=
d
,
a
.
showFilter
=
o
,
a
.
hideFilter
=
s
,
a
.
resetFilter
=
c
}),
define
(
"js/product/suspend-cart"
,[
"jquery"
],
function
(
e
,
a
,
n
){
var
s
=
e
(
"jquery"
),
o
=
s
(
"#suspend-cart"
);
s
.
ajax
({
type
:
"GET"
,
url
:
"/cart/index/count"
,
success
:
function
(
e
){
200
===
e
.
code
&&
o
.
find
(
".cart-count"
).
html
(
e
.
data
.
cart_goods_count
).
removeClass
(
"hide"
)}})}),
define
(
"js/product/newsale/discount"
,[
"jquery"
,
"swiper"
,
"hammer"
,
"lazyload"
,
"index"
],
function
(
e
,
a
,
n
){
function
s
(
e
){
var
a
,
n
,
s
,
o
,
t
,
l
=
{};
if
(
!
i
){
if
(
e
){
for
(
n
in
x
)
x
.
hasOwnProperty
(
n
)
&&
(
x
[
n
].
reload
=!
0
);
switch
(
j
.
children
(
".active"
).
removeClass
(
"active"
),
k
.
addClass
(
"active"
),
e
.
type
){
case
"gender"
:
a
=
{
gender
:
e
.
id
};
break
;
case
"brand"
:
a
=
{
brand
:
e
.
id
};
break
;
case
"sort"
:
a
=
{
sort
:
e
.
id
};
break
;
case
"color"
:
a
=
{
color
:
e
.
id
};
break
;
case
"size"
:
a
=
{
size
:
e
.
id
};
break
;
case
"price"
:
a
=
{
price
:
e
.
id
};
break
;
case
"discount"
:
a
=
{
discount
:
e
.
id
}}
r
.
extend
(
C
,
a
)}
if
(
k
.
hasClass
(
"new"
)?
o
=
"newest"
:
k
.
hasClass
(
"price"
)?
o
=
"price"
:
k
.
hasClass
(
"discount"
)
&&
(
o
=
"discount"
),
s
=
x
[
o
],
t
=
s
.
page
+
1
,
s
.
reload
)
t
=
1
;
else
if
(
s
.
end
)
return
;
r
.
extend
(
l
,
C
,{
type
:
o
,
order
:
s
.
order
,
page
:
t
}),
i
=!
0
,
h
.
showLoadingMask
(),
r
.
ajax
({
type
:
"GET"
,
url
:
"/product/newsale/selectNewSale"
,
data
:
l
,
success
:
function
(
e
){
var
a
,
n
;
switch
(
o
){
case
"newest"
:
a
=
m
;
break
;
case
"price"
:
a
=
v
;
break
;
case
"discount"
:
a
=
w
}
" "
===
e
?(
s
.
end
=!
0
,
s
.
reload
&&
a
.
html
(
b
)):
s
.
reload
?(
a
.
html
(
e
),
c
(
a
.
find
(
".lazy"
))):(
n
=
a
.
find
(
".good-info"
).
length
,
a
.
append
(
e
),
c
(
a
.
find
(
".good-info:gt("
+
(
n
-
1
)
+
") .lazy"
))),
s
.
reload
=!
1
,
s
.
page
=
t
,
i
=!
1
,
h
.
hideLoadingMask
(),
window
.
rePosFooter
()},
error
:
function
(){
u
.
show
(
"网络断开连接了~"
),
i
=!
1
,
h
.
hideLoadingMask
()}})}}
var
o
,
t
,
i
,
r
=
e
(
"jquery"
),
l
=
e
(
"swiper"
),
d
=
e
(
"hammer"
),
c
=
e
(
"lazyload"
),
u
=
e
(
"js/plugin/tip"
),
p
=
e
(
"js/plugin/filter"
),
h
=
e
(
"js/plugin/loading"
),
f
=
r
(
"#goods-container"
),
g
=
f
.
children
(),
m
=
r
(
g
.
get
(
0
)),
v
=
r
(
g
.
get
(
1
)),
w
=
r
(
g
.
get
(
2
)),
y
=
r
(
window
).
height
(),
b
=
'<p class="no-result">未找到相关搜索结果</p>'
,
C
=
{
gender
:
r
(
"#gender"
).
val
(),
brand
:
r
(
"#brand"
).
val
(),
sort
:
r
(
"#sort"
).
val
(),
msort
:
r
(
"#msort"
).
val
(),
misort
:
r
(
"#misort"
).
val
(),
color
:
r
(
"#color"
).
val
(),
size
:
r
(
"#size"
).
val
(),
price
:
r
(
"#price"
).
val
(),
discount
:
r
(
"#discount"
).
val
(),
style
:
r
(
"#style"
).
val
()},
j
=
r
(
"#list-nav"
),
x
=
{
newest
:{
order
:
1
,
reload
:
!
0
,
page
:
0
,
end
:
!
1
},
price
:{
order
:
0
,
reload
:
!
0
,
page
:
0
,
end
:
!
1
},
discount
:{
order
:
0
,
reload
:
!
0
,
page
:
0
,
end
:
!
1
}},
k
=
j
.
find
(
".active"
);
e
(
"js/product/suspend-cart"
),
r
(
".swiper-container .swiper-slide"
).
length
>
1
&&
(
o
=
new
l
(
".swiper-container"
,{
lazyLoading
:
!
0
,
lazyLoadingInPrevNext
:
!
0
,
loop
:
!
0
,
autoplay
:
3
e3
,
autoplayDisableOnInteraction
:
!
0
,
paginationClickable
:
!
0
,
pagination
:
".banner-top .pagination-inner"
})),
r
.
ajax
({
type
:
"GET"
,
url
:
"/product/newsale/filter"
,
data
:
C
,
success
:
function
(
e
){
f
.
append
(
e
),
p
.
initFilter
({
fCbFn
:
s
,
hCbFn
:
function
(){
k
.
addClass
(
"active"
),
k
.
siblings
(
".filter"
).
removeClass
(
"active"
)},
missStatus
:
!
0
})}}),
c
(
r
(
".lazy"
)),
t
=
new
d
(
j
[
0
]),
t
.
on
(
"tap"
,
function
(
e
){
var
a
,
n
,
o
,
t
=
r
(
e
.
target
).
closest
(
"li"
);
if
(
e
.
preventDefault
(),
"undefined"
!=
typeof
t
&&
0
!==
t
.
length
){
if
(
t
.
hasClass
(
"filter"
))
t
.
hasClass
(
"active"
)?(
p
.
hideFilter
(),
k
.
addClass
(
"active"
),
t
.
removeClass
(
"active"
)):(
k
=
t
.
siblings
(
".active"
),
k
.
removeClass
(
"active"
),
t
.
addClass
(
"active"
),
p
.
showFilter
());
else
{
if
(
t
.
hasClass
(
"new"
)?
n
=
"newest"
:
t
.
hasClass
(
"price"
)?
n
=
"price"
:
t
.
hasClass
(
"discount"
)
&&
(
n
=
"discount"
),
a
=
x
[
n
],
t
.
hasClass
(
"active"
)){
if
(
t
.
hasClass
(
"new"
))
return
;(
t
.
hasClass
(
"price"
)
||
t
.
hasClass
(
"discount"
))
&&
(
t
.
find
(
".icon > .iconfont"
).
toggleClass
(
"cur"
),
k
=
t
,
a
.
reload
=!
0
,
a
.
order
=
0
===
a
.
order
?
1
:
0
)}
else
{
if
(
o
=
t
.
siblings
(
".active"
),
k
=
t
,
o
.
hasClass
(
"filter"
))
p
.
hideFilter
();
else
switch
(
f
.
children
(
".container:not(.hide)"
).
addClass
(
"hide"
),
n
){
case
"newest"
:
m
.
removeClass
(
"hide"
);
break
;
case
"price"
:
v
.
removeClass
(
"hide"
);
break
;
case
"discount"
:
w
.
removeClass
(
"hide"
)}
o
.
removeClass
(
"active"
),
t
.
addClass
(
"active"
)}
a
.
reload
&&
s
()}
e
.
srcEvent
.
stopPropagation
()}}),
r
(
window
).
scroll
(
function
(){
r
(
window
).
scrollTop
()
+
y
>
r
(
document
).
height
()
-
.
25
*
f
.
height
()
-
50
&&
void
0
!==
k
&&
s
()}),
s
()}),
define
(
"js/product/list"
,[
"jquery"
,
"hammer"
,
"lazyload"
],
function
(
e
,
a
,
n
){
function
s
(
e
){
var
a
,
n
,
s
,
t
,
i
,
r
=
{};
if
(
!
o
){
if
(
e
){
for
(
n
in
E
)
E
.
hasOwnProperty
(
n
)
&&
(
E
[
n
].
reload
=!
0
);
switch
(
T
.
children
(
".active"
).
removeClass
(
"active"
),
S
.
addClass
(
"active"
),
e
.
type
){
case
"gender"
:
a
=
{
gender
:
e
.
id
};
break
;
case
"brand"
:
a
=
{
brand
:
e
.
id
};
break
;
case
"sort"
:
a
=
{
sort
:
e
.
id
};
break
;
case
"color"
:
a
=
{
color
:
e
.
id
};
break
;
case
"size"
:
a
=
{
size
:
e
.
id
};
break
;
case
"price"
:
a
=
{
price
:
e
.
id
};
break
;
case
"discount"
:
a
=
{
discount
:
e
.
id
}}
d
.
extend
(
z
,
a
)}
if
(
S
.
hasClass
(
"new"
)?
t
=
"newest"
:
S
.
hasClass
(
"price"
)?
t
=
"price"
:
S
.
hasClass
(
"discount"
)
&&
(
t
=
"discount"
),
s
=
E
[
t
],
i
=
s
.
page
+
1
,
s
.
reload
)
i
=
1
;
else
if
(
s
.
end
)
return
;
d
.
extend
(
r
,
z
,{
type
:
t
,
order
:
s
.
order
,
page
:
i
}),
o
=!
0
,
v
.
showLoadingMask
(),
d
.
ajax
({
type
:
"GET"
,
url
:
"/index/search/search"
,
data
:
r
,
success
:
function
(
e
){
var
a
,
n
,
r
=
'<p class="no-result">未找到相关搜索结果</p>'
;
switch
(
t
){
case
"newest"
:
n
=
y
;
break
;
case
"price"
:
n
=
b
;
break
;
case
"discount"
:
n
=
C
}
" "
===
e
?(
s
.
end
=!
0
,
s
.
reload
&&
n
.
html
(
r
)):
s
.
reload
?(
n
.
html
(
e
),
u
(
n
.
find
(
".lazy"
))):(
a
=
n
.
find
(
".good-info"
).
length
,
n
.
append
(
e
),
u
(
n
.
find
(
".good-info:gt("
+
(
a
-
1
)
+
") .lazy"
))),
s
.
reload
=!
1
,
s
.
page
=
i
,
o
=!
1
,
v
.
hideLoadingMask
(),
window
.
rePosFooter
()}})}}
var
o
,
t
,
i
,
r
,
l
,
d
=
e
(
"jquery"
),
c
=
e
(
"hammer"
),
u
=
e
(
"lazyload"
),
p
=
d
(
"#brand-header"
),
h
=
d
(
"#intro-box"
),
f
=
e
(
"js/plugin/filter"
),
g
=
e
(
"js/index/write-search"
),
m
=
e
(
"js/plugin/tip"
),
v
=
e
(
"js/plugin/loading"
),
w
=
d
(
"#goods-container"
),
y
=
w
.
children
(
".new-goods"
),
b
=
w
.
children
(
".price-goods"
),
C
=
w
.
children
(
".discount-goods"
),
j
=
d
(
window
).
height
(),
x
=
d
(
"#search-input input"
),
k
=
d
(
".search-icon"
),
q
=
d
(
"#search-input .clear-input"
),
z
=
{
gender
:
d
(
"#gender"
).
val
(),
brand
:
d
(
"#brand"
).
val
(),
sort
:
d
(
"#sort"
).
val
(),
msort
:
d
(
"#msort"
).
val
(),
misort
:
d
(
"#misort"
).
val
(),
color
:
d
(
"#color"
).
val
(),
size
:
d
(
"#size"
).
val
(),
price
:
d
(
"#price"
).
val
(),
discount
:
d
(
"#discount"
).
val
(),
query
:
d
(
"#query"
).
val
(),
style
:
d
(
"#style"
).
val
()},
T
=
d
(
"#list-nav"
),
E
=
{
newest
:{
order
:
1
,
reload
:
!
0
,
page
:
0
,
end
:
!
1
},
price
:{
order
:
0
,
reload
:
!
0
,
page
:
0
,
end
:
!
1
},
discount
:{
order
:
0
,
reload
:
!
0
,
page
:
0
,
end
:
!
1
}},
S
=
T
.
find
(
".active"
);
x
.
on
(
"input"
,
function
(){
""
===
x
.
val
()?(
k
.
css
(
"color"
,
"#b2b2b2"
),
q
.
addClass
(
"hide"
)):(
k
.
css
(
"color"
,
"#666"
),
q
.
removeClass
(
"hide"
))}),
q
.
on
(
"touchend"
,
function
(){
x
.
val
(
""
).
trigger
(
"input"
)}),
d
(
"#search"
).
on
(
"touchend"
,
function
(){
return
d
(
this
).
closest
(
"form"
).
submit
(),
!
1
}),
e
(
"js/product/suspend-cart"
),
d
.
ajax
({
type
:
"GET"
,
url
:
"/search/filter"
,
data
:
z
,
success
:
function
(
e
){
w
.
append
(
e
),
f
.
initFilter
({
fCbFn
:
s
,
hCbFn
:
function
(){
S
.
addClass
(
"active"
),
S
.
siblings
(
".filter"
).
removeClass
(
"active"
)}})}}),
u
(
d
(
".lazy"
)),
g
.
bindWirteLocal
(
d
(
"#search-form"
)),
t
=
new
c
(
T
[
0
]),
t
.
on
(
"tap"
,
function
(
e
){
var
a
,
n
,
o
,
t
=
d
(
e
.
target
).
closest
(
"li"
);
if
(
t
.
hasClass
(
"filter"
))
t
.
hasClass
(
"active"
)?(
f
.
hideFilter
(),
S
.
addClass
(
"active"
),
t
.
removeClass
(
"active"
)):(
S
=
t
.
siblings
(
".active"
),
S
.
removeClass
(
"active"
),
t
.
addClass
(
"active"
),
f
.
showFilter
());
else
{
if
(
t
.
hasClass
(
"new"
)?
n
=
"newest"
:
t
.
hasClass
(
"price"
)?
n
=
"price"
:
t
.
hasClass
(
"discount"
)
&&
(
n
=
"discount"
),
a
=
E
[
n
],
t
.
hasClass
(
"active"
)){
if
(
t
.
hasClass
(
"new"
))
return
;(
t
.
hasClass
(
"price"
)
||
t
.
hasClass
(
"discount"
))
&&
(
t
.
find
(
".icon > .iconfont"
).
toggleClass
(
"cur"
),
S
=
t
,
a
.
reload
=!
0
,
a
.
order
=
0
===
a
.
order
?
1
:
0
)}
else
{
if
(
o
=
t
.
siblings
(
".active"
),
S
=
t
,
o
.
hasClass
(
"filter"
))
f
.
hideFilter
();
else
switch
(
w
.
children
(
".container:not(.hide)"
).
addClass
(
"hide"
),
n
){
case
"newest"
:
y
.
removeClass
(
"hide"
);
break
;
case
"price"
:
b
.
removeClass
(
"hide"
);
break
;
case
"discount"
:
C
.
removeClass
(
"hide"
)}
o
.
removeClass
(
"active"
),
t
.
addClass
(
"active"
)}
a
.
reload
&&
s
()}}),
d
(
window
).
scroll
(
function
(){
d
(
window
).
scrollTop
()
+
j
>
d
(
document
).
height
()
-
.
25
*
w
.
height
()
&&
s
()}),
p
.
length
>
0
&&
(
i
=
new
c
(
p
.
children
(
".btn-intro"
)[
0
]),
i
.
on
(
"tap"
,
function
(){
h
.
removeClass
(
"hide"
),
d
(
"body"
).
addClass
(
"overflow-hidden"
)}),
r
=
new
c
(
document
.
getElementById
(
"intro-box"
)),
r
.
on
(
"tap"
,
function
(
e
){
var
a
=
d
(
e
.
target
);
e
.
srcEvent
.
preventDefault
(),(
0
===
a
.
closest
(
"#brand-intro"
).
length
||
a
.
hasClass
(
"close-intro"
))
&&
(
h
.
addClass
(
"hide"
),
d
(
"body"
).
removeClass
(
"overflow-hidden"
))}),
l
=
new
c
(
p
.
children
(
".btn-col"
)[
0
]),
l
.
on
(
"tap"
,
function
(){
var
e
,
a
=
d
(
this
),
n
=
p
.
data
(
"id"
);
e
=
a
.
hasClass
(
"coled"
)?
"cancel"
:
"ok"
,
d
.
ajax
({
type
:
"POST"
,
url
:
"/product/opt/favoriteBrand"
,
data
:{
id
:
n
,
opt
:
e
},
success
:
function
(
e
){
200
===
e
.
code
?
a
.
toggleClass
(
"coled"
):
400
===
e
.
code
?
location
.
href
=
e
.
data
:
m
.
show
(
e
.
message
)},
error
:
function
(){
m
.
show
(
"网络断开连接了~"
)}})})),
s
()}),
define
(
"js/product/detail/detail"
,[
"jquery"
,
"swiper"
,
"lazyload"
,
"index"
],
function
(
e
,
a
,
n
){
var
s
,
o
=
e
(
"jquery"
),
t
=
e
(
"swiper"
),
i
=
e
(
"lazyload"
);
i
(
o
(
"img.lazy"
)),
s
=
new
t
(
".banner-swiper"
,{
lazyLoading
:
!
0
,
lazyLoadingInPrevNext
:
!
0
,
loop
:
!
0
,
paginationClickable
:
!
0
,
pagination
:
".swiper-pagination"
,
nextButton
:
".swiper-button-next"
,
prevButton
:
".swiper-button-prev"
})});
\ No newline at end of file
define
(
"index"
,[
"jquery"
,
"hammer"
,
"swiper"
,
"lazyload"
,
"mlellipsis"
,
"iscroll-probe"
,
"index"
],
function
(
e
,
a
,
n
){
var
s
;
e
(
"js/common"
),
e
(
"js/category/entry"
),
e
(
"js/guang/entry"
),
e
(
"js/home/entry"
),
e
(
"js/index/entry"
),
e
(
"js/passport/entry"
),
e
(
"js/product/entry"
),
n
.
exports
=
s
}),
define
(
"js/common"
,[
"jquery"
],
function
(
e
,
a
,
n
){
function
s
(
e
){
var
a
,
n
,
s
=
document
.
cookie
;
return
document
.
cookie
&&
""
!==
document
.
cookie
&&
(
n
=
s
.
indexOf
(
e
+
"="
),
n
>-
1
&&
(
n
+=
e
.
length
+
1
,
a
=
decodeURIComponent
(
d
.
trim
(
s
.
substring
(
n
,
s
.
indexOf
(
";"
,
n
)))))),
a
}
function
o
(
e
,
a
,
n
){
var
s
,
o
,
t
,
i
,
r
=
""
;
"undefined"
!=
typeof
a
&&
(
n
=
n
||
{},
null
===
a
&&
(
a
=
""
,
n
.
expires
=-
1
),
n
.
expires
&&
(
"number"
==
typeof
n
.
expires
||
n
.
expires
.
toUTCString
)
&&
(
"number"
==
typeof
n
.
expires
?(
i
=
new
Date
,
i
.
setTime
(
i
.
getTime
()
+
24
*
n
.
expires
*
60
*
60
*
1
e3
)):
i
=
n
.
expires
,
r
=
"; expires="
+
i
.
toUTCString
()),
s
=
n
.
path
?
"; path="
+
n
.
path
:
""
,
o
=
n
.
domain
?
"; domain="
+
n
.
domain
:
""
,
t
=
n
.
secure
?
"; secure"
:
""
,
document
.
cookie
=
[
e
,
"="
,
encodeURIComponent
(
a
),
r
,
s
,
o
,
t
].
join
(
""
))}
function
t
(){
var
e
,
a
=
s
(
"_UID"
);
return
"undefined"
==
typeof
a
?
0
:(
e
=
a
.
split
(
"::"
),
"undefined"
==
typeof
e
||
e
.
length
<
4
?
0
:
e
)}
function
i
(){
var
e
=
t
();
return
0
===
e
?
0
:
e
[
1
]}
function
r
(){
var
e
=
s
(
"_g"
);
return
"undefined"
==
typeof
e
?
""
:
JSON
.
parse
(
e
).
k
}
function
l
(){
0
!==
c
.
length
&&
(
d
(
"body"
).
height
()
<=
d
(
window
).
height
()?
c
.
addClass
(
"bottom"
):
c
.
removeClass
(
"bottom"
))}
var
d
=
e
(
"jquery"
),
c
=
d
(
"#yoho-footer"
);
!
function
(){
var
e
=
c
.
children
(
".op-row"
),
a
=
t
();
d
(
"body"
).
height
()
<=
d
(
window
).
height
()
&&
c
.
addClass
(
"bottom"
),
0
===
a
?
e
.
prepend
(
'<a href="/signin.html?refer='
+
location
.
href
+
'">登录</a><span class="sep-line">|</span><a href="/reg.html">注册</a>'
):
e
.
prepend
(
'Hi,<a class="user-name" href="/home?tmp='
+
Math
.
random
()
+
'">'
+
a
[
0
]
+
'</a><a href="/passport/signout/index?token='
+
a
[
3
]
+
'">退出</a>'
),
e
.
find
(
".back-to-top"
).
on
(
"touchend"
,
function
(){
return
d
(
window
).
scrollTop
(
0
),
!
1
}),
c
.
removeClass
(
"hide"
)}(),
function
(){
var
e
=
i
();
e
=
0
===
e
?
""
:
e
,
window
.
_ozuid
=
e
,
window
.
_yas
&&
window
.
_yas
(
1
*
new
Date
,
"1.0.8"
,
"yohobuy_m"
,
e
,
""
)}(),
window
.
cookie
=
s
,
window
.
setCookie
=
o
,
window
.
getUser
=
t
,
window
.
getUid
=
i
,
window
.
getShoppingKey
=
r
,
window
.
rePosFooter
=
l
}),
define
(
"js/category/entry"
,[
"jquery"
,
"hammer"
,
"swiper"
,
"lazyload"
,
"index"
],
function
(
e
,
a
,
n
){
e
(
"js/category/index"
),
e
(
"js/category/brand"
)}),
define
(
"js/category/index"
,[
"jquery"
,
"hammer"
],
function
(
e
,
a
,
n
){
var
s
,
o
,
t
=
e
(
"jquery"
),
i
=
e
(
"hammer"
),
r
=
t
(
".category-nav"
),
l
=
t
(
".category-container"
),
d
=
l
.
children
(
".content"
),
c
=
t
(
".sub-level li"
),
u
=
d
.
not
(
".hide"
);
!
function
(){
var
e
=
t
(
".yoho-header"
),
a
=
t
(
"#search-input"
),
n
=
t
(
window
).
height
()
-
e
.
outerHeight
()
-
a
.
outerHeight
()
-
r
.
outerHeight
();
l
.
css
(
"min-height"
,
n
),
d
.
height
(
n
)}(),
t
(
"#search-input"
).
focus
(
function
(){
t
(
this
).
blur
()}),
s
=
new
i
(
r
[
0
]),
s
.
on
(
"tap"
,
function
(
e
){
var
a
=
t
(
e
.
target
).
closest
(
"li"
),
n
=
a
.
index
();
a
.
hasClass
(
"focus"
)
||
(
r
.
find
(
"li.focus"
).
removeClass
(
"focus"
),
a
.
addClass
(
"focus"
),
u
.
addClass
(
"hide"
),
u
=
d
.
eq
(
n
).
removeClass
(
"hide"
))}),
o
=
new
i
(
l
[
0
]),
o
.
on
(
"tap"
,
function
(
e
){
var
a
,
n
,
s
,
o
=
t
(
e
.
target
);
if
(
n
=
o
.
closest
(
".p-level-item"
),
n
.
length
>
0
){
if
(
s
=
n
.
index
(),
a
=
o
.
closest
(
".content"
).
find
(
".sub-level"
),
o
.
hasClass
(
"focus"
))
return
;
o
.
closest
(
".primary-level"
).
children
(
".focus"
).
removeClass
(
"focus"
),
o
.
addClass
(
"focus"
),
a
.
not
(
".hide"
).
addClass
(
"hide"
),
a
.
eq
(
s
).
removeClass
(
"hide"
)}}),
c
.
on
(
"touchstart"
,
function
(){
c
.
removeClass
(
"highlight"
),
t
(
this
).
addClass
(
"highlight"
)}).
on
(
"touchend touchcancel"
,
function
(){
t
(
this
).
removeClass
(
"highlight"
)})}),
define
(
"js/category/brand"
,[
"jquery"
,
"hammer"
,
"swiper"
,
"lazyload"
,
"index"
],
function
(
e
,
a
,
n
){
function
s
(){
var
e
=
u
(
".brand-list"
).
find
(
"p"
);
e
.
on
(
"touchstart"
,
function
(){
e
.
css
(
"background"
,
"#fff"
),
u
(
this
).
css
(
"background"
,
"#eee"
)}).
on
(
"touchend touchcancel"
,
function
(){
u
(
this
).
css
(
"background"
,
"#fff"
)})}
function
o
(){
var
e
=
(
d
.
val
()
+
""
).
toLowerCase
(),
a
=
{},
n
=
0
,
o
=
""
;
""
!==
e
&&
(
u
.
each
(
l
,
function
(
n
,
s
){
u
.
isArray
(
s
)
&&
u
.
each
(
s
,
function
(
s
,
o
){
o
.
name
.
toLowerCase
().
indexOf
(
e
)
>-
1
&&
(
a
[
n
]
=
a
[
n
]
||
[],
a
[
n
].
push
(
o
))})}),
u
.
each
(
a
,
function
(
e
,
a
){
var
s
=
[
'<div class="brand-list bar-'
,
n
,
'">'
];
n
++
,
s
.
push
(
'<div class="title-bar"><h2>'
),
s
.
push
(
e
),
s
.
push
(
"</h2></div>"
),
u
.
each
(
a
,
function
(
e
,
a
){
s
.
push
(
'<p><a href="'
+
a
.
url
+
'">'
+
a
.
name
),
a
.
isNew
&&
s
.
push
(
'<i class="icon-hot">HOT</i>'
),
a
.
isHot
&&
s
.
push
(
'<i class="icon-new">NEW</i>'
),
s
.
push
(
"</a></p>"
)}),
s
.
push
(
"</div>"
),
o
+=
s
.
join
(
""
)})),
u
(
".search-result"
).
html
(
o
),
s
()}
var
t
,
i
,
r
,
l
,
d
,
c
,
u
=
e
(
"jquery"
),
p
=
e
(
"hammer"
),
h
=
e
(
"swiper"
),
f
=
e
(
"lazyload"
),
g
=
u
(
".brand-list"
),
m
=
u
(
".search-icon"
),
v
=
u
(
".newbrand-search"
).
outerHeight
(),
w
=
u
(
".yoho-header"
).
outerHeight
(),
y
=
parseInt
(
v
)
+
parseInt
(
w
)
-
1
;
t
=
new
h
(
".swiper-container"
,{
lazyLoading
:
!
0
,
loop
:
!
0
,
autoplay
:
3
e3
,
pagination
:
".swiper-pagination .pagination-inner"
}),
f
(
u
(
"img.lazy"
)),
u
(
".yoho-header"
).
css
({
"z-index"
:
2
,
position
:
"fixed"
,
top
:
0
}),
i
=
u
(
'<div class="title-bar fixed-title-bar"><h2></h2></div>'
),
i
.
css
({
position
:
"fixed"
,
top
:
y
}).
hide
(),
r
=
y
+
u
(
".hot-brand"
).
outerHeight
()
+
u
(
".banner-top"
).
outerHeight
(),
u
(
".brand-list"
).
last
().
append
(
i
),
u
(
window
).
scroll
(
function
(){
var
e
=
u
(
window
).
scrollTop
();
g
.
eq
(
0
).
offset
().
top
<
r
&&
i
.
hide
(),
g
.
each
(
function
(){
var
a
=
u
(
this
).
offset
().
top
-
y
;
e
>=
a
&&
i
.
css
({
display
:
"block"
}).
find
(
"h2"
).
html
(
u
(
this
).
find
(
".title-bar"
).
text
())})}),
s
(),
u
(
".brand-search-page"
).
length
&&
(
l
=
u
.
parseJSON
(
u
(
"#brands-data"
).
html
()),
d
=
u
(
"#keyword"
),
d
.
on
(
"input"
,
function
(){
d
.
val
().
length
?(
m
.
css
(
"color"
,
"#000"
),
u
(
this
).
closest
(
".search-box"
).
css
(
"width"
,
"11.25rem"
),
u
(
".search-action"
).
show
()):(
m
.
css
(
"color"
,
"#b2b2b2"
),
u
(
this
).
closest
(
".search-box"
).
css
(
"width"
,
"12.5rem"
),
u
(
".search-action"
).
hide
()),
o
()}).
focus
(),
c
=
new
p
(
u
(
".clear-text"
)[
0
]),
c
.
on
(
"tap"
,
function
(
e
){
e
.
preventDefault
(),
u
(
".search-result"
).
html
(
""
),
u
(
"#keyword"
).
val
(
""
).
trigger
(
"input"
),
e
.
srcEvent
.
stopPropagation
()}),
u
(
"form.search-box"
).
on
(
"submit"
,
function
(){
return
!
1
}))}),
define
(
"js/guang/entry"
,[
"jquery"
,
"hammer"
,
"lazyload"
,
"swiper"
,
"mlellipsis"
,
"iscroll-probe"
,
"index"
],
function
(
e
,
a
,
n
){
e
(
"js/guang/plus-star/list"
),
e
(
"js/guang/plus-star/detail"
),
e
(
"js/guang/home"
),
e
(
"js/guang/list"
),
e
(
"js/guang/detail"
)}),
define
(
"js/guang/plus-star/list"
,[
"jquery"
,
"hammer"
,
"lazyload"
,
"swiper"
,
"index"
],
function
(
e
,
a
,
n
){
var
s
,
o
,
t
=
e
(
"jquery"
),
i
=
e
(
"hammer"
),
r
=
e
(
"lazyload"
),
l
=
e
(
"swiper"
),
d
=
t
(
"#nav-tab > li"
),
c
=
t
(
"#ps-content > .content"
);
r
(
t
(
"img.lazy"
)),
s
=
new
l
(
".swiper-container"
,{
lazyLoading
:
!
0
,
pagination
:
".swiper-pagination"
}),
o
=
new
i
(
document
.
getElementById
(
"nav-tab"
)),
o
.
on
(
"tap"
,
function
(
e
){
var
a
=
t
(
e
.
target
).
closest
(
"li"
);
a
.
hasClass
(
"focus"
)
||
(
d
.
toggleClass
(
"focus"
),
c
.
toggleClass
(
"hide"
),
t
(
document
).
trigger
(
"scroll"
))})}),
define
(
"js/guang/plus-star/detail"
,[
"jquery"
,
"hammer"
,
"mlellipsis"
,
"lazyload"
],
function
(
e
,
a
,
n
){
var
s
,
o
,
t
,
i
,
r
=
e
(
"jquery"
),
l
=
e
(
"hammer"
),
d
=
e
(
"mlellipsis"
),
c
=
e
(
"lazyload"
),
u
=
r
(
"#intro"
),
p
=
r
(
"#intro-more-txt"
),
h
=
r
(
"#related-infos-container"
),
f
=
e
(
"js/guang/info"
),
g
=
e
(
"js/plugin/tip"
),
m
=
r
(
"#brand-info"
).
data
(
"id"
),
v
=
r
(
"#jump-to-app"
).
val
();
e
(
"js/plugin/wx-share"
),
d
.
init
(),
c
(
r
(
"img.lazy"
)),
u
[
0
].
mlellipsis
(
3
),
setTimeout
(
function
(){
s
=
u
.
text
(),
o
=
u
.
attr
(
"title"
)}),
f
.
initInfosEvt
(
h
),
t
=
new
l
(
document
.
getElementById
(
"more-intro"
)),
t
.
on
(
"tap"
,
function
(
e
){
var
a
=
r
(
e
.
target
).
closest
(
"#more-intro"
);
a
.
toggleClass
(
"spread"
),
a
.
hasClass
(
"spread"
)?(
u
.
text
(
o
),
p
.
text
(
"收起"
)):(
u
.
text
(
s
),
p
.
text
(
"more"
),
r
(
window
).
scrollTop
(
0
,
400
)),
e
.
preventDefault
()}),
i
=
new
l
(
document
.
getElementById
(
"brand-like"
)),
i
.
on
(
"tap"
,
function
(
e
){
var
a
=
"ok"
,
n
=
r
(
e
.
target
);
"1"
!==
v
&&
(
e
.
preventDefault
(),
n
.
hasClass
(
"like"
)
&&
(
a
=
"cancel"
),
r
.
ajax
({
type
:
"POST"
,
url
:
"/guang/opt/favoriteBrand"
,
data
:{
id
:
m
,
opt
:
a
},
success
:
function
(
e
){
200
===
e
.
code
?
n
.
toggleClass
(
"like"
):
400
===
e
.
code
||
412
===
e
.
code
?
location
.
href
=
e
.
data
:
g
.
show
(
e
.
message
)},
error
:
function
(){
g
.
show
(
"网络断开连接了~"
)}}))})}),
define
(
"js/guang/info"
,[
"jquery"
,
"hammer"
,
"mlellipsis"
,
"lazyload"
],
function
(
e
,
a
,
n
){
function
s
(
e
){
d
(
e
.
find
(
"img.lazy"
)),
e
.
each
(
function
(){
var
e
=
i
(
this
),
a
=
e
.
find
(
".info-title"
),
n
=
e
.
find
(
".info-text"
);
a
[
0
].
mlellipsis
(
2
),
n
[
0
].
mlellipsis
(
2
)})}
function
o
(
e
){
var
a
;
"undefined"
!=
typeof
e
&&
(
a
=
new
r
(
e
[
0
]),
a
.
on
(
"tap"
,
function
(
e
){
var
a
,
n
,
s
,
o
=
i
(
e
.
target
),
t
=
"ok"
;
a
=
o
.
closest
(
".like-btn"
),
a
.
length
>
0
&&
(
a
.
hasClass
(
"like"
)
&&
(
t
=
"cancel"
),
s
=
o
.
closest
(
".guang-info"
),
i
.
ajax
({
type
:
"POST"
,
url
:
"/guang/opt/praiseArticle"
,
data
:{
id
:
s
.
data
(
"id"
),
opt
:
t
},
success
:
function
(
e
){
var
n
=
e
.
code
;
200
===
n
&&
(
a
.
next
(
".like-count"
).
text
(
e
.
data
),
a
.
toggleClass
(
"like"
))},
error
:
function
(){
c
.
show
(
"网络断开连接了~"
)}})),
n
=
o
.
closest
(
".collect-btn"
),
n
.
length
>
0
&&
(
n
.
hasClass
(
"collected"
)
&&
(
t
=
"cancel"
),
s
=
o
.
closest
(
".guang-info"
),
i
.
ajax
({
type
:
"POST"
,
url
:
"/guang/opt/collectArticle"
,
data
:{
id
:
s
.
data
(
"id"
),
opt
:
t
},
success
:
function
(
e
){
e
.
code
&&
200
===
e
.
code
&&
n
.
toggleClass
(
"collected"
)},
error
:
function
(){
c
.
show
(
"网络断开连接了~"
)}}))}),
s
(
e
.
find
(
".guang-info"
)))}
function
t
(
e
,
a
){
var
n
;
g
||
a
.
end
||
(
1
===
a
.
page
&&
u
.
showLoadingMask
(),
n
=
e
.
find
(
".guang-info"
).
length
,
g
=!
0
,
i
.
ajax
({
type
:
"GET"
,
url
:
" /guang/index/page"
,
data
:
a
,
success
:
function
(
o
){
var
t
;
return
" "
===
o
?(
a
.
end
=!
0
,
g
=!
1
,
h
.
addClass
(
"hide"
),
void
f
.
removeClass
(
"hide"
)):(
e
.
append
(
o
),
t
=
n
>
0
?
e
.
find
(
".guang-info:gt("
+
(
n
-
1
)
+
")"
):
e
.
find
(
".guang-info"
),
s
(
t
),
1
===
a
.
page
&&
(
u
.
hideLoadingMask
(),
h
.
removeClass
(
"hide"
),
window
.
rePosFooter
()),
a
.
page
++
,
void
(
g
=!
1
))},
error
:
function
(){
c
.
show
(
"网络断开连接了~"
),
g
=!
1
}}))}
var
i
=
e
(
"jquery"
),
r
=
e
(
"hammer"
),
l
=
e
(
"mlellipsis"
),
d
=
e
(
"lazyload"
),
c
=
e
(
"js/plugin/tip"
),
u
=
e
(
"js/plugin/loading"
),
p
=
i
(
"#load-more-info"
),
h
=
i
(
""
),
f
=
i
(
""
),
g
=!
1
;
l
.
init
(),
p
.
length
>
0
&&
(
h
=
p
.
children
(
".loading"
),
f
=
p
.
children
(
".no-more"
)),
a
.
initInfosEvt
=
o
,
a
.
setLazyLoadAndMellipsis
=
s
,
a
.
loadMore
=
t
}),
define
(
"js/plugin/tip"
,[
"jquery"
],
function
(
e
,
a
,
n
){
function
s
(
e
,
a
){
var
n
,
s
;
"undefined"
!=
typeof
e
&&
(
n
=
e
.
toString
(),
s
=
a
&&
a
>
0
?
a
:
2
e3
,
o
.
text
(
n
).
show
(),
t
=
setTimeout
(
function
(){
"block"
===
o
.
css
(
"display"
)
&&
o
.
hide
()},
s
))}
var
o
,
t
,
i
=
e
(
"jquery"
);
!
function
(){
var
e
=
'<div id="yoho-tip" class="yoho-tip"></div>'
;
i
(
".yoho-page"
).
append
(
e
),
o
=
i
(
"#yoho-tip"
),
o
.
on
(
"touchend"
,
function
(){
o
.
hide
(),
clearTimeout
(
t
)})}(),
a
.
show
=
s
}),
define
(
"js/plugin/loading"
,[
"jquery"
],
function
(
e
,
a
,
n
){
function
s
(
e
){
var
a
=
'<div class="loading-mask hide"><div class="loading"></div></div>'
;
d
=!
0
,
void
0
===
e
&&
(
e
=
l
),
e
.
append
(
a
),
i
=
e
.
children
(
".loading-mask"
)}
function
o
(){
d
||
(
s
(),
d
=!
0
),
i
.
removeClass
(
"hide"
)}
function
t
(){
i
.
addClass
(
"hide"
)}
var
i
,
r
=
e
(
"jquery"
),
l
=
r
(
".yoho-page"
),
d
=!
1
;
a
.
init
=
s
,
a
.
showLoadingMask
=
o
,
a
.
hideLoadingMask
=
t
}),
define
(
"js/plugin/wx-share"
,[
"jquery"
],
function
(
e
,
a
,
n
){
var
s
=
e
(
"jquery"
);
n
.
exports
=
function
(){
var
e
=
"http://www.yohoshow.com/api/wechat/getSignPackage"
;
s
.
getJSON
(
e
+
"?pageurl="
+
encodeURIComponent
(
location
.
href
.
split
(
"#"
)[
0
])
+
"&callback=?"
,
function
(
e
){
var
a
,
n
,
s
,
o
;
void
0
!==
e
&&
""
!==
e
&&
(
a
=
e
.
appId
.
toString
(),
n
=
e
.
timestamp
,
s
=
e
.
nonceStr
.
toString
(),
o
=
e
.
signature
.
toString
(),
wx
.
config
({
debug
:
!
1
,
appId
:
a
,
timestamp
:
n
,
nonceStr
:
s
,
signature
:
o
,
jsApiList
:[
"checkJsApi"
,
"onMenuShareTimeline"
,
"onMenuShareAppMessage"
,
"onMenuShareQQ"
,
"onMenuShareWeibo"
,
"hideMenuItems"
,
"showMenuItems"
,
"hideAllNonBaseMenuItem"
,
"showAllNonBaseMenuItem"
,
"translateVoice"
,
"startRecord"
,
"stopRecord"
,
"onRecordEnd"
,
"playVoice"
,
"pauseVoice"
,
"stopVoice"
,
"uploadVoice"
,
"downloadVoice"
,
"chooseImage"
,
"previewImage"
,
"uploadImage"
,
"downloadImage"
,
"getNetworkType"
,
"openLocation"
,
"getLocation"
,
"hideOptionMenu"
,
"showOptionMenu"
,
"closeWindow"
,
"scanQRCode"
,
"chooseWXPay"
,
"openProductSpecificView"
,
"addCard"
,
"chooseCard"
,
"openCard"
]}))}),
wx
.
ready
(
function
(){
var
e
=
s
(
"#shareTitle"
).
val
(),
a
=
s
(
"#shareImg"
).
val
(),
n
=
s
(
"#shareDesc"
).
val
(),
o
=
s
(
"#shareLink"
).
val
(),
t
=
{
title
:
e
,
desc
:
n
,
imgUrl
:
a
,
link
:
o
};
wx
.
onMenuShareAppMessage
(
t
),
wx
.
onMenuShareTimeline
(
t
),
wx
.
onMenuShareQQ
(
t
),
wx
.
onMenuShareWeibo
(
t
)})}}),
define
(
"js/guang/home"
,[
"jquery"
,
"hammer"
,
"swiper"
,
"mlellipsis"
,
"lazyload"
,
"index"
],
function
(
e
,
a
,
n
){
var
s
,
o
,
t
=
e
(
"jquery"
),
i
=
e
(
"hammer"
),
r
=
e
(
"swiper"
),
l
=
e
(
"js/guang/info"
),
d
=
l
.
loadMore
,
c
=
t
(
"#load-more-info"
),
u
=
t
(
""
),
p
=
t
(
""
),
h
=
t
(
window
).
height
(),
f
=
t
(
"#info-list"
),
g
=
f
.
children
(
".info-list"
),
m
=
t
(
"#guang-nav"
),
v
=
m
.
children
(
".focus"
),
w
=
v
.
data
(
"type"
),
y
=
{};
c
.
length
>
0
&&
(
u
=
c
.
children
(
".loading"
),
p
=
c
.
children
(
".no-more"
)),
s
=
new
r
(
".swiper-container"
,{
lazyLoading
:
!
0
,
pagination
:
".swiper-pagination"
,
autoplay
:
3
e3
}),
l
.
initInfosEvt
(
f
),
function
(){
var
e
=
t
(
"#gender"
).
val
();
m
.
children
(
".guang-nav-item"
).
each
(
function
(){
var
a
=
t
(
this
).
data
(
"type"
),
n
=
t
(
this
).
hasClass
(
"focus"
);
y
[
a
]
=
{
page
:
n
?
2
:
1
,
gender
:
e
,
type
:
a
,
end
:
!
1
}})}(),
o
=
new
i
(
m
[
0
]),
o
.
on
(
"tap"
,
function
(
e
){
var
a
,
n
,
s
=
t
(
e
.
target
).
closest
(
".guang-nav-item"
);
s
.
hasClass
(
"focus"
)
||
(
n
=
s
.
index
(),
s
.
addClass
(
"focus"
),
v
.
removeClass
(
"focus"
),
a
=
g
.
eq
(
n
),
v
=
s
,
w
=
s
.
data
(
"type"
),
1
===
y
[
w
].
page
?(
u
.
addClass
(
"hide"
),
p
.
addClass
(
"hide"
),
d
(
a
,
y
[
w
])):
y
[
w
].
end
?(
u
.
addClass
(
"hide"
),
p
.
removeClass
(
"hide"
)):(
u
.
removeClass
(
"hide"
),
p
.
addClass
(
"hide"
)),
g
.
not
(
".hide"
).
addClass
(
"hide"
),
a
.
removeClass
(
"hide"
),
1
===
y
[
w
].
page
&&
window
.
rePosFooter
())}),
t
(
document
).
scroll
(
function
(){
var
e
=
g
.
not
(
".hide"
);
t
(
window
).
scrollTop
()
+
h
>=
t
(
document
).
height
()
-
.
25
*
e
.
height
()
&&
d
(
e
,
y
[
w
])})}),
define
(
"js/guang/list"
,[
"jquery"
,
"hammer"
,
"mlellipsis"
,
"lazyload"
],
function
(
e
,
a
,
n
){
var
s
=
e
(
"jquery"
),
o
=
e
(
"js/guang/info"
),
t
=
o
.
loadMore
,
i
=
s
(
window
).
height
(),
r
=
s
(
"#author-infos"
),
l
=
s
(
"#tag"
),
d
=
s
(
"#gender"
),
c
=
s
(
"#isApp"
),
u
=
{
page
:
2
,
end
:
!
1
},
p
=
s
(
"#info-list"
);
o
.
initInfosEvt
(
p
),
r
.
length
>
0
&&
s
.
extend
(
u
,{
authorId
:
r
.
data
(
"id"
),
isApp
:
c
.
val
()}),
l
.
length
>
0
&&
s
.
extend
(
u
,{
tag
:
l
.
val
(),
gender
:
d
.
val
(),
isApp
:
c
.
val
()}),
s
(
document
).
scroll
(
function
(){
s
(
window
).
scrollTop
()
+
i
>=
s
(
document
).
height
()
-
.
25
*
p
.
height
()
&&
t
(
p
,
u
)})}),
define
(
"js/guang/detail"
,[
"jquery"
,
"mlellipsis"
,
"lazyload"
,
"iscroll-probe"
],
function
(
e
,
a
,
n
){
function
s
(
e
){
var
a
=
e
.
offset
().
left
,
n
=-
C
+
a
+
y
/
2
+
"px"
;
r
.
css
({
backgroundPosition
:
n
+
" bottom"
}),
v
&&
b
.
css
({
backgroundPosition
:
n
+
" bottom"
})}
function
o
(
e
){
var
a
,
n
,
o
,
t
=
p
(
e
.
currentTarget
),
h
=
t
.
index
();
t
.
hasClass
(
"focus"
)
||
(
l
.
filter
(
".focus"
).
removeClass
(
"focus"
),
v
&&
(
a
=
t
.
closest
(
".fixed-thumb-container"
).
length
>
0
?
r
:
b
,
n
=
a
.
find
(
".thumb"
).
eq
(
h
),
b
.
find
(
".thumb.focus"
).
removeClass
(
"focus"
),
n
.
addClass
(
"focus"
)),
t
.
addClass
(
"focus"
),
s
(
t
),
d
.
not
(
".hide"
).
addClass
(
"hide"
),
o
=
d
.
eq
(
h
),
o
.
removeClass
(
"hide"
),
f
(
o
.
find
(
".lazy"
)),
v
?
u
&&
u
.
scrollToElement
(
c
,
400
):
p
(
"body"
).
animate
({
scrollTop
:
i
.
offset
().
top
},
400
),
u
&&
u
.
refresh
())}
function
t
(){
var
e
,
a
,
n
,
s
,
o
,
t
=
p
(
"#scroller"
),
l
=
p
(
".yoho-header"
),
d
=
0
;
return
l
.
length
>
0
&&
(
d
=
l
.
outerHeight
()),
u
=
new
g
(
"#wrapper"
,{
probeType
:
3
,
mouseWheel
:
!
0
,
click
:
!
0
}),
document
.
addEventListener
(
"touchmove"
,
function
(
e
){
e
.
preventDefault
()},
!
1
),
w
?(
e
=
p
(
window
).
height
()
-
d
,
o
=
b
[
0
],
a
=
r
.
outerHeight
(),
n
=
i
.
outerHeight
(),
s
=
i
.
offset
().
top
-
d
,
void
u
.
on
(
"scroll"
,
function
(){
var
i
=-
this
.
y
,
r
=
o
.
className
;
s
-
e
+
a
>=
i
?
-
1
===
r
.
indexOf
(
"fixed-bottom"
)
&&
b
.
addClass
(
"fixed-bottom"
).
removeClass
(
"hide"
):
s
>=
i
?
-
1
===
r
.
indexOf
(
"hide"
)
&&
b
.
addClass
(
"hide"
).
removeClass
(
"fixed-bottom fixed-top"
):
s
+
n
-
a
>=
i
?
-
1
===
r
.
indexOf
(
"fixed-top"
)
&&
b
.
addClass
(
"fixed-top"
).
removeClass
(
"hide absolute"
).
css
(
"top"
,
""
):
s
+
n
>=
i
?(
-
1
===
r
.
indexOf
(
"absolute"
)
&&
b
.
addClass
(
"absolute"
).
removeClass
(
"fixed-top hide"
),
o
.
style
.
top
=
s
+
d
+
n
-
a
-
i
+
"px"
):
i
>
s
+
n
&&-
1
===
r
.
indexOf
(
"hide"
)
&&
b
.
addClass
(
"hide"
).
removeClass
(
"absolute"
),
t
.
trigger
(
"scroll"
)})):
void
u
.
on
(
"scroll"
,
function
(){
t
.
trigger
(
"scroll"
)})}
var
i
,
r
,
l
,
d
,
c
,
u
,
p
=
e
(
"jquery"
),
h
=
e
(
"mlellipsis"
),
f
=
e
(
"lazyload"
),
g
=
e
(
"iscroll-probe"
),
m
=
p
(
".author .intro"
),
v
=!
1
,
w
=
p
(
".collocation-block"
).
length
>
0
?
!
0
:
!
1
,
y
=
0
,
b
=
p
(
""
),
c
=
document
.
querySelector
(
"#wrapper .collocation-block"
),
C
=
p
(
window
).
width
();
e
(
"js/plugin/wx-share"
)(),
window
.
onload
=
function
(){
u
&&
u
.
refresh
()},
a
.
i
=
function
(
e
){
var
a
=
navigator
.
userAgent
.
indexOf
(
"iPhone"
)
>
0
?
!
0
:
!
1
;
v
=
a
&&
e
,
h
.
init
(),
f
(
p
(
".lazy"
)),
p
(
".info-list .title, .one-good .reco-name"
).
each
(
function
(){
this
.
mlellipsis
(
2
)}),
m
.
offset
()
&&
parseInt
(
m
.
offset
().
left
,
10
)
===
parseInt
(
m
.
css
(
"margin-left"
),
10
)
&&
m
.
css
(
"padding-top"
,
0
),
v
&&
(
p
(
".yoho-header"
).
length
>
0
?
p
(
"#wrapper"
).
addClass
(
"ios has-head"
):
p
(
"#wrapper"
).
addClass
(
"ios"
)),
w
&&
(
i
=
p
(
".collocation-block"
),
r
=
i
.
children
(
".thumb-container"
),
l
=
r
.
find
(
"li"
),
d
=
i
.
find
(
".prod"
),
y
=
l
.
width
(),
v
&&
(
b
=
p
(
"#wrapper"
).
after
(
r
.
clone
().
addClass
(
"fixed-thumb-container fixed-bottom"
)).
next
(
".thumb-container"
),
f
(
b
.
find
(
".lazy"
),{
event
:
"sporty"
})),
s
(
l
.
filter
(
".focus"
)),
r
.
delegate
(
".thumb"
,
"touchend"
,
o
),
v
&&
b
.
delegate
(
".thumb"
,
"touchend"
,
o
)),
v
&&
t
()}}),
define
(
"js/home/entry"
,[
"jquery"
,
"hammer"
,
"swiper"
,
"lazyload"
,
"index"
],
function
(
e
,
a
,
n
){
e
(
"js/home/home"
),
e
(
"js/home/maybe-like"
)}),
define
(
"js/home/home"
,[
"jquery"
,
"hammer"
,
"swiper"
,
"lazyload"
,
"index"
],
function
(
e
,
a
,
n
){
function
s
(){
b
.
hasClass
(
"menu-open"
)
&&
(
b
.
removeClass
(
"menu-open"
),
m
(
".overlay"
).
hide
(),
m
(
".sub-nav"
).
removeClass
(
"show"
),
j
.
removeClass
(
"on"
),
m
(
"body"
).
css
({
height
:
"auto"
,
overflow
:
"auto"
}))}
function
o
(){
k
+=
10
,
q
.
css
({
transform
:
"rotateX("
+
k
+
"deg)"
,
"-webkit-transform"
:
"rotateX("
+
k
+
"deg)"
,
"-moz-transform"
:
"rotateX("
+
k
+
"deg)"
}),
k
/
90
%
2
===
1
&&
(
z
?(
q
.
addClass
(
"animate"
),
z
=!
1
):(
q
.
removeClass
(
"animate"
),
z
=!
0
)),
k
/
90
%
2
===
0
&&
k
%
360
!==
0
?
window
.
setTimeout
(
o
,
3
e3
):
k
%
360
===
0
?
window
.
setTimeout
(
o
,
6
e4
):
c
(
function
(){
o
()})}
var
t
,
i
,
r
,
l
,
d
,
c
,
u
,
p
,
h
,
f
,
g
,
m
=
e
(
"jquery"
),
v
=
e
(
"hammer"
),
w
=
e
(
"swiper"
),
y
=
e
(
"lazyload"
),
b
=
m
(
".mobile-wrap"
),
C
=
m
(
".overlay"
),
j
=
m
(
".side-nav"
),
x
=
m
(
".sub-nav"
),
k
=
0
,
q
=
m
(
".home-header .logo"
),
z
=!
0
;
e
(
"js/home/maybe-like"
),
y
(
m
(
"img.lazy"
)),
g
=
new
v
(
m
(
".nav-btn"
)[
0
]),
g
.
on
(
"tap"
,
function
(
e
){
return
e
.
preventDefault
(),
b
.
addClass
(
"menu-open"
),
C
.
show
().
css
(
"opacity"
,.
3
),
j
.
addClass
(
"on"
),
m
(
"body"
).
css
({
height
:
m
(
window
).
height
(),
width
:
m
(
window
).
width
(),
overflow
:
"hidden"
}),
e
.
srcEvent
.
stopPropagation
(),
!
1
}),
m
(
".overlay"
).
on
(
"touchstart"
,
function
(
e
){
return
s
(),
!
1
}),
j
.
on
(
"touchstart"
,
"li"
,
function
(
e
){
return
m
(
this
).
find
(
".sub-nav"
).
size
()
>
0
&&
(
m
(
".sub-nav"
).
removeClass
(
"show"
),
m
(
this
).
find
(
".sub-nav"
).
addClass
(
"show"
)),
e
.
stopPropagation
(),
e
.
target
.
pathname
===
location
.
pathname
?(
s
(),
!
1
):
void
0
}),
x
.
each
(
function
(){
m
(
this
).
find
(
"li"
).
eq
(
0
).
on
(
"touchstart"
,
function
(
e
){
return
m
(
".sub-nav"
).
removeClass
(
"show"
),
e
.
stopPropagation
(),
!
1
})}).
on
(
"touchstart"
,
function
(
e
){
e
.
currentTarget
!==
e
.
target
&&
x
.
find
(
"li"
).
removeClass
(
"current"
)}),
j
.
children
(
"ul"
).
children
(
"li"
).
on
(
"touchstart"
,
function
(){
j
.
children
(
"ul"
).
children
(
"li"
).
css
(
"background"
,
"#fff"
),
m
(
this
).
css
(
"background"
,
"#eee"
)}).
on
(
"touchend touchcancel"
,
function
(){
m
(
this
).
css
(
"background"
,
"#fff"
)}),
m
(
".banner-swiper"
).
find
(
"li"
).
size
()
>
1
&&
(
t
=
new
w
(
".banner-swiper"
,{
lazyLoading
:
!
0
,
lazyLoadingInPrevNext
:
!
0
,
loop
:
!
0
,
autoplay
:
3
e3
,
autoplayDisableOnInteraction
:
!
1
,
paginationClickable
:
!
0
,
slideElement
:
"li"
,
pagination
:
".banner-top .pagination-inner"
})),
r
=
new
w
(
".brands-swiper"
,{
grabCursor
:
!
0
,
slidesPerView
:
"auto"
,
wrapperClass
:
"brands-list"
,
slideElement
:
"li"
}),
i
=
new
w
(
".recommend-swiper"
,{
grabCursor
:
!
0
,
slidesPerView
:
"auto"
,
wrapperClass
:
"recommend-list"
,
slideElement
:
"li"
}),
m
(
".trend-topic-swiper"
).
find
(
"li"
).
size
()
>
1
&&
(
l
=
new
w
(
".trend-topic-swiper"
,{
loop
:
!
0
,
autoplay
:
3
e3
,
autoplayDisableOnInteraction
:
!
1
,
paginationClickable
:
!
0
,
slideElement
:
"li"
,
pagination
:
".trend-topic-content .pagination-inner"
})),
m
(
".category-swiper"
).
each
(
function
(
e
,
a
){
h
=
"category-swiper"
+
e
,
m
(
this
).
addClass
(
h
),
m
(
"."
+
h
).
find
(
".swiper-slide"
).
size
()
>
1
&&
(
d
=
new
w
(
"."
+
h
,{
loop
:
!
0
,
autoplay
:
3
e3
,
autoplayDisableOnInteraction
:
!
1
,
paginationClickable
:
!
0
,
slideElement
:
"li"
,
pagination
:
"."
+
h
+
" .pagination-inner"
}))}),
c
=
function
(){
var
e
=
null
,
a
=
[
"webkit"
,
"moz"
,
"ms"
];
for
(
p
=
0
;
p
<
a
.
length
;
p
++
)
u
=
a
[
p
]
+
"RequestAnimationFrame"
,
window
[
u
]
&&
(
f
=!
0
,
e
=
u
);
return
f
?
function
(
a
){
window
[
e
](
a
)}:
function
(
e
){
window
.
setTimeout
(
e
,
67
)}}(),
setTimeout
(
o
,
3
e3
),
m
(
"#yoho-footer"
).
css
({
"margin-bottom"
:
"2.5rem"
}),
a
.
set
=
function
(
e
){
window
.
setCookie
(
"_Channel"
,
e
,{
expires
:
365
,
domain
:
".m.yohobuy.com"
})}}),
define
(
"js/home/maybe-like"
,[
"jquery"
,
"hammer"
,
"lazyload"
],
function
(
e
,
a
,
n
){
function
s
(){
m
||
(
m
=!
0
,
p
.
showLoadingMask
(),
d
.
ajax
({
type
:
"GET"
,
url
:
i
,
data
:{
page
:
v
+
1
},
success
:
function
(
e
){
return
" "
===
e
?(
m
=!
1
,
p
.
hideLoadingMask
(),
void
(
w
&&
(
i
=
"1,3"
===
w
?
"/boys/bottomBanner"
:
"/girls/bottomBanner"
,
d
.
ajax
({
type
:
"GET"
,
url
:
i
,
success
:
function
(
e
){
e
&&
e
.
img
&&
(
d
(
"#load-more-img"
).
show
(),
d
(
"#load-more-img a"
).
attr
(
"href"
,
e
.
url
),
d
(
"#load-more-img a > img"
).
attr
(
"src"
,
e
.
img
))},
error
:
function
(){}})))):(
t
=
g
.
find
(
".good-info"
).
length
,
g
.
append
(
e
),
h
(
0
===
t
?
g
.
find
(
".good-info"
).
find
(
"img.lazy"
):
g
.
find
(
".good-info:gt("
+
(
t
-
1
)
+
")"
).
find
(
"img.lazy"
)),
m
=!
1
,
p
.
hideLoadingMask
(),
void
v
++
)},
error
:
function
(){
u
.
show
(
"网络断开连接了~"
),
m
=!
1
,
p
.
hideLoadingMask
()}}))}
var
o
,
t
,
i
,
r
,
l
,
d
=
e
(
"jquery"
),
c
=
e
(
"hammer"
),
u
=
e
(
"js/plugin/tip"
),
p
=
e
(
"js/plugin/loading"
),
h
=
e
(
"lazyload"
),
f
=
d
(
window
).
height
(),
g
=
d
(
"#goods-list"
),
m
=!
1
,
v
=
0
,
w
=
null
,
y
=
d
(
".mobile-wrap"
).
hasClass
(
"kids-wrap"
)?
!
0
:
!
1
,
b
=
d
(
".mobile-wrap"
).
hasClass
(
"lifestyle-wrap"
)?
!
0
:
!
1
,
C
=
d
(
"#maybe-like-nav"
);
y
?
i
=
"/product/recom/maylikekids"
:
b
?
i
=
"/product/recom/maylikelife"
:(
w
=
d
(
".mobile-wrap"
).
hasClass
(
"boys-wrap"
)?
"1,3"
:
"2,3"
,
i
=
"/product/recom/maylike?gender="
+
w
),
r
=
C
.
children
(
".focus"
),
b
&&
(
o
=
new
c
(
C
[
0
]),
o
.
on
(
"tap"
,
function
(
e
){
var
a
,
n
=
d
(
e
.
target
).
closest
(
"li"
),
s
=
d
(
".goods-list"
);
e
.
preventDefault
(),
n
.
hasClass
(
"focus"
)
||
(
l
=
n
.
index
(),
n
.
addClass
(
"focus"
),
r
.
removeClass
(
"focus"
),
s
.
not
(
".hide"
).
addClass
(
"hide"
),
a
=
s
.
eq
(
l
),
a
.
removeClass
(
"hide"
),
r
=
n
,
d
(
document
).
trigger
(
"scroll"
),
e
.
srcEvent
.
stopPropagation
())})),
p
.
init
(
d
(
".maybe-like"
)),
d
(
".maybe-like p"
).
on
(
"touchstart"
,
function
(
e
){
s
()}),
d
(
window
).
scroll
(
function
(){
d
(
window
).
scrollTop
()
+
f
>=
d
(
document
).
height
()
&&
s
()})}),
define
(
"js/index/entry"
,[
"jquery"
,
"hammer"
],
function
(
e
,
a
,
n
){
e
(
"js/index/search"
),
e
(
"js/index/footer"
),
e
(
"js/index/channel"
)}),
define
(
"js/index/search"
,[
"jquery"
,
"hammer"
],
function
(
e
,
a
,
n
){
var
s
,
o
,
t
=
e
(
"jquery"
),
i
=
e
(
"hammer"
),
r
=
t
(
"#search-input input"
),
l
=
t
(
"#search-input .clear-input"
),
d
=
t
(
".search-icon"
),
c
=
t
(
"#search-form"
),
u
=
t
(
".history"
),
p
=
t
(
"#clear-history"
),
h
=
e
(
"js/index/write-search"
),
f
=
h
.
getRanToken
();
s
=
new
i
(
p
[
0
]),
s
.
on
(
"tap"
,
function
(){
localStorage
.
removeItem
(
"historys"
),
u
.
html
(
""
)}),
r
.
on
(
"input"
,
function
(){
""
===
r
.
val
()?(
d
.
css
(
"color"
,
"#b2b2b2"
),
l
.
addClass
(
"hide"
)):(
d
.
css
(
"color"
,
"#666"
),
l
.
removeClass
(
"hide"
))}),
o
=
new
i
(
l
[
0
]),
o
.
on
(
"tap"
,
function
(){
r
.
val
(
""
).
trigger
(
"input"
)}),
t
(
"#search"
).
on
(
"touchend"
,
function
(){
return
t
(
this
).
closest
(
"form"
).
submit
(),
!
1
}),
function
(){
var
e
,
a
,
n
,
s
=
""
;
if
(
localStorage
&&
(
a
=
localStorage
.
getItem
(
"historys"
),
a
&&
a
.
length
>
0
)){
for
(
a
=
a
.
split
(
f
),
n
=
0
;
n
<
a
.
length
;
n
++
)
e
=
a
[
n
],
""
!==
e
&&
(
s
+=
'<li><a href="/?query='
+
e
+
'">'
+
e
+
"</li>"
);
u
.
html
(
s
),
p
.
removeClass
(
"hide"
)}}(),
h
.
bindWirteLocal
(
c
)}),
define
(
"js/index/write-search"
,[],
function
(
e
,
a
,
n
){
function
s
(){
return
t
}
function
o
(
e
){
e
.
on
(
"submit"
,
function
(){
var
e
,
a
=
this
.
query
.
value
;
if
(
localStorage
){
if
(
e
=
localStorage
.
getItem
(
"historys"
),
e
=
e
?
e
:
""
,
e
.
indexOf
(
t
+
a
+
t
)
>-
1
)
return
;
""
===
e
&&
(
a
=
t
+
a
),
e
+=
a
+
t
,
localStorage
.
setItem
(
"historys"
,
e
)}})}
var
t
=
" ??++ "
;
a
.
getRanToken
=
s
,
a
.
bindWirteLocal
=
o
}),
define
(
"js/index/footer"
,[
"jquery"
,
"hammer"
],
function
(
e
,
a
,
n
){
function
s
(){
var
e
=
"http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho&g_f=995445"
,
a
=
new
Date
;
setTimeout
(
function
(){
new
Date
-
a
<
2
e3
&&
(
window
.
location
=
e
)},
500
)}
var
o
,
t
=
e
(
"jquery"
),
i
=
e
(
"hammer"
);
e
(
"js/common"
),
t
(
"#float-layer-close"
).
on
(
"touchend"
,
function
(
e
){
return
t
(
"#float-layer-app"
).
hide
(),
window
.
setCookie
(
"_float-layer-app"
,
"id490655927"
,{
domain
:
".yohobuy.com"
}),
window
.
setCookie
(
"_float-layer-app-close"
,
1
,{
domain
:
".yohobuy.com"
,
expires
:
1
}),
!
1
}),
t
(
"#float-layer-btn"
)
&&
t
(
"#float-layer-btn"
)[
0
]
&&
(
o
=
new
i
(
t
(
"#float-layer-btn"
)[
0
]),
o
.
on
(
"tap"
,
function
(
e
){
s
(
"bottom"
),
e
.
srcEvent
.
stopPropagation
()}),
window
.
cookie
(
"_float-layer-app"
)?
t
(
"#float-layer-app"
).
hide
():
t
(
"#float-layer-app"
).
show
())}),
define
(
"js/index/channel"
,[
"jquery"
],
function
(
e
,
a
,
n
){
var
s
=
e
(
"jquery"
),
o
=
s
(
".search-box"
),
t
=
s
(
".box"
),
i
=
s
(
".index-search"
),
r
=
s
(
".index-logo"
),
l
=
s
(
".index-channel a"
),
d
=
o
.
children
(
'input[type="text"]'
),
c
=
t
.
children
(
".no-search"
),
u
=
o
.
children
(
".search-icon"
);
e
(
"js/common"
),
d
.
on
(
"focus"
,
function
(){
t
.
addClass
(
"action"
),
r
.
addClass
(
"action"
)}).
on
(
"input"
,
function
(){
""
===
d
.
val
()?
u
.
addClass
(
"empty"
):
u
.
removeClass
(
"empty"
)}),
c
.
on
(
"touchend"
,
function
(){
return
t
.
removeClass
(
"action"
),
r
.
removeClass
(
"action"
),
d
.
blur
(),
!
1
}),
o
.
children
(
".clear-text"
).
on
(
"touchstart"
,
function
(){
d
.
val
(
""
).
focus
().
trigger
(
"input"
)}),
o
.
children
(
".search-icon"
).
on
(
"touchstart"
,
function
(){
i
.
submit
()}),
s
(
".index-channel img"
).
on
(
"load error"
,
function
(){
window
.
rePosFooter
&&
window
.
rePosFooter
()}),
l
.
on
(
"touchstart"
,
function
(){
l
.
css
({
background
:
"#000"
,
color
:
"#fff"
,
borderColor
:
"#fff"
}),
s
(
this
).
css
({
background
:
"rgba(255, 255, 255, 0.5)"
,
color
:
"#000"
,
borderColor
:
"#000"
})}).
on
(
"touchend touchcancel"
,
function
(){
s
(
this
).
css
({
background
:
"#000"
,
color
:
"#fff"
,
borderColor
:
"#fff"
})})}),
define
(
"js/passport/entry"
,[
"jquery"
],
function
(
e
,
a
,
n
){
e
(
"js/passport/register/register"
),
e
(
"js/passport/register/code"
),
e
(
"js/passport/register/password"
),
e
(
"js/passport/login/login"
),
e
(
"js/passport/login/international"
),
e
(
"js/passport/back/mobile"
),
e
(
"js/passport/back/code"
),
e
(
"js/passport/back/email"
),
e
(
"js/passport/back/email-success"
),
e
(
"js/passport/back/new-password"
)}),
define
(
"js/passport/register/register"
,[
"jquery"
],
function
(
e
,
a
,
n
){
var
s
=
e
(
"jquery"
),
o
=
s
(
"#phone-num"
),
t
=
s
(
"#country-select"
),
i
=
s
(
"#area-code"
),
r
=
s
(
"#btn-next"
),
l
=
e
(
"js/passport/api"
),
d
=
e
(
"js/plugin/tip"
),
c
=
s
.
trim
,
u
=
d
.
show
;
l
.
selectCssHack
(
s
(
"#country-select"
)),
l
.
bindClearEvt
(),
o
.
bind
(
"input"
,
function
(){
""
===
c
(
o
.
val
())?
r
.
addClass
(
"disable"
):
r
.
removeClass
(
"disable"
)}),
t
.
change
(
function
(){
i
.
text
(
t
.
val
())}),
r
.
on
(
"touchstart"
,
function
(){
var
e
=
c
(
o
.
val
()),
a
=
t
.
val
();
r
.
hasClass
(
"disable"
)
||
(
l
.
phoneRegx
[
a
].
test
(
e
)?
s
.
ajax
({
url
:
"/passport/reg/verifymobile"
,
type
:
"POST"
,
data
:{
areaCode
:
a
.
replace
(
"+"
,
""
),
phoneNum
:
e
},
success
:
function
(
e
){
200
===
e
.
code
?
location
.
href
=
e
.
data
:
u
(
e
.
message
)}}):
u
(
"手机号格式不正确,请重新输入"
))})}),
define
(
"js/passport/api"
,[
"jquery"
],
function
(
e
,
a
,
n
){
function
s
(
e
){
var
a
,
n
=
r
(
".has-eye"
);
e
&&
"open"
===
e
.
status
?
n
.
append
(
'<div class="eye"></div>'
):
n
.
append
(
'<div class="eye close"></div>'
),
a
=
n
.
children
(
".eye"
),
a
.
on
(
"touchstart"
,
function
(
e
){
var
a
=
r
(
this
),
n
=
a
.
siblings
(
".pwd"
);
e
.
preventDefault
(),
a
.
toggleClass
(
"close"
),
a
.
hasClass
(
"close"
)?
n
.
attr
(
"type"
,
"password"
):
n
.
attr
(
"type"
,
"text"
),
n
.
focus
()})}
function
o
(){
var
e
,
a
=
r
(
".has-clear"
);
a
.
append
(
'<div class="clear-input"></div>'
),
e
=
a
.
children
(
".clear-input"
),
e
.
on
(
"touchstart"
,
function
(
a
){
var
n
=
e
.
siblings
(
".input"
);
n
.
val
(
""
).
trigger
(
"input"
).
focus
(),
a
.
preventDefault
()}),
a
.
children
(
".input"
).
bind
(
"input"
,
function
(){
var
e
=
r
(
this
),
a
=
e
.
siblings
(
".clear-input"
),
n
=
l
(
e
.
val
());
""
===
n
?
a
.
hide
():
a
.
show
()})}
function
t
(
e
){
return
e
.
length
>=
6
&&
e
.
length
<=
20
?
!
0
:
!
1
}
function
i
(
e
){
function
a
(){
var
a
=
e
.
find
(
"option:selected"
).
text
().
length
;
switch
(
a
){
case
2
:
e
.
outerWidth
(
90
);
break
;
case
3
:
e
.
outerWidth
(
110
);
break
;
default
:
e
.
outerWidth
(
130
)}}
var
n
=
navigator
.
userAgent
;
n
.
match
(
/uc/i
)
&&
n
.
match
(
/android/i
)?
e
.
change
(
function
(){
a
()}):
e
.
removeClass
(
"in-android-uc"
)}
var
r
=
e
(
"jquery"
),
l
=
r
.
trim
,
d
=
/^
([
a-zA-Z0-9
]
+
[
_|
\_
|
\.
|-
]?)
*
[
a-zA-Z0-9
]
+@
([
a-zA-Z0-9
]
+
[
_|
\_
|
\.
|-
]?)
*
[
a-zA-Z0-9
]
+
\.[
a-zA-Z
]{2,3}
$/
,
c
=
{
"+86"
:
/^
1
[
35847
]{
1
}[
0
-
9
]{
9
}
$
/
,
"+852"
:
/^
[
965
]{
1
}[
0
-
9
]{
7
}
$
/
,
"+853"
:
/^
[
0
-
9
]{
8
}
$
/
,
"+886"
:
/^
[
0
-
9
]{
10
}
$
/
,
"+65"
:
/^
[
98
]{
1
}[
0
-
9
]{
7
}
$
/
,
"+60"
:
/^
1
[
1234679
]{
1
}[
0
-
9
]{
8
}
$
/
,
"+1"
:
/^
[
0
-
9
]{
10
}
$
/
,
"+82"
:
/^
01
[
0
-
9
]{
9
}
$
/
,
"+44"
:
/^
7
[
789
][
0
-
9
]{
8
}
$
/
,
"+81"
:
/^
0
[
9
|
8
|
7
][
0
-
9
]{
9
}
$
/
,
"+61"
:
/^
[
0
-
9
]{
11
}
$
/
};
n
.
exports
=
{
emailRegx
:
d
,
phoneRegx
:
c
,
bindEyesEvt
:
s
,
bindClearEvt
:
o
,
pwdValidate
:
t
,
selectCssHack
:
i
}}),
define
(
"js/passport/register/code"
,[
"jquery"
],
function
(
e
,
a
,
n
){
e
(
"js/passport/code"
)(
!
0
)}),
define
(
"js/passport/code"
,[
"jquery"
],
function
(
e
,
a
,
n
){
var
s
=
e
(
"jquery"
);
n
.
exports
=
function
(
a
){
function
n
(){
var
e
,
a
=
59
;
e
=
setInterval
(
function
(){
0
===
a
?(
i
.
text
(
"重发验证码"
).
removeClass
(
"disable"
),
clearInterval
(
e
)):
i
.
text
(
"重发验证码 ("
+
a
--+
"秒)"
)},
1
e3
)}
var
o
=
s
(
"#captcha"
),
t
=
s
(
"#btn-next"
),
i
=
s
(
"#captcha-tip"
),
r
=
s
(
"#phone-num"
).
val
(),
l
=
s
(
"#area-code"
).
val
().
replace
(
"+"
,
""
),
d
=
e
(
"js/passport/api"
),
c
=
e
(
"js/plugin/tip"
),
u
=
s
.
trim
,
p
=
c
.
show
,
h
=
a
?
"reg"
:
"back"
;
d
.
bindClearEvt
(),
o
.
bind
(
"input"
,
function
(){
""
!==
u
(
o
.
val
())?
t
.
removeClass
(
"disable"
):
t
.
addClass
(
"disable"
)}),
i
.
on
(
"touchstart"
,
function
(){
i
.
hasClass
(
"disable"
)
||
s
.
ajax
({
type
:
"POST"
,
url
:
"/passport/"
+
h
+
"/sendcode"
,
data
:{
phoneNum
:
r
,
areaCode
:
l
},
success
:
function
(
e
){
200
===
e
.
code
?(
i
.
text
(
"重发验证码 (60秒)"
).
addClass
(
"disable"
),
n
()):
p
(
e
.
message
)}})}),
t
.
on
(
"touchstart"
,
function
(){
t
.
hasClass
(
"disable"
)
||
s
.
ajax
({
type
:
"POST"
,
url
:
"/passport/"
+
h
+
"/verifycode"
,
data
:{
phoneNum
:
r
,
areaCode
:
l
,
code
:
u
(
o
.
val
()),
token
:
s
(
"#token"
).
val
()},
success
:
function
(
e
){
200
===
e
.
code
?
location
.
href
=
e
.
data
:
p
(
e
.
message
)}})}),
n
()}}),
define
(
"js/passport/register/password"
,[
"jquery"
],
function
(
e
,
a
,
n
){
var
s
=
e
(
"jquery"
),
o
=
s
(
"#pwd"
),
t
=
s
(
"#btn-sure"
),
i
=
e
(
"js/passport/api"
),
r
=
e
(
"js/plugin/tip"
),
l
=
s
.
trim
,
d
=
r
.
show
;
i
.
bindEyesEvt
({
status
:
"open"
}),
o
.
bind
(
"input"
,
function
(){
""
===
l
(
o
.
val
())?
t
.
addClass
(
"disable"
):
t
.
removeClass
(
"disable"
)}),
t
.
on
(
"touchstart"
,
function
(){
var
e
=
l
(
o
.
val
());
t
.
hasClass
(
"disable"
)
||
(
i
.
pwdValidate
(
e
)
===!
1
?
d
(
"密码6-20位,请重新输入"
):
s
.
ajax
({
type
:
"POST"
,
url
:
"/passport/reg/setpassword"
,
data
:{
password
:
e
,
phoneNum
:
s
(
"#phone-num"
).
val
(),
areaCode
:
s
(
"#area-code"
).
val
(),
token
:
s
(
"#token"
).
val
()},
success
:
function
(
e
){
200
===
e
.
code
?(
d
(
"注册成功"
),
setTimeout
(
function
(){
location
.
href
=
e
.
data
},
1
e3
)):
d
(
e
.
message
)}}))})}),
define
(
"js/passport/login/login"
,[
"jquery"
],
function
(
e
,
a
,
n
){
function
s
(){
p
&&
h
?
d
.
removeClass
(
"disable"
):
d
.
addClass
(
"disable"
)}
function
o
(){
c
.
show
(),
u
.
show
()}
function
t
(){
c
.
hide
(),
u
.
hide
()}
var
i
=
e
(
"jquery"
),
r
=
i
(
"#account"
),
l
=
i
(
"#pwd"
),
d
=
i
(
"#btn-login"
),
c
=
i
(
"#retrive-pwd-mask"
),
u
=
i
(
"#retrive-pwd-ways"
),
p
=!
1
,
h
=!
1
,
f
=
e
(
"js/passport/api"
),
g
=
e
(
"js/plugin/tip"
),
m
=
i
.
trim
,
v
=
g
.
show
;
f
.
bindEyesEvt
(),
f
.
bindClearEvt
(),
r
.
bind
(
"input"
,
function
(){
p
=
""
!==
m
(
r
.
val
())?
!
0
:
!
1
,
s
()}),
l
.
bind
(
"input"
,
function
(){
h
=
""
===
m
(
l
.
val
())?
!
1
:
!
0
,
s
()}),
d
.
on
(
"touchstart"
,
function
(){
var
e
=
m
(
r
.
val
()),
a
=
m
(
l
.
val
());
d
.
hasClass
(
"disable"
)
||
((
/^
[
0-9
]
+$/
.
test
(
e
)
||
f
.
emailRegx
.
test
(
e
))
&&
f
.
pwdValidate
(
a
)?
i
.
ajax
({
type
:
"POST"
,
url
:
"/passport/login/auth"
,
data
:{
account
:
e
,
password
:
a
},
success
:
function
(
e
){
200
===
e
.
code
?(
v
(
"登录成功"
),
setTimeout
(
function
(){
location
.
href
=
e
.
data
},
1
e3
)):
v
(
e
.
message
)},
error
:
function
(){
v
(
"网络断开连接啦~"
)}})
:
v
(
"账号或密码有错误,请重新输入"
))}),
i
(
"#forget-pwd"
).
on
(
"touchstart"
,
function
(){
o
()}),
c
.
on
(
"touchstart"
,
function
(){
t
()}),
i
(
"#cancel-retrive"
).
on
(
"touchstart"
,
function
(
e
){
e
.
preventDefault
(),
t
()}),
r
.
trigger
(
"input"
),
l
.
trigger
(
"input"
)}),
define
(
"js/passport/login/international"
,[
"jquery"
],
function
(
e
,
a
,
n
){
function
s
(){
c
&&
u
?
d
.
removeClass
(
"disable"
):
d
.
addClass
(
"disable"
)}
var
o
=
e
(
"jquery"
),
t
=
o
(
"#phone-num"
),
i
=
o
(
"#country-select"
),
r
=
o
(
"#area-code"
),
l
=
o
(
"#pwd"
),
d
=
o
(
"#btn-login"
),
c
=!
1
,
u
=!
1
,
p
=
e
(
"js/passport/api"
),
h
=
e
(
"js/plugin/tip"
),
f
=
o
.
trim
,
g
=
h
.
show
;
p
.
selectCssHack
(
i
),
p
.
bindEyesEvt
(),
p
.
bindClearEvt
(),
t
.
bind
(
"input"
,
function
(){
c
=
""
===
f
(
t
.
val
())?
!
1
:
!
0
,
s
()}),
l
.
bind
(
"input"
,
function
(){
var
e
=
f
(
l
.
val
());
u
=
""
===
e
?
!
1
:
!
0
,
s
()}),
i
.
change
(
function
(){
r
.
text
(
i
.
val
())}),
d
.
on
(
"touchstart"
,
function
(){
var
e
=
f
(
t
.
val
()),
a
=
i
.
val
(),
n
=
f
(
l
.
val
());
d
.
hasClass
(
"disable"
)
||
(
p
.
phoneRegx
[
a
].
test
(
e
)
&&
p
.
pwdValidate
(
n
)?
o
.
ajax
({
type
:
"POST"
,
url
:
"/passport/login/auth"
,
data
:{
areaCode
:
a
.
replace
(
"+"
,
""
),
account
:
e
,
password
:
n
},
success
:
function
(
e
){
200
===
e
.
code
?(
g
(
"登录成功"
),
setTimeout
(
function
(){
location
.
href
=
e
.
data
},
1
e3
)):
g
(
e
.
message
)},
error
:
function
(){
g
(
"网络断开连接啦~"
)}})
:
g
(
"账号或密码有错误,请重新输入"
))}),
t
.
trigger
(
"input"
),
l
.
trigger
(
"input"
)}),
define
(
"js/passport/back/mobile"
,[
"jquery"
],
function
(
e
,
a
,
n
){
var
s
=
e
(
"jquery"
),
o
=
s
(
"#phone-num"
),
t
=
s
(
"#country-select"
),
i
=
s
(
"#area-code"
),
r
=
s
(
"#btn-next"
),
l
=
e
(
"js/passport/api"
),
d
=
e
(
"js/plugin/tip"
),
c
=
s
.
trim
,
u
=
d
.
show
;
l
.
selectCssHack
(
s
(
"#country-select"
)),
l
.
bindClearEvt
(),
o
.
bind
(
"input"
,
function
(){
""
===
c
(
o
.
val
())?
r
.
addClass
(
"disable"
):
r
.
removeClass
(
"disable"
)}),
t
.
change
(
function
(){
i
.
text
(
t
.
val
())}),
r
.
on
(
"touchstart"
,
function
(){
var
e
=
c
(
o
.
val
()),
a
=
t
.
val
();
r
.
hasClass
(
"disable"
)
||
(
l
.
phoneRegx
[
a
].
test
(
e
)?
s
.
ajax
({
url
:
"/passport/back/sendcode"
,
type
:
"POST"
,
data
:{
areaCode
:
a
.
replace
(
"+"
,
""
),
phoneNum
:
e
},
success
:
function
(
e
){
200
===
e
.
code
?
location
.
href
=
e
.
data
:
u
(
e
.
message
)}}):
u
(
"手机号格式不正确,请重新输入"
))})}),
define
(
"js/passport/back/code"
,[
"jquery"
],
function
(
e
,
a
,
n
){
e
(
"js/passport/code"
)(
!
1
)}),
define
(
"js/passport/back/email"
,[
"jquery"
],
function
(
e
,
a
,
n
){
var
s
=
e
(
"jquery"
),
o
=
s
(
"#email"
),
t
=
s
(
"#btn-sure"
),
i
=
e
(
"js/passport/api"
),
r
=
e
(
"js/plugin/tip"
),
l
=
s
.
trim
,
d
=
r
.
show
;
i
.
bindClearEvt
(),
o
.
bind
(
"input"
,
function
(){
""
===
l
(
o
.
val
())?
t
.
addClass
(
"disable"
):
t
.
removeClass
(
"disable"
)}),
t
.
on
(
"touchstart"
,
function
(){
var
e
=
l
(
o
.
val
());
t
.
hasClass
(
"disable"
)
||
(
i
.
emailRegx
.
test
(
e
)?
s
.
ajax
({
url
:
"/passport/back/sendemail"
,
type
:
"POST"
,
data
:{
email
:
e
},
success
:
function
(
e
){
200
===
e
.
code
?
location
.
href
=
e
.
data
:
d
(
e
.
message
)}}):
d
(
"邮箱格式不正确,请重新输入"
))})}),
define
(
"js/passport/back/email-success"
,[
"jquery"
],
function
(
e
,
a
,
n
){
var
s
=
e
(
"jquery"
),
o
=
s
(
"#resend"
),
t
=
e
(
"js/plugin/tip"
),
i
=
t
.
show
;
o
.
on
(
"touchstart"
,
function
(
e
){
e
.
preventDefault
(),
s
.
ajax
({
url
:
o
.
data
(
"url"
),
type
:
"GET"
,
success
:
function
(
e
){
i
(
200
===
e
.
code
?
e
.
message
:
e
.
message
)}})});
}),
define
(
"js/passport/back/new-password"
,[
"jquery"
],
function
(
e
,
a
,
n
){
var
s
=
e
(
"jquery"
),
o
=
s
(
"#pwd"
),
t
=
s
(
"#btn-ok"
),
i
=
e
(
"js/passport/api"
),
r
=
e
(
"js/plugin/tip"
),
l
=
s
.
trim
,
d
=
r
.
show
,
c
=
s
(
"#phone-num"
);
i
.
bindEyesEvt
({
status
:
"open"
}),
o
.
bind
(
"input"
,
function
(){
""
===
l
(
o
.
val
())?
t
.
addClass
(
"disable"
):
t
.
removeClass
(
"disable"
)}),
t
.
on
(
"touchstart"
,
function
(){
var
e
,
a
,
n
=
l
(
o
.
val
()),
r
=!
0
;
t
.
hasClass
(
"disable"
)
||
(
e
=
{
password
:
n
},
0
===
c
.
length
&&
(
r
=!
1
),
r
?(
s
.
extend
(
e
,{
phoneNum
:
c
.
val
(),
areaCode
:
s
(
"#areaCode"
).
val
(),
token
:
s
(
"#token"
).
val
()}),
a
=
"/passport/back/passwordByMobile"
):(
s
.
extend
(
e
,{
code
:
s
(
"#email-code"
).
val
()}),
a
=
"/passport/back/passwordByEmail"
),
i
.
pwdValidate
(
n
)?
s
.
ajax
({
type
:
"POST"
,
url
:
a
,
data
:
e
,
success
:
function
(
e
){
200
===
e
.
code
?(
d
(
"密码修改成功"
),
setTimeout
(
function
(){
location
.
href
=
e
.
data
},
1
e3
)):
d
(
e
.
message
)}}):
d
(
"密码6-20位,请重新输入"
))})}),
define
(
"js/product/entry"
,[
"jquery"
,
"swiper"
,
"hammer"
,
"lazyload"
,
"index"
],
function
(
e
,
a
,
n
){
e
(
"js/product/newsale/newarrival"
),
e
(
"js/product/newsale/discount"
),
e
(
"js/product/list"
),
e
(
"js/product/detail/detail"
)}),
define
(
"js/product/newsale/newarrival"
,[
"jquery"
,
"swiper"
,
"hammer"
,
"lazyload"
,
"index"
],
function
(
e
,
a
,
n
){
function
s
(
e
){
var
a
,
n
,
s
,
o
,
l
,
u
,
p
=
{};
if
(
!
d
){
if
(
e
){
for
(
n
in
T
)
T
.
hasOwnProperty
(
n
)
&&
(
T
[
n
].
reload
=!
0
);
switch
(
z
.
children
(
".active"
).
removeClass
(
"active"
),
E
.
addClass
(
"active"
),
e
.
type
){
case
"gender"
:
a
=
{
gender
:
e
.
id
};
break
;
case
"brand"
:
a
=
{
brand
:
e
.
id
};
break
;
case
"sort"
:
a
=
{
sort
:
e
.
id
};
break
;
case
"color"
:
a
=
{
color
:
e
.
id
};
break
;
case
"size"
:
a
=
{
size
:
e
.
id
};
break
;
case
"price"
:
a
=
{
price
:
e
.
id
};
break
;
case
"discount"
:
a
=
{
discount
:
e
.
id
};
break
;
case
"limit"
:
a
=
{
limit
:
e
.
id
};
break
;
case
"channel"
:
a
=
{
channel
:
e
.
id
};
break
;
case
"p_d"
:
a
=
{
p_d
:
e
.
id
}}
c
.
extend
(
C
,
a
)}
if
(
E
.
hasClass
(
"today"
)?(
o
=
"today"
,
l
=
1
):
E
.
hasClass
(
"week"
)?(
o
=
"week"
,
l
=
2
):
E
.
hasClass
(
"sale"
)
&&
(
o
=
"sale"
,
l
=
3
),
s
=
T
[
o
],
u
=
s
.
page
+
1
,
s
.
reload
)
u
=
1
;
else
if
(
s
.
end
)
return
;
c
.
extend
(
p
,
C
,{
dayLimit
:
l
,
page
:
u
}),
d
=!
0
,
m
.
showLoadingMask
(),
c
.
ajax
({
type
:
"GET"
,
url
:
"/product/newsale/selectNewSale"
,
data
:
p
,
success
:
function
(
e
){
var
a
,
n
;
switch
(
o
){
case
"today"
:
a
=
t
;
break
;
case
"week"
:
a
=
i
;
break
;
case
"sale"
:
a
=
r
}
" "
===
e
?(
s
.
end
=!
0
,
s
.
reload
&&
a
.
html
(
b
)):
s
.
reload
?(
a
.
html
(
e
),
h
(
a
.
find
(
".lazy"
))):(
n
=
a
.
find
(
".good-info"
).
length
,
a
.
append
(
e
),
h
(
a
.
find
(
".good-info:gt("
+
(
n
-
1
)
+
") .lazy"
))),
s
.
reload
=!
1
,
s
.
page
=
u
,
d
=!
1
,
m
.
hideLoadingMask
(),
window
.
rePosFooter
()},
error
:
function
(){
f
.
show
(
"网络断开连接了~"
),
d
=!
1
,
m
.
hideLoadingMask
()}})}}
var
o
,
t
,
i
,
r
,
l
,
d
,
c
=
e
(
"jquery"
),
u
=
e
(
"swiper"
),
p
=
e
(
"hammer"
),
h
=
e
(
"lazyload"
),
f
=
e
(
"js/plugin/tip"
),
g
=
e
(
"js/plugin/filter"
),
m
=
e
(
"js/plugin/loading"
),
v
=
c
(
"#goods-container"
),
w
=
v
.
children
(),
t
=
c
(
w
.
get
(
0
)),
i
=
c
(
w
.
get
(
1
)).
addClass
(
"hide"
),
r
=
c
(
w
.
get
(
2
)).
addClass
(
"hide"
),
y
=
c
(
window
).
height
(),
b
=
'<p class="no-result">未找到相关搜索结果</p>'
,
C
=
{
gender
:
c
(
"#gender"
).
val
(),
brand
:
c
(
"#brand"
).
val
(),
sort
:
c
(
"#sort"
).
val
(),
msort
:
c
(
"#msort"
).
val
(),
misort
:
c
(
"#misort"
).
val
(),
color
:
c
(
"#color"
).
val
(),
size
:
c
(
"#size"
).
val
(),
price
:
c
(
"#price"
).
val
(),
discount
:
c
(
"#discount"
).
val
(),
limit
:
c
(
"#limit"
).
val
(),
channel
:
c
(
"#channel"
).
val
(),
p_d
:
c
(
"#p_d"
).
val
(),
dayLimit
:
1
,
style
:
c
(
"#style"
).
val
()},
j
=
c
.
extend
({},
C
),
x
=
new
Date
,
k
=
x
.
getMonth
()
+
1
,
q
=
x
.
getDate
(),
z
=
c
(
"#list-nav"
),
T
=
{
today
:{
reload
:
!
0
,
page
:
0
,
end
:
!
1
},
week
:{
reload
:
!
0
,
page
:
0
,
end
:
!
1
},
sale
:{
reload
:
!
0
,
page
:
0
,
end
:
!
1
}},
E
=
z
.
find
(
".active"
);
e
(
"js/product/suspend-cart"
),
c
(
"#today a"
).
text
(
k
+
"月"
+
q
+
"号"
),
c
(
".swiper-container .swiper-slide"
).
length
>
1
&&
(
o
=
new
u
(
".swiper-container"
,{
lazyLoading
:
!
0
,
lazyLoadingInPrevNext
:
!
0
,
loop
:
!
0
,
autoplay
:
3
e3
,
autoplayDisableOnInteraction
:
!
0
,
paginationClickable
:
!
0
,
pagination
:
".banner-top .pagination-inner"
})),
c
.
ajax
({
type
:
"GET"
,
url
:
"/product/newsale/filter"
,
data
:
C
,
success
:
function
(
e
){
v
.
append
(
e
),
g
.
initFilter
({
fCbFn
:
s
,
hCbFn
:
function
(){
E
.
addClass
(
"active"
),
E
.
siblings
(
".filter"
).
removeClass
(
"active"
)}})}}),
h
(
c
(
".lazy"
)),
l
=
new
p
(
z
[
0
]),
l
.
on
(
"tap"
,
function
(
e
){
var
a
,
n
,
o
,
l
=
c
(
e
.
target
).
closest
(
"li"
);
if
(
e
.
preventDefault
(),
l
.
hasClass
(
"filter"
))
l
.
hasClass
(
"active"
)?(
g
.
hideFilter
(),
E
.
addClass
(
"active"
),
l
.
removeClass
(
"active"
)):(
E
=
l
.
siblings
(
".active"
),
E
.
removeClass
(
"active"
),
l
.
addClass
(
"active"
),
g
.
showFilter
());
else
{
if
(
l
.
hasClass
(
"today"
)?
n
=
"today"
:
l
.
hasClass
(
"week"
)?
n
=
"week"
:
l
.
hasClass
(
"sale"
)
&&
(
n
=
"sale"
),
a
=
T
[
n
],
!
l
.
hasClass
(
"active"
)){
if
(
o
=
l
.
siblings
(
".active"
),
E
=
l
,
o
.
hasClass
(
"filter"
))
g
.
hideFilter
();
else
{
switch
(
v
.
children
(
".container:not(.hide)"
).
addClass
(
"hide"
),
n
){
case
"today"
:
t
.
removeClass
(
"hide"
);
break
;
case
"week"
:
i
.
removeClass
(
"hide"
);
break
;
case
"sale"
:
r
.
removeClass
(
"hide"
)}
g
.
resetFilter
(),
C
=
c
.
extend
({},
j
)}
o
.
removeClass
(
"active"
),
l
.
addClass
(
"active"
)}
a
.
reload
&&
s
()}
e
.
srcEvent
.
stopPropagation
()}),
c
(
window
).
scroll
(
function
(){
c
(
window
).
scrollTop
()
+
y
>
c
(
document
).
height
()
-
.
25
*
v
.
height
()
-
50
&&
void
0
!==
E
&&
s
()}),
s
()}),
define
(
"js/plugin/filter"
,[
"jquery"
,
"hammer"
],
function
(
e
,
a
,
n
){
function
s
(){
u
.
addClass
(
"hide"
)}
function
o
(){
u
.
removeClass
(
"hide"
)}
function
t
(){
var
e
=
g
(
".filter-body .sub-item"
);
e
.
on
(
"touchstart"
,
function
(){
e
.
removeClass
(
"highlight"
),
g
(
this
).
addClass
(
"highlight"
)}).
on
(
"touchend touchcancel"
,
function
(){
g
(
this
).
removeClass
(
"highlight"
)})}
function
i
(
e
){
e
.
hasClass
(
"active"
)
||
(
e
.
siblings
(
".active"
).
removeClass
(
"active"
),
e
.
addClass
(
"active"
))}
function
r
(
e
){
var
a
,
n
,
s
=
e
.
closest
(
".sub-classify"
),
o
=
s
.
siblings
(
".shower"
);
return
e
.
hasClass
(
"chosed"
)?
s
:(
s
.
children
(
".chosed"
).
removeClass
(
"chosed"
),
e
.
addClass
(
"chosed"
),
a
=
g
.
trim
(
e
.
html
()),
n
=
g
.
trim
(
o
.
html
()),
o
.
html
(
n
.
substring
(
0
,
n
.
indexOf
(
"</span>"
)
+
7
)
+
a
.
substring
(
0
,
a
.
indexOf
(
"<i"
))),
0
===
e
.
index
()?
o
.
addClass
(
"default"
):
o
.
removeClass
(
"default"
),
s
)}
function
l
(
e
){
var
a
,
n
=
e
.
data
(
"id"
);
a
=
r
(
e
),
p
&&
p
({
type
:
a
.
data
(
"type"
),
id
:
n
}),
s
()}
function
d
(
e
){
var
a
;
p
=
e
.
fCbFn
,
h
=
e
.
hCbFn
,
f
=
e
.
missStatus
,
t
(),
u
=
g
(
".filter-mask"
),
a
=
new
m
(
u
[
0
]),
a
.
on
(
"tap"
,
function
(
e
){
var
a
,
n
=
g
(
e
.
target
);
e
.
preventDefault
(),
n
.
closest
(
".filter-body"
).
length
>
0
?(
a
=
n
.
closest
(
".sub-item"
),
a
.
length
>
0
?(
a
=
n
.
closest
(
"li"
),
l
(
a
)):(
a
=
n
.
closest
(
".classify-item"
),
e
.
srcEvent
.
stopPropagation
(),
i
(
a
))):(
s
(),
h
&&
h
())})}
function
c
(){
"undefined"
!=
typeof
u
&&
(
g
(
".sub-classify"
).
each
(
function
(){
r
(
g
(
this
).
children
(
":first-child"
))}),
i
(
g
(
".classify > :first-child"
)))}
var
u
,
p
,
h
,
f
,
g
=
e
(
"jquery"
),
m
=
e
(
"hammer"
);
a
.
initFilter
=
d
,
a
.
showFilter
=
o
,
a
.
hideFilter
=
s
,
a
.
resetFilter
=
c
}),
define
(
"js/product/suspend-cart"
,[
"jquery"
],
function
(
e
,
a
,
n
){
var
s
=
e
(
"jquery"
),
o
=
s
(
"#suspend-cart"
);
s
.
ajax
({
type
:
"GET"
,
url
:
"/cart/index/count"
,
success
:
function
(
e
){
200
===
e
.
code
&&
o
.
find
(
".cart-count"
).
html
(
e
.
data
.
cart_goods_count
).
removeClass
(
"hide"
)}})}),
define
(
"js/product/newsale/discount"
,[
"jquery"
,
"swiper"
,
"hammer"
,
"lazyload"
,
"index"
],
function
(
e
,
a
,
n
){
function
s
(
e
){
var
a
,
n
,
s
,
o
,
t
,
l
=
{};
if
(
!
i
){
if
(
e
){
for
(
n
in
x
)
x
.
hasOwnProperty
(
n
)
&&
(
x
[
n
].
reload
=!
0
);
switch
(
j
.
children
(
".active"
).
removeClass
(
"active"
),
k
.
addClass
(
"active"
),
e
.
type
){
case
"gender"
:
a
=
{
gender
:
e
.
id
};
break
;
case
"brand"
:
a
=
{
brand
:
e
.
id
};
break
;
case
"sort"
:
a
=
{
sort
:
e
.
id
};
break
;
case
"color"
:
a
=
{
color
:
e
.
id
};
break
;
case
"size"
:
a
=
{
size
:
e
.
id
};
break
;
case
"price"
:
a
=
{
price
:
e
.
id
};
break
;
case
"discount"
:
a
=
{
discount
:
e
.
id
}}
r
.
extend
(
C
,
a
)}
if
(
k
.
hasClass
(
"new"
)?
o
=
"newest"
:
k
.
hasClass
(
"price"
)?
o
=
"price"
:
k
.
hasClass
(
"discount"
)
&&
(
o
=
"discount"
),
s
=
x
[
o
],
t
=
s
.
page
+
1
,
s
.
reload
)
t
=
1
;
else
if
(
s
.
end
)
return
;
r
.
extend
(
l
,
C
,{
type
:
o
,
order
:
s
.
order
,
page
:
t
}),
i
=!
0
,
h
.
showLoadingMask
(),
r
.
ajax
({
type
:
"GET"
,
url
:
"/product/newsale/selectNewSale"
,
data
:
l
,
success
:
function
(
e
){
var
a
,
n
;
switch
(
o
){
case
"newest"
:
a
=
m
;
break
;
case
"price"
:
a
=
v
;
break
;
case
"discount"
:
a
=
w
}
" "
===
e
?(
s
.
end
=!
0
,
s
.
reload
&&
a
.
html
(
b
)):
s
.
reload
?(
a
.
html
(
e
),
c
(
a
.
find
(
".lazy"
))):(
n
=
a
.
find
(
".good-info"
).
length
,
a
.
append
(
e
),
c
(
a
.
find
(
".good-info:gt("
+
(
n
-
1
)
+
") .lazy"
))),
s
.
reload
=!
1
,
s
.
page
=
t
,
i
=!
1
,
h
.
hideLoadingMask
(),
window
.
rePosFooter
()},
error
:
function
(){
u
.
show
(
"网络断开连接了~"
),
i
=!
1
,
h
.
hideLoadingMask
()}})}}
var
o
,
t
,
i
,
r
=
e
(
"jquery"
),
l
=
e
(
"swiper"
),
d
=
e
(
"hammer"
),
c
=
e
(
"lazyload"
),
u
=
e
(
"js/plugin/tip"
),
p
=
e
(
"js/plugin/filter"
),
h
=
e
(
"js/plugin/loading"
),
f
=
r
(
"#goods-container"
),
g
=
f
.
children
(),
m
=
r
(
g
.
get
(
0
)),
v
=
r
(
g
.
get
(
1
)),
w
=
r
(
g
.
get
(
2
)),
y
=
r
(
window
).
height
(),
b
=
'<p class="no-result">未找到相关搜索结果</p>'
,
C
=
{
gender
:
r
(
"#gender"
).
val
(),
brand
:
r
(
"#brand"
).
val
(),
sort
:
r
(
"#sort"
).
val
(),
msort
:
r
(
"#msort"
).
val
(),
misort
:
r
(
"#misort"
).
val
(),
color
:
r
(
"#color"
).
val
(),
size
:
r
(
"#size"
).
val
(),
price
:
r
(
"#price"
).
val
(),
discount
:
r
(
"#discount"
).
val
(),
style
:
r
(
"#style"
).
val
()},
j
=
r
(
"#list-nav"
),
x
=
{
newest
:{
order
:
1
,
reload
:
!
0
,
page
:
0
,
end
:
!
1
},
price
:{
order
:
0
,
reload
:
!
0
,
page
:
0
,
end
:
!
1
},
discount
:{
order
:
0
,
reload
:
!
0
,
page
:
0
,
end
:
!
1
}},
k
=
j
.
find
(
".active"
);
e
(
"js/product/suspend-cart"
),
r
(
".swiper-container .swiper-slide"
).
length
>
1
&&
(
o
=
new
l
(
".swiper-container"
,{
lazyLoading
:
!
0
,
lazyLoadingInPrevNext
:
!
0
,
loop
:
!
0
,
autoplay
:
3
e3
,
autoplayDisableOnInteraction
:
!
0
,
paginationClickable
:
!
0
,
pagination
:
".banner-top .pagination-inner"
})),
r
.
ajax
({
type
:
"GET"
,
url
:
"/product/newsale/filter"
,
data
:
C
,
success
:
function
(
e
){
f
.
append
(
e
),
p
.
initFilter
({
fCbFn
:
s
,
hCbFn
:
function
(){
k
.
addClass
(
"active"
),
k
.
siblings
(
".filter"
).
removeClass
(
"active"
)},
missStatus
:
!
0
})}}),
c
(
r
(
".lazy"
)),
t
=
new
d
(
j
[
0
]),
t
.
on
(
"tap"
,
function
(
e
){
var
a
,
n
,
o
,
t
=
r
(
e
.
target
).
closest
(
"li"
);
if
(
e
.
preventDefault
(),
"undefined"
!=
typeof
t
&&
0
!==
t
.
length
){
if
(
t
.
hasClass
(
"filter"
))
t
.
hasClass
(
"active"
)?(
p
.
hideFilter
(),
k
.
addClass
(
"active"
),
t
.
removeClass
(
"active"
)):(
k
=
t
.
siblings
(
".active"
),
k
.
removeClass
(
"active"
),
t
.
addClass
(
"active"
),
p
.
showFilter
());
else
{
if
(
t
.
hasClass
(
"new"
)?
n
=
"newest"
:
t
.
hasClass
(
"price"
)?
n
=
"price"
:
t
.
hasClass
(
"discount"
)
&&
(
n
=
"discount"
),
a
=
x
[
n
],
t
.
hasClass
(
"active"
)){
if
(
t
.
hasClass
(
"new"
))
return
;(
t
.
hasClass
(
"price"
)
||
t
.
hasClass
(
"discount"
))
&&
(
t
.
find
(
".icon > .iconfont"
).
toggleClass
(
"cur"
),
k
=
t
,
a
.
reload
=!
0
,
a
.
order
=
0
===
a
.
order
?
1
:
0
)}
else
{
if
(
o
=
t
.
siblings
(
".active"
),
k
=
t
,
o
.
hasClass
(
"filter"
))
p
.
hideFilter
();
else
switch
(
f
.
children
(
".container:not(.hide)"
).
addClass
(
"hide"
),
n
){
case
"newest"
:
m
.
removeClass
(
"hide"
);
break
;
case
"price"
:
v
.
removeClass
(
"hide"
);
break
;
case
"discount"
:
w
.
removeClass
(
"hide"
)}
o
.
removeClass
(
"active"
),
t
.
addClass
(
"active"
)}
a
.
reload
&&
s
()}
e
.
srcEvent
.
stopPropagation
()}}),
r
(
window
).
scroll
(
function
(){
r
(
window
).
scrollTop
()
+
y
>
r
(
document
).
height
()
-
.
25
*
f
.
height
()
-
50
&&
void
0
!==
k
&&
s
()}),
s
()}),
define
(
"js/product/list"
,[
"jquery"
,
"hammer"
,
"lazyload"
],
function
(
e
,
a
,
n
){
function
s
(
e
){
var
a
,
n
,
s
,
t
,
i
,
r
=
{};
if
(
!
o
){
if
(
e
){
for
(
n
in
E
)
E
.
hasOwnProperty
(
n
)
&&
(
E
[
n
].
reload
=!
0
);
switch
(
T
.
children
(
".active"
).
removeClass
(
"active"
),
S
.
addClass
(
"active"
),
e
.
type
){
case
"gender"
:
a
=
{
gender
:
e
.
id
};
break
;
case
"brand"
:
a
=
{
brand
:
e
.
id
};
break
;
case
"sort"
:
a
=
{
sort
:
e
.
id
};
break
;
case
"color"
:
a
=
{
color
:
e
.
id
};
break
;
case
"size"
:
a
=
{
size
:
e
.
id
};
break
;
case
"price"
:
a
=
{
price
:
e
.
id
};
break
;
case
"discount"
:
a
=
{
discount
:
e
.
id
}}
d
.
extend
(
z
,
a
)}
if
(
S
.
hasClass
(
"new"
)?
t
=
"newest"
:
S
.
hasClass
(
"price"
)?
t
=
"price"
:
S
.
hasClass
(
"discount"
)
&&
(
t
=
"discount"
),
s
=
E
[
t
],
i
=
s
.
page
+
1
,
s
.
reload
)
i
=
1
;
else
if
(
s
.
end
)
return
;
d
.
extend
(
r
,
z
,{
type
:
t
,
order
:
s
.
order
,
page
:
i
}),
o
=!
0
,
v
.
showLoadingMask
(),
d
.
ajax
({
type
:
"GET"
,
url
:
"/index/search/search"
,
data
:
r
,
success
:
function
(
e
){
var
a
,
n
,
r
=
'<p class="no-result">未找到相关搜索结果</p>'
;
switch
(
t
){
case
"newest"
:
n
=
y
;
break
;
case
"price"
:
n
=
b
;
break
;
case
"discount"
:
n
=
C
}
" "
===
e
?(
s
.
end
=!
0
,
s
.
reload
&&
n
.
html
(
r
)):
s
.
reload
?(
n
.
html
(
e
),
u
(
n
.
find
(
".lazy"
))):(
a
=
n
.
find
(
".good-info"
).
length
,
n
.
append
(
e
),
u
(
n
.
find
(
".good-info:gt("
+
(
a
-
1
)
+
") .lazy"
))),
s
.
reload
=!
1
,
s
.
page
=
i
,
o
=!
1
,
v
.
hideLoadingMask
(),
window
.
rePosFooter
()}})}}
var
o
,
t
,
i
,
r
,
l
,
d
=
e
(
"jquery"
),
c
=
e
(
"hammer"
),
u
=
e
(
"lazyload"
),
p
=
d
(
"#brand-header"
),
h
=
d
(
"#intro-box"
),
f
=
e
(
"js/plugin/filter"
),
g
=
e
(
"js/index/write-search"
),
m
=
e
(
"js/plugin/tip"
),
v
=
e
(
"js/plugin/loading"
),
w
=
d
(
"#goods-container"
),
y
=
w
.
children
(
".new-goods"
),
b
=
w
.
children
(
".price-goods"
),
C
=
w
.
children
(
".discount-goods"
),
j
=
d
(
window
).
height
(),
x
=
d
(
"#search-input input"
),
k
=
d
(
".search-icon"
),
q
=
d
(
"#search-input .clear-input"
),
z
=
{
gender
:
d
(
"#gender"
).
val
(),
brand
:
d
(
"#brand"
).
val
(),
sort
:
d
(
"#sort"
).
val
(),
msort
:
d
(
"#msort"
).
val
(),
misort
:
d
(
"#misort"
).
val
(),
color
:
d
(
"#color"
).
val
(),
size
:
d
(
"#size"
).
val
(),
price
:
d
(
"#price"
).
val
(),
discount
:
d
(
"#discount"
).
val
(),
query
:
d
(
"#query"
).
val
(),
style
:
d
(
"#style"
).
val
()},
T
=
d
(
"#list-nav"
),
E
=
{
newest
:{
order
:
1
,
reload
:
!
0
,
page
:
0
,
end
:
!
1
},
price
:{
order
:
0
,
reload
:
!
0
,
page
:
0
,
end
:
!
1
},
discount
:{
order
:
0
,
reload
:
!
0
,
page
:
0
,
end
:
!
1
}},
S
=
T
.
find
(
".active"
);
x
.
on
(
"input"
,
function
(){
""
===
x
.
val
()?(
k
.
css
(
"color"
,
"#b2b2b2"
),
q
.
addClass
(
"hide"
)):(
k
.
css
(
"color"
,
"#666"
),
q
.
removeClass
(
"hide"
))}),
q
.
on
(
"touchend"
,
function
(){
x
.
val
(
""
).
trigger
(
"input"
)}),
d
(
"#search"
).
on
(
"touchend"
,
function
(){
return
d
(
this
).
closest
(
"form"
).
submit
(),
!
1
}),
e
(
"js/product/suspend-cart"
),
d
.
ajax
({
type
:
"GET"
,
url
:
"/search/filter"
,
data
:
z
,
success
:
function
(
e
){
w
.
append
(
e
),
f
.
initFilter
({
fCbFn
:
s
,
hCbFn
:
function
(){
S
.
addClass
(
"active"
),
S
.
siblings
(
".filter"
).
removeClass
(
"active"
)}})}}),
u
(
d
(
".lazy"
)),
g
.
bindWirteLocal
(
d
(
"#search-form"
)),
t
=
new
c
(
T
[
0
]),
t
.
on
(
"tap"
,
function
(
e
){
var
a
,
n
,
o
,
t
=
d
(
e
.
target
).
closest
(
"li"
);
if
(
t
.
hasClass
(
"filter"
))
t
.
hasClass
(
"active"
)?(
f
.
hideFilter
(),
S
.
addClass
(
"active"
),
t
.
removeClass
(
"active"
)):(
S
=
t
.
siblings
(
".active"
),
S
.
removeClass
(
"active"
),
t
.
addClass
(
"active"
),
f
.
showFilter
());
else
{
if
(
t
.
hasClass
(
"new"
)?
n
=
"newest"
:
t
.
hasClass
(
"price"
)?
n
=
"price"
:
t
.
hasClass
(
"discount"
)
&&
(
n
=
"discount"
),
a
=
E
[
n
],
t
.
hasClass
(
"active"
)){
if
(
t
.
hasClass
(
"new"
))
return
;(
t
.
hasClass
(
"price"
)
||
t
.
hasClass
(
"discount"
))
&&
(
t
.
find
(
".icon > .iconfont"
).
toggleClass
(
"cur"
),
S
=
t
,
a
.
reload
=!
0
,
a
.
order
=
0
===
a
.
order
?
1
:
0
)}
else
{
if
(
o
=
t
.
siblings
(
".active"
),
S
=
t
,
o
.
hasClass
(
"filter"
))
f
.
hideFilter
();
else
switch
(
w
.
children
(
".container:not(.hide)"
).
addClass
(
"hide"
),
n
){
case
"newest"
:
y
.
removeClass
(
"hide"
);
break
;
case
"price"
:
b
.
removeClass
(
"hide"
);
break
;
case
"discount"
:
C
.
removeClass
(
"hide"
)}
o
.
removeClass
(
"active"
),
t
.
addClass
(
"active"
)}
a
.
reload
&&
s
()}}),
d
(
window
).
scroll
(
function
(){
d
(
window
).
scrollTop
()
+
j
>
d
(
document
).
height
()
-
.
25
*
w
.
height
()
&&
s
()}),
p
.
length
>
0
&&
(
i
=
new
c
(
p
.
children
(
".btn-intro"
)[
0
]),
i
.
on
(
"tap"
,
function
(){
h
.
removeClass
(
"hide"
),
d
(
"body"
).
addClass
(
"overflow-hidden"
)}),
r
=
new
c
(
document
.
getElementById
(
"intro-box"
)),
r
.
on
(
"tap"
,
function
(
e
){
var
a
=
d
(
e
.
target
);
e
.
srcEvent
.
preventDefault
(),(
0
===
a
.
closest
(
"#brand-intro"
).
length
||
a
.
hasClass
(
"close-intro"
))
&&
(
h
.
addClass
(
"hide"
),
d
(
"body"
).
removeClass
(
"overflow-hidden"
))}),
l
=
new
c
(
p
.
children
(
".btn-col"
)[
0
]),
l
.
on
(
"tap"
,
function
(){
var
e
,
a
=
d
(
this
),
n
=
p
.
data
(
"id"
);
e
=
a
.
hasClass
(
"coled"
)?
"cancel"
:
"ok"
,
d
.
ajax
({
type
:
"POST"
,
url
:
"/product/opt/favoriteBrand"
,
data
:{
id
:
n
,
opt
:
e
},
success
:
function
(
e
){
200
===
e
.
code
?
a
.
toggleClass
(
"coled"
):
400
===
e
.
code
?
location
.
href
=
e
.
data
:
m
.
show
(
e
.
message
)},
error
:
function
(){
m
.
show
(
"网络断开连接了~"
)}})})),
s
()}),
define
(
"js/product/detail/detail"
,[
"jquery"
,
"swiper"
,
"lazyload"
,
"index"
],
function
(
e
,
a
,
n
){
var
s
,
o
=
e
(
"jquery"
),
t
=
e
(
"swiper"
),
i
=
e
(
"lazyload"
);
i
(
o
(
"img.lazy"
)),
s
=
new
t
(
".banner-swiper"
,{
lazyLoading
:
!
0
,
lazyLoadingInPrevNext
:
!
0
,
loop
:
!
0
,
paginationClickable
:
!
0
,
pagination
:
".swiper-pagination"
,
nextButton
:
".swiper-button-next"
,
prevButton
:
".swiper-button-prev"
})});
\ No newline at end of file
...
...
Please
register
or
login
to post a comment