list.wxml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <i-auth bind:authSuccess="authSuccess" needAuth="{{needAuth}}">
  2. <!-- <view class="search">
  3. <icon class="icon-search" size="14" type="search"></icon>
  4. <input bindinput="bindSearchChange" bindconfirm="searchByKey" placeholder="清单编号" type="text" value="{{searchKey}}" confirm-type="done" ></input>
  5. <text bindtap="searchByKey">搜索</text>
  6. <text bindtap="cancel">取消</text>
  7. </view>
  8. <view class="date">
  9. <text>生成时间</text>
  10. <text class="date-value">{{date}}</text>
  11. <picker bindchange="bindDateChange" class="icon-date" end="{{maxDate}}" mode="date" start="2018-08-01" value="{{date}}">
  12. <image bindchange="bindDateChange" src="../../images/date.png"></image>
  13. </picker>
  14. <text bindtap="clearDate" class="icon-clear">全部时间</text>
  15. </view> -->
  16. <view class='list-box'>
  17. <view class="noRecordCon" wx:if="{{list.length <= 0}}">
  18. <image class="noRecordImg" src="../../images/noRecord.png"></image>
  19. <view class="noRecord">您还没有相关的清单~</view>
  20. </view>
  21. <view class="list-info" wx:else>
  22. <view class="i-card" bindtap='goDetails' wx:for="{{list}}" wx:key="id" data-id="{{item.id}}" data-state="{{item.state}}">
  23. <view class="header">
  24. <view class='headerTitle'>配送单:{{item.list_sn}}</view>
  25. <image class="rightArrowImg" src="../../images/rightArrowImg.png"></image>
  26. </view>
  27. <view slot="content">
  28. <view class="content-wrap">
  29. <view class="item">
  30. <view class="title">配送司机</view>
  31. <view class="detail">{{item.clerk_name}} <view class='item-phone' catchtap="callTelphone" data-phone="{{item.clerk_mobile}}"><image class="icon-phone" src="../../images/phone.png"></image>联系配送司机</view></view>
  32. </view>
  33. <view class="item">
  34. <view class="title">配送状态</view>
  35. <view class="detail">
  36. <text>{{status[item.state]}}</text>
  37. </view>
  38. </view>
  39. <view class="item">
  40. <view class="title">商品数量</view>
  41. <view class="detail">
  42. <text>{{item.goods_count}}</text>
  43. </view>
  44. </view>
  45. <view class="item" wx:if="{{item.express_time && item.express_time!=0}}">
  46. <view class="title">开始配送时间</view>
  47. <view class="detail">
  48. <text>{{item.express_time}}</text>
  49. </view>
  50. </view>
  51. <view class="item" wx:if="{{item.head_get_time && item.head_get_time!=0}}">
  52. <view class="title">团长取货时间</view>
  53. <view class="detail">
  54. <text>{{item.head_get_time}}</text>
  55. </view>
  56. </view>
  57. <!-- <view class="item">
  58. <view class="title">配送单创建时间</view>
  59. <view class="detail">
  60. <text>{{item.create_time}}</text>
  61. </view>
  62. </view> -->
  63. </view>
  64. </view>
  65. </view>
  66. <i-load-more iClass="loadMore" loading="{{!isHideLoadMore}}" tip="{{loadText}}" wx:if="{{!isHideLoadMore}}"></i-load-more>
  67. </view>
  68. </view>
  69. </i-auth>