<template>
    <div class="website-index-page">
        <!-- 首页导航栏 -->
        <mta-header></mta-header>

        <!-- 首页banner栏 -->
        <div class="website-banner">
            <div class="website-container">
                <!--  banner左侧区域 -->
                <div class="banner-left">
                    <h1>让知识更有价值</h1>
                    <p>考试平台 / 培训平台 / 课程开发</p>
                </div>
                <!--  banner右侧区域 -->
                <div class="banner-right">
                    <div class="banner-tel-box">
                        <img :src="bannerTelImg">
                    </div>
                    <i class="banner-pie"></i>
                    <div class="banner-i-run">
                        <i></i>
                        <i></i>
                        <i></i>
                        <i></i>
                        <i></i>
                    </div>
                </div>
            </div>
        </div>

        <!-- 产品和服务 -->
        <div class="website-products-services">
            <div class="website-container">
                <h1 class="website-index-title">产品和服务</h1>
                <ul class="products-services-box">
                    <li>
                        <div class="products-services-img"><i></i></div>
                        <div class="products-services-content">
                            <h2>考试系统</h2>
                            <p>麦塔在线考试系统满足不同行业考试考核需求：教育机构出题判卷、课后练习布置；企事业单位企业文化、业务水平提升；政府机构党建知识考核、提高服务意识；电力金融医疗专业技能、安全生产通通交给我们！</p>
                            <a>了解详情</a>
                        </div>
                    </li>
                    <li>
                        <div class="products-services-img"><i></i></div>
                        <div class="products-services-content">
                            <h2>培训系统</h2>
                            <p>麦塔在线培训系统满足企业全流程培训场景，支持移动web端、PC端、APP端答题和学习，多种学习模式保障学习效果，结果及时反馈，让知识转化为行动，提升培训成效，让学员充分获取学习乐趣与动力，满足您的个性化培训考试需求。</p>
                            <a>了解详情</a>
                        </div>
                    </li>
                    <li>
                        <div class="products-services-img"><i></i></div>
                        <div class="products-services-content">
                            <h2>课件制作</h2>
                            <p>麦塔能够快速搭建企业单位、教育机构学习资源库，满足学习平台需求，针对目标对象的学习习惯和学习方式个性化开发课程核心内容，将零散、隐性的知识系统化、显性化，现已开发了管理类通用课程、医药类课程、银行业课程等数千门课程内容。</p>
                            <a>了解详情</a>
                        </div>
                    </li>
                </ul>
            </div>
        </div>

        <!-- 行业学习需求 -->
        <div class="website-demand-box">
            <div class="website-container">
                <h1 class="website-index-title">满足不同行业学习需求</h1>
                <ul class="industry-box">
                    <li><img :src="demandImg1" alt="政府机构"><div><h2>政府机构</h2><p>提高行政服务人员的综合素质和能力的提升，党建知识的考核等</p><a>了解更多</a></div></li>
                    <li><img :src="demandImg2" alt="医药卫生"><div><h2>医药卫生</h2><p>应对种类繁多的专业医疗资格考试，“三基、三严”考试，辅助人才队伍建设</p><a>了解更多</a></div></li>
                    <li><img :src="demandImg3" alt="能源化工"><div><h2>能源化工</h2><p>提高安全生产培训效率，分析不足、排查隐患</p><a>了解更多</a></div></li>
                    <li><img :src="demandImg4" alt="信息产业"><div><h2>信息产业</h2><p>创新学习方式，打造在线学习品牌，提高全员移动学习的积极性</p><a>了解更多</a></div></li>
                    <li><img :src="demandImg5" alt="交通运输"><div><h2>交通运输</h2><p>推动技能领域交流互鉴，进一步培养和选拔高技能人才</p><a>了解更多</a></div></li>
                    <li><img :src="demandImg6" alt="机械机电"><div><h2>机械机电</h2><p>帮助用户创建优质工程，打造一流企业的管理方针</p><a>了解更多</a></div></li>
                    <li><img :src="demandImg7" alt="教育培训"><div><h2>教育培训</h2><p>不受时间、地点等因素限制，学员与教师相隔万里也可以开展教学活动</p><a>了解更多</a></div></li>
                    <li><img :src="demandImg8" alt="食品餐饮"><div><h2>食品餐饮</h2><p>定期培训考核，严格把控服务质量、食品安全标准</p><a>了解更多</a></div></li>
                    <li><img :src="demandImg9" alt="金融保险"><div><h2>金融保险</h2><p>针对员工岗位性质、能力素质和业务需求，精心设计考试内容，选备了相应的题库，分岗位进行集中测试。</p><a>了解更多</a></div></li>
                    <li><img :src="demandImg10" alt="汽车制造"><div><h2>汽车制造</h2><p>一线门店轻量化练习，边看边练，提高工作效率、增加企业利润</p><a>了解更多</a></div></li>
                    <li><img :src="demandImg11" alt="新闻出版"><div><h2>新闻出版</h2><p>推进编辑出版专业水平提高，出版专业技术人员职业资格考试等</p><a>了解更多</a></div></li>
                    <li><img :src="demandImg12" alt="更多"><div><h2>更多</h2><p>更多行业学习需求</p><a>了解更多</a></div></li>
                </ul>
            </div>
        </div>

        <!-- 超过10万家客户的信任之选 -->
        <div class="website-customer-box">
            <div class="website-container">
                <h1 class="website-index-title">超过10万家客户的信任之选</h1>
                <ul class="customer-img-box">
                    <li><img :src="customerImg1" alt="中国人民银行"></li>
                    <li><img :src="customerImg2" alt="汇丰"></li>
                    <li><img :src="customerImg3" alt="中国银行"></li>
                    <li><img :src="customerImg4" alt="中信银行"></li>
                    <li><img :src="customerImg5" alt="中国民生银行"></li>
                    <li><img :src="customerImg6" alt="astellas"></li>
                    <li><img :src="customerImg7" alt="今日头条"></li>
                    <li><img :src="customerImg8" alt="华图教育"></li>
                    <li><img :src="customerImg9" alt="步步高"></li>
                    <li><img :src="customerImg10" alt="小天才"></li>
                    <li><img :src="customerImg11" alt="华发股份"></li>
                    <li><img :src="customerImg12" alt="上海航空"></li>
                    <li><img :src="customerImg13" alt="中国国际航空公司"></li>
                    <li><img :src="customerImg14" alt="中国东方航空"></li>
                    <li><img :src="customerImg15" alt="深圳航空"></li>
                    <li><img :src="customerImg16" alt="中建八局"></li>
                    <li><img :src="customerImg17" alt="SANOFI"></li>
                    <li><img :src="customerImg18" alt="大连海事大学"></li>
                    <li><img :src="customerImg19" alt="南京银行"></li>
                    <li><img :src="customerImg20" alt="中国人民银行"></li>
                </ul>
            </div>
        </div>

        <!-- 我们始终专注教育系统研发更懂用户需求 -->
        <div class="website-cert-box">
            <div class="website-container">
                <h1 class="website-index-title">我们始终专注教育系统研发更懂用户需求</h1>
                <div class="cert-img-box">
                    <span><img :src="certImg1" alt="栋科考试管理系统"></span>
                    <span><img :src="certImg2" alt="栋科精品课程管理系统"></span>
                    <span><img :src="certImg3" alt="栋科课程管理系统"></span>
                    <span><img :src="certImg4" alt="栋科用户管理系统"></span>
                </div>
                <div class="cert-img-box">
                    <span><img :src="certImg5" alt="栋科网校运营系统"></span>
                    <span><img :src="certImg6" alt="麦塔考试系统"></span>
                    <span><img :src="certImg7" alt="麦塔培训系统"></span>
                    <span><img :src="certImg8" alt="知识产权管理体系认证证书"></span>
                </div>
                <a>了解更多</a>
            </div>
        </div>

        <!-- 为什么选择我们 -->
        <div class="website-chose-box">
            <div class="website-container">
                <h1 class="website-index-title">为什么选择我们</h1>
                <ul class="chose-img-box">
                    <li><div><i></i></div><h2>专业的顾问服务</h2></li>
                    <li><div><i></i></div><h2>完善的培训体系</h2></li>
                    <li><div><i></i></div><h2>可靠的开发技术</h2></li>
                    <li><div><i></i></div><h2>成熟的运营能力</h2></li>
                </ul>
            </div>
        </div>

        <!-- 行业资讯 -->
        <div class="website-industry-information">
            <h1 class="website-index-title">行业资讯</h1>
            <el-carousel :interval="200000" type="card" :autoplay="false" arrow="always">
                <el-carousel-item v-for="(item,index) in topCarousels" :key="index">
                    <div class="website-img-box" :style="{backgroundImage: 'url(' + item.pic + ')'}"></div>
                    <div class="website-content-box"><h1>{{item.title}}</h1>
                        <p>{{item.intro}}</p><a @click="checkInfo(item)">了解详情</a></div>
                </el-carousel-item>
            </el-carousel>
        </div>

        <!-- 底部footer -->
        <mta-footer></mta-footer>

    </div>
