<template>
<view>
<web-view :webview-styles="webviewStyles" :src="url"></web-view>
</view>
</template>
<script>
import api from 'common/api.js'
export default {
data() {
return {
webviewStyles: {
progress: {
color: '#FF3333'
}
},
url: ''
};
},
onLoad() {
this.$http.get(api.user.getDown).then(res => {
console.log(res)
this.url = res.data
})
}
}
</script>
<style lang="less">
</style>
**```注意:**
***主要是通过 <web-view/>标签实现***


发布评论