my.wxml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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="info-placerholder"></view>
  7. <view class='set-msg' wx:if="{{myData.user.user.wechatName}}">
  8. <view class='avatar-box'>
  9. <image class='avatar-image' src='{{ myData.user.user.avatar }}'></image>
  10. <!-- <view class='occupation-title' wx:if="{{myData.user.user.profession}}">{{ myData.user.user.profession }}</view> -->
  11. </view>
  12. <view class='avatar-msg'>
  13. <view class='avatar-nickname'>微信昵称:{{ myData.user.user.wechatName }}</view>
  14. <view class='avatar-nickname'>宝贝昵称:{{ myData.user.user.wechatName }}的宝贝</view>
  15. <image class="edit-img" bindtap="toMyEdit" src="../../static/image/edit_new.png" />
  16. <view class='mine-category'>
  17. <view class='amount-text'>{{ myData.user.playAmount || 0 }} 播放</view>
  18. <view class='amount-text'>{{ myData.user.likeAmount || 0 }} 赞</view>
  19. <view class='amount-text'>{{ myData.user.fansAmount || 0 }} 粉丝</view>
  20. </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>
  26. <!-- ios只显示红花 -->
  27. <view class="only-flower" wx:if="{{myData.isIOS}}" bindtap="goToFlower">
  28. <view class="grey-point"></view>
  29. <view class="flower-amount">
  30. <image class="" src='../../static/image/flower_small.png' />
  31. <view>小红花:{{myData.user.pointAmount || 0 }}</view>
  32. </view>
  33. <view class="flower-tips">
  34. <text class="flower-last">{{myData.user.taskAmount }}</text>
  35. 个任务福利还没有领哦
  36. </view>
  37. </view>
  38. <!-- android 显示两个 -->
  39. <view class="wallet-section" wx:if="{{!myData.isIOS}}" bindtap="goToFlower">
  40. <view class="wallet-box" bindtap="toWalletDetail">
  41. <view class="grey-point"></view>
  42. <image class="wallet-icon" src='../../static/image/wallet.png' />
  43. <view>钱包:{{myData.user.walletAmount / 100 || 0 }}</view>
  44. </view>
  45. <view class="flower-box">
  46. <view class="grey-point"></view>
  47. <image class="flower-icon" src='../../static/image/flower_small.png' />
  48. <view class="flower-text">
  49. <view>小红花:{{myData.user.pointAmount || 0 }}</view>
  50. <view class="flower-tips-text">
  51. <text class="flower-last">{{myData.user.taskAmount }}</text>
  52. 个任务福利还没有领哦
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. <view class="btn-section">
  58. <view class="btn" bindtap='toMyConcern'>
  59. <image src="../../static/image/concern.png" />
  60. <view class="btn-title">我的关注</view>
  61. </view>
  62. <view class="btn" bindtap='toMyKeep' data-title='{{ myData.keep }}'>
  63. <image src="../../static/image/collect.png" />
  64. <view class="btn-title">我的收藏</view>
  65. </view>
  66. <view class="btn" bindtap='toMyCollage' data-title='{{ myData.collage }}'>
  67. <image src="../../static/image/firends.png" />
  68. <view class="btn-title">我的{{myData.isIOS? '助力' : '拼团'}}</view>
  69. </view>
  70. <view class="btn">
  71. <image src="../../static/image/message.png" bindtap="goToMessage" />
  72. <view class="btn-title">消息通知</view>
  73. </view>
  74. </view>
  75. <view class="my-reading-section">
  76. <view class="my-reading-title" wx:if="{{myData.user.myRead}}">
  77. <view class="title-left">我的作品</view>
  78. <view class="title-right" bindtap="toMyRead">
  79. 更多
  80. <image src="../../static/image/black_to.png" />
  81. </view>
  82. </view>
  83. <view class="my-reading-section-placeholder" wx:if="{{!myData.user.myRead}}">
  84. 您还没有朗读过,快去留下声音吧
  85. </view>
  86. <view class="my-reading-gut" wx:if="{{myData.user.myRead}}">
  87. <view class="worksCard" style="margin-bottom: 0;" bindtap="openWorks" data-readId="{{myData.user.myRead.id}}" data-title="{{myData.user.myRead.title}}">
  88. <view class="topData">
  89. <view class="worksLeft">
  90. <image class="authorAvatar" lazy-load="true" src="{{myData.user.user.avatar}}" />
  91. <view class="profession" wx:if="{{item.profession}}">{{item.profession}}</view>
  92. <view class="worksInfo">
  93. <view class="authorName">{{myData.user.user.wechatName}}</view>
  94. <view class="time">{{myData.user.myRead.gmtCreated}}</view>
  95. </view>
  96. </view>
  97. <view class="numberInfo">
  98. <view class="wareCardPlays">
  99. <image class="wareCardPlaysImg" lazy-load="true" src="../../static/image/hotPlays.png" />
  100. <text>{{myData.user.myRead.playAmount}}</text>
  101. </view>
  102. <view class="wareCardLikes">
  103. <image class="wareCardLikesImg" lazy-load="true" src="../../static/image/flower_small.png" />
  104. <text>{{myData.user.myRead.likeAmount}}</text>
  105. </view>
  106. </view>
  107. </view>
  108. <image class="wareCardImg" src="{{myData.user.myRead.iconImg}}" />
  109. <view class="titleSummary">
  110. <text class="wareCardTitle">{{myData.user.myRead.title}}</text>
  111. <text class="wareCardTip">{{myData.user.myRead.summary}}</text>
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. <view class="my-reading-section ">
  117. <view class="my-reading-title">
  118. <view class="title-left">关注的人的作品</view>
  119. <view class="title-right">
  120. 更多
  121. <image src="../../static/image/black_to.png" />
  122. </view>
  123. </view>
  124. <view class="my-reading-gut">
  125. <view wx:for="{{followData}}" wx:key="{{index}}" class="worksCard" bindtap="openWorks" data-readid="{{item.id}}" data-title="{{item.title}}">
  126. <view class="topData">
  127. <view class="worksLeft" catchtap="goToUsers" data-uid="{{item.uid}}">
  128. <image class="authorAvatar" lazy-load="true" src="{{item.avatar}}" />
  129. <view class="profession" wx:if="{{item.profession}}">{{item.profession}}</view>
  130. <view class="worksInfo">
  131. <view class="authorName">{{item.nickName}}</view>
  132. <view class="time">{{item.time}}</view>
  133. </view>
  134. </view>
  135. <view class="numberInfo">
  136. <view class="wareCardPlays">
  137. <image class="wareCardPlaysImg" lazy-load="true" src="../../static/image/hotPlays.png" />
  138. <text>{{item.plays}}</text>
  139. </view>
  140. <view class="wareCardLikes">
  141. <image class="wareCardLikesImg" lazy-load="true" src="../../static/image/flower_small.png" />
  142. <text>{{item.likes}}</text>
  143. </view>
  144. </view>
  145. </view>
  146. <image class="wareCardImg" src="{{item.img}}" />
  147. <view class="titleSummary">
  148. <text class="wareCardTitle">{{item.title}}</text>
  149. <text class="wareCardTip">{{item.summary}}</text>
  150. </view>
  151. </view>
  152. </view>
  153. </view>
  154. </view>
  155. <view class="footer-section" wx:if="{{ifHaveMore}}">
  156. 加载更多
  157. </view>
  158. </view>
  159. </template>