企业级数字化系统定制服务商
//基于品牌需求定制业务系统,并融合云策PASS产品,为客户提供端到端数字化系统方案
// // {
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+=`