<template>
  <div :class="isMobile ? 'is-h5' : 'is-pc'">
    <div class="common-content-box">
      <card :title="$t('home.problem.title')">
        <template #header-aside
          ><nuxt-link to="/apply/problem">{{ $t('viewMore') }}</nuxt-link></template
        >
        <div class="content-mian">
          <app-link to="/apply/problem">
            <div class="list-box">
              <ul>
                <li v-for="(item, index) in problem.itemLeft" :key="index">
                  <div class="icon"></div>
                  <div class="text">{{ item }}</div>
                </li>
              </ul>
              <ul>
                <li v-for="(item, index) in problem.itemRight" :key="index">
                  <div class="icon"></div>
                  <div class="text">{{ item }}</div>
                </li>
              </ul>
            </div>
          </app-link>
          <!-- <div class="msg-box">
            <el-input type="textarea" placeholder="请输入内容" v-model="textarea"> </el-input>
            <div class="btn">在线留言</div>
          </div> -->
        </div>
      </card>
    </div>
  </div>
</template>

<script>
import Card from '@/components/Card'
import AppLink from '@/components/Link'
export default {
  name: 'commonProblem',
  components: {
    Card,
    AppLink
  },
  data() {
    return {
      problem: {
        itemLeft: [
          '如何申请瑞士美食艺术管理大学(CAAS) MBA？大概流程是什么？',
          '面试多少人？录取多少人？率取比率是多少？',
          '是否要求考生的工作经验必须属于餐饮行业？',
          '英语一般可以申请吗？',
        ],
        itemRight: [
          '本项目是在职还是全职？上课安排是怎样的？',
          '本项目学制多久？获得的硕士学位证书与瑞士全日制就读是否相同？',
          '大专毕业后，又通过自考获得本科毕业证和学士学位，能否报考？',
          '瑞士美食艺术管理大学项目学费是多少？ 可以分期吗？'
        ]
      },
      textarea: ''
    }
  },
  computed: {
    isMobile() {
      return this.$store.state.isMobile
    }
  }
}
</script>

<style lang="scss" scoped>
.is-pc {
  .common-content-box {
    width: 1200px;
    margin: 0 auto;
    padding-top: 77px;
    .content-mian {
      padding-top: 50px;
      .msg-box {
        padding-top: 40px;
        box-sizing: border-box;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        ::v-deep {
          .el-textarea__inner {
            background: none;
            resize: none;
          }
        }
        .btn {
          width: 136px;
          height: 36px;
          background: #aa1941;
          opacity: 1;
          border-radius: 4px;
          font-size: 18px;
          line-height: 36px;
          text-align: center;
          color: #ffffff;
          margin-left: 57px;
          cursor: pointer;
        }
      }
      .list-box {
        display: flex;
        justify-content: space-between;
        ul {
          &:nth-child(2) {
            margin-left: 8px;
          }
          li {
            display: flex;
            align-items: center;
            width: 600px;
            height: 25px;
            margin-bottom: 10px;
            cursor: pointer;
            &:nth-child(even) {
              .text {
                background: none;
              }
            }
            .icon {
              width: 7px;
              height: 7px;
              background: #aa1941;
              border-radius: 50%;
            }
            .text {
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
              font-size: 14px;
              line-height: 25px;
              color: #666666;
              padding-left: 4px;
              width: 570px;
              background: rgba(153, 153, 153, 0.2);
              margin-left: 15px;
            }
          }
        }
      }
    }
  }
}
.is-h5 {
  .common-content-box {
    .content-mian {
      .msg-box {
        padding-top: 0.2rem;
        box-sizing: border-box;
        ::v-deep {
          .el-textarea__inner {
            background: none;
            resize: none;
          }
        }
        input {
          height: 0.29rem;
          border: 0.01rem solid rgba(153, 153, 153, 0.2);
          margin-top: 0.05rem;
          outline: none;
          width: 100%;
          background: none;
          padding-left: 0.2rem;
          box-sizing: border-box;
          font-size: 0.1rem;
          color: #999999;
        }
        .btn {
          height: 0.24rem;
          background: #aa1941;
          font-size: 0.12rem;
          text-align: center;
          color: #ffffff;
          margin-top: 0.1rem;
          line-height: 0.24rem;
        }
      }
      .list-box {
        ul {
          li {
            display: flex;
            align-items: center;
            padding: 0.04rem 0 0.04rem 0;
            &:nth-child(even) {
              .text {
                background: none;
              }
            }
            .icon {
              width: 0.04rem;
              height: 0.04rem;
              background: #aa1941;
              border-radius: 50%;
            }
            .text {
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
              font-size: 0.12rem;
              color: #666666;
              padding-left: 0.02rem;
              width: 100%;
              background: rgba(153, 153, 153, 0.2);
              margin-left: 0.07rem;
            }
          }
        }
      }
    }
  }
}
</style>