my.wxml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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' wx:if="{{myData.user.user.wechatName}}">
  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 class='set-msg-temp' hidden="{{myData.user.user.wechatName}}">
  33. <view class="placerholder line1"></view>
  34. <view class="placerholder line2"></view>
  35. <view class="placerholder line3"></view>
  36. </view>
  37. </view>
  38. <view class='mine-category'>
  39. <view class='play-count'>
  40. <view class='color' style="padding-right:38rpx;" >{{ myData.user.playAmount || 0 }}</view>
  41. <view class='border-right'>
  42. <view class='play-img'>
  43. <image src='../../static/image/play.png'></image>
  44. </view>
  45. <text>播放量</text>
  46. </view>
  47. </view>
  48. <view class='follow-count'>
  49. <view class='color' style="padding-right:48rpx;">{{ myData.user.fansAmount || 0 }}</view>
  50. <view class='border-right'>
  51. <view class='red-heart'>
  52. <image src='../../static/image/purple_heart.png'></image>
  53. </view>
  54. <text>粉丝</text>
  55. </view>
  56. </view>
  57. <view class='point-count'>
  58. <view class='color' style="padding-right:60rpx;">{{ myData.user.likeAmount || 0 }}</view>
  59. <view class='border-right'>
  60. <view class='point-img'>
  61. <image src='../../static/image/point.png'></image>
  62. </view>
  63. <text>赞</text>
  64. </view>
  65. </view>
  66. <view class='flower-count'>
  67. <view class='color'>{{ myData.user.pointAmount || 0 }}</view>
  68. <view class='border-right'>
  69. <view class='play-img'>
  70. <image src='../../static/image/flower.png'></image>
  71. </view>
  72. <text>红花</text>
  73. </view>
  74. </view>
  75. </view>
  76. <view class='wallet-module' bindtap='toMyWallet' data-title='{{ myData.wallet }}' wx:if="{{!myData.isIOS}}">
  77. <!-- <view class='wallet-module' bindtap='toMyWallet' data-title='{{ myData.wallet }}'> -->
  78. <view class='wallet-center'>
  79. <view class='wallet-left'>
  80. <view class='icon-box'>
  81. <image src='../../static/image/wallet.png'></image>
  82. </view>
  83. <text>钱包</text>
  84. </view>
  85. <view class='wallet-right'>
  86. <image src='../../static/image/to.png'></image>
  87. </view>
  88. </view>
  89. </view>
  90. <view class='course-module' bindtap='toMyCourse' data-title='{{ myData.course }}'>
  91. <view class='wallet-center'>
  92. <view class='wallet-left'>
  93. <view class='icon-box'>
  94. <image src='../../static/image/courses.png'></image>
  95. </view>
  96. <text>我的课程</text>
  97. </view>
  98. <view class='wallet-right'>
  99. <image src='../../static/image/to.png'></image>
  100. </view>
  101. </view>
  102. </view>
  103. <!-- <view class='group-module' bindtap='toMyCollage' data-title='{{ myData.collage }}' wx:if="{{!myData.isIOS}}"> -->
  104. <view class='group-module' bindtap='toMyCollage' data-title='{{ myData.collage }}'>
  105. <view class='wallet-center'>
  106. <view class='wallet-left'>
  107. <view class='icon-box'>
  108. <image src='../../static/image/group.png'></image>
  109. </view>
  110. <text>我的{{myData.isIOS? '助力' : '拼团'}}</text>
  111. </view>
  112. <view class='wallet-right'>
  113. <image src='../../static/image/to.png'></image>
  114. </view>
  115. </view>
  116. </view>
  117. <view class='reading-module' bindtap='toMyRead' data-title='{{ myData.read }}'>
  118. <view class='wallet-center'>
  119. <view class='wallet-left'>
  120. <view class='icon-box'>
  121. <image src='../../static/image/record.png'></image>
  122. </view>
  123. <text>我的朗读</text>
  124. </view>
  125. <view class='wallet-right'>
  126. <image src='../../static/image/to.png'></image>
  127. </view>
  128. </view>
  129. </view>
  130. <view class='keep-module' bindtap='toMyKeep' data-title='{{ myData.keep }}'>
  131. <view class='wallet-center'>
  132. <view class='wallet-left'>
  133. <view class='icon-box'>
  134. <image src='../../static/image/keep.png'></image>
  135. </view>
  136. <text>我的收藏</text>
  137. </view>
  138. <view class='wallet-right'>
  139. <image src='../../static/image/to.png'></image>
  140. </view>
  141. </view>
  142. </view>
  143. <view class='myfollow-module' bindtap='toMyConcern' data-title='{{ myData.concern }}'>
  144. <view class='wallet-center'>
  145. <view class='wallet-left'>
  146. <view class='icon-box'>
  147. <image src='../../static/image/myfollow.png'></image>
  148. </view>
  149. <text>我的关注</text>
  150. </view>
  151. <view class='wallet-right'>
  152. <image src='../../static/image/to.png'></image>
  153. </view>
  154. </view>
  155. </view>
  156. </view>
  157. </view>
  158. </template>