<template>
  <div class="sms-three-box">
    <div class="content-left">
      <div class="card-textarea">
        <div class="title">推送标题</div>
        <textarea :maxlength="10" v-model="data.title" placeholder="请输入"></textarea>
      </div>
      <div class="card-textarea">
        <div class="title">推送内容</div>
        <textarea :maxlength="50" v-model="data.content" placeholder="请输入"></textarea>
      </div>
    </div>
    <div class="content-right">
      <div class="right-box">
        <div class="text">{{ `【${data.title}】${data.content}` }}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    data: {
      type: Object
    }
  },
  mounted() {
    console.log(this.data, '23')
  },
  methods: {
    handleStepThree() {
      if (this.data.title === '' || this.data.content === '') {
        this.$message.warning('请完善改步骤后才能进入下一步')
        return false
      }
      return true
    }
  }
}
</script>

<style lang="scss" scoped>
.sms-three-box {
  margin-bottom: 20px;
  display: flex;
  .content-left {
    border-left: 1px solid #dedede;
    border-right: 1px solid #dedede;
    padding: 30px 30px 0;
    .card-textarea {
      width: 320px;
      background: rgba(248, 248, 248, 0.39);
      border-radius: 16px;
      padding: 23px;
      margin-bottom: 30px;
      .title {
        text-align: center;
        margin-bottom: 23px;
        font-size: 18px;
        font-weight: bold;
        line-height: 100%;
        color: #333333;
      }
      textarea {
        width: 100%;
        height: 91px;
        background: rgba(255, 255, 255, 0.39);
        border: 1px solid #efefef;
        border-radius: 6px;
        padding: 10px 15px;
        color: #333333;
        font-size: 14px;
        resize: none;
      }
    }
  }
  .content-right {
    width: 588px;
    padding: 55px 0;
    box-sizing: border-box;
    .right-box {
      margin: 0 auto;
      width: 236px;
      height: 474px;
      background: url(https://webapp-pub.ezijing.com/x-training-new/phone-sms.png);
      background-size: 100% 100%;
      position: relative;
      .text {
        padding: 9px;
        box-sizing: border-box;
        background: #e9e9eb;
        border-radius: 10px;
        width: 148px;
        position: absolute;
        top: 110px;
        left: 25px;
        font-size: 9px;
        color: #333333;
      }
    }
  }
}
</style>
