<template>
  <div class="get-red">
    <div class="tip">
      <i class="icon"></i>
      {{ info.userNick }}领到一个竞答红包
      <em>{{ info.money }}</em>
      元红包
    </div>
  </div>
</template>

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

<style lang="less" scoped>
.get-red {
  text-align: center;
  .tip {
    display: inline-block;
    margin: auto;
    max-width: 90%;
    line-height: 0.2rem;
    padding: 0.05rem 0.1rem;
    border-radius: 0.05rem;
    font-size: 0.14rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    .icon {
      display: inline-block;
      vertical-align: middle;
      width: 0.2rem;
      height: 0.2rem;
      background-image: url('./img/icon-red.png');
      background-repeat: no-repeat;
      background-size: 0.15rem auto;
      background-position: center center;
    }
    em {
      color: #d84e43;
    }
  }
}
</style>
