首页
(current)
全域营销云
{ if (t.id == 1) { item = t; } }); } // SeoUpdate(item.title, item.key_word, item.dec); }, }); $(function () { //编写一个可以让图片自动循环滚动的函数(弄一个定时器,回调函数里设置它的marginLeft) var timer var offset = 0 //待会用这个变量设置它的marginLeft (js代码可以不写分号的,我是懒得写了) function autoRun(){ timer = setInterval(function () { offset += -1 //这是marginLeft if(offset <= -1490){ //滚动了四张图片 接着滚动 offset = 0 } $(".imgList").css({ marginLeft:offset }) },10) } autoRun()//滚动起来 //监听li的移入 移出事件 $(".imgList div").hover(function () { //鼠标指针放上面 不让ta滚动(停掉这个定时器) clearInterval(timer) //鼠标指针没有放上面的图片 给他们一个黑色的背景 这样显得选中的这个亮 $(this).siblings().fadeTo(120,0.33) //当前的这个图片亮 $(this).fadeTo(120,1) },function () { autoRun() //滚动 $(".imgList div").fadeTo(120,1) //1-->全亮 }) }) let widths=document.body.clientWidth; //轮播图数据 // $.ajax({ // url: "https://office-web-api.gymooit.cn/v1/app/Banner", // type: "GET", // // fileElementId: "doc-form-file", // dataType: "json", // data: {}, // success: function (data) { // let htmlContent=`` // let u='https://gymoo-project-cdn.oss-cn-shenzhen.aliyuncs.com/'; // data.result.forEach((item,index)=>{ // if(item.show_type==1){ // if(widths>778){ // htmlContent+=`
//
//
//
企业级数字化系统定制服务商
//
基于品牌需求定制业务系统,并融合云策PASS产品,为客户提供端到端数字化系统方案
//
获取方案
//
//
` // }else if(widths<778){ // htmlContent+=`
//
//
//
企业级数字化系统定制服务商
//
基于品牌需求定制业务系统,并融合云策PASS产品,为客户提供端到端数字化系统方案
//
获取方案
//
//
` // } // } // }) // if(widths>778){ // $('.swiperList-pc').html(htmlContent); // }else{ // $('.swiperList-h5').html(htmlContent); // } // }, // }); var mySwiper = new Swiper('.swiper-container1', { // direction: 'vertical', // 垂直切换选项 // autoplay: true, //等同于以下设置 loop: false, // 循环模式选项 // 如果需要分页器 // 如果需要分页器 pagination: { el: '.swiper-pagination1', }, // pagination: '.swiper-pagination1', }) // 关于我们/友情链接/联系电话/公司地址 // $.ajax({ // url: "https://office-web-api.gymooit.cn/v1/app/Links", // type: "GET", // // fileElementId: "doc-form-file", // dataType: "json", // data: {}, // success: function (data) { // let htmlContent=`
友情链接:
`; // data.result.forEach(item=>{ // htmlContent+=`
${item.name}
` // }) // $('.linkList').html(htmlContent); // }, // }); //最热资讯 // $.ajax({ // url: "https://office-web-api.gymooit.cn/v1/app/ArticleRecommend", // type: "GET", // // fileElementId: "doc-form-file", // dataType: "json", // data: { // page_index:1, // page_size:3, // recommend_type: 1,//推荐 // }, // success: function (data) { // let htmlContent=``; // data.result.data.forEach((item,index) => { // let time=item.create_time.split(' ')[0]; // let t=time.split('-'); // let y=t[1]; // let r=t[2]; // if(widths>778){ // htmlContent+=`
//
//
//
[${y}-${r}] ${item.title}
//
//
` // } // if(widths<778 && index===0){ // htmlContent=`
//
//
//
[${y}-${r}] ${item.title}
//
//
` // } // }); // $('.realinfo-new-pc').html(htmlContent); // }, // }); //最新资讯 // $.ajax({ // url: "https://office-web-api.gymooit.cn/v1/app/ActivityIndex", // type: "GET", // // fileElementId: "doc-form-file", // dataType: "json", // data: { // type: 1,//最新 // }, // success: function (data) { // let htmlContent=``; // data.result.forEach((item,index) => { // let time=item.create_time.split(' ')[0]; // let t=time.split('-'); // let y=t[1]; // let r=t[2]; // if(widths>778){ // htmlContent+=`
//
//
//
[${y}-${r}] ${item.title}
//
//
` // } // if(widths<778 && index===0){ // htmlContent=`
//
//
//
[${y}-${r}] ${item.title}
//
//
` // } // }); // $('.realinfo-recommend').html(htmlContent); // }, // }); console.log($(window).scrollTop(), "Kais"); var scrollTop = $(window).scrollTop(); var expanded = $('.navbar-toggler').attr('aria-expanded'); // if (scrollTop > 80) { // if (expanded === 'true') { // $('.header').css('background', '#fff') // } else { // $('.header').css('background', '#141414') // $('.nav-link').removeClass('ggoos'); // $('.sangang').attr("src", "https://www.jmyunke.com/static/assets/images/ic_three.png"); // } // } else if (scrollTop <= 80) { // if (expanded === 'true') { // $('.header').css('background', '#fff') // } else { // $('.header').css('background', 'transparent') // $('.nav-link').addClass('ggoos'); // $('.sangang').attr("src", "../static/assets/images/home2/head-san.png") // } // } let a = $("#demo .carousel-item"); a.first().addClass("active"); // a.each(function(){ // $(this).first().addClass("active"); // }); // console.log(a[0],1111111); // [0].addClass("active"); //加载头部页面 // $('.header-page').load('header.html'); //加载底部页面 // $('.footer-page').load('footer.html'); //控制客服热线显示隐藏 // $('.salesBtn1').mouseenter(function () { // $('.salesBtnMenu1').addClass('showMenu'); // }) // $('.salesBtnMenu1').mouseleave(function () { // $(this).removeClass('showMenu').addClass('hideMenu') // }) $(".salesBtn2").click(function () { if ($(this).siblings().hasClass("showMenu")) { $(this).siblings().removeClass("showMenu"); console.log("1") } else { $(this).siblings().addClass("showMenu"); console.log(2) } }) //填入大客户案例按钮文字 // setTimeout(function () { // var paginations = $('.big-client-case .swiper-pagination-bullet'); // //swiper会多两个dom节点需要过滤下 // var paginationsText = $('.big-client-case .swiper-slide').not('.swiper-slide-duplicate').find('.case-title'); // for (var i = 0; i < paginations.length; i++) { // var text = paginationsText[i].innerText // paginations[i].innerText = text; // } // }, 100) //每次页面刷新时判断是不是在最顶部 是的话header背景才变为透明 不加setTimeout获取不到dom setTimeout(function () { var scrollTop2 = $(window).scrollTop(); if (scrollTop2 <= 80) { $('.header').addClass('transparant') console.log($('.header'), 'header') } else { $('.header').removeClass('transparant') } }, 20) //控制header背景色变化 做截流处理 var canrun = true; $(window).scroll(function () { if (canrun) { canrun = false; setTimeout(function () { //减掉header高度80得到距离顶部的高度 var scrollTop = $(window).scrollTop(); var expanded = $('.navbar-toggler').attr('aria-expanded'); if (scrollTop > 80) { // if (expanded === 'true') { // $('.header').css('background', '#fff') // } else { // $('.header').css('background', '#141414') // $('.nav-link').removeClass('ggoos'); // $('.sangang').attr("src", "https://www.jmyunke.com/static/assets/images/ic_three.png"); // } // } else if (scrollTop <= 80) { // if (expanded === 'true') { // $('.header').css('background', '#fff') // } else { // $('.header').css('background', 'transparent') // $('.nav-link').addClass('ggoos'); // $('.sangang').attr("src", "../static/assets/images/home2/head-san.png") // } } console.log(scrollTop, 'scroll index') canrun = true; }, 200) } }) $('.navbar-toggler').click(function () { //点击换图标 }) }); $(window).resize(function () { //填入大客户案例按钮文字 // setTimeout(function () { // var paginations = $('.big-client-case .swiper-pagination-bullet'); // //swiper会多两个dom节点需要过滤下 // var paginationsText = $('.big-client-case .swiper-slide').not('.swiper-slide-duplicate').find('.case-title'); // for (var i = 0; i < paginations.length; i++) { // var text = paginationsText[i].innerText // paginations[i].innerText = text; // } // }, 100) }); $("#fun").click(function () { var api = $53.createApi(); api.push('cmd', 'kfclient'); api.push('type', 'popup'); api.query(); })