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

<script>
	export default {
		data() {
			return {
				url:null,
				title:null
			};
		},
		onLoad() {
			let h5Login={
				platform:'wxMiniprogram',
				ukn:encodeURIComponent(uni.getStorageSync('LL_Ukn')).replace(/\+/g,'%2B') ,
				token:uni.getStorageSync('token'),
				userinfo:JSON.parse(uni.getStorageSync('userInfo')),
				user:JSON.parse(uni.getStorageSync('user'))
			}
			let str=`https://promote.sugarpark.cn/walletHome?h5loginstr=${JSON.stringify(h5Login)}`
			this.url=str;
		},
		methods:{
			getMessage(e){
				console.log(e);
			}
		}
	}
</script>

<style lang="scss">

</style>
