<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/>标签实现*** 
Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