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