buyer-product.vue
1.03 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
<template>
<div class="product-wrapper">
<ImageFormat :src="data.goodImg" width="90" height="90"></ImageFormat>
<div class="product-price">
<div class="red">¥{{data.goodPrice}}</div>
<div class="product-name">{{data.productName}}</div>
<div class="price">{{data.colorName}},{{data.sizeName}}</div>
</div>
</div>
</template>
<script>
export default {
name: 'OrderProductInfo',
props: {
data: {
type: Object,
default() {
return {};
}
}
}
};
</script>
<style lang="scss" scoped>
.product-wrapper {
height: 180px;
}
.product-price {
display: inline-block;
vertical-align: top;
height: 100%;
width: 450px;
margin-left: 20px;
}
.price {
font-weight: bold;
font-size: 24px;
}
.tip {
font-size: 28px;
margin-top: 24px;
}
.product-name {
font-size: 24px;
color: #999;
display: inline-block;
margin-bottom: 24px;
line-height: 36px;
}
.red {
color: #d0021b;
font-size: 28px;
margin-bottom: 12px;
font-weight: bold;
@include num
}
</style>