<template>
	<view>
		{{popurl}}
		<web-view :src="popurl"></web-view>
	</view>
</template>

<script>
	export default {
		name:"popup",
		// data(){
		// 	return{
		// 		popurl:''
		// 	}
		// },
		emits:["open","close"],
		props:{
			// 需要打开的地址
			popurl:{
				Type:String,
				default:"",
			},
			isshow:{
				Type:Boolean,
				defult:false
			}
		},
		watch:{
		  popurl(){
			  
			  let that = this
			  return that.popurl
		  }
		},
		// onLoad(e) {
		// 	console.log(e);
		// 	if(e){
		// 		this.popurl =e
		// 	}
		// }
		created(e) {
			let that = this
			that.open(e)
			// console.log("popup",e)
			//this.popurl =
		},
		mounted() {},
		methods: {
			open(e) {
				console.log("zujian popup open",e)
			}
		},
	}
</script>

<style>

</style>