uniapp:swiper-demo效果

单元格轮播

html 复制代码
<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">1000</text>
					<text class="fsz-16 fw-b color-yello">USDT</text>
				</view>
				<view class="right fsz-30 color-000 t-c">首卡铸造</view>
			</view>
		</view>
	</swiper-item>
</swiper>
css 复制代码
.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;
		}
	}
}
相关推荐
局外人LZ6 小时前
Uniapp脚手架项目搭建,uniapp+vue3+uView pro+vite+pinia+sass
前端·uni-app·sass
2501_915918419 小时前
在 iOS 环境下查看 App 详细信息与文件目录
android·ios·小程序·https·uni-app·iphone·webview
前端呆头鹅9 小时前
Websocket使用方案详解(uniapp版)
websocket·网络协议·uni-app
浮桥9 小时前
uniapp+h5 公众号实现分享海报绘制
uni-app·notepad++
2501_9160074710 小时前
没有 Mac 用户如何上架 App Store,IPA生成、证书与描述文件管理、跨平台上传
android·macos·ios·小程序·uni-app·iphone·webview
wangjun515910 小时前
uniapp uni.downloadFile 偶发性下载文件失败 无响应
uni-app
2501_915106321 天前
当 Perfdog 开始收费之后,我重新整理了一替代方案
android·ios·小程序·https·uni-app·iphone·webview
2501_915918411 天前
中小团队发布,跨平台 iOS 上架,证书、描述文件创建管理,测试分发一体化方案
android·ios·小程序·https·uni-app·iphone·webview
家里有只小肥猫1 天前
uniApp打包ios报错
ios·uni-app
jingling5551 天前
uniapp | 基于高德地图实现位置选择功能(安卓端)
android·前端·javascript·uni-app