<template>
	<view class="pages">
		<web-view ref="webview" :src="https" @message="handleGetMessage"></web-view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				https:''
			}
		},
		onLoad(option) {
            this.https = decodeURIComponent(option.https)
			console.log(option);
		},
		methods: {
             handleGetMessage:function(e){
             	console.log(e)
             	if(e.detail.data[0].result == 'success'){
             		uni.navigateBack()
             	}
             },
			 
		}
	}
</script>

<style lang="scss" scoped>
	
</style>