最近用uniapp开发小程序,整理了一下授权登录代码。如下:
<template>
<view class="container">
<view class="flex justify-center" style="width: 100vw;">
<image src="../../static/login_bg.png" mode="aspectFit"></image>
</view>
<view class="flex justify-center" style="margin-top: 100rpx;">
<view class="" style="width: 80vw;">
<view class="padding-bottom">申请获取以下权限</view>
<text class="text-gray">获得你的公开信息(昵称,头像等)</text>
</view>
</view>
<view class="flex flex-direction align-center padding-tb margin-top-xl">
<view class