my.wxml 6.1 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-box'>
  8. <image class='avatar-image' src='{{ myData.user.user.avatar }}'></image>
  9. <view class='occupation-title' wx:if="{{myData.user.user.profession}}">{{ myData.user.user.profession }}</view>
  10. </view>
  11. <view class='avatar-msg'>
  12. <view class='avatar-nickname'>
  13. <text>{{ myData.user.user.wechatName }}</text>
  14. <view class='flowers-box' wx:if='{{ myData.user.user.gender === 2 }}'>
  15. <image src='../../static/image/flowers.png'></image>
  16. </view>
  17. <view class='flowers-box' wx:elif='{{ myData.user.user.gender === 1 }}'>
  18. <image src='../../static/image/boy.png'></image>
  19. </view>
  20. <!-- <view wx:else class='gender-size'>未知</view> -->
  21. </view>
  22. <view class='avatar-birthday'>{{ myData.user.user.birthday }}</view>
  23. <view class='avatar-address'>{{ myData.user.user.schoolName }}</view>
  24. </view>
  25. <view class='mine-edit' bindtap='toMyEdit' data-title='{{ myData.title }}'>
  26. <!-- <view class='edit-image'> -->
  27. <image class='edit-img' src='../../static/image/reset.png'></image>
  28. <!-- </view> -->
  29. <view class='edit-text'>修改</view>
  30. </view>
  31. </view>
  32. </view>
  33. <view class='mine-category'>
  34. <view class='play-count'>
  35. <view class='color' style="padding-right:38rpx;" >{{ myData.user.playAmount || 0 }}</view>
  36. <view class='border-right'>
  37. <view class='play-img'>
  38. <image src='../../static/image/play.png'></image>
  39. </view>
  40. <text>播放量</text>
  41. </view>
  42. </view>
  43. <view class='follow-count'>
  44. <view class='color' style="padding-right:48rpx;">{{ myData.user.fansAmount || 0 }}</view>
  45. <view class='border-right'>
  46. <view class='red-heart'>
  47. <image src='../../static/image/fully_heart.png'></image>
  48. </view>
  49. <text>关注</text>
  50. </view>
  51. </view>
  52. <view class='point-count'>
  53. <view class='color' style="padding-right:60rpx;">{{ myData.user.likeAmount || 0 }}</view>
  54. <view class='border-right'>
  55. <view class='point-img'>
  56. <image src='../../static/image/point.png'></image>
  57. </view>
  58. <text>赞</text>
  59. </view>
  60. </view>
  61. <view class='flower-count'>
  62. <view class='color'>{{ myData.user.pointAmount || 0 }}</view>
  63. <view class='border-right'>
  64. <view class='play-img'>
  65. <image src='../../static/image/flower.png'></image>
  66. </view>
  67. <text>红花</text>
  68. </view>
  69. </view>
  70. </view>
  71. <!-- <view class='wallet-module' bindtap='toMyWallet' data-title='{{ myData.wallet }}' wx:if="{{!myData.isIOS}}"> -->
  72. <view class='wallet-module' bindtap='toMyWallet' data-title='{{ myData.wallet }}'>
  73. <view class='wallet-center'>
  74. <view class='wallet-left'>
  75. <view class='icon-box'>
  76. <image src='../../static/image/wallet.png'></image>
  77. </view>
  78. <text>钱包</text>
  79. </view>
  80. <view class='wallet-right'>
  81. <image src='../../static/image/to.png'></image>
  82. </view>
  83. </view>
  84. </view>
  85. <view class='course-module' bindtap='toMyCourse' data-title='{{ myData.course }}'>
  86. <view class='wallet-center'>
  87. <view class='wallet-left'>
  88. <view class='icon-box'>
  89. <image src='../../static/image/courses.png'></image>
  90. </view>
  91. <text>我的课程</text>
  92. </view>
  93. <view class='wallet-right'>
  94. <image src='../../static/image/to.png'></image>
  95. </view>
  96. </view>
  97. </view>
  98. <!-- <view class='group-module' bindtap='toMyCollage' data-title='{{ myData.collage }}' wx:if="{{!myData.isIOS}}"> -->
  99. <view class='group-module' bindtap='toMyCollage' data-title='{{ myData.collage }}'>
  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>