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;
		}
	}
}
相关推荐
中国胖子风清扬3 天前
GPUI 在 macOS 上编译问题排查指南
spring boot·后端·macos·小程序·rust·uni-app·web app
码云数智-园园4 天前
uni-app 实现物流进度跟踪功能:从 UI 到数据驱动的完整方案
ui·uni-app
予你@。6 天前
UniApp + Vue3 实现 Tab 点击滚动定位(微信小程序)
微信小程序·小程序·uni-app
游戏开发爱好者86 天前
完整教程:App上架苹果App Store全流程指南
android·ios·小程序·https·uni-app·iphone·webview
予你@。6 天前
uni-app progress 组件使用详解
uni-app
iOS阿玮6 天前
春节提审高峰来袭!App Store 审核时长显著延长。
uni-app·app·apple
2501_916007476 天前
ios上架 App 流程,证书生成、从描述文件创建、打包、安装验证到上传
android·ios·小程序·https·uni-app·iphone·webview
2501_915106327 天前
iPhone 文件管理,如何进行应用沙盒文件查看
android·ios·小程序·https·uni-app·iphone·webview
2501_915921437 天前
Fastlane 结合 AppUploader 来实现 CI 集成自动化上架
android·运维·ci/cd·小程序·uni-app·自动化·iphone
云游云记7 天前
vue2 vue3 uniapp (微信小程序) v-model双向绑定
微信小程序·uni-app·vue