mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 12:18:42 +08:00 
			
		
		
		
	
		
			
	
	
		
			35 lines
		
	
	
		
			593 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
		
		
			
		
	
	
			35 lines
		
	
	
		
			593 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
| 
								 | 
							
								<template>
							 | 
						||
| 
								 | 
							
								  <view v-if="params.url">
							 | 
						||
| 
								 | 
							
								    <web-view :webview-styles="webviewStyles" :src="`${params.url}`"></web-view>
							 | 
						||
| 
								 | 
							
								  </view>
							 | 
						||
| 
								 | 
							
								</template>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								<script>
							 | 
						||
| 
								 | 
							
								  export default {
							 | 
						||
| 
								 | 
							
								    data() {
							 | 
						||
| 
								 | 
							
								      return {
							 | 
						||
| 
								 | 
							
								        params: {},
							 | 
						||
| 
								 | 
							
								        webviewStyles: {
							 | 
						||
| 
								 | 
							
								          progress: {
							 | 
						||
| 
								 | 
							
								            color: "#FF3333"
							 | 
						||
| 
								 | 
							
								          }
							 | 
						||
| 
								 | 
							
								        }
							 | 
						||
| 
								 | 
							
								      }
							 | 
						||
| 
								 | 
							
								    },
							 | 
						||
| 
								 | 
							
								    props: {
							 | 
						||
| 
								 | 
							
								      src: {
							 | 
						||
| 
								 | 
							
								        type: [String],
							 | 
						||
| 
								 | 
							
								        default: null
							 | 
						||
| 
								 | 
							
								      }
							 | 
						||
| 
								 | 
							
								    },
							 | 
						||
| 
								 | 
							
								    onLoad(event) {
							 | 
						||
| 
								 | 
							
								      this.params = event
							 | 
						||
| 
								 | 
							
								      if (event.title) {
							 | 
						||
| 
								 | 
							
								        uni.setNavigationBarTitle({
							 | 
						||
| 
								 | 
							
								          title: event.title
							 | 
						||
| 
								 | 
							
								        })
							 | 
						||
| 
								 | 
							
								      }
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								</script>
							 |