<!-- <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='set-msg' wx:if="{{myData.user.user.wechatName}}">
          <view class='avatar-box'>
            <image class='avatar-image' src='{{ myData.user.user.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'>
              <text>{{ myData.user.user.wechatName }}</text>
              <view class='flowers-box' wx:if='{{ myData.user.user.gender === 2 }}'>
                <image src='../../static/image/flowers.png'></image>
              </view>
              <view class='flowers-box' wx:elif='{{ myData.user.user.gender === 1 }}'>
                <image src='../../static/image/boy.png'></image>
              </view>
              <!-- <view wx:else class='gender-size'>未知</view> -->
            </view>
            <view class='avatar-birthday'>{{ myData.user.user.birthday }}</view>
            <view class='avatar-address'>{{ myData.user.user.schoolName }}</view>
          </view>
          <view class='mine-edit' bindtap='toMyEdit' data-title='{{ myData.title }}'>
            <!-- <view class='edit-image'> -->
            <image class='edit-img' src='../../static/image/reset.png'></image>
            <!-- </view> -->
            <view class='edit-text'>修改</view>
          </view>
        </view>
        <view class='set-msg-temp' hidden="{{myData.user.user.wechatName}}">
            <view class="placerholder line1"></view>
            <view class="placerholder line2"></view>
            <view class="placerholder line3"></view>
        </view>
      </view>
      <view class='mine-category'>
        <view class='play-count'>
          <view class='color' style="padding-right:38rpx;" >{{ myData.user.playAmount || 0 }}</view>
          <view class='border-right'>
            <view class='play-img'>
              <image src='../../static/image/play.png'></image>
            </view>
            <text>播放量</text>
          </view>
        </view>
        <view class='follow-count'>
          <view class='color' style="padding-right:48rpx;">{{ myData.user.fansAmount || 0 }}</view>
          <view class='border-right'>
            <view class='red-heart'>
              <image src='../../static/image/purple_heart.png'></image>
            </view>
            <text>粉丝</text>
          </view>
        </view>
        <view class='point-count'>
          <view class='color' style="padding-right:60rpx;">{{ myData.user.likeAmount || 0 }}</view>
          <view class='border-right'>
            <view class='point-img'>
              <image src='../../static/image/point.png'></image>
            </view>
            <text>赞</text>
          </view>
        </view>
        <view class='flower-count'>
          <view class='color'>{{ myData.user.pointAmount || 0 }}</view>
          <view class='border-right'>
            <view class='play-img'>
              <image src='../../static/image/flower.png'></image>
            </view>
            <text>红花</text>
          </view>
        </view>
      </view>
      <view class='wallet-module' bindtap='toMyWallet' data-title='{{ myData.wallet }}' wx:if="{{!myData.isIOS}}">
      <!-- <view class='wallet-module' bindtap='toMyWallet' data-title='{{ myData.wallet }}'> -->
        <view class='wallet-center'>
          <view class='wallet-left'>
            <view class='icon-box'>
              <image src='../../static/image/wallet.png'></image>
            </view>
            <text>钱包</text>
          </view>
          <view class='wallet-right'>
            <image src='../../static/image/to.png'></image>
          </view>
        </view>
      </view>
      <view class='course-module' bindtap='toMyCourse' data-title='{{ myData.course }}'>
        <view class='wallet-center'>
          <view class='wallet-left'>
            <view class='icon-box'>
              <image src='../../static/image/courses.png'></image>
            </view>
            <text>我的课程</text>
          </view>
          <view class='wallet-right'>
            <image src='../../static/image/to.png'></image>
          </view>
        </view>
      </view>
      <!-- <view class='group-module' bindtap='toMyCollage' data-title='{{ myData.collage }}' wx:if="{{!myData.isIOS}}"> -->
      <view class='group-module' bindtap='toMyCollage' data-title='{{ myData.collage }}'>
        <view class='wallet-center'>
          <view class='wallet-left'>
            <view class='icon-box'>
              <image src='../../static/image/group.png'></image>
            </view>
            <text>我的{{myData.isIOS? '助力' : '拼团'}}</text>
          </view>
          <view class='wallet-right'>
            <image src='../../static/image/to.png'></image>
          </view>
        </view>
      </view>
      <view class='reading-module' bindtap='toMyRead' data-title='{{ myData.read }}'>
        <view class='wallet-center'>
          <view class='wallet-left'>
            <view class='icon-box'>
              <image src='../../static/image/record.png'></image>
            </view>
            <text>我的朗读</text>
          </view>
          <view class='wallet-right'>
            <image src='../../static/image/to.png'></image>
          </view>
        </view>
      </view>
      <view class='keep-module' bindtap='toMyKeep' data-title='{{ myData.keep }}'>
        <view class='wallet-center'>
          <view class='wallet-left'>
            <view class='icon-box'>
              <image src='../../static/image/keep.png'></image>
            </view>
            <text>我的收藏</text>
          </view>
          <view class='wallet-right'>
            <image src='../../static/image/to.png'></image>
          </view>
        </view>
      </view>
      <view class='myfollow-module' bindtap='toMyConcern' data-title='{{ myData.concern }}'>
        <view class='wallet-center'>
          <view class='wallet-left'>
            <view class='icon-box'>
              <image src='../../static/image/myfollow.png'></image>
            </view>
            <text>我的关注</text>
          </view>
          <view class='wallet-right'>
            <image src='../../static/image/to.png'></image>
          </view>
        </view>
      </view>
    </view>
  </view>
</template>