<template>
	<view>
		<web-view :src="src" @message="handlePostMessage"></web-view>
	</view>
</template>

<script>
	import {
		getUserSig
	} from '@/api/pagesB/solution/solution.js'
	export default {
		data() {
			return {
				src: '',
				userSig: '',
				item: {},
			};
		},
		methods: {
			info() {
				// console.log(this.item.patientId, '88585')
				getUserSig(this.item.patientId).then(res => {
					this.userSig = res.data
					this.src =
						`https://msg.xinyilu.cn​​​​​?userId=5&userName=王晓燕&userSig=eJyrVgrxCdYrSy1SslIy0jNQ0gHzM1NS80oy0zLBwqZQweKU7MSCgswUJStDMwMgMLM0MYHIpFYUZBalAsVNTU2NgDIQ0ZLMXJCYmaWlsZGRoYUh1JTMdKCZFgGhHiGlhkWBZR6mKanpAVW*bpVuMfpGeY5epUZVad6G5qZBjgGZzk6GvqG2SrUAMZovIA__&roomId=456789`
		
					console.log(this.src, '555')
				})
			},
		},
		onLoad(options) {
			this.item = JSON.parse(options.item)
			this.roomId = options.roomId
			// console.log(this.roomId, '88888')
			this.info()

		}

	}
</script>

<style lang="scss">

</style>