<template>
	<view>
		<web-view :src="href"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				href: ""
			};
		},
		onLoad(option) {
			if (option.url == 'jinjiaqu_pingce') {
				this.href = 'http://anstatic.nxmy.com:8011/assets/html/pingce/?mine_code=jinjiaqu&token=' + uni.getStorageSync('Authorization') + '#/'
			}if (option.url == 'https://xw.tianqi.qq.com/') {
				this.href = 'https://xw.tianqi.qq.com/'
			}else{
				this.href = option.url + "?token="+uni.getStorageSync('Authorization')
				console.log(this.href)
			}
			
			//#ifdef H5
			// if(this.href.indexOf('https://mp.weixin.qq.com') != -1){
			// 	window.location.href = this.href;
			// }
			//#endif
			
		}
	}
</script>

<style lang="scss">

</style>