/*-----------------------------------------------------------*/
/*copyright by 动力无限  www.btoe.cn*/
/*邮箱 btoe@btoe.cn*/
/*合作电话 400-0599-360*/
/*版权所有违者必究*/
/*-----------------------------------------------------------*/


$('.banner ul li .bannerBox .bannerBoxR .bannerBoxRBox .bannerBoxRBg').each(function (index) {
    $(this).addClass('wow fadeInDown')
    $(this).attr('data-wow-duration', '1.2s')
    $(this).attr('data-wow-delay', (index + 1) * 0.2 + 's')
    setTimeout(function(){
        $('.banner ul li .bannerBox .bannerBoxR .bannerBoxRBox .bannerBoxRBg').addClass('a1')
    }, 1600);
})



$('.banner ul li .bannerBox .bannerBoxR .bannerBoxRBox .bannerBoxRZz1').each(function (index) {
    $(this).addClass('wow fadeInDown')
    $(this).attr('data-wow-duration', '1.6s')
    $(this).attr('data-wow-delay', (index + 1) * 0.4 + 's')

    setTimeout(function(){
        $('.banner ul li .bannerBox .bannerBoxR .bannerBoxRBox .bannerBoxRZz1').addClass('a2')
    }, 2000);
})


$('.banner ul li .bannerBox .bannerBoxR .bannerBoxRBox .bannerBoxRZz2').each(function (index) {
    $(this).addClass('wow fadeInDown')
    $(this).attr('data-wow-duration', '1.6s')
    $(this).attr('data-wow-delay', (index + 1) * 0.4 + 's')

    setTimeout(function(){
        $('.banner ul li .bannerBox .bannerBoxR .bannerBoxRBox .bannerBoxRZz2').addClass('a3')
    }, 2400);
})


$('.banner ul li .bannerBox .bannerBoxR .bannerBoxRBox .bannerBoxRZz3').each(function (index) {
    $(this).addClass('wow fadeInDown')
    $(this).attr('data-wow-duration', '1.6s')
    $(this).attr('data-wow-delay', (index + 1) * 0.4 + 's')

    setTimeout(function(){
        $('.banner ul li .bannerBox .bannerBoxR .bannerBoxRBox .bannerBoxRZz3').addClass('a4')
    }, 2800);
})


$('.banner ul li .bannerBox .bannerBoxR .bannerBoxRBox .bannerBoxRJb1').each(function (index) {
    $(this).addClass('wow fadeInDown')
    $(this).attr('data-wow-duration', '2.2s')
    $(this).attr('data-wow-delay', (index + 1) * 0.8 + 's')

    setTimeout(function(){
        $('.banner ul li .bannerBox .bannerBoxR .bannerBoxRBox .bannerBoxRJb1').addClass('a5')
    }, 3600);
})

$('.banner ul li .bannerBox .bannerBoxR .bannerBoxRBox .bannerBoxRJb2').each(function (index) {
    $(this).addClass('wow fadeInDown')
    $(this).attr('data-wow-duration', '2.2s')
    $(this).attr('data-wow-delay', (index + 1) * 0.8 + 's')

    setTimeout(function(){
        $('.banner ul li .bannerBox .bannerBoxR .bannerBoxRBox .bannerBoxRJb2').addClass('a6')
    }, 4000);
})

$('.banner ul li .bannerBox .bannerBoxR .bannerBoxRBox .bannerBoxRJb3').each(function (index) {
    $(this).addClass('wow fadeInDown')
    $(this).attr('data-wow-duration', '2.2s')
    $(this).attr('data-wow-delay', (index + 1) * 0.8 + 's')

    setTimeout(function(){
        $('.banner ul li .bannerBox .bannerBoxR .bannerBoxRBox .bannerBoxRJb3').addClass('a7')
    }, 4400);
})

$('.banner ul li .bannerBox .bannerBoxR .bannerBoxRBox .bannerBoxRJb4').each(function (index) {
    $(this).addClass('wow fadeInDown')
    $(this).attr('data-wow-duration', '2.2s')
    $(this).attr('data-wow-delay', (index + 1) * 0.8 + 's')
    setTimeout(function(){
        $('.banner ul li .bannerBox .bannerBoxR .bannerBoxRBox .bannerBoxRJb4').addClass('a8')
    }, 4800);
})

$('.ThreeSystems .indexTitle').each(function (index) {
    $(this).addClass('wow fadeInDown')
    $(this).attr('data-wow-duration', '2s')
    $(this).attr('data-wow-delay', (index) * 1 + 's')
})

$('.GlobalMarketing .indexTitle').each(function (index) {
    $(this).addClass('wow fadeInDown')
    $(this).attr('data-wow-duration', '2s')
    $(this).attr('data-wow-delay', (index) * 1 + 's')
})


