18 lines
		
	
	
		
			308 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
		
		
			
		
	
	
			18 lines
		
	
	
		
			308 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
| 
								 | 
							
								<template>
							 | 
						||
| 
								 | 
							
								  <web-view :src="url"></web-view>
							 | 
						||
| 
								 | 
							
								</template>
							 | 
						||
| 
								 | 
							
								 
							 | 
						||
| 
								 | 
							
								<script>
							 | 
						||
| 
								 | 
							
								export default {
							 | 
						||
| 
								 | 
							
								  data() {
							 | 
						||
| 
								 | 
							
								    return {
							 | 
						||
| 
								 | 
							
								      url: ''
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  onLoad(item) {
							 | 
						||
| 
								 | 
							
								    // 传入需要跳转的链接 使用web-view标签进行跳转
							 | 
						||
| 
								 | 
							
								    this.url = decodeURIComponent(item.url)
							 | 
						||
| 
								 | 
							
								    // console.log(this.url)
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								</script>
							 |