<template>
  <el-drawer
    title="帮助中心"
    :visible.sync="drawer"
    direction="rtl"
  >
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <h3><a>在线客服中心</a></h3>
      </div>
      <h3><a>用户操作手册</a></h3>
      <el-table :data="list">
        <el-table-column prop="message" label="常见问题" />
      </el-table>
    </el-card>
  </el-drawer>
</template>

<script>

export default {
  data() {
    return {
      drawer: false,
      theme: this.$store.state.settings.theme,
      sideTheme: this.$store.state.settings.sideTheme,
      list: [
        { message: '问题1' },
        { message: '问题2' },
        { message: '问题3' },
        { message: '问题1' },
        { message: '问题2' },
        { message: '问题3' },
        { message: 'XXX' },
        { message: 'XXX' },
        { message: 'XXX' },
        { message: 'XXX' },
        { message: 'XXX' },
        { message: 'XXX' }
      ]
    }
  },
  computed: {
    fixedHeader: {
      get() {
        return this.$store.state.settings.fixedHeader
      },
      set(val) {
        this.$store.dispatch('settings/changeSetting', {
          key: 'fixedHeader',
          value: val
        })
      }
    }
  },
  methods: {
  }
}
</script>

<style lang="scss" scoped>
.setting-drawer-content {
  .setting-drawer-title {
    margin-bottom: 12px;
    color: rgba(0, 0, 0, .85);
    font-size: 14px;
    line-height: 22px;
    font-weight: bold;
  }

  .setting-drawer-block-checbox {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 20px;

    .setting-drawer-block-checbox-item {
      position: relative;
      margin-right: 16px;
      border-radius: 2px;
      cursor: pointer;

      img {
        width: 48px;
        height: 48px;
      }

      .setting-drawer-block-checbox-selectIcon {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        padding-top: 15px;
        padding-left: 24px;
        color: #1890ff;
        font-weight: 700;
        font-size: 14px;
      }
    }
  }
}

.drawer-container {
  padding: 24px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;

  .drawer-title {
    margin-bottom: 12px;
    color: rgba(0, 0, 0, .85);
    font-size: 14px;
    line-height: 22px;
  }

  .drawer-item {
    color: rgba(0, 0, 0, .65);
    font-size: 14px;
    padding: 12px 0;
  }

  .drawer-switch {
    float: right
  }
}
</style>
