<template>
	<view class="container"></view>
</template>

<script>
export default {
	data() {
		return {}
	},
	onLoad() {
		// this.shouquan()
		uni.switchTab({
			url: '/pages/home/home'
		})
	},
	methods: {
		//授权
		shouquan() {
			uni.login({
				provider: 'weixin', //使用微信登录
				success: function (loginRes) {
					console.log(loginRes)
					console.log(loginRes.authResult)
					uni.getUserProfile({
						desc: '用于完善用户资料',
						success: function (res) {
							console.log('res', res)
						}
					})
				}
			})
		}
	}
}
</script>

<style lang="scss" scoped>
.container {
	height: 100vh;
	background-color: #fff;
}
</style>
