master
parent
6c0be78d07
commit
9b8f19c415
@ -0,0 +1,35 @@
|
||||
<template>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default{
|
||||
data(){
|
||||
return{
|
||||
window: {
|
||||
width: 0,
|
||||
height: 0,
|
||||
top: 0,
|
||||
left: 0
|
||||
},
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.window.width = screen.availWidth * 0.95
|
||||
this.window.height = screen.availHeight * 0.95
|
||||
this.window.top = (window.screen.height - 30 - this.window.height) / 2
|
||||
this.window.left = (window.screen.width - 10 - this.window.width) / 2
|
||||
this.toDisHome()
|
||||
},
|
||||
methods:{
|
||||
toDisHome(){
|
||||
let url = 'http://sstt.ali251.langye.net/'
|
||||
let seeBuy = window.open(url, 'follow',
|
||||
`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
Loading…
Reference in new issue