<view class="authorize">
    <form bindsubmit="loginForm">
        <text>微信登录新规定,请先设置头像昵称</text>
        <text>1.微信头像&上传头像</text>
        <button bind:chooseavatar="onChooseAvatar" openType="chooseAvatar" style="width: 284rpx; height: 284rpx;background-color: ghostwhite; ">
            <image bind:chooseavatar="onChooseAvatar" mode="widthFix" name="avatarUrl" openType="chooseAvatar" src="{{avatarUrl}}" style="width: 253rpx; height: 250rpx; display: block; box-sizing: border-box; margin-left:-10rpx; top: NaNrpx;border-radius: 40rpx;"></image>
        </button>
        <view bindtap="binding" class="banner_modle_top_btn">随机头像</view>
        <text>2.微信昵称&输入昵称</text>
        <view class="inpty">
            <view class="inptys">
                <input bindconfirm="nicknameInput" bindinput="nicknameInput" class="weui-input" name="nickname" placeholder="请输入昵称" style="width: auto; height: 105rpx; font-size: 32rpx; border: 1px solid #e6e6e6;" type="nickname" value="{{nickname}}"></input>
            </view>
        </view>
        <button bindtap="getUserProfile" class="search-buttonbb" formType="submit" style="background: #3d61f0;" wx:if="{{canIUseGetUserProfile}}"> 同步头像昵称 </button>
        <button bindgetuserinfo="authorLogin" class="search-buttonbb" formType="submit" openType="getUserInfo" style="background: #3d61f0;" wx:else>授权登录</button>
        <!-- <button bindtap="noLogin" class="search-buttonbh" hoverClass="changestyle">暂不登录</button> -->
    </form>
</view>