my.wxml 7.3 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="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}}">
  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}}">
  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">
  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-gut">
  83. <view class="worksCard" style="margin-bottom: 0;" bindtap="openWorks" data-readId="{{myData.user.myRead.id}}" data-title="{{myData.user.myRead.title}}">
  84. <view class="topData">
  85. <view class="worksLeft">
  86. <image class="authorAvatar" lazy-load="true" src="{{myData.user.user.avatar}}" />
  87. <view class="profession" wx:if="{{item.profession}}">{{item.profession}}</view>
  88. <view class="worksInfo">
  89. <view class="authorName">{{myData.user.user.wechatName}}</view>
  90. <view class="time">{{myData.user.myRead.gmtCreated}}</view>
  91. </view>
  92. </view>
  93. <view class="numberInfo">
  94. <view class="wareCardPlays">
  95. <image class="wareCardPlaysImg" lazy-load="true" src="../../static/image/hotPlays.png" />
  96. <text>{{myData.user.myRead.playAmount}}</text>
  97. </view>
  98. <view class="wareCardLikes">
  99. <image class="wareCardLikesImg" lazy-load="true" src="../../static/image/flower_small.png" />
  100. <text>{{myData.user.myRead.likeAmount}}</text>
  101. </view>
  102. </view>
  103. </view>
  104. <image class="wareCardImg" src="{{myData.user.myRead.iconImg}}" />
  105. <view class="titleSummary">
  106. <text class="wareCardTitle">{{myData.user.myRead.title}}</text>
  107. <text class="wareCardTip">{{myData.user.myRead.summary}}</text>
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. <view class="my-reading-section ">
  113. <view class="my-reading-title">
  114. <view class="title-left">关注的人的作品</view>
  115. <view class="title-right">
  116. 更多
  117. <image src="../../static/image/black_to.png" />
  118. </view>
  119. </view>
  120. <view class="my-reading-gut">
  121. <view wx:for="{{followData}}" wx:key="{{index}}" class="worksCard" bindtap="openWorks" data-readid="{{item.id}}" data-title="{{item.title}}">
  122. <view class="topData">
  123. <view class="worksLeft" catchtap="goToUsers" data-uid="{{item.uid}}">
  124. <image class="authorAvatar" lazy-load="true" src="{{item.avatar}}" />
  125. <view class="profession" wx:if="{{item.profession}}">{{item.profession}}</view>
  126. <view class="worksInfo">
  127. <view class="authorName">{{item.nickName}}</view>
  128. <view class="time">{{item.time}}</view>
  129. </view>
  130. </view>
  131. <view class="numberInfo">
  132. <view class="wareCardPlays">
  133. <image class="wareCardPlaysImg" lazy-load="true" src="../../static/image/hotPlays.png" />
  134. <text>{{item.plays}}</text>
  135. </view>
  136. <view class="wareCardLikes">
  137. <image class="wareCardLikesImg" lazy-load="true" src="../../static/image/flower_small.png" />
  138. <text>{{item.likes}}</text>
  139. </view>
  140. </view>
  141. </view>
  142. <image class="wareCardImg" src="{{item.img}}" />
  143. <view class="titleSummary">
  144. <text class="wareCardTitle">{{item.title}}</text>
  145. <text class="wareCardTip">{{item.summary}}</text>
  146. </view>
  147. </view>
  148. </view>
  149. </view>
  150. </view>
  151. <view class="footer-section" wx:if="{{ifHaveMore}}">
  152. 加载更多
  153. </view>
  154. </view>
  155. </template>