<view class="container">
  <view class="header">
    <!-- Use a generic icon if specific one not found, or use text -->
    <image class="logo" src="/assets/logo.png" mode="aspectFit"></image>
    <view class="title">正在登录</view>
  </view>

  <view class="content">
    <view class="tips">为了提供更好的服务，请授权以下信息</view>
    
    <block wx:if="{{!hasUserInfo}}">
       <button class="btn-login" bindtap="getUserProfile">获取微信昵称</button>
    </block>
    
    <block wx:if="{{hasUserInfo && !hasPhone}}">
       <button class="btn-login" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">获取手机号码</button>
    </block>
    
  </view>
</view>
