my.wxml 8.7 KB

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