<template>
	<!-- <web-view src="https://uniapp.dcloud.io/static/web-view.html" @message="onMessage"></web-view> -->
	<web-view src="https://www.chengxiangjiaoyu.com/indexAli.html" @message="onMessage"></web-view>
</template>

<script>
	export default {
		methods: {
			onMessage(e) {
				console.log('e.detail.data[0]',e.detail.data[0]);
			  const captchaVerifyParam = e.detail.data[0];
			  // 通过事件通道，触发在业务页面中定义的 'getCaptchaVerifyParam' 事件，并把验证参数发送至业务页面
			  const eventChannel = this.getOpenerEventChannel();
			  eventChannel && eventChannel.emit('getCaptchaVerifyParam',captchaVerifyParam);
			  setTimeout(() => {
			  					uni.navigateBack();
			  				}, 300);
			}
		}
	}
</script>
