home.wxml 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <view class="content">
  2. <view class="top-text flex-column">
  3. <text class="text-1" >今日预约订单数:{{ homeData.order_num }}</text>
  4. <text style="font-size: 28rpx;color: #999999;margin-top: 12rpx;">今日服务订单数:{{ homeData.served_num }}</text>
  5. <view class="flex-align-center" style="margin-top: 12rpx;">
  6. <image src="/images/icon_05.png"></image>
  7. <text class="flex1 ellipsis" style="font-size: 24rpx;">{{ homeData.store_address }} {{ homeData.store_name }}</text>
  8. </view>
  9. </view>
  10. <view class="tabs-bgc">
  11. <view class="tabs-wrap flex-align-center">
  12. <view class="item flex-center {{current == 0 ? 'active' : ''}}" bindtap="onTabsChange" data-id="0">进行中</view>
  13. <view class="item flex-center {{current == 1 ? 'active' : ''}}" bindtap="onTabsChange" data-id="1">待进行</view>
  14. <view class="item flex-center {{current == 2 ? 'active' : ''}}" bindtap="onTabsChange" data-id="2">已结束</view>
  15. </view>
  16. </view>
  17. <view class="change-time border-radius flex-center" wx:if="{{ current != 0 }}">
  18. <picker mode="date" value="{{startDay}}" start="1998-04-20" end="{{endDay}}" bindchange="bindDateChange" data-date="startDay">
  19. <view class="time flex-align-center" style="margin-right: 50rpx;">
  20. <text>{{startDay}}</text>
  21. <view class="triangle"></view>
  22. </view>
  23. </picker>
  24. <picker mode="date" value="{{endDay}}" start="{{startDay}}" end="{{currentDay}}" bindchange="bindDateChange" data-date="endDay">
  25. <view class="time flex-align-center" style="margin-right: 64rpx;">
  26. <text>{{endDay}}</text>
  27. <view class="triangle"></view>
  28. </view>
  29. </picker>
  30. <view class="" style="width: 116rpx;" wx:if="{{ current == 0 }}"></view>
  31. <view class="search flex-center" bindtap="onSearchOrder" wx:if="{{ current != 0 }}">搜索</view>
  32. </view>
  33. <view class="tabs-content">
  34. <navigator url="/pages/orderDetail/orderDetail?orderId={{item.order_id}}" hover-class="none" wx:for="{{ list }}" wx:key="index">
  35. <view class="item border-radius">
  36. <view class="item-top flex-align-center">
  37. <text class="flex1 ellipsis">{{ item.project_name }}</text>
  38. <text style="font-family: PingFangSC-Medium, PingFang SC;font-weight: 500;color: #FF77B0;">{{ status[item.status] }}</text>
  39. </view>
  40. <view class="item-text flex-column">
  41. <text>预约客户:{{ item.user_name || '' }}</text>
  42. <text>会员信息:{{ item.vip_name }}</text>
  43. <text>预约时间:{{ item.order_time }}</text>
  44. <text>设备:{{ item.device_name }}</text>
  45. </view>
  46. <view class="flex-align-center price">
  47. <text>预约费用:</text>
  48. <text style="color: #FF77B0;">¥{{ item.price }}</text>
  49. </view>
  50. <view class="item-btn flex-align-center flex-justify-space-between">
  51. <view class="btn flex-center">订单详情</view>
  52. <view class="btn flex-center" data-orderid="{{ item.order_id }}" data-userid="{{ item.user_id }}" catchtap="goToClientInfo">客户信息</view>
  53. <view class="btn flex-center" data-item="{{ item }}" catchtap="goToFeedback">记录反馈</view>
  54. <!-- <navigator url="/pages/clientInfo/clientInfo?userId={{ item.user_id }}" hover-class="none">
  55. <view class="btn flex-center" data-id="{{ item.user_id }}" catchtap="goToClientInfo">客户信息</view>
  56. </navigator> -->
  57. <!-- <navigator url="/pages/feedback/feedback?orderId={{ item.order_id }}&cover={{ item.cover_url }}&name={{ item.project_name }}" hover-class="none">
  58. <view class="btn flex-center">记录反馈</view>
  59. </navigator> -->
  60. <!-- <view class="btn flex-center">记录反馈</view> -->
  61. </view>
  62. </view>
  63. </navigator>
  64. <view class="no-data" style="display: {{list.length == 0 ? 'block' : 'none'}};">暂无数据~</view>
  65. </view>
  66. </view>