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

<script>
	export default {
		data() {
			return {
				href:""
			};
		},
		onLoad(option) {
			console.log(option.type)
			this.go_url(option.type)
		},
		methods:{
			go_url(type){
				if(type == 'gongjijin'){
					this.href = "http://gjj.yinchuan.gov.cn/list_gjjcx.jsp?urltype=tree.TreeTempUrl&wbtreeid=1044"
					uni.setNavigationBarTitle({
					    title: '公积金查询'
					});
				}else if(type == 'xiecheng'){
					this.href = "http://m.ctrip.com/html5/?sid=155952&allianceid=4897&ouid=index"
					uni.setNavigationBarTitle({
					    title: '飞机火车票'
					});
				}else if(type == 'meituan'){
					this.href = "https://h5.waimai.meituan.com"
					uni.setNavigationBarTitle({
					    title: '美团外卖'
					});
				}
			}
		}
	}
</script>

<style lang="scss">

</style>
