<template>
	<view class="wrapper">
		<uni-popup ref="popup" type="dialog" :maskClass="maskClass">
			<uni-popup-dialog type="info" mode="base" content="立即下发新的全面巡检任务？" :duration="2000" :before-close="true" @close="close"
				@confirm="confirm"></uni-popup-dialog>
		</uni-popup>
	</view>
</template>

<script>
	
	export default {
		data(){
			return {
				maskClass:{
					position: 'fixed',
					bottom: 0,
					top: 0,
					left: 0,
					right: 0,
				}
			}
		},
		mounted() {
			this.$refs.popup.open()
		},
		methods:{
			close(){
				const dsubNVue = uni.getSubNVueById('DpopLog1')
				dsubNVue.hide()
			},
			confirm() {
				const dsubNVue = uni.getSubNVueById('DpopLog1')
				uni.$emit('DpopLog1', {
				    content: 'comfirm'  
				});
				dsubNVue.hide()
			},
		}
	}
</script>

<style scoped>
	
</style>
