order-info.vue
5.92 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
224
225
<template>
<div class="order_info_page">
<div class="order_info">
<p v-for="(item,index) in orderInfoData" :key="index">
<span>{{ item.name }}:</span>
<span>{{ item.value }}</span>
</p>
</div>
<div style="margin-top:20px;">
<TitleWithCircle title="商品信息" style="margin-bottom: 15px;"/>
</div>
<div
v-for="(sItem,sIndex) in shopListData"
:key="sIndex"
class="goods_list"
>
<div class="good_details">
<ul>
<li>
<img :src="$baseURL+sItem.image">
</li>
<li>
<p>{{ sItem.productName }}</p>
<p>{{ sItem.skuValue }}</p>
<p>SKU: {{ sItem.skuId }}</p>
</li>
<li>
<p>¥{{ sItem.total }}</p>
<p>¥{{ `${sItem.productPrice}*${sItem.number}` }}</p>
</li>
<li> ¥{{ sItem.total }}</li>
</ul>
</div>
</div>
<div class="total">
<ul>
<li />
<li />
<li />
<li>
<p v-for="(sItem,sIndex) in shopListData" :key="sIndex">
<span>订单总金额:¥ {{sItem.total}}</span>
</p>
</li>
</ul>
</div>
</div>
</template>
<script>
import TitleWithCircle from '@/components/top/index';
export default {
components: {
TitleWithCircle
},
props: {
orderInfoData: {
type: Array,
},
shopListData: {
type: Array,
}
},
data() {
return {
orderInfo: [
{ name: '订单ID', value: '542543543', field: '' },
{ name: '支付单号', value: '12353563', field: '' },
{ name: '支付状态', value: '待发货', field: '' },
{ name: '售后状态', value: '售后中', field: '' }
],
shopList: [
{ skuImg: 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=137628589,3436980029&fm=26&gp=0.jpg',
productName: 'DAD 气垫霜', skuNameStr: '粉色, 中瓶', skuId: '2525', sellPrice: '60', buyNum: '2', salePrice: '50' },
{ skuImg: 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=137628589,3436980029&fm=26&gp=0.jpg',
productName: 'DAD 气垫霜', skuNameStr: '粉色, 中瓶', skuId: '2525', sellPrice: '60', buyNum: '2', salePrice: '50' }
],
recordList: [
{ title: '申请平台介入', name: '刘十', time: '2020-05-08 15:30:56', type: '问题描述', value: '不退款', img: '举证图片',
imgSrc: 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=137628589,3436980029&fm=26&gp=0.jpg' },
{ title: '拒绝退款', name: '王辉', time: '2020-04-08 17:30:20', type: '卖家留言', value: '不退款', img: '', imgSrc: '' },
{ title: '发起了售后', name: '张强', time: '2020-03-25 13:25:45', type: '买家留言', value: '不要了, 买到的宝贝不符合预期', img: '', imgSrc: '' }
],
total: 200
}
},
created(){
console.log(this.orderInfoData,'orderInfoData')
console.log(this.shopListData,'orderInfoData')
}
}
</script>
<style lang='less' scoped>
.order_info_page {
.order_info {
overflow: hidden;
p {
width: 50%;
float: left;
line-height: 30px;
span {
font-size: 16px;
color: #333333;
display: inline-block;
&:nth-of-type(1) {
// width:130px;
margin-right: 20px;
}
&:nth-of-type(2) {
color:#666666;
}
}
}
}
.detail_title {
font-size: 24px;
color: #333333;
position: relative;
margin:50px 20px 20px;
&:before {
content: '';
display: block;
position: absolute;
top: 5px;
left: -20px;
width: 4px;
height: 24px;
background-color: #3A68F2;
}
}
.goods_list {
.good_details {
border-bottom: 1px #E0E5EB solid;
ul {
overflow: hidden;
display: flex;
margin: 0;
padding: 30px 0;
list-style: none;
li {
flex:3;
display: flex;
// justify-content: center;
// align-items: center;
text-align: left;
img {
width: 90px;
height: 90px;
border-radius:4px;
font-size: 16px;
color: #333333;
}
&:nth-child(2),&:nth-child(3) {
display: block;
}
&:nth-child(3) {
p {
// text-align: center;
&:nth-child(1) {
font-weight: 600;
}
&:nth-child(2) {
font-size: 12px;
}
}
}
&:nth-child(4) {
font-weight: 600;
}
p {
margin: 0;
padding: 0;
height: 30px;
line-height: 30px;
}
}
}
}
}
.total {
padding-left: 20px;
ul {
margin: 0;
padding: 30px 0;
display: flex;
list-style: none;
li {
// height: 40px;
flex:3;
font-size: 16px;
color: #333333;
// justify-content: center;
// align-items: center;
&:nth-child(4) {
// font-weight: 600;
}
p {
margin: 0;
padding: 0;
height: 30px;
line-height: 30px;
width: 100%;
clear: both;
span {
display: inline-block;
float: left;
&:nth-of-type(1) {
// width: 40%;
margin-right: 10%;
}
&:nth-of-type(2) {
width: 50%;
font-weight: 600;
}
}
}
}
}
}
}
</style>