my.wxml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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-module' bindtap='toMyWallet' data-title='{{ myData.wallet }}'>
  75. <view class='wallet-center'>
  76. <view class='wallet-left'>
  77. <view class='icon-box'>
  78. <image src='../../static/image/wallet.png'></image>
  79. </view>
  80. <text>钱包</text>
  81. </view>
  82. <view class='wallet-right'>
  83. <image src='../../static/image/to.png'></image>
  84. </view>
  85. </view>
  86. </view>
  87. <view class='course-module' bindtap='toMyCourse' data-title='{{ myData.course }}'>
  88. <view class='wallet-center'>
  89. <view class='wallet-left'>
  90. <view class='icon-box'>
  91. <image src='../../static/image/courses.png'></image>
  92. </view>
  93. <text>我的课程</text>
  94. </view>
  95. <view class='wallet-right'>
  96. <image src='../../static/image/to.png'></image>
  97. </view>
  98. </view>
  99. </view>
  100. <!-- <view class='group-module' bindtap='toMyCollage' data-title='{{ myData.collage }}' wx:if="{{!myData.isIOS}}"> -->
  101. <view class='group-module' bindtap='toMyCollage' data-title='{{ myData.collage }}'>
  102. <view class='wallet-center'>
  103. <view class='wallet-left'>
  104. <view class='icon-box'>
  105. <image src='../../static/image/group.png'></image>
  106. </view>
  107. <text>我的拼团</text>
  108. </view>
  109. <view class='wallet-right'>
  110. <image src='../../static/image/to.png'></image>
  111. </view>
  112. </view>
  113. </view>
  114. <view class='reading-module' bindtap='toMyRead' data-title='{{ myData.read }}'>
  115. <view class='wallet-center'>
  116. <view class='wallet-left'>
  117. <view class='icon-box'>
  118. <image src='../../static/image/record.png'></image>
  119. </view>
  120. <text>我的朗读</text>
  121. </view>
  122. <view class='wallet-right'>
  123. <image src='../../static/image/to.png'></image>
  124. </view>
  125. </view>
  126. </view>
  127. <view class='keep-module' bindtap='toMyKeep' data-title='{{ myData.keep }}'>
  128. <view class='wallet-center'>
  129. <view class='wallet-left'>
  130. <view class='icon-box'>
  131. <image src='../../static/image/keep.png'></image>
  132. </view>
  133. <text>我的收藏</text>
  134. </view>
  135. <view class='wallet-right'>
  136. <image src='../../static/image/to.png'></image>
  137. </view>
  138. </view>
  139. </view>
  140. <view class='myfollow-module' bindtap='toMyConcern' data-title='{{ myData.concern }}'>
  141. <view class='wallet-center'>
  142. <view class='wallet-left'>
  143. <view class='icon-box'>
  144. <image src='../../static/image/myfollow.png'></image>
  145. </view>
  146. <text>我的关注</text>
  147. </view>
  148. <view class='wallet-right'>
  149. <image src='../../static/image/to.png'></image>
  150. </view>
  151. </view>
  152. </view>
  153. </view>
  154. </view>
  155. </template>