buyer-coupon.vue
863 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
<template>
<div class="coupon-wrapper" @click="onClick">
<div class="title">优惠券<span class="desc">{{data.desc}}</span></div>
<div><span class="red">{{data.coupon_amount_str}}</span><i class="iconfont iconright icon-right"></i></div>
</div>
</template>
<script>
export default {
name: 'OrderCoupon',
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: #3f3f3f;
margin-left: 10px;
}
.red {
color: #d0021b;
font-size: 28px;
margin-right: 10px;
}
.icon-right {
color: #999;
}
</style>