index.wxml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <cu-custom bgColor="bg-lw-header" isCustom="{{true}}">
  2. <view slot="content">预约记录</view>
  3. </cu-custom>
  4. <!-- 头部 -->
  5. <view class="cu-bar bg-red search">
  6. <view class="search-form radius">
  7. <text class="cuIcon-search"></text>
  8. <input type="text" value="{{keyword[tab]}}" placeholder="请输入车次" confirm-type="search" bindconfirm="bindSearch" bindinput="bindInput"></input>
  9. </view>
  10. <view class="action" bindtap="bindSearch">
  11. <text>搜索</text>
  12. </view>
  13. </view>
  14. <!-- tab导航 -->
  15. <scroll-view scroll-x class="bg-white nav" style="top:{{custombar}}px;position:{{nav_fixed ? 'fixed' : 'static'}}" id="nav">
  16. <view class="flex text-center">
  17. <view class="cu-item flex-sub {{0==tab?'text-red cur':''}}" bindtap="tabSelect" data-tab="0">
  18. 待确认
  19. </view>
  20. <view class="cu-item flex-sub {{1==tab?'text-red cur':''}}" bindtap="tabSelect" data-tab="1">
  21. 待接站
  22. </view>
  23. <view class="cu-item flex-sub {{2==tab?'text-red cur':''}}" bindtap="tabSelect" data-tab="2">
  24. 待评价
  25. </view>
  26. <view class="cu-item flex-sub {{3==tab?'text-red cur':''}}" bindtap="tabSelect" data-tab="3">
  27. 已完成
  28. </view>
  29. </view>
  30. </scroll-view>
  31. <view>
  32. <view class="cu-card">
  33. <view class="cu-item shadow" wx:for="{{list[tab]}}" wx:key="key">
  34. <view class="padding">
  35. <view class="flex align-center justify-between">
  36. <view>
  37. <text class="text-bold text-black">{{item.shift}}</text>
  38. </view>
  39. <view class="cu-tag line-blue radius">{{item.status_text}}</view>
  40. </view>
  41. <view class="text-sm margin-top-xs">姓名:{{item.talent.name}}</view>
  42. <view class="text-sm margin-top-xs" bind:tap="callMobile" data-mobile="{{item.talent.mobile}}" wx:if="{{item.status != 4}}">
  43. 拨打电话<text class="margin-left-sm text-lg text-blue cuIcon-dianhua"></text>
  44. </view>
  45. <view class="text-sm margin-top-xs">出发时间:{{item.start_time}}</view>
  46. <view class="text-sm margin-top-xs" wx:if="{{item.status == 4}}">满意度:{{item.rate}}</view>
  47. <view class="text-sm margin-top-xs" wx:if="{{item.status == 4}}">评价内容:{{item.rate_comment}}</view>
  48. <view class="grid col-4 grid-square flex-sub margin-top">
  49. <view class="bg-img" bindtap="ViewImage" data-url="{{item.image}}" wx:if="{{item.image}}">
  50. <image src="{{item.image}}" mode="aspectFill"></image>
  51. </view>
  52. </view>
  53. </view>
  54. <view class="text-right solid-form-top padding-lr padding-bottom option-box">
  55. <view class="cu-btn radius bg-blue margin-left" bindtap="confirmInfo" data-id="{{item.id}}" wx:if="{{item.status == 1}}">确认信息</view>
  56. <view class="cu-btn radius bg-blue margin-left" bindtap="applyByMobile" data-id="{{item.id}}" wx:if="{{item.status == 2}}">手机号接站</view>
  57. </view>
  58. </view>
  59. </view>
  60. <view wx:if="{{no_more[tab]}}" class="no_more">没有更多数据</view>
  61. </view>
  62. <view class="logout" bind:tap="logout">
  63. <view class="text">退出</view>
  64. <view class="text">登录</view>
  65. </view>
  66. <view class="scan" bind:tap="scan">
  67. <view class="text">扫码</view>
  68. <view class="text">接待</view>
  69. </view>