booklist.wxml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <view class="myqr" wx:if="{{myqr_show}}">
  2. <view>
  3. <image class="cancel" src="/static/images/cancel.png" bindtouchstart="qrtouchstart" ></image>
  4. </view>
  5. <view>
  6. <image class="img" src="{{myqr_url}}"mode="widthFix" />
  7. </view>
  8. <view>
  9. <image class="btn" style="float:unset" bindtap="saveShare" src="/static/images/right.png" />
  10. </view>
  11. </view>
  12. <view class="container">
  13. <view class="orders-switch">
  14. <view class="item {{ showType == 0 ? 'active' : ''}}" bindtap="switchTab" data-index='0'>
  15. <view class="txt">我的工单</view>
  16. </view>
  17. <view class="item {{ showType == 1 ? 'active' : ''}}" bindtap="switchTab" data-index='1'>
  18. <view class="txt">历史工单</view>
  19. </view>
  20. </view>
  21. <view class="no-order" wx:if="{{orderList.length <= 0}}">
  22. <view class="c">
  23. <text>还没有任何工单呢</text>
  24. </view>
  25. </view>
  26. <view class="orders">
  27. <view class="content" wx:for="{{orderList}}" wx:for-item="detail" wx:key="detail">
  28. {{detail.dateStr}}
  29. <span wx:if="{{detail.dateStr}}">(</span>
  30. {{detail.weekStr}}
  31. <span wx:if="{{detail.dateStr}}">)</span>
  32. {{detail.bookDate}}
  33. <view class='book' wx:for="{{detail.details}}" wx:for-item="item" wx:key="item">
  34. <view>
  35. <view class="status">{{item.status}}</view>
  36. <view class="bookname">{{item.bookTime}}</view>
  37. <view class="address">{{item.address}}</view>
  38. <view class="goodsname">{{item.goods_name}}</view>
  39. </view>
  40. <view class="tool">
  41. <button class="btn" bindtap="openMap" data-lng="{{item.lng}}" data-lat="{{item.lat}}" data-address="{{item.address}}">地图</button>
  42. <button class="btn" bindtap="shareGoods" data-id="{{item.goodsId}}">开单</button>
  43. <button class="btn" data-mobile="{{item.mobile}}" bindtap="makeCall">联系客户</button>
  44. <button wx:if="{{item.statusId==1}}" class="btn" style="color:red" data-id="{{item.id}}" bindtap="goProvideBook">完成工单</button>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. </view>