product.vue
1.1 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
<template>
<div class="product-wrapper">
<ImageFormat :src="data.goodImg" width="120" height="120"></ImageFormat>
<div class="product-price">
<div class="product-price-wrapper">
<div class="price">{{data.colorName}},{{data.sizeName}}</div>
<div class="tip">{{ data.priceType}} <span class="price2">{{data.goodPrice}}</span></div>
<div v-if="data.priceBidType" class="tip">{{ data.priceBidType}} <span class="price2">{{data.goodBidPrice}}</span></div>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'OrderProductInfo',
props: {
data: {
type: Object,
default() {
return {};
}
}
}
};
</script>
<style lang="scss" scoped>
.product-wrapper {
display: flex;
height: 240px;
overflow: hidden;
}
.product-price {
display: flex;
height: 100%;
margin-left: 20px;
align-items: center;
}
.price {
font-weight: bold;
font-size: 24px;
color: #999;
margin-bottom: 20px;
}
.tip {
font-size: 28px;
margin-bottom: 10px;
}
.price2 {
font-size: 28px;
font-weight: bold;
line-height: 28px;
}
</style>