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

<script>
	export default {
		data() {
			return {
				href: ""
			};
		},
		onLoad(option) {
			console.log(option)
			if(option.mine_code == 'zaoquan' && option.workBench == 'pingce'){
				this.href = "http://webdevelop.nxjiewei.com/assets/html/pingce/?mine_code=zaoquan&token=" + uni.getStorageSync('Authorization')
			}else{
				this.href = option.url + "?token="+uni.getStorageSync('Authorization')
			}
			
		}
	}
</script>

<style lang="scss">

</style>
