uniapp弹出层改圆角

请添加图片描述

<uni-popup ref="popupPrint" background-color="rgba(0,0,0,0)" type="bottom" :safe-area="false" ="PrintPoupChange">
	<view class="radius">
		<view v-if="tempDeviceList.length" class="popup_title">请选择打印设备</view>
		<view class="reSignBtn" ="gotoSignClick">重新签名</view>
		<scroll-view scroll-y="true" style="height: 40vh;">
			<view v-for="(item, index) in tempDeviceList" :key="index">
				<view class="hospitalNameBtn" ="select_deviceId(item)">{{ item.name }}</view>
			</view>
			<view v-if="!tempDeviceList.length" class="searchBlue">
				<image style="width: 400rpx;height: 400rpx;margin: auto;" :src="imageUrl + 'loading.gif'" mode="widthFix"></image>
			</view>
			<view class="bottomSafe"></view>
		</scroll-view>
	</view>
</uni-popup>

css

.radius {
	height: 50vh;
	background: #fff;
	border-top-left-radius: 30rpx;
	border-top-right-radius: 30rpx;
	border: 1rpx solid #fff;
	position: relative;
	.popup_title {
		margin-top: 48rpx;
		text-align: center;
		font-size: 32rpx;
		font-weight: bold;
		color: #222222;
	}
	.hospitalNameBtn {
		width: 690rpx;
		height: 84rpx;
		border: 1px solid #ebebeb;
		border-radius: 10rpx;
		margin: 40rpx auto;
		text-align: center;
		font-size: 28rpx;
		font-weight: 400;
		color: #666666;
		line-height: 84rpx;
	}
	.reSignBtn {
		font-size: 26rpx;
		position: absolute;
		top: 10rpx;
		right: 23rpx;
		color: #1296db;
		z-index: 999;
	}
}

将弹出层背景设为透明,然后在里面元素设白色背景并添加圆角

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值