<template>
  <div class="integralAdd">
    <div class="item">
      <div class="left">事件类型</div>
      <AiSelect class="right" dict="clapEventStatus" v-model="form.type"></AiSelect>
    </div>
    <div class="items">
      <p>详情描述</p>
      <textarea v-model="form.content" :maxlength="300" placeholder="请输入详细描述..."></textarea>
      <div class="tips">{{ form.content.length }}/300</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "integralAdd",
  appName: '积分申请',
  data() {
    return {
      form: {
        type: 0,
        content: '',
      }
    }
  },
  onLoad(o) {
    this.$dict.load(['clapEventStatus'])
  }
}
</script>

<style lang="scss" scoped>
.integralAdd {
  .item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    background: #FFF;
    padding: 24px 32px;
    box-sizing: border-box;
    margin-top: 24px;
    .left {
      width: 250px;;
    }
    .right {
      width: calc(100% - 200px);
      text-align: right;
    }
    ::v-deep .AiSelect {
      float: right;
    }
  }
  .items {
    width: 100%;
    background: #FFF;
    margin-top: 24px;
    p {
      padding: 24px 32px;
      box-sizing: border-box;
      border: 1px solid #EEEEEE;
    }
    textarea {
      padding: 24px 32px;
      box-sizing: border-box;
    }

    .tips {
      padding: 12px 32px;
      box-sizing: border-box;
      text-align: right;
      color: #999999;
      font-size: 24px;
      font-weight: 400;
    }
  }
}
</style>