You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
767 B
58 lines
767 B
<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>
|