my.wxml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <!-- <wxs src="../../pages/commonWxs/format.wxs" module="format" /> -->
  2. <wxs src="../../utils/filter.wxs" module="filters"/>
  3. <template name="my">
  4. <view class='mine-container'>
  5. <view class='follow-details'>
  6. <view class='follow-info'>
  7. <view class="info-placerholder"></view>
  8. <view class='set-msg' wx:if="{{myData.userInfo.wechatName }}" bindtap="toMyEdit">
  9. <view class='avatar-box'>
  10. <image class='avatar-image' src='{{ myData.userInfo.avatar }}'></image>
  11. <!-- <view class='occupation-title' wx:if="{{myData.user.user.profession}}">{{ myData.user.user.profession }}</view> -->
  12. </view>
  13. <view class='avatar-msg' >
  14. <view class='avatar-nickname'>昵称:{{ myData.userInfo.wechatName }}</view>
  15. <view class='avatar-nickname'>年级:{{myData.userInfo.gradeText }}</view>
  16. <image class="edit-img" src="../../static/index/edit.png" />
  17. <view class='mine-category'>
  18. <view class='amount-text'>播放 {{ myData.user.playAmount || 0 }} </view>
  19. <!-- <view class='amount-text'>{{ myData.user.likeAmount || 0 }} 赞</view> -->
  20. <view class='amount-text'>粉丝 {{ myData.user.fansAmount || 0 }}</view>
  21. <view class='amount-text'>作品 {{ myData.user.readAmount || 0 }} </view>
  22. </view>
  23. </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}}">今天任务全部完成,真棒</view>
  38. </view> -->
  39. <view class="vip-con" wx:if="{{myData.isIOS}}">
  40. <image src="http://reader-wx.ai160.com/images/reader/pay/vip_bg.png" />
  41. <view class="invite" wx:if="{{!myData.isVIP}}" bindtap="myPlase">快去邀请好友 免费领取会员></view>
  42. <view wx:else>
  43. <view class="vip-end-time">{{filters.formatDate(myData.date)}}到期</view>
  44. <view class="order-buy vip-buy" bindtap="myPlase">
  45. 邀请有礼>
  46. </view>
  47. </view>
  48. </view>
  49. <view class="vip-con" wx:else>
  50. <image src="http://reader-wx.ai160.com/images/reader/pay/vip_bg.png" />
  51. <view wx:if="{{!myData.isVIP}}">
  52. <view class="price">
  53. <text >{{myData.price}}</text>元/月
  54. </view>
  55. <view class="flase-price">
  56. 原价:29.9元/月
  57. </view>
  58. <view class="order-buy" bindtap="moneyBuy">
  59. 限时抢购>
  60. </view>
  61. </view>
  62. <view wx:else>
  63. <view class="vip-end-time">{{filters.formatDate(myData.date)}}到期</view>
  64. <view class="order-buy vip-buy" bindtap="moneyBuy">
  65. 立即续费>
  66. </view>
  67. </view>
  68. </view>
  69. <!-- android 显示两个 -->
  70. <view class="wallet-section">
  71. <view class="flower-box" bindtap="goToFlower">
  72. <view class="grey-point"></view>
  73. <view class="flower-box-box">
  74. <image class="flower-icon" src='../../static/image/flower_small.png' />
  75. <view class="flower-text">
  76. <view>小红花:{{myData.user.integralAmount || 0 }}</view>
  77. </view>
  78. </view>
  79. <view class="flower-tips-text">
  80. <text class="flower-last">{{myData.user.unfinishedAmount }}</text>
  81. 个任务福利还没有完成
  82. </view>
  83. </view>
  84. </view>
  85. <view class="btn-section">
  86. <view class="btn" bindtap='toMyConcern'>
  87. <image class="btn-icon" src="../../static/image/concern.png" />
  88. <view class="btn-title">我的关注</view>
  89. </view>
  90. <view class="btn" bindtap='toMyKeep'>
  91. <image class="btn-icon" src="../../static/image/collect.png" />
  92. <view class="btn-title">我的收藏</view>
  93. </view>
  94. <view class="btn">
  95. <image class="btn-icon" src="../../static/image/message.png" bindtap="goToMessage" />
  96. <view class="btn-title">消息通知</view>
  97. </view>
  98. <button class="btn" open-type="contact" plain="true" hover-class="none" style="border: none;">
  99. <image class="btn-icon" src="../../static/index/contact.png"></image>
  100. <view class="btn-title">联系客服</view>
  101. </button>
  102. </view>
  103. </view>
  104. </view>
  105. </template>