Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
2586703@qq.com
10 years ago
Commit
63f8d6d3e13285a27ac9024b62ab252923d42c59
1 parent
794bafa7
大banner js修改
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
res/js/channel.js
res/js/yohood.js
res/js/channel.js
View file @
63f8d6d
...
...
@@ -77,10 +77,14 @@ define('channel', function(require, exports) {
slideBox
:
'.slide-box'
,
prev
:
'.slide-prev'
,
next
:
'.slide-next'
,
pagination
:
'.dib a'
,
activeClass
:
'on'
,
auto
:
3000
,
continuous
:
true
continuous
:
true
,
callback
:
function
(
index
)
{
if
(
index
>=
$
(
'.dib a'
).
size
())
{
index
=
index
-
$
(
'.dib a'
).
size
();
}
$
(
'.dib a'
).
removeClass
(
'on'
).
eq
(
index
).
addClass
(
'on'
);
}
});
//限量商品滑动
...
...
res/js/yohood.js
View file @
63f8d6d
...
...
@@ -165,10 +165,14 @@ define('yohood', function(require, exports) {
slideBox
:
'.slide-box'
,
prev
:
'.slide-prev'
,
next
:
'.slide-next'
,
pagination
:
'.dib a'
,
activeClass
:
'on'
,
auto
:
3000
,
continuous
:
true
continuous
:
true
,
callback
:
function
(
index
)
{
if
(
index
>=
$
(
'.dib a'
).
size
())
{
index
=
index
-
$
(
'.dib a'
).
size
();
}
$
(
'.dib a'
).
removeClass
(
'on'
).
eq
(
index
).
addClass
(
'on'
);
}
});
if
(
$
(
'.slide-box'
).
find
(
'.box'
).
size
()
<=
1
)
{
...
...
Please
register
or
login
to post a comment