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;
		}
	}
}
相关推荐
用户6990304848751 天前
try catch使用场景 处理同步代码错误兼容用的
javascript·uni-app
ITKEY_1 天前
uniapp微信开发者工具 更改AppID失败 touristappid
uni-app
Geek_Vison2 天前
APP瘦身实战:从80MB+砍到15MB——基于小程序容器技术剥离APP非核心业务的实践分享
小程序·uni-app·mpaas
CHB2 天前
HDC2026 演讲实录|AI 驱动的跨端进化:利用 uni-agent 快速构建高性能鸿蒙应用
uni-app·harmonyos
2501_915918413 天前
iOS App性能测试工具的实现方法与优化循环指南
android·ios·小程序·https·uni-app·iphone·webview
斯内普吖3 天前
(开源)高校素拓分管理系统小程序实战指南 基于 Java + SpringBoot + uni-app + Vue + MySQL
java·spring boot·mysql·小程序·uni-app·开源
海阔天空66883 天前
uniapp开启调试模式
uni-app·uniapp开启调试模式
anyup3 天前
分享 5 套 uni-app 实用主题,一键适配暗黑模式
前端·uni-app·视觉设计
gg159357284604 天前
Uni-app跨平台开发全解课程:从零基础到企业级多端落地实战
vue.js·uni-app
xshirleyl5 天前
uniapp小兔鲜儿day3
uni-app