Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
group-buy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
group-buy-ui
Commits
35c3de61
Commit
35c3de61
authored
Sep 28, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/group-buy' of git.quantgroup.cn:ui/group-buy-ui into feat/group-buy
parents
a00678f5
acd3b360
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
43 deletions
+47
-43
avatorSwiper.vue
src/components/avatorSwiper.vue
+33
-28
groupSwiper.vue
src/components/groupSwiper.vue
+14
-15
No files found.
src/components/avatorSwiper.vue
View file @
35c3de61
<
template
>
<div
class=
"avator-swiper"
>
<div
ref=
"refLeft"
:class=
"
{ 'ani-left': isAddClass }" class="avator-swiper_left">
<div
v-if=
"avatorData.length"
ref=
"refLeft"
:class=
"
{ 'ani-left': isAddClass }"
class="avator-swiper_left"
>
<cr-image
class=
"avator-swiper_small"
:src=
"leftImgPath"
/>
</div>
<swiper
...
...
@@ -21,7 +26,12 @@
</div>
</swiper-slide>
</swiper>
<div
ref=
"refRight"
:class=
"
{ 'ani-right': isAddClass }" class="avator-swiper_right">
<div
v-if=
"avatorData.length"
ref=
"refRight"
:class=
"
{ 'ani-right': isAddClass }"
class="avator-swiper_right"
>
<cr-image
class=
"avator-swiper_small"
:src=
"rightImgPath"
/>
</div>
</div>
...
...
@@ -150,34 +160,9 @@ export default {
opacity: 1;
}
}
.avator-swiper_right {
img {
width: 100%;
height: 100%;
}
}
.avator-swiper {
position: relative;
&_left,
&_right {
position: absolute;
width: 18px;
height: 18px;
top: 50%;
margin-top: -9px;
border-radius: 50%;
overflow: hidden;
img {
width: 100%;
height: 100%;
}
}
&_left {
left: 3.5px;
}
&_right {
right: 3.5px;
}
width: 100%;
margin: 0 auto !important;
...
...
@@ -195,4 +180,24 @@ export default {
}
}
}
.avator-swiper_left,
.avator-swiper_right {
position: absolute;
width: 18px;
height: 18px;
top: 50%;
margin-top: -9px;
border-radius: 50%;
overflow: hidden;
img {
width: 100%;
height: 100%;
}
}
.avator-swiper_left {
left: 3.5px;
}
.avator-swiper_right {
right: 3.5px;
}
</
style
>
src/components/groupSwiper.vue
View file @
35c3de61
...
...
@@ -101,12 +101,10 @@ export default {
@keyframes leftToRight {
from {
transform: scale(0.3, 0.3);
transform-origin: right right;
opacity: 0;
}
to {
transform: scale(1, 1);
transform-origin: left left;
opacity: 1;
}
}
...
...
@@ -118,6 +116,20 @@ export default {
.ani-opt {
opacity: 0;
}
.avator-swiper_left,
.avator-swiper_right {
height: 100%;
width: 25px;
position: absolute;
top: 0px;
// bottom: 0;
}
.avator-swiper_right {
right: 3px;
}
.avator-swiper_left {
left: 0px;
}
.avator-swiper {
width: 100%;
margin: 0 auto !important;
...
...
@@ -125,19 +137,6 @@ export default {
&_container {
transition-timing-function: linear;
}
&_right,
&_left {
height: 100%;
width: 25px;
position: absolute;
top: 0px;
}
&_right {
right: 3px;
}
&_left {
left: 0px;
}
&_item {
transition: transform 0.2s linear;
padding-top: 2px;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment