<template>
	<view class="">
		<web-view :src="mapUrl+'/#/pages/Chat/ChatApp?icon=' + info.icon+'&token=' 
			 + info.token+'&conversation=' + info.conversation+'&userId=' + info.userId+'&userAvatar=' + info.userAvatar"></web-view>
	
	</view>
</template>

<script>
	import config from '@/config'
	export default {

		data() {
			return {
				info:null,
				mapUrl:config.mapUrl,
				userId:null,
				userAvatar:null
			};
		},
		onLoad(option) {
			if(option){
			 this.info = JSON.parse(option.data)
			 console.log(this.info,212122);
			 console.log(this.mapUrl+'/#/pages/Chat/ChatApp?icon=' + this.info.icon+'&token=' 
			 + this.info.token+'&conversation=' + this.info.conversation+'&userId=' + this.info.userId+'&userAvatar=' + this.info.userAvatar);
			}
	
		},

		methods: {
	
		}
	};
</script>