<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
// import BASE_URL from '@/config/env'

export default {
  name: 'App',
  watch: {
    '$route' (val) {
      console.log(val.path)
    }
  },
  mounted () {
    document.title = this.pageTitle
  }
}
</script>

<style lang="scss">
.el-card__header {
  padding: 10px 20px;
  font-size: 16px;
  line-height: 22px;
}

.form-wrap {

  .el-input,
  .el-select,
  .el-date-editor,
  .el-date-editor.el-input,
  .el-input-number {
    width: 194px;
  }
}

.btn-wrap-left {
  padding: 10px;
}

.el-pagination {
  padding: 30px 0 20px;
  text-align: center;

  .el-select {
    width: auto;

    input {
      height: 28px;
    }
  }

  .el-input__icon {
    line-height: 28px;
  }
}

.el-table {
  thead th {
    color: #5d6368;
    background: #fafafa;
  }

  .el-table__row.expanded {
    background: lighten(#b5bec7, 18%);
  }

  .el-table__expanded-cell {
    background: lighten(#e9eaee, 5%) !important;

    &:hover {
      background: lighten(#e9eaee, 5%) !important;
    }
  }

  .el-tag {
    margin: 3px 5px 3px 0;
  }
}

.dialog-form {
  .btn-wrap {
    text-align: right;
    margin-top: 20px;
    margin-bottom: 0;
  }

  .el-form-item {
    width: 49%;
    margin-right: 0;
  }
}

.info-form {
  .el-form-item {
    margin: 0;
    width: 45%;
  }

  .scenic-list {
    display: flex;

    ul {
      margin: 0;
      padding: 0;

      .scenic-item {
        height: 40px;
        line-height: 40px;
        list-style: none;
        white-space: nowrap;
      }
    }
  }

  .manual-label {
    margin: 0;
    width: 150px;
    padding-right: 12px;
    height: 40px;
    line-height: 40px;
    text-align: right;
    box-sizing: border-box;
  }

  .form-title {
    margin: 10px 20px 0;
    padding: 5px 20px;
    border-left: 3px solid #03888F;
  }
}

.offSale-btn {
  color: #F56C6C
}

.onSale-btn {
  color: #67C23A
}
</style>
