my.wxml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. <view class="vip-con" wx:if="{{myData.isIOS}}">
  27. <image src="http://reader-wx.ai160.com/images/reader/pay/vip_bg.png" />
  28. <view class="invite" wx:if="{{!myData.isVIP}}" bindtap="myPlase">快去邀请好友 免费领取会员></view>
  29. <view wx:else>
  30. <view class="vip-end-time">{{filters.formatDate(myData.date)}}到期</view>
  31. <view class="order-buy vip-buy" bindtap="myPlase">
  32. 邀请有礼>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="vip-con" wx:else>
  37. <image src="http://reader-wx.ai160.com/images/reader/pay/vip_bg.png" />
  38. <view wx:if="{{!myData.isVIP}}">
  39. <view class="price">
  40. <text>{{myData.price}}</text>元/月
  41. </view>
  42. <view class="flase-price">
  43. 原价:29.9元/月
  44. </view>
  45. <view class="order-buy" bindtap="moneyBuy">
  46. 限时抢购>
  47. </view>
  48. </view>
  49. <view wx:else>
  50. <view class="vip-end-time">{{filters.formatDate(myData.date)}}到期</view>
  51. <view class="order-buy vip-buy" bindtap="moneyBuy">
  52. 立即续费>
  53. </view>
  54. </view>
  55. </view>
  56. <!-- android 显示两个 -->
  57. <view class="wallet-section">
  58. <view class="flower-box" bindtap="goToFlower">
  59. <view class="grey-point"></view>
  60. <view class="flower-box-box">
  61. <image class="flower-icon" src='../../static/image/flower_small.png' />
  62. <view class="flower-text">
  63. <view>小红花:{{myData.user.integralAmount || 0 }}</view>
  64. </view>
  65. </view>
  66. <view class="flower-tips-text">
  67. <text class="flower-last">{{myData.user.unfinishedAmount }}</text>
  68. 个任务福利还没有完成
  69. </view>
  70. </view>
  71. </view>
  72. <view class="btn-section">
  73. <view class="btn" bindtap='toMyConcern'>
  74. <image class="btn-icon" src="../../static/image/concern.png" />
  75. <view class="btn-title">我的关注</view>
  76. </view>
  77. <view class="btn" bindtap='toMyKeep'>
  78. <image class="btn-icon" src="../../static/image/collect.png" />
  79. <view class="btn-title">我的收藏</view>
  80. </view>
  81. <view class="btn">
  82. <image class="btn-icon" src="../../static/image/message.png" bindtap="goToMessage" />
  83. <view class="btn-title">消息通知</view>
  84. </view>
  85. <button class="btn" bindtap="goToService" open-type="contact" plain="true" hover-class="none"
  86. style="border: none;">
  87. <image class="btn-icon" src="../../static/index/contact.png"></image>
  88. <view class="btn-title">联系客服</view>
  89. </button>
  90. </view>
  91. </view>
  92. </view>
  93. </template>