simpleConfirm.vue 1.2 KB
<template>
	<view class="simpleConfirmWrap">
		<view class="simpleAlert">
			<view class="alertInfo">
				{{alertTxt}}
			</view>
			<view class="btn" @click="$emit('close')">
				<view class="btnItem">
					取消
				</view>
				<view class="btnItem active" @click="$emit('close')">
					确认
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				
			}
		},
		props:{
			alertTxt:{
				type:String
			}
		}
	}
</script>

<style lang="scss" scoped>
	.simpleConfirmWrap{
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 20;
		background: $uni-bg-color-mask;
		display: flex;
		justify-content: center;
		align-items: center;
		.simpleAlert{
			width: 622rpx;
			background: $uni-bg-bai-color;
			border-radius: 32rpx;
			font-size: $uni-font-size-32;
			.alertInfo{
				padding: 48rpx;
				text-align: center;
				border-bottom: 1rpx solid #ebedf0;
			}
			.btn{
				height: 96rpx;
				display: flex;
				.btnItem{
					flex: 1;
					font-size: $uni-font-size-32;
					text-align: center;
					line-height: 96rpx;
				}
				.btnItem.active{
					color: $uni-bg-main-color;
					border-left: 1rpx solid #ebedf0;
				}
			}
		}
	}
</style>