user.wxml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <!--pages/user/user.wxml-->
  2. <view class='container'>
  3. <!-- 用户信息 -->
  4. <view class='userinfo'>
  5. <view class='userinfo-avatar'>
  6. <open-data type="userAvatarUrl"></open-data>
  7. </view>
  8. <view class='userinfo-name'>
  9. <open-data type="userNickName"></open-data>
  10. </view>
  11. </view>
  12. <!-- <view class='binding-phone'>
  13. <text class='show-tip'>绑定手机号后可查看订单和领取优惠券,</text>
  14. <text class='gotobinding' bindtap='toBindingPhone'>去绑定</text>
  15. </view> -->
  16. <!-- end 用户信息 -->
  17. <view class='list-cont'>
  18. <!-- 订单状态 -->
  19. <view class='total-order'>
  20. <view class='order-tit'>
  21. <text style='font-weight:bold'>我的订单</text>
  22. <view class='checkmore' bindtap='toOrderListPage' data-sts="0">
  23. <text>查看全部 </text>
  24. <text class='arrowhead'></text>
  25. </view>
  26. </view>
  27. <view class='procedure'>
  28. <view class='items' bindtap='toOrderListPage' data-sts="1">
  29. <image src='../../images/icon/toPay.png'></image>
  30. <text>待支付</text>
  31. <text class='num-badge' wx:if="{{orderAmount.unPay>0}}">{{orderAmount.unPay}}</text>
  32. </view>
  33. <view class='items' bindtap='toOrderListPage' data-sts="2">
  34. <image src='../../images/icon/toDelivery.png'></image>
  35. <text>待发货</text>
  36. <text class='num-badge' wx:if="{{orderAmount.payed>0}}">{{orderAmount.payed}}</text>
  37. </view>
  38. <view class='items' bindtap='toOrderListPage' data-sts="3">
  39. <image src='../../images/icon/toTake.png'></image>
  40. <text>待收货</text>
  41. <text class='num-badge' wx:if="{{orderAmount.consignment>0}}">{{orderAmount.consignment}}</text>
  42. </view>
  43. <view class='items' bindtap='toOrderListPage' data-sts="5">
  44. <image src='../../images/icon/toComment.png'></image>
  45. <text>已完成</text>
  46. </view>
  47. </view>
  48. </view>
  49. <!--end 订单状态 -->
  50. <view class="prod-col">
  51. <view class="col-item" bindtap='myCollectionHandle'>
  52. <view class="num">{{collectionCount}}</view>
  53. <view class="tit">我的收藏</view>
  54. </view>
  55. <view class="col-item">
  56. <view class="num">5</view>
  57. <view class="tit">我的消息</view>
  58. </view>
  59. <view class="col-item">
  60. <view class="num">3</view>
  61. <view class="tit">我的足迹</view>
  62. </view>
  63. </view>
  64. <view class='my-menu'>
  65. <view class='memu-item' bindtap='toDistCenter'>
  66. <view class="i-name">
  67. <image src='../../images/icon/promotion.png'></image>
  68. <text>分销中心</text>
  69. </view>
  70. <view class='arrowhead'></view>
  71. </view>
  72. <view class='memu-item' bindtap='toCouponCenter'>
  73. <view class="i-name">
  74. <image src='../../images/icon/getCoupon.png'></image>
  75. <text>领券中心</text>
  76. </view>
  77. <view class='arrowhead'></view>
  78. </view>
  79. <view class='memu-item' bindtap='toMyCouponPage'>
  80. <view class="i-name">
  81. <image src='../../images/icon/myCoupon.png'></image>
  82. <text>我的优惠券</text>
  83. </view>
  84. <view class='arrowhead'></view>
  85. </view>
  86. <view class='memu-item' bindtap='toAddressList'>
  87. <view class="i-name">
  88. <image src='../../images/icon/myAddr.png'></image>
  89. <text>收货地址</text>
  90. </view>
  91. <view class='arrowhead'></view>
  92. </view>
  93. </view>
  94. <!--end 列表项 -->
  95. </view>
  96. <view class="log-out" bindtap="logout" wx:if="isAuthInfo">
  97. <view class="log-out-n">
  98. <text>退出登录</text>
  99. </view>
  100. </view>
  101. </view>