trace.vue 792 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <view class="content">
  3. <ali :datas="data.traces" ></ali>
  4. </view>
  5. </template>
  6. <script>
  7. import ali from '@/components/WuLiu-step.vue';
  8. export default {
  9. components: {
  10. ali
  11. },
  12. data() {
  13. return {
  14. data: {
  15. traces: []
  16. }
  17. };
  18. },
  19. onLoad(option) {
  20. const that = this
  21. uni.showLoading({
  22. title: '正在查询'
  23. })
  24. that.$api.request('get', 'order/app/queryShip', {
  25. orderNo : option.orderno
  26. }, failres => {
  27. uni.hideLoading()
  28. uni.showModal({
  29. title: '提示',
  30. content: failres.msg,
  31. confirmText: '确定',
  32. success: () => {
  33. uni.navigateBack()
  34. }
  35. })
  36. }).then(res => {
  37. uni.hideLoading()
  38. that.data = res.data
  39. that.data.traces = that.data.traces.reverse()
  40. })
  41. },
  42. methods: {
  43. }
  44. };
  45. </script>
  46. <style>
  47. .content {
  48. }
  49. </style>