Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
周少峰
9 years ago
Commit
39492b93442a1301074f1a4758e8b7fd7f1171b6
1 parent
2acd502a
gulp ge
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
6 deletions
static/dist/myohobuy/1.3.22/index-debug.js
static/dist/myohobuy/1.3.22/index.css
static/dist/myohobuy/1.3.22/index.js
static/dist/myohobuy/1.3.22/index-debug.js
View file @
39492b9
...
...
@@ -9772,10 +9772,35 @@ $(function() {
reasonSwiper
=
new
Swiper
(
'.box-main'
,
{
paginationClickable
:
true
,
direction
:
'vertical'
,
slidesPerView
:
4
,
effect
:
'coverflow'
,
slidesPerView
:
6
,
height
:
200
,
centeredSlides
:
true
,
initialSlide
:
2
initialSlide
:
3
,
onSlideChangeStart
:
function
(
reasonSwiper
)
{
var
activeIndex
=
reasonSwiper
.
activeIndex
,
slides
=
reasonSwiper
.
slides
,
i
=
0
;
if
(
slides
.
length
!==
1
)
{
if
(
activeIndex
===
0
)
{
for
(
i
=
1
;
i
<
slides
.
length
;
i
++
)
{
$
(
slides
[
i
]).
css
(
'transform'
,
''
);
}
}
else
if
(
activeIndex
===
slides
.
length
-
1
)
{
for
(
i
=
0
;
i
<
activeIndex
;
i
++
)
{
$
(
slides
[
i
]).
css
(
'transform'
,
'rotateX('
+
(
30
+
(
activeIndex
-
i
)
*
12
)
+
'deg)'
);
}
}
else
{
for
(
i
=
0
;
i
<
activeIndex
;
i
++
)
{
$
(
slides
[
i
]).
css
(
'transform'
,
'rotateX('
+
(
30
+
(
activeIndex
-
i
)
*
12
)
+
'deg)'
);
}
for
(
i
=
activeIndex
+
1
;
i
<
slides
.
length
;
i
++
)
{
$
(
slides
[
i
]).
css
(
'transform'
,
''
);
}
}
}
$
(
slides
[
activeIndex
]).
css
(
'transform'
,
''
);
}
});
});
...
...
@@ -9943,10 +9968,35 @@ $(function() {
reasonSwiper
=
new
Swiper
(
'.box-main'
,
{
paginationClickable
:
true
,
direction
:
'vertical'
,
slidesPerView
:
4
,
effect
:
'coverflow'
,
slidesPerView
:
6
,
height
:
200
,
centeredSlides
:
true
,
initialSlide
:
2
initialSlide
:
3
,
onSlideChangeStart
:
function
(
reasonSwiper
)
{
var
activeIndex
=
reasonSwiper
.
activeIndex
,
slides
=
reasonSwiper
.
slides
,
i
=
0
;
if
(
slides
.
length
!==
1
)
{
if
(
activeIndex
===
0
)
{
for
(
i
=
1
;
i
<
slides
.
length
;
i
++
)
{
$
(
slides
[
i
]).
css
(
'transform'
,
''
);
}
}
else
if
(
activeIndex
===
slides
.
length
-
1
)
{
for
(
i
=
0
;
i
<
activeIndex
;
i
++
)
{
$
(
slides
[
i
]).
css
(
'transform'
,
'rotateX('
+
(
30
+
(
activeIndex
-
i
)
*
12
)
+
'deg)'
);
}
}
else
{
for
(
i
=
0
;
i
<
activeIndex
;
i
++
)
{
$
(
slides
[
i
]).
css
(
'transform'
,
'rotateX('
+
(
30
+
(
activeIndex
-
i
)
*
12
)
+
'deg)'
);
}
for
(
i
=
activeIndex
+
1
;
i
<
slides
.
length
;
i
++
)
{
$
(
slides
[
i
]).
css
(
'transform'
,
''
);
}
}
}
$
(
slides
[
activeIndex
]).
css
(
'transform'
,
''
);
}
});
});
...
...
static/dist/myohobuy/1.3.22/index.css
View file @
39492b9
This diff could not be displayed because it is too large.
static/dist/myohobuy/1.3.22/index.js
View file @
39492b9
This diff could not be displayed because it is too large.
Please
register
or
login
to post a comment