</template>

<script>
    import { homeIndustryList } from '@/api/login.js';
    import MtaHeader                                 from '@/components/client/common/header.vue';
    import MtaFooter                                 from '@/components/client/common/footer.vue';
    export default {
        name:       'index',
        props:      {},
        data() {
            return {
                // 需求img
                bannerTelImg:  require(`@/assets/images/website/index/index-banner-screen.png`),
                demandImg1:    require(`@/assets/images/website/index/index-demand-img1.png`),
                demandImg2:    require(`@/assets/images/website/index/index-demand-img2.png`),
                demandImg3:    require(`@/assets/images/website/index/index-demand-img3.png`),
                demandImg4:    require(`@/assets/images/website/index/index-demand-img4.png`),
                demandImg5:    require(`@/assets/images/website/index/index-demand-img5.png`),
                demandImg6:    require(`@/assets/images/website/index/index-demand-img6.png`),
                demandImg7:    require(`@/assets/images/website/index/index-demand-img7.png`),
                demandImg8:    require(`@/assets/images/website/index/index-demand-img8.png`),
                demandImg9:    require(`@/assets/images/website/index/index-demand-img9.png`),
                demandImg10:   require(`@/assets/images/website/index/index-demand-img10.png`),
                demandImg11:   require(`@/assets/images/website/index/index-demand-img11.png`),
                demandImg12:   require(`@/assets/images/website/index/index-demand-img12.png`),
                // 客户logo
                customerImg1:  require(`@/assets/images/website/index/index-customer-img1.png`),
                customerImg2:  require(`@/assets/images/website/index/index-customer-img2.png`),
                customerImg3:  require(`@/assets/images/website/index/index-customer-img3.png`),
                customerImg4:  require(`@/assets/images/website/index/index-customer-img4.png`),
                customerImg5:  require(`@/assets/images/website/index/index-customer-img5.png`),
                customerImg6:  require(`@/assets/images/website/index/index-customer-img6.png`),
                customerImg7:  require(`@/assets/images/website/index/index-customer-img7.png`),
                customerImg8:  require(`@/assets/images/website/index/index-customer-img8.png`),
                customerImg9:  require(`@/assets/images/website/index/index-customer-img9.png`),
                customerImg10: require(`@/assets/images/website/index/index-customer-img10.png`),
                customerImg11: require(`@/assets/images/website/index/index-customer-img11.png`),
                customerImg12: require(`@/assets/images/website/index/index-customer-img12.png`),
                customerImg13: require(`@/assets/images/website/index/index-customer-img13.png`),
                customerImg14: require(`@/assets/images/website/index/index-customer-img14.png`),
                customerImg15: require(`@/assets/images/website/index/index-customer-img15.png`),
                customerImg16: require(`@/assets/images/website/index/index-customer-img16.png`),
                customerImg17: require(`@/assets/images/website/index/index-customer-img17.png`),
                customerImg18: require(`@/assets/images/website/index/index-customer-img18.png`),
                customerImg19: require(`@/assets/images/website/index/index-customer-img19.png`),
                customerImg20: require(`@/assets/images/website/index/index-customer-img20.png`),
                //证书图片
                certImg1:      require(`@/assets/images/website/index/index-cert-img1.jpg`),
                certImg2:      require(`@/assets/images/website/index/index-cert-img2.jpg`),
                certImg3:      require(`@/assets/images/website/index/index-cert-img3.jpg`),
                certImg4:      require(`@/assets/images/website/index/index-cert-img4.jpg`),
                certImg5:      require(`@/assets/images/website/index/index-cert-img5.jpg`),
                certImg6:      require(`@/assets/images/website/index/index-cert-img6.jpg`),
                certImg7:      require(`@/assets/images/website/index/index-cert-img7.jpg`),
                certImg8:      require(`@/assets/images/website/index/index-cert-img8.jpg`),
                activeIndex:   '首页',
                topCarousels:  [],
            };
        },
        components: {
            MtaHeader,
            MtaFooter,
        },
        computed:   {},
        methods:    {
            handleSelect(key, keyPath) {
                if (key === '考试平台') {
                    window.location.href = 'https://www.baidu.com';
                } else if (key === '培训平台') {
                    window.location.href = 'http://39.97.175.90:7788/zentao/my/';
                } else {
                    this.$router.push({ name: key });
                }
            },
            getshufflingData() {
                homeIndustryList().then(res=>{
                       if(res.code===0){
                           console.log(res);
                           this.topCarousels = res.data.data
                       }
                })
            },
            checkInfo(data){
                this.$router.push({ name: 'newsInforDetails' ,params:data});
            }

        },
        created() {
            this.getshufflingData();
        },
        mounted() {
           /* for (let i = 0; i < 5; i++) {
                this.topCarousels.push(require(`@/assets/images/client/carousels/${i + 1}.jpg`));
            }*/

        },
        beforeDestroy() {
        },
    };
</script>
