my.wxml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <wxs src="../../pages/commonWxs/format.wxs" module="format"/>
  2. <template name="my">
  3. <view class='mine-container'>
  4. <view class='follow-details'>
  5. <view class='follow-info'>
  6. <view class='set-msg'>
  7. <view class='avatar-bg'>
  8. <view class='avatar-box'>
  9. <image class='avatar-image' src='{{ myData.user.user.avatar }}'></image>
  10. </view>
  11. <view class='occupation-title'>{{ myData.user.user.profession }}</view>
  12. </view>
  13. <view class='avatar-msg'>
  14. <view class='avatar-nickname'>
  15. <text>{{ myData.user.user.wechatName }}</text>
  16. <view class='flowers-box' wx:if='{{ myData.user.user.gender === 2 }}'>
  17. <image src='../../static/image/flowers.png'></image>
  18. </view>
  19. <view class='flowers-box' wx:elif='{{ myData.user.user.gender === 1 }}'>
  20. <image src='../../static/image/boy.png'></image>
  21. </view>
  22. <view wx:else class='gender-size'>未知</view>
  23. </view>
  24. <view class='avatar-birthday'>{{ format.getBirthday(myData.user.user.birthday) }}</view>
  25. <view class='avatar-address'>{{ myData.user.user.schoolName }}</view>
  26. </view>
  27. <view class='mine-edit' bindtap='toMyEdit' data-title='{{ myData.title }}'>
  28. <view class='edit-image'>
  29. <image class='edit-img' src='../../static/image/reset.png'></image>
  30. </view>
  31. <view class='edit-text'>修改</view>
  32. </view>
  33. </view>
  34. </view>
  35. <view class='mine-category'>
  36. <view class='play-count'>
  37. <view>{{ myData.user.playAmount || 0 }}</view>
  38. <view class='border-right'>
  39. <view class='play-img'>
  40. <image src='../../static/image/play.png'></image>
  41. </view>
  42. <text>播放量</text>
  43. </view>
  44. </view>
  45. <view class='follow-count'>
  46. <view class='color'>{{ myData.user.fansAmount || 0 }}</view>
  47. <view class='border-right'>
  48. <view class='red-heart'>
  49. <image src='../../static/image/fully_heart.png'></image>
  50. </view>
  51. <text>关注</text>
  52. </view>
  53. </view>
  54. <view class='point-count'>
  55. <view class='color'>{{ myData.user.likeAmount || 0 }}</view>
  56. <view class='border-right'>
  57. <view class='point-img'>
  58. <image src='../../static/image/point.png'></image>
  59. </view>
  60. <text>赞</text>
  61. </view>
  62. </view>
  63. <view class='flower-count'>
  64. <view class='color'>{{ myData.user.pointAmount || 0 }}</view>
  65. <view class='border-right'>
  66. <view class='play-img'>
  67. <image src='../../static/image/flower.png'></image>
  68. </view>
  69. <text>红花</text>
  70. </view>
  71. </view>
  72. </view>
  73. <view class='wallet-module' bindtap='toMyWallet' data-title='{{ myData.wallet }}' wx:if="{{!myData.isIOS}}">
  74. <view class='wallet-center'>
  75. <view class='wallet-left'>
  76. <view class='icon-box'>
  77. <image src='../../static/image/wallet.png'></image>
  78. </view>
  79. <text>钱包</text>
  80. </view>
  81. <view class='wallet-right'>
  82. <image src='../../static/image/to.png'></image>
  83. </view>
  84. </view>
  85. </view>
  86. <view class='course-module' bindtap='toMyCourse' data-title='{{ myData.course }}'>
  87. <view class='wallet-center'>
  88. <view class='wallet-left'>
  89. <view class='icon-box'>
  90. <image src='../../static/image/courses.png'></image>
  91. </view>
  92. <text>我的课程</text>
  93. </view>
  94. <view class='wallet-right'>
  95. <image src='../../static/image/to.png'></image>
  96. </view>
  97. </view>
  98. </view>
  99. <view class='group-module' bindtap='toMyCollage' data-title='{{ myData.collage }}' wx:if="{{!myData.isIOS}}">
  100. <view class='wallet-center'>
  101. <view class='wallet-left'>
  102. <view class='icon-box'>
  103. <image src='../../static/image/group.png'></image>
  104. </view>
  105. <text>我的拼团</text>
  106. </view>
  107. <view class='wallet-right'>
  108. <image src='../../static/image/to.png'></image>
  109. </view>
  110. </view>
  111. </view>
  112. <view class='reading-module' bindtap='toMyRead' data-title='{{ myData.read }}'>
  113. <view class='wallet-center'>
  114. <view class='wallet-left'>
  115. <view class='icon-box'>
  116. <image src='../../static/image/record.png'></image>
  117. </view>
  118. <text>我的朗读</text>
  119. </view>
  120. <view class='wallet-right'>
  121. <image src='../../static/image/to.png'></image>
  122. </view>
  123. </view>
  124. </view>
  125. <view class='keep-module' bindtap='toMyKeep' data-title='{{ myData.keep }}'>
  126. <view class='wallet-center'>
  127. <view class='wallet-left'>
  128. <view class='icon-box'>
  129. <image src='../../static/image/keep.png'></image>
  130. </view>
  131. <text>我的收藏</text>
  132. </view>
  133. <view class='wallet-right'>
  134. <image src='../../static/image/to.png'></image>
  135. </view>
  136. </view>
  137. </view>
  138. <view class='myfollow-module' bindtap='toMyConcern' data-title='{{ myData.concern }}'>
  139. <view class='wallet-center'>
  140. <view class='wallet-left'>
  141. <view class='icon-box'>
  142. <image src='../../static/image/myfollow.png'></image>
  143. </view>
  144. <text>我的关注</text>
  145. </view>
  146. <view class='wallet-right'>
  147. <image src='../../static/image/to.png'></image>
  148. </view>
  149. </view>
  150. </view>
  151. </view>
  152. </view>
  153. </template>