orderList.vue
2.58 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<template>
<view class="page">
<u-tabs active-color="#26c570" :list="list" :current="current" @change="change"></u-tabs>
<view style="padding: 0 20rpx;">
<view v-for="(item,index) in 10"
style="background: #fff;margin-top: 40rpx;padding: 30rpx;border-radius: 18rpx;">
<view style="display: flex;align-items: center;justify-content: space-between;">
<view style="display: flex;align-items: center;">
<view class="t1" style="margin-right: 15rpx;">订单号:131313</view>
<u-icon name="arrow-right" color="#979797" size="24"></u-icon>
</view>
<view class="t1">待付款</view>
</view>
<view style="display: flex;justify-content: space-between;align-items: center;margin: 10rpx 0;">
<view style="display: flex;">
<view>
<image style="width: 200rpx;height: 200rpx;border-radius: 18rpx;" mode="aspectFill"
src="../../static/icon/bg1.png"></image>
</view>
<view
style="display: flex;flex-direction: column;justify-content: space-around;margin-left: 15rpx;">
<view>产品名称</view>
<view class="t1">下单时间:11312</view>
</view>
</view>
<view style="display: flex;flex-direction: column;justify-content: space-around;height: 200rpx;">
<view class="t1">¥444</view>
<view class="t1">X1</view>
</view>
</view>
<view
style="display: flex;justify-content: space-between;padding-top: 30rpx;border-top: 2rpx solid #eee;align-items: center;">
<view>
<text>共1件商品,合计 </text>
<text style="color: red;font-weight: bold;">¥49</text>
</view>
<view
style="background: #26c570;color: #fff;border-radius: 36rpx;font-size: 20rpx;padding: 14rpx 20rpx;">
查看详情</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
list: [
{
name: '全部'
},
{
name: '待付款'
},
{
name: '待发货',
},
{
name: '已发货',
},
{
name: '已完成',
},
{
name: '已关闭',
},
],
current: 0,
pageindex: {
page: 1,
pageSize: 10,
},
};
},
mounted() {
this.getALL()
},
onLoad(optiong) {
},
methods: {
getALL() {
// this.$http.sendRequest('/order/getAll', 'POST', this.pageindex, 2).then(res => {
// //成功回调
// this.list = res.data.data.list
// })
},
change(index) {
this.current = index;
}
}
}
</script>
<style scoped lang="scss">
.page {
}
.t1 {
font-size: 26rpx;
color: #979797;
}
</style>