my.wxml 4.8 KB

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