trace.vue 862 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <view class="content" >
  3. <view v-for="(item, index) in data" :key="index" >
  4. <view class="cu-timeline">
  5. <view class="cu-time">{{item.gmtUpdate}}</view>
  6. <view class="cu-item cur cuIcon-noticefill">
  7. <view class="content bg-green shadow-blur">
  8. <view >{{item.gmtUpdateTime}}</view> {{item.dynamic}}
  9. </view>
  10. </view>
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. data: {
  20. }
  21. };
  22. },
  23. onLoad(option) {
  24. const that = this
  25. uni.showLoading({
  26. title: '正在查询',
  27. mask:true
  28. })
  29. that.$api.request('trade', 'getDynamicInfo', {
  30. orderNo : option.orderNo
  31. }, failres => {
  32. uni.hideLoading()
  33. that.$api.msg(failres.errmsg);
  34. }).then(res => {
  35. uni.hideLoading()
  36. that.data = res.data
  37. })
  38. },
  39. methods: {
  40. }
  41. };
  42. </script>
  43. <style>
  44. .content {
  45. }
  46. </style>