home.wxml 2.8 KB

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