1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <template>
- <view>
- <view class="banner">
- <swiper class="box" autoplay circular>
- <swiper-item v-for="(item,index) in banner" :key="item.id">
- <view class="item">
- <view class="img">
- <image :src="item.imgURL"></image>
- </view>
- <view class="title">
- <view>{{item.title}}</view>
- <view class="num">
- - <text> {{index+1}} </text> -
- </view>
- </view>
- </view>
- </swiper-item>
- </swiper>
- </view>
- </view>
- </template>
- <script>
- export default {
- name:"t-i-banner",
- props: [
- "banner"
- ],
- data() {
- return {
-
- }
- },
- }
- </script>
- <style lang="scss">
- .banner{
- margin-top: -40rpx;
- .box{
- width: 750rpx;
- height: 600rpx;
-
- .item{
- width: 750rpx;
- .img{
-
- image{
- width: 750rpx;
- height: 500rpx;
- }
- }
- .title{
- box-sizing: border-box;
- padding: 0 25rpx;
- width: 750rpx;
- height: 120rpx;
-
- line-height: 1.5;
- font-size: 28rpx;
-
- position: relative;
-
- .num{
- position: absolute;
- bottom: 35rpx;
- right: 25rpx;
- color: #ACB0AC;
- text{
- color: #23A2EE;
- }
- }
- }
- }
- }
- }
- </style>
|