transport.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <template>
  2. <view class="content">
  3. <view class="body">
  4. <view class="list" style="padding-top: 20rpx;">
  5. <view class="time">
  6. </view>
  7. <view class="text">
  8. <view class="icon-big">
  9. </view>
  10. <view class="icon-text">
  11. 【收宠地址】{{data.addr}}
  12. </view>
  13. </view>
  14. </view>
  15. <view class="list" v-for="(item,key) in data.log" :key="key">
  16. <view class="time">
  17. {{$u.timeFormat(item.created_at, 'yyyy年mm月dd日 hh时MM分')}}
  18. </view>
  19. <view class="text">
  20. <view class="icon-small"></view>
  21. <view class="icon-text">
  22. <view>
  23. 【{{item.status}}】{{item.txt}}
  24. </view>
  25. <view
  26. style="display: flex;flex-direction: row;align-items: center;justify-content: flex-start;">
  27. <video :src="iitem" controls v-for="(iitem,kkey) in item.media" :key="kkey"
  28. style="width: 120rpx;height: 120rpx;margin-left: 20rpx;"></video>
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. export default {
  38. data() {
  39. return {
  40. id: "",
  41. data: {}
  42. }
  43. },
  44. onLoad(e) {
  45. this.id = e.id || 2
  46. this.getData();
  47. },
  48. methods: {
  49. getData() {
  50. this.request("/sender_order_controller/send_detail", {
  51. id: this.id
  52. }, "GET").then(res => {
  53. // console.log(res)
  54. if (res.code === 1) {
  55. this.data = res.data
  56. }
  57. })
  58. }
  59. }
  60. }
  61. </script>
  62. <style lang="scss">
  63. page,
  64. .content {
  65. background-color: #F8F8F8;
  66. .body {
  67. margin-top: 50rpx;
  68. background-color: #FFFFFF;
  69. width: 100%;
  70. min-height: 100vh;
  71. display: flex;
  72. flex-direction: column;
  73. align-items: center;
  74. justify-content: flex-start;
  75. .list {
  76. width: 90%;
  77. display: flex;
  78. flex-direction: row;
  79. align-items: center;
  80. justify-content: space-between;
  81. .time {
  82. width: 20%;
  83. }
  84. .text {
  85. width: 79%;
  86. border-left: 6rpx #999 dotted;
  87. display: flex;
  88. flex-direction: row;
  89. align-items: center;
  90. justify-content: flex-start;
  91. position: relative;
  92. padding-bottom: 60rpx;
  93. .icon-big {
  94. width: 50rpx;
  95. height: 50rpx;
  96. border-radius: 50rpx;
  97. background-color: #FFE3A0;
  98. color: #E68500;
  99. text-align: center;
  100. line-height: 50rpx;
  101. position: absolute;
  102. left: -27rpx;
  103. }
  104. .icon-small {
  105. width: 20rpx;
  106. height: 20rpx;
  107. background-color: #999999;
  108. border-radius: 20rpx;
  109. position: absolute;
  110. left: -12rpx;
  111. }
  112. .icon-text {
  113. margin-left: 40rpx;
  114. }
  115. }
  116. }
  117. }
  118. }
  119. </style>