<template>
    <div class="reward-info">
        <i class="icon-red"></i>
        感谢{{info.userNick}}打赏的
        <em>{{info.money}}</em>
        元红包
    </div>
</template>

<script>
    export default {
        props: {
            info: {}
        },
    }
</script>

<style lang="less" scoped>
    .reward-info{
        display: inline-block;
        max-width: 90%;
        line-height: 20px;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 14px;
        color: #fff;
        background: #edcb91;
        text-align: center;

        .icon-red{
            display: inline-block;
            vertical-align: top;
            width: 20px;
            height: 20px;
            background-image: url("./img/icon-red.png");
            background-repeat: no-repeat;
            background-size: 15px auto;
            background-position: center center;
        }
        em{
            color: #d84e43;
        }
    }
</style>