<template>
  <div class="get-red">
    <div class="tip">
      <i class="icon"></i>
      {{ info.userNick }}领取了
      <em>{{ info.redFrom }}</em>
      的{{ info.msgType === 17 ? '红包雨' : ''}}{{ info.msgType === 20 ? '倒计时红包' : '' }}
      <em>{{ info.money }}</em>
      元
    </div>
  </div>
</template>

<script>
export default {
  name: 'chat-red-tip',
  props: {
    info: {}
  }
};
</script>

<style lang="less" scoped>
.get-red {
  .tip {
    line-height: 25px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--chat-color);
    background: var(--chat-bg);
    .icon {
      display: inline-block;
      vertical-align: middle;
      width: 22px;
      height: 22px;
      background-image: url('./img/icon-red.png');
      background-repeat: no-repeat;
      background-size: 20px auto;
      background-position: center center;
    }
    em {
      color: #d84e43;
      font-style: normal
    }
  }
}
</style>
