<template>
    <view class="coupon section cm-order-coupon-section" @click="$emit('click')">
        <view class="lable">优惠券</view>
        <view class="content">
            <text class="text">-￥{{ coupon.couponAmount | formatPrice }} </text> <text class="iconfont icon-chakangengduo"></text>
        </view>
    </view>
</template>

<script>
	export default{
		props:{
			coupon:{
				type: Object,
				default:()=>{}
			}
		}
	}
</script>

<style lang="scss" scoped>
.section {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 24rpx;
    line-height: 90rpx;
    font-size: 28rpx;

    background: #fff;

    .label {
        color: #333333;
        font-weight: 500;
    }

    .content {
        color: #ff457b;

        .iconfont {
            color: #b2b2b2;
            margin-left: 8rpx;
        }
    }
}
</style>
