user.wxml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <navbar parameter='{{parameter}}'></navbar>
  2. <view class='user'>
  3. <view class='header bg-color acea-row row-between-wrapper'>
  4. <view class='picTxt acea-row row-between-wrapper'>
  5. <view class='pictrue' data-url='/pages/user_info/index' bindtap='goPages'><image src='{{userInfo.avatar}}'></image></view>
  6. <view class='text'>
  7. <view class='acea-row row-middle'>
  8. <view class='name line1' data-url='/pages/user_info/index' bindtap='goPages'>{{userInfo.uid ? userInfo.nickname : '请点击授权'}}</view>
  9. <view data-url='/pages/user_vip/index' class='member acea-row row-middle' wx:if="{{userInfo.vip}}" bindtap='goPages'>
  10. <image src='{{userInfo.vip_icon}}'></image>{{userInfo.vip_name}}</view>
  11. </view>
  12. <view class='id' data-url='/pages/user_info/index' bindtap='goPages' wx:if='{{userInfo.phone}}'>ID:{{userInfo.uid || 0}}<text class='iconfont icon-bianji1'></text></view>
  13. <view wx:else data-url='/pages/user_phone/index' bindtap='goPages'><text class="binding">绑定手机号</text></view>
  14. </view>
  15. </view>
  16. <text class='iconfont icon-shezhi' bindtap='Setting'></text>
  17. </view>
  18. <view class='wrapper'>
  19. <view class='nav acea-row row-middle'>
  20. <view class='item' data-url='/pages/user_money/index' bindtap='goPages'>
  21. <view>我的余额</view>
  22. <view class='num'>{{userInfo.now_money || 0}}</view>
  23. </view>
  24. <view class='item' wx:if="{{userInfo.is_promoter || userInfo.statu==2}}" data-url='/pages/user_spread_user/index' bindtap='goPages'>
  25. <view>当前佣金</view>
  26. <view class='num'>{{userInfo.brokerage_price || 0}}</view>
  27. </view>
  28. <view class='item' wx:else data-url='/pages/user_integral/index' bindtap='goPages'>
  29. <view>当前积分</view>
  30. <view class='num'>{{userInfo.integral || 0}}</view>
  31. </view>
  32. <view class='item' data-url='/pages/user_coupon/index' bindtap='goPages'>
  33. <view>优惠券</view>
  34. <view class='num'>{{userInfo.couponCount || 0}}</view>
  35. </view>
  36. </view>
  37. <view class='myOrder'>
  38. <view class='title acea-row row-between-wrapper'>
  39. <view>我的订单</view>
  40. <view class='allOrder' data-url='/pages/order_list/index' bindtap='goPages'>全部订单<text class='iconfont icon-jiantou'></text></view>
  41. </view>
  42. <view class='orderState acea-row row-middle'>
  43. <view class='item' data-url='/pages/order_list/index?status=0' bindtap='goPages'>
  44. <view class='pictrue'>
  45. <image src='/images/dfk.png'></image>
  46. <text class="order-status-num" wx:if="{{orderStatusNum.unpaid_count > 0}}">{{ orderStatusNum.unpaid_count }}</text>
  47. </view>
  48. <view>待付款</view>
  49. </view>
  50. <view class='item' data-url='/pages/order_list/index?status=1' bindtap='goPages'>
  51. <view class='pictrue'>
  52. <image src='/images/dfh.png'></image>
  53. <text class="order-status-num" wx:if="{{orderStatusNum.unshipped_count > 0}}">{{ orderStatusNum.unshipped_count }}</text>
  54. </view>
  55. <view>待发货</view>
  56. </view>
  57. <view class='item' data-url='/pages/order_list/index?status=2' bindtap='goPages'>
  58. <view class='pictrue'>
  59. <image src='/images/dsh.png'></image>
  60. <text class="order-status-num" wx:if="{{orderStatusNum.received_count > 0}}">{{ orderStatusNum.received_count }}</text>
  61. </view>
  62. <view>待收货</view>
  63. </view>
  64. <view class='item' data-url='/pages/order_list/index?status=3' bindtap='goPages'>
  65. <view class='pictrue'>
  66. <image src='/images/dpj.png'></image>
  67. <text class="order-status-num" wx:if="{{orderStatusNum.evaluated_count > 0}}">{{ orderStatusNum.evaluated_count }}</text>
  68. </view>
  69. <view>待评价</view>
  70. </view>
  71. <view class='item' data-url='/pages/user_return_list/index' bindtap='goPages'>
  72. <view class='pictrue'>
  73. <image src='/images/sh.png'></image>
  74. <text class="order-status-num" wx:if="{{orderStatusNum.refund_count > 0}}">{{ orderStatusNum.refund_count }}</text>
  75. </view>
  76. <view>售后/退款</view>
  77. </view>
  78. </view>
  79. </view>
  80. <view class='myService'>
  81. <view class='title acea-row row-middle'>我的服务</view>
  82. <view class='serviceList acea-row row-middle'>
  83. <view class='item' wx:for="{{MyMenus}}" wx:key='index' bindtap='goPages' data-url='{{item.url}}' wx:if="{{item.url!='#' && item.url!='/pages/admin/index' && item.url!='/pages/service/index'}}">
  84. <view class='pictrue'><image src='{{item.pic}}'></image></view>
  85. <view>{{item.name}}</view>
  86. </view>
  87. <button class='item' open-type='contact' hover-class='none'>
  88. <view class='pictrue'><image src='/images/customer.png'></image></view>
  89. <view>联系客服</view>
  90. </button>
  91. </view>
  92. </view>
  93. </view>
  94. <image src='/images/support.png' class='support'></image>
  95. </view>
  96. <authorize bind:onLoadFun='onLoadFun' isGoIndex='{{isGoIndex}}' iShidden="{{iShidden}}" isAuto="{{isAuto}}"></authorize>
  97. <generalWindow
  98. generalActive='{{generalActive}}'
  99. generalContent='{{generalContent}}'
  100. bind:generalWindow='generalWindow'
  101. wx:if='{{generalContent}}'
  102. ></generalWindow>