混凝土运输管理微信小程序、替班
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
1.9 KiB

1 week ago
  1. <template>
  2. <view class="content">
  3. <view class="re-empty" v-if="runns.length<1">
  4. <view>暂无数据</view>
  5. </view>
  6. <view v-for="e in runns" class="b-relative item-card mb20 mt20">
  7. <view class="m10 flex-sb">
  8. <view class="ellipsis">{{e.address}}</view>
  9. <view class="item-time">{{ $timeUtils.formatTime(e.create_time) }}</view>
  10. </view>
  11. <view>到场时间{{$timeUtils.formatTime2Day(e.in_time)}}</view>
  12. <view>计划数量{{e.mi}}m³/</view>
  13. <view class="item-button" @click="clickDetail(e.id)">查看</view>
  14. <view class="item-button btn2" @click="clickStep(e.id)">进度</view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. data() {
  21. return {
  22. status: 0,
  23. seacht: 0,
  24. waits: [],
  25. runns: [],
  26. endes: [],
  27. input: ''
  28. }
  29. },
  30. mounted() {
  31. this.seacht = 0
  32. this.loadPage()
  33. },
  34. methods: {
  35. clickDetail(id){ uni.navigateTo({ url: `/pages/user/orderd?id=${id}` }) },
  36. clickStep(id){ uni.navigateTo({ url: `/pages/user/steps?id=${id}` }) },
  37. loadPage(){
  38. uni.showLoading({})
  39. this.$httpGet("/api/order/history", {}, (res) => {
  40. uni.hideLoading({})
  41. if(res.data){
  42. this.runns = this.$utils.toArray(res.data)
  43. }
  44. })
  45. },
  46. }
  47. }
  48. </script>
  49. <style>
  50. page {
  51. background-color: #f5f5f5;
  52. }
  53. .item-card{
  54. width: calc(100vw - 60rpx);
  55. height: calc(236rpx - 60rpx);
  56. background: #ffffff;
  57. padding: 30rpx;
  58. font-size: 24rpx;
  59. line-height: 42rpx;
  60. color: #333333;
  61. }
  62. .item-button{
  63. position: absolute;
  64. left: 463rpx;
  65. top: 134.42rpx;
  66. width: 122rpx;
  67. height: 52rpx;
  68. line-height: 52rpx;
  69. border-radius: 8rpx;
  70. opacity: 1;
  71. box-sizing: border-box;
  72. border: 2rpx solid #F70303;
  73. font-size: 28rpx;
  74. font-weight: normal;
  75. text-align: center;
  76. letter-spacing: 0px;
  77. color: #F70303;
  78. }
  79. .btn2{
  80. left: 603rpx;
  81. top: 134.42rpx;
  82. }
  83. .item-time{
  84. color: #aaa;
  85. width: 160rpx;
  86. text-align: right;
  87. }
  88. </style>