buyer-promotion.vue
869 Bytes
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
<template>
<div class="coupon-wrapper" @click="onClick">
<div class="title">促销<span class="desc">{{data.title}}</span></div>
<div><span class="red">{{data.amount}}</span><i class="iconfont iconright icon-right"></i></div>
</div>
</template>
<script>
export default {
name: 'OrderPromotion',
props: {
data: {
type: Object,
default() {
return {};
}
}
},
methods: {
onClick() {
this.$emit('click');
}
}
};
</script>
<style lang="scss" scoped>
.coupon-wrapper {
display: flex;
justify-content: space-between;
align-items: center;
}
.title {
font-size: 32px;
display: flex;
align-items: center;
}
.desc {
font-size: 24px;
color: #999;
margin-left: 10px;
}
.red {
color: #d0021b;
font-size: 28px;
margin-right: 10px;
}
.icon-right {
font-size: 24px;
color: #999;
}
</style>