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.
50 lines
686 B
50 lines
686 B
<template>
|
|
<view class="wvzone">
|
|
<web-view :src="url"></web-view>
|
|
<view class="wvtips">文件下载成功,即将返回.....,{{jst}}</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
url:"",
|
|
jst:10,
|
|
}
|
|
},
|
|
onLoad(item) {
|
|
console.log(item)
|
|
this.url = item.url
|
|
},
|
|
mounted() {
|
|
this.govak()
|
|
},
|
|
methods:{
|
|
//
|
|
govak(){
|
|
let ms = this.jst*1000
|
|
if(ms<60*1000){
|
|
|
|
}
|
|
let st = setTimeout(function() {
|
|
//
|
|
|
|
uni.navigateBack()
|
|
}, ms);
|
|
|
|
st.close
|
|
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.wvzone{
|
|
.wvtips{
|
|
text-align: center;
|
|
font-size: 26rpx;
|
|
}
|
|
}
|
|
</style>
|
|
|