<!--pages/personal/index.wxml-->
<scroll-view scroll-y class="scrollPage">
  <view class="UCenter-bg">
    <view wx:if="{{userInfo}}">
      <image class="avatarUrl" src="{{userInfo.avatarUrl}}" mode="widthFix"></image>
      <view class="text-xl nickName">
      {{userInfo.nickName}}
      </view>
    </view>
   
    <button wx:if="{{!userInfo}}" class="cu-btn round line-blue button-hover action" open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo" >授权登录</button>
  </view>
  <view class="cu-list menu card-menu margin-top-xl margin-bottom-xl shadow-lg radius">
    <view class="cu-item arrow">
      <navigator class="content" url="/pages/information/index">
        <text class="cuIcon-newsfill lg text-blue"></text>
        <text class="text-grey">完善信息</text>
      </navigator>
    </view>
    <view class="cu-item arrow">
      <navigator class="content" url="/pages/problem_log/index">
        <text class="cuIcon-edit lg text-green"></text>
        <text class="text-grey">我的答题结果</text>
      </navigator>
    </view>
    
  </view>
  <view class="cu-tabbar-height"></view>
</scroll-view>
