my.wxml 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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.userInfo.wechatName }}" bindtap="toMyEdit">
  8. <view class='avatar-box'>
  9. <image class='avatar-image' src='{{ myData.userInfo.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' >
  13. <view class='avatar-nickname'>昵称:{{ myData.userInfo.wechatName }}</view>
  14. <view class='avatar-nickname'>年级:{{myData.userInfo.gradeText }}</view>
  15. <image class="edit-img" src="../../static/index/edit.png" />
  16. <view class='mine-category'>
  17. <view class='amount-text'>播放 {{ myData.playAmount || 0 }} </view>
  18. <!-- <view class='amount-text'>{{ myData.user.likeAmount || 0 }} 赞</view> -->
  19. <view class='amount-text'>粉丝 {{ myData.fansAmount || 0 }}</view>
  20. <view class='amount-text'>作品 {{ myData.readAmount || 0 }} </view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <!-- ios只显示红花 -->
  26. <!-- <view class="only-flower" wx:if="{{myData.isIOS}}" bindtap="goToFlower">
  27. <view class="grey-point"></view>
  28. <view class="flower-amount">
  29. <image class="" src='../../static/image/flower_small.png' />
  30. <view>小红花:{{myData.user.integralAmount || 0 }}</view>
  31. </view>
  32. <view class="flower-tips" wx:if="{{myData.user.unfinishedAmount > 0}}">
  33. <text class="flower-last">{{myData.user.unfinishedAmount }}</text>
  34. 个任务福利还没有完成
  35. </view>
  36. <view class="flower-tips" wx:if="{{myData.user.unfinishedAmount <= 0}}">今天任务全部完成,真棒</view>
  37. </view> -->
  38. <!-- android 显示两个 -->
  39. <view class="wallet-section">
  40. <view class="flower-box" bindtap="goToFlower">
  41. <view class="grey-point"></view>
  42. <view class="flower-box-box">
  43. <image class="flower-icon" src='../../static/image/flower_small.png' />
  44. <view class="flower-text">
  45. <view>小红花:{{myData.integralAmount || 0 }}</view>
  46. </view>
  47. </view>
  48. <view class="flower-tips-text">
  49. <text class="flower-last">{{myData.unfinishedAmount }}</text>
  50. 个任务福利还没有完成
  51. </view>
  52. </view>
  53. </view>
  54. <view class="btn-section">
  55. <view class="btn" bindtap='toMyConcern'>
  56. <image class="btn-icon" src="../../static/image/concern.png" />
  57. <view class="btn-title">我的关注</view>
  58. </view>
  59. <view class="btn" bindtap='toMyKeep' data-title='{{ myData.keep }}'>
  60. <image class="btn-icon" src="../../static/image/collect.png" />
  61. <view class="btn-title">我的收藏</view>
  62. </view>
  63. <view class="btn">
  64. <image class="btn-icon" src="../../static/image/message.png" bindtap="goToMessage" />
  65. <view class="btn-title">消息通知</view>
  66. </view>
  67. <button class="btn" open-type="contact" plain="true" hover-class="none" style="border: none;">
  68. <image class="btn-icon" src="../../static/index/contact.png"></image>
  69. <view class="btn-title">联系客服</view>
  70. </button>
  71. </view>
  72. </view>
  73. </view>
  74. </template>