<view class="top-img">
  <image src="../../images/center-bg.png"></image>
</view>
<view class="page-container">
  <view class="person">
    <view class="user-avatar" bindtap="changeAvatar" wx:if="{{userInfo.avatar}}">
      <image src="{{usercenterUrl}}{{sourcePath}}{{userInfo.avatar}}"></image>
    </view>
    <view class="user-name">{{userInfo.name}}</view>
  </view>
  <view class="main">
    <view class="main-title">常用功能</view>
    <view class="main-container">
      <view class="main-box" bindtap="toMyOrder">
        <image src="../../images/my-sign.png"></image>
        <view class="title">我的预订</view>
	  </view>
      <view class="main-box" bindtap="toMyFirend">
        <image src="../../images/friend.png"></image>
        <view class="title">我的发布</view>
      </view>
      <view class="main-box">
        <image src="../../images/my-sign.png"></image>
        <view class="title">我的报名</view>
      </view>
      <!-- <view class="main-box">
        <image src="../../images/my-comment.png"></image>
        <view class="title">我的评论</view>
      </view>
      <view class="main-box">
        <image src="../../images/my-collect.png"></image>
        <view class="title">我的收藏</view>
      </view> -->
      <view class="main-box" bindtap="toMyTeam">
        <image src="../../images/share.png"></image>
        <view class="title">我的志愿团队</view>
      </view>
      <view class="main-box" bindtap="toMyVolunteerActivity">
        <image src="../../images/team.png"></image>
        <view class="title">我的志愿活动</view>
      </view>
      <view class="main-box">
        <image src="../../images/share.png"></image>
        <view class="title">我的分享</view>
      </view>
      <!-- <view class="main-box">
        <image src="../../images/setting.png"></image>
        <view class="title">设置</view>
      </view> -->
    </view>
  </view>
</view>
<view class="set-phone" wx:if="{{randomName && showPhone}}">
  <view class="set-phone-box">
    <view class="tips">您还没有绑定手机号，请先绑定手机号</view>
    <view class="phone-input">
      <input placeholder="请输入手机号" bindinput="phoneNum" class="phone-input"></input>
    </view>
    <view class="code-input">
      <input placeholder="请输入验证码" bindinput="inputCode"></input>
      <view class="get-code" bindtap="testPhone" wx:if="{{!gotCode}}">获取验证码</view>
      <view class="got-code" wx:else>{{restTime}}</view>
    </view>
    <view class="set-phone-btn-box">
      <view class="set-phone-btn" bindtap="submitPhone">确认</view>
      <view class="set-phone-btn" bindtap="cancelPhone">取消</view>
    </view>
  </view>
</view>