<!--authorize.wxml-->
<!-- <text>authorize.wxml</text> -->
<view class="flex-column a-center j-center hui limits" style="margin-top:200rpx;">
      <block wx:if="{{!hasAuthorize}}">
      <image src='/images/whether.png' class="iconfont rpx160 hui {{hasAuthorize ? 'icon-authorize' :'icon-noauthorize'}}"></image>
      </block>
      <block wx:if="{{hasAuthorize}}">
      <image src='/images/yes.png' class="iconfont rpx160 hui {{hasAuthorize ? 'icon-authorize' :'icon-noauthorize'}}"></image>
      </block>
      <!-- <text class="iconfont rpx160 hui {{hasAuthorize ? 'icon-authorize' :'icon-noauthorize'}}"></text> -->
      <text class="rpx26" style="margin-top:80rpx;">{{hasAuthorize ? '已授权' :'请授权使用您的用户信息'}}</text>
      <block wx:if="{{!userInfo && !hasAuthorize}}">
         <button open-type='getUserInfo' class=" main-bg white" style="width:690rpx;margin-top:80rpx;" bindgetuserinfo="getuser" wx:if="{{!hasAuthorize}}">立即授权获取</button>
      </block>
     <block wx:if="{{userInfo && !hasAuthorize}}">
         <button class=" main-bg white" style="width:690rpx;margin-top:80rpx;" bindtap="giveAuthorize" wx:if="{{!hasAuthorize}}">立即授权</button>
      </block>
      <navigator open-type="reLaunch" url="../index/index" class=" white" style="width:690rpx;margin-top:80rpx;padding:20rpx 0;text-align:center;background:#32CD32;" wx:if="{{hasAuthorize}}">立即前往</navigator>
</view>

<!-- <view class='{{color}}' > 
  {{show==true?'1':'2'?'3':'4'}}
</view> -->
