expressDelivery.vue 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <template>
  2. <view class="page">
  3. <view class="mainAll" v-if="list2.length > 0">
  4. <view class="pageTitle">
  5. 快递公司:{{expressMain.company}}
  6. </view>
  7. <view class="pageTitle">
  8. 快递单号:{{expressMain.no}}
  9. </view>
  10. <view class="pageMain">
  11. <view>
  12. <uni-steps :options="list2" active-color="#007AFF" direction="column" />
  13. </view>
  14. </view>
  15. </view>
  16. <view class="emptyBox" v-if="list2.length == 0">
  17. <luanqing-empty :show="true" textColor="#000"></luanqing-empty>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. import {
  23. logistics
  24. } from '../../../api/handlecase/index.js'
  25. import LuanqingEmpty from "@/components/luanqing-empty.vue"
  26. export default {
  27. components: {
  28. 'luanqing-empty': LuanqingEmpty,
  29. },
  30. data() {
  31. return {
  32. expressMain: {},
  33. list2: []
  34. }
  35. },
  36. methods: {
  37. },
  38. onLoad(data) {
  39. uni.showLoading()
  40. logistics({
  41. id: data.id
  42. }).then(res => {
  43. uni.hideLoading()
  44. this.expressMain = res.data[1].logisticsInfo;
  45. this.expressMain = JSON.parse(this.expressMain);
  46. this.expressMain.list.forEach(item => {
  47. item.title = item.remark;
  48. item.desc = item.datetime
  49. })
  50. this.list2 = this.expressMain.list
  51. })
  52. }
  53. }
  54. </script>
  55. <style lang="scss">
  56. .page {
  57. background-color: #ffffff;
  58. .pageTitle {
  59. width: 100%;
  60. padding: 15rpx;
  61. }
  62. .pageMain {
  63. .status-btn {
  64. /* #ifndef APP-NVUE */
  65. display: flex;
  66. /* #endif */
  67. flex-direction: row;
  68. align-items: center;
  69. justify-content: center;
  70. height: 92rpx;
  71. margin: 30rpx;
  72. background-color: #007AFF;
  73. }
  74. }
  75. }
  76. </style>