Commit 35c3de61 authored by Xuguangxing's avatar Xuguangxing

Merge branch 'feat/group-buy' of git.quantgroup.cn:ui/group-buy-ui into feat/group-buy

parents a00678f5 acd3b360
<template> <template>
<div class="avator-swiper"> <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" /> <cr-image class="avator-swiper_small" :src="leftImgPath" />
</div> </div>
<swiper <swiper
...@@ -21,7 +26,12 @@ ...@@ -21,7 +26,12 @@
</div> </div>
</swiper-slide> </swiper-slide>
</swiper> </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" /> <cr-image class="avator-swiper_small" :src="rightImgPath" />
</div> </div>
</div> </div>
...@@ -150,34 +160,9 @@ export default { ...@@ -150,34 +160,9 @@ export default {
opacity: 1; opacity: 1;
} }
} }
.avator-swiper_right {
img {
width: 100%;
height: 100%;
}
}
.avator-swiper { .avator-swiper {
position: relative; 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%; width: 100%;
margin: 0 auto !important; margin: 0 auto !important;
...@@ -195,4 +180,24 @@ export default { ...@@ -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> </style>
...@@ -101,12 +101,10 @@ export default { ...@@ -101,12 +101,10 @@ export default {
@keyframes leftToRight { @keyframes leftToRight {
from { from {
transform: scale(0.3, 0.3); transform: scale(0.3, 0.3);
transform-origin: right right;
opacity: 0; opacity: 0;
} }
to { to {
transform: scale(1, 1); transform: scale(1, 1);
transform-origin: left left;
opacity: 1; opacity: 1;
} }
} }
...@@ -118,6 +116,20 @@ export default { ...@@ -118,6 +116,20 @@ export default {
.ani-opt { .ani-opt {
opacity: 0; 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 { .avator-swiper {
width: 100%; width: 100%;
margin: 0 auto !important; margin: 0 auto !important;
...@@ -125,19 +137,6 @@ export default { ...@@ -125,19 +137,6 @@ export default {
&_container { &_container {
transition-timing-function: linear; transition-timing-function: linear;
} }
&_right,
&_left {
height: 100%;
width: 25px;
position: absolute;
top: 0px;
}
&_right {
right: 3px;
}
&_left {
left: 0px;
}
&_item { &_item {
transition: transform 0.2s linear; transition: transform 0.2s linear;
padding-top: 2px; padding-top: 2px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment