uni-app 开发APP 自定义轮播图 swiper 指示点位置和样式

	<style lang="scss">
	wx-swiper .wx-swiper-dots {
						bottom: 10rpx;
						left: 350rpx;
					}

					wx-swiper .wx-swiper-dot {
						width: 40rpx;
						height: 4rpx;
						border-radius: 4rpx;
						background-color: #DBDBDB;
					}


					wx-swiper .wx-swiper-dot-active {
						width: 40rpx;
						height: 4rpx;
						border-radius: 4rpx;
						background-color: #C91C18;
					}
<view class="iconblock">
					<swiper class="swiper" circular :indicator-dots="true" style="height: 180px;">
						<swiper-item v-for="(item,index) in list">
							<u-grid :border="false" :col="5">
								<u-grid-item v-for="(listItem,listIndex) in item" :key="listIndex">
									<u-icon style="margin-top: 30rpx;" :name="listItem.name" :size="40"></u-icon>
									<text class="grid-text">{{listItem.title}}</text>
								</u-grid-item>
							</u-grid>
						</swiper-item>
					</swiper>
				</view>

 效果图

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值