<template>
	<view class="container">
		<button @click="wxLogin">微信一键登录</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},
		methods: {
			wxLogin() {
				uni.login({
					provider: 'weixin', //使用微信登录
					success: function(loginRes) {
						console.log(loginRes);
					}
				});
			}
		}
	}
</script>

<style>
	.container {}
</style>