<template>
  <div class="get-red">
    <div class="tip">
      <i class="icon"></i>
      {{ info.userNick }}领取了
      <em>{{ info.redFrom }}</em>
      的一个商家红包
      <em>{{ info.money }}</em>
      元
    </div>
  </div>
</template>

<script>
export default {
  name: 'chat-red-business-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>
