<!--pages/components/auth/auth.wxml-->
<view class="auth_container">
  <view class="auth_text"  wx:if="{{showAuthName}}">
    <view>点击“授权登录”，获得微信授权后，快速完成用户注册流程。</view>
  </view>

  <view class="auth_text" wx:if="{{showAuthPhone}}">
    <view>话费充值需要输入手机号码，油卡充值运营商需要用户手机号码。</view>
  </view>

  <button wx:if="{{showAuthName}}" 
          style='margin-top:160rpx;width:580rpx;height: 80rpx;border:none;  background-color: #fe7124; background: linear-gradient(to right, #ff7a21 0%,#feb25a 100%);color: #fff;' 
          open-type="getUserInfo"
          bindgetuserinfo="userInfoHandler">授权登录</button>
  <button wx:if="{{showAuthPhone}}" 
          style='margin-top:160rpx;width:580rpx;height: 80rpx;  background-color: #fe7124; background: linear-gradient(to right, #ff7a21 0%,#feb25a 100%);color: #fff;'
          open-type="getPhoneNumber" 
    		  bindgetphonenumber="userPhoneHandler">授权手机号码</button>
</view> 