index.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template>
  2. <div class="yy_history">
  3. <van-tabs
  4. :active="active"
  5. color="rgba(138, 5, 84, 1)"
  6. bind:change="onChange"
  7. >
  8. <van-tab title="待签到"></van-tab>
  9. <van-tab title="待入场"></van-tab>
  10. <van-tab title="装卸中"></van-tab>
  11. <van-tab title="已完成"></van-tab>
  12. <van-tab title="全部"></van-tab>
  13. </van-tabs>
  14. <div class="list">
  15. <div class="list-item">
  16. <div class="status qd">待签到</div>
  17. <!-- <div class="status rz">待入厂</div>
  18. <div class="status zx">装卸中</div>
  19. <div class="status wc">已完成</div>
  20. <div class="status gq">已过期</div>
  21. <div class="status qx">已取消</div> -->
  22. <div
  23. class="time"
  24. @click="jumpPage('/pages/subPackages/yy_history/edit')"
  25. >
  26. 2024-04-15 11:00 装货
  27. </div>
  28. <div class="info">10个托盘</div>
  29. <div class="info1">车辆:车牌号/胡装箱</div>
  30. <div class="info1">司机:李靠谱</div>
  31. <div class="info1 qxrq">取消日期:2024-07-31 15:00</div>
  32. <div class="bottborder"></div>
  33. <div class="foot-btn">
  34. <van-button
  35. color="rgba(138, 5, 84, 1)"
  36. plain
  37. type="default"
  38. size="small"
  39. >取消</van-button
  40. >
  41. <van-button
  42. style="margin-left: 24rpx"
  43. color="rgba(138, 5, 84, 1)"
  44. type="default"
  45. size="small"
  46. @click="jumpPage('/pages/subPackages/yy_history/edit')"
  47. >修改</van-button
  48. >
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. </template>
  54. <script>
  55. export default {
  56. methods: {
  57. jumpPage(path) {
  58. console.log(path);
  59. uni.navigateTo({
  60. url: path,
  61. fail: (fail) => {},
  62. });
  63. },
  64. },
  65. };
  66. </script>
  67. <style lang="scss">
  68. .yy_history {
  69. .list {
  70. .list-item {
  71. padding: 24rpx 32rpx;
  72. background: #ffffff;
  73. position: relative;
  74. .foot-btn {
  75. display: flex;
  76. justify-content: flex-end;
  77. padding-top: 16rpx;
  78. .van-button {
  79. border-radius: 30rpx 30rpx 30rpx 30rpx;
  80. }
  81. }
  82. .bottborder {
  83. padding-bottom: 24rpx;
  84. border-bottom: 2rpx solid #e8edf5;
  85. }
  86. .info {
  87. font-weight: 400;
  88. font-size: 28rpx;
  89. color: #333333;
  90. }
  91. .info1 {
  92. margin-top: 8rpx;
  93. font-weight: 400;
  94. font-size: 28rpx;
  95. color: #666666;
  96. }
  97. .qxrq {
  98. color: rgba(142, 139, 228, 1);
  99. }
  100. .time {
  101. font-weight: 400;
  102. font-size: 32rpx;
  103. color: #333333;
  104. margin-bottom: 8rpx;
  105. }
  106. .status {
  107. width: 144rpx;
  108. height: 56rpx;
  109. text-align: center;
  110. line-height: 56rpx;
  111. border-top-right-radius: 5%;
  112. border-bottom-left-radius: 50%;
  113. position: absolute;
  114. top: -1rpx;
  115. right: 0;
  116. font-weight: 400;
  117. font-size: 28rpx;
  118. }
  119. .qd {
  120. background: rgba(3, 101, 249, 0.2);
  121. color: #0365f9;
  122. }
  123. .rc {
  124. background: rgba(255, 184, 0, 0.3);
  125. color: #d99f00;
  126. }
  127. .zx {
  128. background: rgba(138, 5, 84, 0.2);
  129. color: #8a0554;
  130. }
  131. .wc {
  132. background: rgba(34, 181, 101, 0.2);
  133. color: #22b565;
  134. }
  135. .gq {
  136. color: #c7191f;
  137. background: rgba(199, 25, 31, 0.2);
  138. }
  139. .qx {
  140. color: #888888;
  141. background: rgba(136, 136, 136, 0.3);
  142. }
  143. }
  144. }
  145. }
  146. </style>