<template>
  <div>
    <div class="banner">
      <img src="https://webapp-pub.ezijing.com/www/h5/studyAbroad/banner.jpg" />
    </div>
    <div class="w1200">
      <div class="why">
        <h1 class="why-title">为什么选择紫荆教育的国际留学课程？</h1>
        <div class="why-list">
          <div class="why-item" v-for="(item, index) in whyList" :key="index">
            <img :src="item.icon" class="why-item__icon" />
            <img :src="item.hoverIcon" class="why-item__icon_hover" />
            <div class="why-content" v-html="item.desc"></div>
          </div>
        </div>
      </div>
      <app-card title="热门专业">
        <div class="project-list">
          <div class="project-item" v-for="(item, index) in projectList" :key="index">
            <AppLink :data="item"><img :src="item.imgUrl"/></AppLink>
          </div>
        </div>
      </app-card>
      <app-card title="常见问题">
        <template #header-aside><nuxt-link to="/studyAbroad/qa">查看更多+</nuxt-link></template>
        <ul class="qa-list">
          <li v-for="(item, index) in qaList" :key="index">
            <nuxt-link to="/studyAbroad/qa">{{ item.question }}</nuxt-link>
          </li>
        </ul>
      </app-card>
      <NewsCard baseUrl="/studyAbroad/news" :params="newsParams"></NewsCard>
      <TeacherCard :list="teacherList"></TeacherCard>
      <app-card title="申请流程">
        <div class="process">
          <img src="https://webapp-pub.ezijing.com/www/h5/studyAbroad/process.png" />
        </div>
      </app-card>
    </div>
  </div>
</template>

<script>
import AppCard from '@/components/Card.vue'
import AppLink from '@/components/Link.vue'
import NewsCard from '@/components/NewsCard.vue'
import TeacherCard from '@/components/TeacherCard.vue'
import qaList from '@/assets/studyAbroadQA.js'

export default {
  components: { AppCard, AppLink, NewsCard, TeacherCard },
  data() {
    return {
      whyList: [
        {
          icon: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/icon_why_01.png',
          hoverIcon: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/icon_why_01_hover.png',
          desc: '优选国际正规院校、学位受到全球普遍承认'
        },
        {
          icon: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/icon_why_02.png',
          hoverIcon: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/icon_why_02_hover.png',
          desc: '短期出国，可做中留服同等学历认证'
        },
        {
          icon: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/icon_why_03.png',
          hoverIcon: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/icon_why_03_hover.png',
          desc: '严格审核，正规面试，以国际标准选拔优秀人才'
        },
        {
          icon: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/icon_why_04.png',
          hoverIcon: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/icon_why_04_hover.png',
          desc: '国企背景、专业口碑，国际化专业运营团队'
        },
        {
          icon: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/icon_why_05.png',
          hoverIcon: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/icon_why_05_hover.png',
          desc: '国内外学习过程紧密衔接，全程跟踪服务'
        },
        {
          icon: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/icon_why_06.png',
          hoverIcon: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/icon_why_06_hover.png',
          desc: '稳定的学习系统，365天X24小时全球登录'
        }
      ],
      // 热门专业
      projectList: [
        {
          imgUrl: 'https://webapp-pub.ezijing.com/www/h5/studyAbroad/project_cbu.png',
          href: 'https://cbu-plus.ezijing.com/'
        },
        {
          imgUrl: 'https://webapp-pub.ezijing.com/www/h5/studyAbroad/project_marywood_plus_1.png',
          href: 'https://marywood-plus.ezijing.com/'
        },
        {
          imgUrl: 'https://webapp-pub.ezijing.com/www/h5/studyAbroad/project_sbu.png',
          href: 'https://sbu-plus.ezijing.com/'
        },
        {
          imgUrl: 'https://webapp-pub.ezijing.com/www/h5/studyAbroad/project_ucr.png',
          onClick: this.showMessage
          // href: 'https://cbu-plus.ezijing.com/'
        },
        {
          imgUrl: 'https://webapp-pub.ezijing.com/www/h5/studyAbroad/project_marywood_plus_2.png',
          href: 'https://marywood-plus.ezijing.com/'
        }
      ],
      // 常见问题
      qaList,
      // 最新动态请求参数
      newsParams: {
        project_ids: ['25634964940156928', '25634688011239424', '6886139536666001408'],
        type_tag: 'article_news_hot',
        page: 1,
        limit: 4
      },
      teacherList: [
        {
          imgUrl: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/yxsz_01.jpg',
          name: 'Yair Tauman',
          project: '师资-SBU',
          title: '教授',
          desc:
            '纽约石溪大学经济学系首席教授<br/>曾任斯坦福大学、伦敦政经客座教授<br/>以色列耶路撒冷希伯来大学 数学博士<br/>导师：罗伯特·奥曼（诺贝尔经济学奖得主，美国科学院院士、艺术与科学学院外籍院士，英国社科院通讯院士）'
        },
        {
          imgUrl: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/yxsz_02.jpg',
          name: 'Danling Jiang',
          project: '师资-SBU',
          title: '副院长',
          desc:
            '石溪大学商学院副院长分管研究与教师发展工作<br/>石溪大学创业金融中心联合主任<br/>石溪大学区块链商业实验室主任<br/>石溪大学交易与投资实验室主任<br/>石溪大学商学院金融学教授<br/>俄亥俄州立大学金融学博士'
        },
        {
          imgUrl: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/yxsz_03.jpg',
          name: 'Dmytro Holod',
          project: '师资-SBU',
          title: '副院长',
          desc:
            '石溪大学商学院副院长<br/>肯塔基大学博士<br/>Holod 博士在众多学术和实践会议上展示了他的研究成果，他的研究成果发表在金融和经济学期刊上，包括《货币、信贷和银行杂志》、《银行和金融杂志》和《金融管理》'
        },
        {
          imgUrl: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/yxsz_04.jpg',
          name: 'Michael Alan Bernstan',
          project: '师资-SBU',
          title: '副校长',
          desc:
            '石溪大学教务长兼学术事务高级副校长<br/>美国大学学者协会杰出成员<br/>耶鲁大学经济学博士<br/>美国国家人文中心的安德鲁梅隆研究员、经济史协会论文奖竞赛联合召集人、美国学术协会美国研究项目学术咨询委员会成员，经济史杂志编辑委员会成员'
        },
        {
          imgUrl: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/yxsz_05.jpg',
          name: 'Gokhan Torna',
          project: '师资-SBU',
          title: '副教授',
          desc: '石溪大学金融副教授<br/>堪萨斯大学商学院金融学博士（以优异成绩）'
        },
        {
          imgUrl: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/yxsz_06.jpg',
          name: 'Sandro Brusco',
          project: '师资-SBU',
          title: '教授',
          desc: '石溪大学经济系和商学院的经济学教授<br/>斯坦福大学商学院经济分析与政策博士'
        }
      ]
    }
  },
  methods: {
    showMessage() {
      this.$notify({ type: 'primary', message: '敬请期待' })
    }
  }
}
</script>

<style lang="scss" scoped src="@/assets/css/studyAbroad.scss"></style>