$('.programme .indexTitle').each(function (index) {
    $(this).addClass('wow fadeInDown')
    $(this).attr('data-wow-duration', '2s')
    $(this).attr('data-wow-delay', (index) * 1 + 's')
})



$('.ourusers .indexTitle').each(function (index) {
    $(this).addClass('wow fadeInDown')
    $(this).attr('data-wow-duration', '2s')
    $(this).attr('data-wow-delay', (index) * 1 + 's')
})



$('.indexnews .indexTitle').each(function (index) {
    $(this).addClass('wow fadeInDown')
    $(this).attr('data-wow-duration', '2s')
    $(this).attr('data-wow-delay', (index) * 1 + 's')
})




$('.indexadm h4').each(function (index) {
    $(this).addClass('wow fadeInDown')
    $(this).attr('data-wow-duration', '2s')
    $(this).attr('data-wow-delay', (index) * 1 + 's')
})


$('.indexadm p').each(function (index) {
    $(this).addClass('wow fadeInDown')
    $(this).attr('data-wow-duration', '2.5s')
    $(this).attr('data-wow-delay', (index) * 1 + 's')
})

 


$('.ThreeSystemsBoxL').each(function (index) {
    $(this).addClass('wow fadeInLeft')
    $(this).attr('data-wow-duration', '1.2s')
    $(this).attr('data-wow-delay', (index + 1) * 0.8 + 's')
})


$('.indexnews .indexnewsBox ul li').each(function (index) {
    $(this).addClass('wow fadeInDown')
    $(this).attr('data-wow-duration', '1.2s')
    $(this).attr('data-wow-delay', (index + 1) * 0.8 + 's')
})



$('.ThreeSystemsBoxC').each(function (index) {
    $(this).addClass('wow fadeInUp')
    $(this).attr('data-wow-duration', '1s')
    $(this).attr('data-wow-delay', (index + 1) * 0.1 + 's')
})

$('.ThreeSystemsBoxR').each(function (index) {
    $(this).addClass('wow fadeInLeft')
    $(this).attr('data-wow-duration', '2.2s')
    $(this).attr('data-wow-delay', (index + 1) * 0.8 + 's')
})


$('.ThreeSystemsBoxJtL').each(function (index) {
    $(this).addClass('wow fadeInLeft')
    $(this).attr('data-wow-duration', '2.2s')
    $(this).attr('data-wow-delay', (index + 1) * 1.2 + 's')
})


$('.ThreeSystemsBoxText1').each(function (index) {
    $(this).addClass('wow fadeInLeft')
    $(this).attr('data-wow-duration', '2.2s')
    $(this).attr('data-wow-delay', (index + 1) * 0.8 + 's')
})


$('.ThreeSystemsBoxText2').each(function (index) {
    $(this).addClass('wow fadeInLeft')
    $(this).attr('data-wow-duration', '2.2s')
    $(this).attr('data-wow-delay', (index + 1) * 0.8 + 's')
}) 

$('.ThreeSystemsBoxText3').each(function (index) {
    $(this).addClass('wow fadeInLeft')
    $(this).attr('data-wow-duration', '2.2s')
    $(this).attr('data-wow-delay', (index + 1) * 0.8 + 's')
})


$('.ThreeSystemsBoxJtR').each(function (index) {
    $(this).addClass('wow fadeInLeft')
    $(this).attr('data-wow-duration', '2.2s')
    $(this).attr('data-wow-delay', (index + 1) * 0.8 + 's')
})


if (window.innerWidth > 980) {
    var ourcustomersBoxR = new Swiper('.ourcustomersBoxR .swiper-container', {
        slidesPerView: 6,
        slidesPerColumn: 2,
        spaceBetween: 30,
        pagination: {
            el: '.swiper-pagination',
            clickable: true,
        },
    });
}

if (window.innerWidth <= 980) {
    $('.GlobalMarketing .indexTitle h4').text('全域营销，数字化运营实现用户增长 ');

    var ourcustomersBoxR = new Swiper('.ourcustomersBoxR .swiper-container', {
        slidesPerView: 3,
        slidesPerColumn: 4,
        spaceBetween: 10,
        pagination: {
            el: '.swiper-pagination',
            clickable: true,
        },
    });
}



var tabsSwiper = new Swiper('.gallery-top ', {
    speed: 500,
    spaceBetween: 30,
    on: {
        slideChangeTransitionStart: function () {
            $(".enterprisemarketing .enterprisemarketingBox .enterprisemarketingR ul li.on").removeClass('on');
            $(".enterprisemarketing .enterprisemarketingBox .enterprisemarketingR ul li").eq(this.activeIndex).addClass('on');
        }
    }
})

