
<view class="container">
<button bindtap="gologin">微信登录</button>
</view>
<!-- 弹框  -->
<view class="pop_root" hidden="{{isHidden}}">
  <view class="pop_content">
   <view class="pot_tip">授权登录弹窗</view>
   <button class="pop_avatar" open-type="chooseAvatar" bindchooseavatar="getAvatar">
    <image class="pop_img" wx:if="{{avatarUrl}}" src="{{avatarUrl}}" />
    <view wx:else>获取头像</view>
   </button>
   <input 
    class="pop_name" 
    type="nickname" 
    bindblur="getName"
    placeholder="点击获取昵称"/>

    <view class="pop_bot">
    <view class="btn" bind:tap="potNo">取消</view>
    <view class="btn1" bind:tap="popYes">确定</view>
    </view>
  </view>
</view>  