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