<!-- <wxs src="../../pages/commonWxs/format.wxs" module="format" /> -->
<template name="my">
  <view class='mine-container'>
    <view class='follow-details'>
      <view class='follow-info'>
        <view class="info-placerholder"></view>
        <view class='set-msg' wx:if="{{myData.userInfo.wechatName }}" bindtap="toMyEdit">
          <view class='avatar-box'>
            <image class='avatar-image' src='{{ myData.userInfo.avatar  }}'></image>
            <!-- <view class='occupation-title' wx:if="{{myData.user.user.profession}}">{{ myData.user.user.profession }}</view> -->
          </view>
          <view class='avatar-msg' >
            <view class='avatar-nickname'>昵称：{{ myData.userInfo.wechatName  }}</view>
            <view class='avatar-nickname'>年级：{{myData.userInfo.gradeText  }}</view>
            <image class="edit-img" src="../../static/index/edit.png" />
            <view class='mine-category'>
              <view class='amount-text'>播放 {{ myData.playAmount || 0 }} </view>
              <!-- <view class='amount-text'>{{ myData.user.likeAmount || 0 }} 赞</view> -->
              <view class='amount-text'>粉丝 {{ myData.fansAmount || 0 }}</view>
              <view class='amount-text'>作品 {{ myData.readAmount || 0 }} </view>
            </view>
          </view>
        </view>
      </view>
      <!-- ios只显示红花 -->
      <!-- <view class="only-flower" wx:if="{{myData.isIOS}}" bindtap="goToFlower">
        <view class="grey-point"></view>
        <view class="flower-amount">
          <image class="" src='../../static/image/flower_small.png' />
          <view>小红花：{{myData.user.integralAmount || 0 }}</view>
        </view>
        <view class="flower-tips" wx:if="{{myData.user.unfinishedAmount > 0}}">
          <text class="flower-last">{{myData.user.unfinishedAmount }}</text>
          个任务福利还没有完成
        </view>
        <view class="flower-tips" wx:if="{{myData.user.unfinishedAmount <= 0}}">今天任务全部完成，真棒</view>
      </view> -->
      <!-- android 显示两个 -->
      <view class="wallet-section">
        <view class="flower-box" bindtap="goToFlower">
          <view class="grey-point"></view>
          <view class="flower-box-box">
            <image class="flower-icon" src='../../static/image/flower_small.png' />
            <view class="flower-text">
              <view>小红花：{{myData.integralAmount || 0 }}</view>
            </view>
          </view>
          <view class="flower-tips-text">
            <text class="flower-last">{{myData.unfinishedAmount }}</text>
            个任务福利还没有完成
          </view>
        </view>
      </view>
      <view class="btn-section">
        <view class="btn" bindtap='toMyConcern'>
          <image class="btn-icon" src="../../static/image/concern.png" />
          <view class="btn-title">我的关注</view>
        </view>
        <view class="btn" bindtap='toMyKeep' data-title='{{ myData.keep }}'>
          <image class="btn-icon" src="../../static/image/collect.png" />
          <view class="btn-title">我的收藏</view>
        </view>
        <view class="btn">
          <image class="btn-icon" src="../../static/image/message.png" bindtap="goToMessage" />
          <view class="btn-title">消息通知</view>
        </view>
        <button class="btn" open-type="contact" plain="true" hover-class="none" style="border: none;">
            <image class="btn-icon" src="../../static/index/contact.png"></image>
            <view class="btn-title">联系客服</view>
        </button>
      </view>
    </view>
  </view>
</template>