index.wxml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <view class="container">
  2. <view class="profile-info" bindtap="goLogin">
  3. <image class="avatar" src="{{userInfo.avatarUrl}}"></image>
  4. <view class="info">
  5. <text class="name">{{userInfo.nickName}}</text>
  6. </view>
  7. </view>
  8. <view class='separate'></view>
  9. <view class='user_area'>
  10. <view class='user_row' bindtap='goOrder'>
  11. <view class='user_row_left'>我的订单</view>
  12. <van-icon class='user_row_right' name="arrow" />
  13. </view>
  14. <view class='user_column'>
  15. <view class='user_column_item' bindtap='goOrderIndex' data-index='1' data-route='/pages/ucenter/order/order'>
  16. <text class="user_column_item_badge" wx:if="{{order.unpaid != 0}}">{{order.unpaid}}</text>
  17. <image class='user_column_item_image' src='/static/images/pendpay.png'>
  18. </image>
  19. <view class='user_column_item_text'>待付款</view>
  20. </view>
  21. <view class='user_column_item' bindtap='goOrderIndex' data-index='2' data-route='/pages/ucenter/order/order'>
  22. <text class="user_column_item_badge" wx:if="{{order.unship != 0}}">{{order.unship}}</text>
  23. <image class='user_column_item_image' src='/static/images/send.png'></image>
  24. <view class='user_column_item_text'>待发货</view>
  25. </view>
  26. <view class='user_column_item' bindtap='goOrderIndex' data-index='3' data-route='/pages/ucenter/order/order'>
  27. <text class="user_column_item_badge" wx:if="{{order.unrecv != 0}}">{{order.unrecv}}</text>
  28. <image class='user_column_item_image' src='/static/images/receive.png'></image>
  29. <view class='user_column_item_text'>待收货</view>
  30. </view>
  31. <view class='user_column_item' bindtap='goOrderIndex' data-index='4' data-route='/pages/ucenter/order/order'>
  32. <text class="user_column_item_badge" wx:if="{{order.uncomment != 0}}">{{order.uncomment}}</text>
  33. <image class='user_column_item_image' src='/static/images/comment.png'></image>
  34. <view class='user_column_item_text'>待评价</view>
  35. </view>
  36. <view class='user_column_item' bindtap='goAfterSale'>
  37. <image class='user_column_item_image' src='/static/images/aftersale.png'></image>
  38. <view class='user_column_item_text'>售后</view>
  39. </view>
  40. </view>
  41. </view>
  42. <view class='separate'></view>
  43. <view class='user_row'>
  44. <view class='user_row_left'>核心服务</view>
  45. </view>
  46. <view class='user_column'>
  47. <view class='user_column_item' bindtap='goCoupon'>
  48. <image class='user_column_item_image' src='/static/images/coupon.png'></image>
  49. <view class='user_column_item_text'>优惠卷</view>
  50. </view>
  51. <view class='user_column_item' bindtap='goCollect'>
  52. <image class='user_column_item_image' src='/static/images/collect.png'></image>
  53. <view class='user_column_item_text'>商品收藏</view>
  54. </view>
  55. <view class='user_column_item' bindtap='goFootprint'>
  56. <image class='user_column_item_image' src='/static/images/footprint.png'></image>
  57. <view class='user_column_item_text'>浏览足迹</view>
  58. </view>
  59. <view class='user_column_item' bindtap='goGroupon'>
  60. <image class='user_column_item_image' src='/static/images/group.png'></image>
  61. <view class='user_column_item_text'>我的拼团</view>
  62. </view>
  63. <view class='user_column_item' bindtap='goAddress'>
  64. <image class='user_column_item_image' src='/static/images/address.png'></image>
  65. <view class='user_column_item_text'>地址管理</view>
  66. </view>
  67. </view>
  68. <view class='separate'></view>
  69. <view class='user_row'>
  70. <view class='user_row_left'>必备工具</view>
  71. </view>
  72. <view class='user_column'>
  73. <button class="user_column_item_phone" open-type="getPhoneNumber" bindgetphonenumber="bindPhoneNumber">
  74. <image class='user_column_item_image' src='/static/images/mobile.png'></image>
  75. <view class='user_column_item_text'>绑定手机</view>
  76. </button>
  77. <view class='user_column_item' bindtap='goHelp'>
  78. <image class='user_column_item_image' src='/static/images/help.png'></image>
  79. <view class='user_column_item_text'>帮助中心</view>
  80. </view>
  81. <view class='user_column_item' bindtap='goFeedback'>
  82. <image class='user_column_item_image' src='/static/images/feedback.png'></image>
  83. <view class='user_column_item_text'>意见反馈</view>
  84. </view>
  85. <view class='user_column_item'>
  86. <contact-button style="opacity:0;position:absolute;" type="default-dark" session-from="weapp" size="27">
  87. </contact-button>
  88. <image class='user_column_item_image' src='/static/images/customer.png'></image>
  89. <view class='user_column_item_text'>联系客服</view>
  90. </view>
  91. <view class='user_column_item' bindtap='aboutUs'>
  92. <image class='user_column_item_image' src='/static/images/about.png'></image>
  93. <view class='user_column_item_text'>关于我们</view>
  94. </view>
  95. </view>
  96. <view class='separate'></view>
  97. <view class="logout" wx:if="{{hasLogin}}" bindtap="exitLogin">退出登录</view>
  98. </view>