home.wxml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <cu-custom bgColor="bg-lw-header">
  2. <view slot="content">我的</view>
  3. </cu-custom>
  4. <view class="userinfo">
  5. <view class="userinfo-left">
  6. <view class="cu-avatar round" wx:if="{{!userInfo.avatar}}">
  7. <text class="cuIcon-people"></text>
  8. </view>
  9. <view class="cu-avatar round" wx:else bindtap="uploadAvatar" style="background-image:url({{userInfo.avatar}});"></view>
  10. <view class="namebox">
  11. <block wx:if="{{!userInfo.user_nickname}}">
  12. <button class="cu-btn" open-type="getUserInfo" wx:if="{{!getUserInfo}}" bindgetuserinfo="getUserInfo">点击登录</button>
  13. <button class="cu-btn" wx:if="{{getUserInfo}}" bindtap="getUserProfile">点击登录</button>
  14. </block>
  15. <block wx:else>
  16. <view class="userinfo-content" bindtap="getUserProfile">
  17. {{userInfo.user_nickname}}
  18. <text class="cuIcon-refresh lg text-white"></text>
  19. </view>
  20. <view class="userinfo-id">id:{{userInfo.id}}</view>
  21. <view class="userinfo-id" bindtap="toScore">积分:{{userInfo.score}}</view>
  22. </block>
  23. </view>
  24. </view>
  25. <view class="userinfo-right" bindtap="toInfo">
  26. <image src="/common/images/person.png"></image>
  27. <text>个人信息</text>
  28. <text class="cuIcon-right"></text>
  29. </view>
  30. </view>
  31. <view class="option">
  32. <view class="option-item" bindtap="scan">
  33. <image src="/common/images/scan.png"></image>
  34. <view>扫一扫</view>
  35. </view>
  36. <view class="option-item" bindtap="toJoin">
  37. <image src="/common/images/my_join.png"></image>
  38. <view>我的参与</view>
  39. </view>
  40. </view>
  41. <view class="cu-list center-menu menu card-menu">
  42. <view class="cu-item arrow" bindtap="toRob">
  43. <view class="content">
  44. <image src="/common/images/rob.png" class="png" mode="aspectFit"></image>
  45. <text class="text-black">我的抢票</text>
  46. </view>
  47. </view>
  48. <view class="cu-item arrow" bindtap="toFeedback">
  49. <view class="content">
  50. <image src="/common/images/feedback.png" class="png" mode="aspectFit"></image>
  51. <text class="text-black">意见反馈</text>
  52. </view>
  53. </view>
  54. <view class="cu-item arrow" bindtap="toBind">
  55. <view class="content">
  56. <image src="/common/images/bind.png" class="png" mode="aspectFit"></image>
  57. <text class="text-black">绑定聚才网帐号</text>
  58. </view>
  59. <view class="action">
  60. <text class="text-grey text-sm">{{userInfo.jucai_id ? '已绑定' : '未绑定'}}</text>
  61. </view>
  62. </view>
  63. <button class="cu-item arrow btn" open-type="contact">
  64. <view class="content">
  65. <image src="/common/images/service.png" class="png" mode="aspectFit"></image>
  66. <text class="text-black">联系客服</text>
  67. </view>
  68. </button>
  69. </view>