<template>
  <div>
    <!-- <div class="banner">
      <img src="https://webapp-pub.ezijing.com/www/h5/studyAbroad/banner.jpg" />
    </div> -->
    <div class="w1200">
      <van-swipe class="my-swipe" :autoplay="5000" indicator-color="white">
        <van-swipe-item v-for="(item, index) in bannerList" :key="index">
          <img :src="item.web_img_uri" class="banner-img" />
        </van-swipe-item>
      </van-swipe>
      <!-- <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> -->
      <FormSubmit :type="2" />

      <ProjectCard title="热门专业" :list="projectList"></ProjectCard>
      <app-card title="申请流程">
        <div class="process">
          <img src="https://webapp-pub.ezijing.com/www/h5/studyAbroad/process.png" />
        </div>
      </app-card>
      <app-card title="报考指南">
        <swiper ref="mySwiper" :options="swiperOptions">
          <swiper-slide v-for="(item, index) in qaList" :key="index" class="qa-list2">
            <div v-for="(it, index1) in item" :key="index1" class="item">
              <div class="tit">Q：{{ it.question }}</div>
              <p>{{ it.answer }}</p>
              <div class="line"></div>
            </div>
          </swiper-slide>
        </swiper>
      </app-card>
      <TeacherCard :list="teacherList"></TeacherCard>
      <NewsCard baseUrl="/studyAbroad/news" :params="newsParams"></NewsCard>
      <FormSubmit :type="2" />
    </div>
  </div>
</template>

<script>
import AppCard from '@/components/Card.vue'
import FormSubmit from '@/components/FormSubmit.vue'

import ProjectCard from '@/components/ProjectCard.vue'
import NewsCard from '@/components/NewsCard.vue'
import TeacherCard from '@/components/TeacherCard.vue'
import qaList from '@/assets/studyAbroadQA.js'

export default {
  head: {
    title: '紫荆教育-美国留学保研项目-预科留学-国际留学-硕士博士留学',
    meta: [
      {
        hid: 'keywords',
        name: 'keywords',
        content: '国际留学,美国留学,博士留学,留学，预科留学，硕士留学，留学保研项目'
      },
      {
        hid: 'description',
        name: 'description',
        content:
          '紫荆教育-专注国际留学项目，提供美国名校预科硕士/博士留学。清控紫荆教育全称是清控紫荆（北京）教育科技股份有限公司，是2015年以清华大学五道口金融学院相关知识产权创设而成。'
      }
    ]
  },
  components: { AppCard, FormSubmit, ProjectCard, NewsCard, TeacherCard },
  data() {
    return {
      swiperOptions: {
        autoplay: true,
        loop: true,
        slidesPerView: 'auto',
        spaceBetween: 16
      },
      bannerList: [
        { web_img_uri: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/banner4.png' },
        { web_img_uri: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/banner2.png' },
        { web_img_uri: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/banner1.png' },
        { web_img_uri: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/banner3.png' }
      ],
      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://pages.ezijing.com/cbu-plus/20220725.html?channel_num=29758'
        },
        {
          imgUrl: 'https://webapp-pub.ezijing.com/www/h5/studyAbroad/project_sbu.png',
          href: 'https://pages.ezijing.com/sbu-plus/20220725.html?channel_num=29758'
        },
        {
          imgUrl: 'https://webapp-pub.ezijing.com/www/h5/studyAbroad/project_sit.png',
          href: 'https://pages.ezijing.com/sit-plus/20220801.html?channel_num=29758'
        },
        {
          imgUrl: 'https://webapp-pub.ezijing.com/www/h5/studyAbroad/project_marywood_plus_1.png',
          href: 'https://pages.ezijing.com/marywood/20220729.html?channel_num=29758'
        },
        {
          imgUrl: 'https://webapp-pub.ezijing.com/www/h5/studyAbroad/project_marywood_plus_2.png',
          href: 'https://pages.ezijing.com/marywood/20220729.html?channel_num=29758'
        },

        {
          imgUrl: 'https://webapp-pub.ezijing.com/www/h5/studyAbroad/project_ucr.png',
          onClick: this.showMessage
          // href: 'https://cbu-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: 'Tim Gramling',
          project: '师资-CBU | 院长',
          desc: '加州浸会大学商学院院长 <br/>美国东北大学法律与公共政策博士 <br/>哈佛大学计算机科学学士'
        },
        {
          imgUrl: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/yxsz_02.jpg',
          name: 'Dmytro Holod',
          project: '师资－SBU | 副院长',
          desc: '石溪大学商学院副院长 <br/>肯塔基大学博士'
        },
        {
          imgUrl: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/yxsz_03.jpg',
          name: 'Danling Jiang',
          project: '师资－SBU | 副院长',
          desc: '石溪大学商学院金融学教授<br/>俄亥俄州立大学金融学博士'
        },
        {
          imgUrl: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/yxsz_04.jpg',
          name: 'Yehia Massoud',
          project: '师资-SIT | 院长',
          desc: '教授、学院院长<br/>IEEE电气与电子工程师协会院士<br/>麻省理工学院博士'
        },
        {
          imgUrl: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/yxsz_05.jpg',
          name: 'Kathryn Abel',
          project: '师资-SIT | 副教授',
          desc: '史蒂文斯理工学院博士'
        },
        {
          imgUrl: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/yxsz_06.jpg',
          name: 'Steven Hoffenson',
          project: '师资-SIT | 讲师',
          desc: '密歇根大学博士'
        },
        {
          imgUrl: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/yxsz_07.jpg',
          name: 'Young Shin Kim',
          project: '师资－SBU | 副教授',
          desc: '石溪大学金融副教授<br/>Sogang大学博士'
        },
        {
          imgUrl: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/yxsz_08.jpg',
          name: 'Gokhan Torna',
          project: '师资－SBU | 副教授',
          desc: '石溪大学金融副教授<br/>堪萨斯大学商学院金融学博士'
        }
      ]
    }
  },
  methods: {
    showMessage() {
      this.$notify({ type: 'primary', message: '敬请期待' })
    }
  }
}
</script>

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