<template>
	<view>
		<web-view :src="url" @message="onMessage"></web-view>
	</view>
</template>
<script setup lang='ts'>
	import {
		ref
	} from 'vue'
	import {
		onLoad
	} from '@dcloudio/uni-app'

	let url = ref()

	function onMessage() {
		uni.navigateBack()
	}

	onLoad((open) => {
		let plateNumber = '贵ZBYD09'
		let plateColor = '4'

		let type = '1'

		uni.login({
			provider: 'weixin', //使用微信登录
			success: function(loginRes) {

				url.value =
					'http://192.168.94.109:5173/#/pages/9901afterSales/resumeSigning/resumeSigning?type=' +
					type + '&code=' +
					loginRes.code + '&plateNumber=' + plateNumber + '&plateColor=' + plateColor
			}
		});


	})
</script>
<style lang='scss' scoped>

</style>