add open_url_in_webview
				
					
				
			This commit is contained in:
		
							parent
							
								
									8eb7f03c0c
								
							
						
					
					
						commit
						dd10d0bb3a
					
				
							
								
								
									
										11
									
								
								unitool.js
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								unitool.js
									
									
									
									
									
								
							| @ -420,7 +420,7 @@ export default { | |||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
| 
 | 
 | ||||||
|   open_url_in_browser (url) { |   open_url_in_browser ({ url }) { | ||||||
|     url = this.localizeText?.(url) || url |     url = this.localizeText?.(url) || url | ||||||
|     // #ifdef APP
 |     // #ifdef APP
 | ||||||
|     plus.runtime.openURL(url) |     plus.runtime.openURL(url) | ||||||
| @ -429,6 +429,15 @@ export default { | |||||||
|     window.open(url, '_blank') |     window.open(url, '_blank') | ||||||
|     // #endif
 |     // #endif
 | ||||||
|   }, |   }, | ||||||
|  |   open_url_in_webview ({ url, title }) { | ||||||
|  |     if (wo.envar.inPc) { | ||||||
|  |       window.open(wo.ll(url), '_blank') | ||||||
|  |     } else { | ||||||
|  |       wo.ss.webviewUrl = url | ||||||
|  |       wo.ss.webviewTitle = title | ||||||
|  |       uni.navigateTo({ url: 'tool-webview' }) | ||||||
|  |     } | ||||||
|  |   }, | ||||||
| 
 | 
 | ||||||
|   parse_ua_to_browser () { |   parse_ua_to_browser () { | ||||||
|     // #ifdef WEB
 |     // #ifdef WEB
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user