$(".enterprisemarketing .enterprisemarketingBox .enterprisemarketingR ul li").on('click', function (e) {
    e.preventDefault()
    $(".enterprisemarketing .enterprisemarketingBox .enterprisemarketingR ul li.on").removeClass('on')
    $(this).addClass('on')
    tabsSwiper.slideTo($(this).index())
})

var banner = new Swiper('.banner .swiper-container');


 



// var myChart = echarts.init(document.getElementById('china-map'));
// var oBack = document.getElementById("back");

// var provinces = ['shanghai', 'hebei', 'shanxi', 'neimenggu', 'liaoning', 'jilin', 'heilongjiang', 'jiangsu', 'zhejiang', 'anhui', 'fujian', 'jiangxi', 'shandong', 'henan', 'hubei', 'hunan', 'guangdong', 'guangxi', 'hainan', 'sichuan', 'guizhou', 'yunnan', 'xizang', 'shanxi1', 'gansu', 'qinghai', 'ningxia', 'xinjiang', 'beijing', 'tianjin', 'chongqing', 'xianggang', 'aomen'];

// var provincesText = ['上海', '河北', '山西', '内蒙古', '辽宁', '吉林', '黑龙江', '江苏', '浙江', '安徽', '福建', '江西', '山东', '河南', '湖北', '湖南', '广东', '广西', '海南', '四川', '贵州', '云南', '西藏', '陕西', '甘肃', '青海', '宁夏', '新疆', '北京', '天津', '重庆', '香港', '澳门'];

// var seriesData = [{
//     name: '北京',
//     value: 100
// }, {
//     name: '天津',
//     value: 0
// }, {
//     name: '上海',
//     value: 60
// }, {
//     name: '重庆',
//     value: 0
// }, {
//     name: '河北',
//     value: 60
// }, {
//     name: '河南',
//     value: 60
// }, {
//     name: '云南',
//     value: 0
// }, {
//     name: '辽宁',
//     value: 0
// }, {
//     name: '黑龙江',
//     value: 0
// }, {
//     name: '湖南',
//     value: 60
// }, {
//     name: '安徽',
//     value: 0
// }, {
//     name: '山东',
//     value: 60
// }, {
//     name: '江苏',
//     value: 0
// }, {
//     name: '浙江',
//     value: 0
// }, {
//     name: '江西',
//     value: 0
// }, {
//     name: '湖北',
//     value: 60
// }, {
//     name: '广西',
//     value: 60
// }, {
//     name: '甘肃',
//     value: 0
// }, {
//     name: '山西',
//     value: 60
// }, {
//     name: '内蒙古',
//     value: 0
// }, {
//     name: '陕西',
//     value: 0
// }, {
//     name: '吉林',
//     value: 0
// }, {
//     name: '福建',
//     value: 0
// }, {
//     name: '贵州',
//     value: 0
// }, {
//     name: '广东',
//     value: 597
// }, {
//     name: '青海',
//     value: 0
// }, {
//     name: '西藏',
//     value: 0
// }, {
//     name: '四川',
//     value: 60
// }, {
//     name: '宁夏',
//     value: 0
// }, {
//     name: '海南',
//     value: 60
// }, {
//     name: '台湾',
//     value: 0
// }, {
//     name: '香港',
//     value: 0
// }, {
//     name: '澳门',
//     value: 0
// }];



// initEcharts("china", " ");

// // 初始化echarts
// function initEcharts(pName, Chinese_) {
//     var tmpSeriesData = pName === "china" ? seriesData : [];

//     var option = {
//         title: {
//             text: Chinese_ || pName,
//             left: 'center'
//         },

//         series: [
//             {
//                 name: Chinese_ || pName,
//                 type: 'map',
//                 mapType: pName,
//                 roam: false,//是否开启鼠标缩放和平移漫游
//                 data: tmpSeriesData,
//                 top: "0%",//组件距离容器的距离
//                 zoom: 1,
//                 selectedMode: 'single',

//                 label: {
//                     normal: {
//                         show: true,//显示省份标签
//                         textStyle: { color: "#333" }//省份标签字体颜色
//                     },
//                     emphasis: {//对应的鼠标悬浮效果
//                         show: true,
//                         textStyle: { color: "#fff" }
//                     }
//                 },
//                 itemStyle: {
//                     normal: {
//                         borderWidth: 0.5,//区域边框宽度
//                         borderColor: '#ccc',//区域边框颜色
//                         areaColor: "#fff",//区域颜色

//                     },

//                     emphasis: {
//                         borderWidth: .5,
//                         borderColor: '#fff',
//                         areaColor: "#e0402a",
//                     }
//                 },
//             }
//         ]

//     };

//     myChart.setOption(option);

// }


