my.wxml 8.1 KB

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