<template>
	<view class="pageBg">
		<web-view :src="usecarStore.webLink" :webview-styles="webviewStyles" :update-title="false" @onPostMessage="handerMessage"></web-view>
	</view>
</template>

<script setup>
	let webviewStyles = {
		progress: {
			color: '#3877ff'
		},
	}
	import carStore from '@/store/modules/car.js'
	let usecarStore = carStore()
	
	function handerMessage(res) {
		console.log('监听到了')
		let item = res.detail.data[0]
		console.log(res)
		console.log(item)
	}
</script>

<style >
</style>