Files
2023-11-14 17:21:03 +08:00

55 lines
842 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--
@name: index
@author: kahu4
@date: 2023-11-02 16:10
@descriptionindex
@update: 2023-11-02 16:10
-->
<script setup>
</script>
<template>
<view class="banner-container">
<swiper
class="swiper"
circular
indicator-dots
autoplay
>
<swiper-item v-for="item in 10">
<view class="swiper-item">
<image
src="@/static/images/banner.png"
mode="aspectFit"
/>
</view>
</swiper-item>
</swiper>
</view>
</template>
<style
scoped
lang="scss"
>
.banner-container {
padding: 0 35rpx;
box-sizing: border-box;
border-radius: 15rpx;
.swiper {
height: 340rpx;
.swiper-item {
height: 340rpx;
image {
width: 100%;
height: 100%;
}
}
}
}
</style>