轮播图显示修改

v1.0.0
于肖磊 2024-08-23 16:57:31 +08:00
parent 97b6a65e6d
commit 3e3138a2f2
1 changed files with 2 additions and 12 deletions

View File

@ -25,12 +25,12 @@
> >
<swiper-slide v-for="(item, index) in form.carousel_list" :key="index"> <swiper-slide v-for="(item, index) in form.carousel_list" :key="index">
<div class="item-image flex jc-c align-c w h" :style="img_style"> <div class="item-image flex jc-c align-c w h" :style="img_style">
<image-empty v-model="item.carousel_img[0]" :style="img_style"></image-empty> <image-empty v-model="item.carousel_img[0]" :style="img_style" error-style="width:3.5rem;height:3.5rem"></image-empty>
</div> </div>
</swiper-slide> </swiper-slide>
<swiper-slide v-for="(item, index1) in seat_list" :key="index1"> <swiper-slide v-for="(item, index1) in seat_list" :key="index1">
<div class="item-image flex jc-c align-c w h" :style="img_style"> <div class="item-image flex jc-c align-c w h" :style="img_style">
<image-empty v-model="item.carousel_img[0]" :style="img_style"></image-empty> <image-empty v-model="item.carousel_img[0]" :style="img_style" error-style="width:3.5rem;height:3.5rem"></image-empty>
</div> </div>
</swiper-slide> </swiper-slide>
<div v-if="new_style.is_show" :class="{'dot-center': new_style.indicator_location == 'center', 'dot-right': new_style.indicator_location == 'flex-end' }" class="dot flex abs"> <div v-if="new_style.is_show" :class="{'dot-center': new_style.indicator_location == 'center', 'dot-right': new_style.indicator_location == 'flex-end' }" class="dot flex abs">
@ -183,16 +183,6 @@ const slideChange = (swiper: { realIndex: number }) => {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.top-img {
height: 5rem;
width: 5rem;
background: #F5FBFF;
border-radius: 4px;
:deep(.image-slot img) {
width: 3.5rem;
height: 3.5rem
}
}
.dot-center { .dot-center {
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);