• uniapp:swiper-demo效果


    单元格轮播

    在这里插入图片描述

    <swiper class="swiper1" :circular="true" :autoplay="true" interval="3000" previous-margin="195rpx" next-margin="195rpx">
    	<swiper-item v-for="(item,index) in 5" :key="index">
    		<view class="swiper-item">
    			<image src="../../static/newimg/7.png" mode="" class="logo">image>
    			<view class="btn df-aic-jusb">
    				<view class="left">
    					<image src="../../static/newimg/8.png" mode="">image>
    					<text class="fsz-30 fw-b color-yello">1000text>
    					<text class="fsz-16 fw-b color-yello">USDTtext>
    				view>
    				<view class="right fsz-30 color-000 t-c">首卡铸造view>
    			view>
    		view>
    	swiper-item>
    swiper>
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    .swiper1{
    	height: 850rpx;
    	margin: 50rpx auto 100rpx;
    	.swiper-item{
    		width: 342rpx;
    		height: 524rpx;
    		background: #1C1C1C;
    		border-radius: 20rpx;
    		padding-top: 15rpx;
    	}
    	.logo{
    		display: block;
    		width: 310rpx;
    		height: 418rpx;
    		border-radius: 20rpx;
    		margin: auto;
    		border: 1rpx solid #F7DA4A;
    	}
    	.btn{
    		margin:20rpx auto 0;
    		padding: 0 14rpx;
    		.left{
    			display: flex;
    			align-items: baseline;
    			uni-image{
    				width: 20rpx;
    				height: 20rpx;
    				margin-right: 8rpx;
    			}
    		}
    		.right{
    			width: 130rpx;
    			height: 50rpx;
    			background: #F7DA4A;
    			border-radius: 10rpx;
    			font-size: 26rpx;
    			color: #050500;
    		}
    	}
    }
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
  • 相关阅读:
    apt 阿里源
    Java 多线程共享模型之管程(上)
    利用适配器模式使用第三方库
    CPU与GPU到底有什么区别?
    C++ 基础二
    mongodb整合springbootQ
    Django-聚合查询
    qt实现了音乐播放器2.0版本
    echarts封装 - 1
    B站每日自动签到&传统单节点网站的 Serverless 上云
  • 原文地址:https://blog.csdn.net/qq_40745143/article/details/133669185