buyerOrder.vue
4.8 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<template>
<view class="">
<u-sticky bgColor="#fff">
<!-- :itemStyle="{background:'#fff',height:'44px'}" -->
<u-tabs :list="list2" lineColor="#FED000" :scrollable="false" @click="click"></u-tabs>
</u-sticky>
<view class="group">
<view class="item" v-for="(item,idx) in 20" :key="idx">
<view class="top flexA">
<view class="left flexA">
<image src="/static/order.png" mode=""></image>
<view>订单号:</view>
<view style="margin: 0 16rpx 0 8rpx">123456789</view>
<view style="color:#2153D4;">复制</view>
</view>
<view class="right">
待接收
</view>
</view>
<view class="bot flexA">
<view class="left flexA">
<image src="/static/logo.png" mode=""></image>
<view class="">
<view class="title">比特币20个</view>
<view class="time">2022-06-21 15:31</view>
<view class="name">卖方:张小萌</view>
</view>
</view>
<view class="right">
<text style="font-size: 20rpx;">¥</text>30.88
</view>
</view>
<view class="line"></view>
<view class="botBtn flexA">
<view class="flexC yellow">交易证明</view>
<view class="flexC">已收货</view>
<view class="flexC">未收货</view>
</view>
</view>
</view>
<u-popup :show="show" mode="center" :round="15" @close="show=false" >
<view class="centerBox">
<view class="popTitle">
转赠证明
</view>
<image class="popImage" src="/static/logo.png" mode=""></image>
<view class="popBtn flexA">
<view class="btn flexC" @click="show=false">未接收</view>
<view class="btn flexC" @click="show=false">已接收</view>
</view>
</view>
</u-popup>
</view>
</template>
<script>
import { buyerOrderList } from '@/api/order.js'
export default {
data() {
return {
list2: [{
name: '全部',
}, {
name: '待接收',
}, {
name: '待确定'
}, {
name: '已完成'
}],
show:true,
page:1,
num:10
}
},
onLoad() {
this.buyerOrderList()
},
methods: {
async buyerOrderList(){
try {
const res = await buyerOrderList(this.page,this.num)
console.log('buyerOrderList', res)
// 保存数据
} catch (err) {
uni.showToast({ title:err,icon:'none' })
console.log('buyerOrderList', err)
}
},
},
}
</script>
<style lang="less">
page {
background: #f6f6f6;
}
.u-tabs__wrapper__nav__item {
background: #fff !important;
}
.u-tabs__wrapper__nav {
background: #fff !important;
}
.group {
padding: 16rpx 24rpx;
.item {
padding: 32rpx;
margin-bottom: 24rpx;
border-radius: 24rpx;
opacity: 1;
background: rgba(255,255,255,1);
}
}
.u-sticky {
top: 0 !important;
}
.top {
justify-content: space-between;
.left {
color: rgba(50,50,51,1);
font-size: 26rpx;
image {
margin-right: 8rpx;
width: 32rpx;
height: 32rpx;
}
}
.right {
color: rgba(0,0,0,0.6);
font-size: 26rpx;
}
}
.bot {
margin-top: 26rpx;
justify-content: space-between;
image {
margin-right: 20rpx;
width: 144rpx;
height: 144rpx;
border-radius: 16rpx;
}
.left {
.title {
font-size: 28rpx;
font-weight: 700;
}
.time {
color: rgba(0,0,0,0.6);
font-size: 26rpx;
}
.name {
color: rgba(0,0,0,0.6);
font-size: 26rpx;
}
}
.right {
font-size: 30rpx;
font-weight: 700;
}
}
.line{
margin: 32rpx 0 24rpx;
width: 100%;
background: #f6f6f6;
height: 2rpx;
}
.botBtn {
justify-content: flex-end;
view {
margin-right: 24rpx;
color: rgba(0,0,0,0.6);
font-size: 24rpx;
width: 144rpx;
height: 56rpx;
border-radius: 12rpx;
opacity: 1;
border: 2rpx solid #f6f6f6;
font-weight: 700;
}
.yellow {
background: rgba(254,208,0,1);
border-color: rgba(254,208,0,1);
color: rgba(0,0,0,0.9);
}
}
.centerBox {
padding: 48rpx 32rpx 24rpx;
box-sizing: border-box;
width: 622rpx;
height: 962rpx;
background: #fff;
border-radius: 15rpx;
.popTitle {
text-align: center;
color: rgba(0,0,0,0.9);
font-size: 32rpx;
font-weight: 700;
}
.popImage {
margin-top: 44rpx;
width: 100%;
height: 654rpx;
border-radius: 16rpx;
}
.popBtn {
margin-top: 72rpx;
justify-content: space-evenly;
.btn {
width: 264rpx;
height: 76rpx;
border-radius: 84rpx;
opacity: 1;
background: rgba(245,245,245,1);
color: rgba(0,0,0,0.9);
font-size: 28rpx;
font-weight: 700;
}
.btn:nth-child(2){
background: linear-gradient(134.8deg, rgba(255,232,100,1) 0%, rgba(255,216,0,1) 100%);
}
}
}
</style>