expressExpress.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <template>
  2. <div>
  3. <div class="content">
  4. <div class="jjlist">
  5. <div class="listinfo">
  6. <div class="list_top">
  7. <div class="list_top_left">
  8. <img src="../assets/images/ad_icon1.png" alt="">
  9. <div>
  10. <p>寄件号:{{ ObjectVlaue.dispatchNo }}</p>
  11. <p>收件人:{{ ObjectVlaue.recipient }} </p>
  12. <p>收件人:{{ ObjectVlaue.phone }}</p>
  13. <p>创建时间&nbsp:{{ ObjectVlaue.recordDate }}</p>
  14. </div>
  15. </div>
  16. </div>
  17. </div>
  18. </div>
  19. <div class="info">
  20. <p>部门:{{ ObjectVlaue.departmentId }}</p>
  21. <p>收件人:{{ ObjectVlaue.recipient }}</p>
  22. <p>收件人手机:{{ ObjectVlaue.phone }}</p>
  23. <p>创建时间:{{ ObjectVlaue.recordDate }}</p>
  24. <p>快件类型:{{ ObjectVlaue.expressType === 1 ? '文件' : '物品' }}</p>
  25. <p>座位:{{ ObjectVlaue.sendSeat }}</p>
  26. <p>备注:{{ ObjectVlaue.remark == '' ? '无' : ObjectVlaue.remark }}</p>
  27. </div>
  28. </div>
  29. </div>
  30. </template>
  31. <script>
  32. import { Toast, Dialog } from 'vant'
  33. import { getExpressById } from '../api/index'
  34. export default {
  35. data() {
  36. return {
  37. titlename: "查快递",
  38. item: {},
  39. mailDetail: {},//传过来的数据
  40. id: '',
  41. ObjectVlaue: {}
  42. }
  43. },
  44. created: function () {
  45. this.mailDetail = this.$route.query.item
  46. this.id = this.mailDetail.id
  47. console.log(this.mailDetail, ' this.mailDetail')
  48. },
  49. mounted() {
  50. this.getFindWithoutInfoById()
  51. },
  52. methods: {
  53. async getFindWithoutInfoById() {
  54. const res = await getExpressById({ id: this.id })
  55. this.ObjectVlaue = res.expressInfoById
  56. console.log(res)
  57. },
  58. }
  59. }
  60. </script>
  61. <style scoped lang="less">
  62. .content {
  63. padding: .2rem .33rem;
  64. font-size: .3rem;
  65. >p {
  66. font-size: .3rem;
  67. text-align: center;
  68. margin-bottom: .2rem;
  69. }
  70. .info {
  71. padding: .4rem;
  72. background: white;
  73. line-height: 200%;
  74. color: #666666;
  75. .pjinfo {
  76. margin-top: .1rem;
  77. border-top: .01rem solid #f0efef;
  78. padding-top: .1rem;
  79. }
  80. }
  81. .jjlist {
  82. font-size: .3rem;
  83. color: #999999;
  84. .listinfo {
  85. background: white;
  86. padding: .33rem .33rem .2rem;
  87. border-radius: .05rem;
  88. margin-bottom: .2rem;
  89. position: relative;
  90. .list_top {
  91. display: flex;
  92. justify-content: space-between;
  93. .list_top_left {
  94. display: flex;
  95. justify-content: space-between;
  96. align-items: center;
  97. img {
  98. display: inline-block;
  99. width: .9rem;
  100. height: .9rem;
  101. position: relative;
  102. top: -.1rem;
  103. }
  104. div {
  105. margin-left: .2rem;
  106. display: inline-block;
  107. line-height: 150%;
  108. p:nth-of-type(1) {
  109. font-weight: bold;
  110. color: #333;
  111. }
  112. p:nth-of-type(2) {
  113. color: #333;
  114. }
  115. p:nth-of-type(3) {
  116. color: #333;
  117. }
  118. p:nth-of-type(4) {
  119. font-size: .22rem;
  120. color: #333;
  121. }
  122. }
  123. }
  124. >p {
  125. font-size: .24rem;
  126. color: #f5693d;
  127. font-weight: bold;
  128. }
  129. }
  130. .fast {
  131. //background: url(../assets/images/status.png) no-repeat center;
  132. background-color: #00c4b8;
  133. background-size: 100% 100%;
  134. color: white;
  135. position: absolute;
  136. bottom: 0px;
  137. right: 0px;
  138. width: 1.1rem;
  139. height: .5rem;
  140. text-align: center;
  141. line-height: .5rem;
  142. font-size: .2rem;
  143. }
  144. }
  145. }
  146. }
  147. /deep/ .van-nav-bar__content {
  148. .van-nav-bar__title {
  149. font-size: 16px;
  150. }
  151. }
  152. /deep/.van-icon-arrow-left::before {
  153. color: #333;
  154. font-size: 16px;
  155. }
  156. /deep/.van-nav-bar__text {
  157. color: #333 !important;
  158. font-size: 16px;
  159. }
  160. </style>