<template>
	<!-- 登录弹窗 -->
	<view>
		<uni-popup ref="verifyPopup" :mask-click="false">
			<view class="loginPopupBox" style="text-align: center;width: 570rpx;padding-top: 50rpx;">
				<view class="loginPopupTitle">
					{{title}}
				</view>
				<view class="loginPopupContent">
					{{content}}
				</view>
				<view class="loginPopupButtonBox">
					<view @click="canle"><button class="popup_replenish_button2" size="mini">取消</button>
					</view>
					<view @click="confirm"><button class="popup_replenish_button" size="mini">确认</button>
					</view>
				</view>
			</view>
		</uni-popup>
	</view>
</template>

<script>
	import api from "@/api/api";
	import common from '../../common/common';
	export default{
		props:{
			title: {
				type: String
			},
			content: {
				type: String
			},
			
		},
		data(){
			return{
				
				
			}
		},
		methods:{
			confirm() {
				this.$emit('confirm');
			},
			canle(){
				this.$refs.verifyPopup.close();	
				this.$emit('canle');
			},
			open(){
				this.$refs.verifyPopup.open();
			},
		}
	}
</script>

<style lang="scss">
	.loginPopupBox {
		margin-top: 5vh;
		padding: 25rpx 30rpx;
		border-radius: 20rpx;
		font-size: 30rpx;
		background: #fff;
	
		.loginPopupTitle {
			font-weight: bold;
		}
		.loginPopupContent{
			color: #20269B;
			margin-top: 40rpx;
			font-size: 28rpx;
		}
		.loginPopupButtonBox {
			display: flex;
			justify-content: space-around;
			margin: 60rpx 0 10rpx 0;
			.popup_replenish_button {
				color: #fff;
				background-color: rgba(9, 44, 171, 1);
				border-radius: 200rpx;
				padding: 0rpx 50rpx;
				font-size: 30rpx;
			}
			.popup_replenish_button2 {
				color: rgba(9, 44, 171, 1);
				background-color: #fff;
				border: 1rpx solid rgba(9, 44, 171, 1);
				border-radius: 200rpx;
				padding: 0rpx 50rpx;
				font-size: 30rpx;
			}
		}
	}
</style>