|
|
@@ -6,25 +6,25 @@ $(function () {
|
|
|
|
|
|
// 商城点击切换
|
|
|
$('.section-bottom01>span.tab').on('click', function () {
|
|
|
- let index = $(this).index();
|
|
|
+ var index = $(this).index();
|
|
|
$(this).addClass('active').siblings().removeClass('active');
|
|
|
$('.section-toggle01').eq(index).addClass('show').siblings().removeClass('show');
|
|
|
})
|
|
|
// u创
|
|
|
$('.section-bottom02>span.tab').on('click', function () {
|
|
|
- let index = $(this).index();
|
|
|
+ var index = $(this).index();
|
|
|
$(this).addClass('active').siblings().removeClass('active');
|
|
|
$('.section-process').eq(index).addClass('show').siblings().removeClass('show');
|
|
|
$('.c_case').eq(index).addClass('show').siblings().removeClass('show');
|
|
|
})
|
|
|
$('.c_tab>span.c_toggle').on('click', function () {
|
|
|
- let index = $(this).index();
|
|
|
+ var index = $(this).index();
|
|
|
$(this).addClass('active').siblings().removeClass('active');
|
|
|
$('.c_item_list').eq(index).addClass('show').siblings().removeClass('show');
|
|
|
})
|
|
|
// 成熟方案
|
|
|
$('.case_indus_list').on('click', function () {
|
|
|
- let index = $(this).index();
|
|
|
+ var index = $(this).index();
|
|
|
$(this).addClass('active').siblings().removeClass('active');
|
|
|
$('.c_case_content').eq(index).addClass('show').siblings().removeClass('show');
|
|
|
})
|
|
|
@@ -33,14 +33,33 @@ $(function () {
|
|
|
$(this).addClass('active').siblings().removeClass('active');
|
|
|
})
|
|
|
// 滚动效果
|
|
|
- function AutoScroll(obj){
|
|
|
- $(obj).find(".scroll:first").animate({
|
|
|
- marginTop:"-74px"
|
|
|
- },500,function(){
|
|
|
- $(this).css({marginTop:"0px"}).find("div.scroll .item-list:first").appendTo(this);
|
|
|
- });
|
|
|
- }
|
|
|
- $(document).ready(function(){
|
|
|
- setInterval('AutoScroll(".dynamic-scroll")',3000);
|
|
|
- });
|
|
|
+ // function AutoScroll(obj){
|
|
|
+ // $(obj).find(".scroll:first").animate({
|
|
|
+ // marginTop:"-74px"
|
|
|
+ // },500,function(){
|
|
|
+ // $(this).css({marginTop:"0px"}).find("div.scroll .item-list:first").appendTo(this);
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // $(document).ready(function(){
|
|
|
+ // setInterval('AutoScroll(".dynamic-scroll")',3000);
|
|
|
+ // });
|
|
|
+ // 返回页面顶部
|
|
|
+ $(window).on('scroll',function(){
|
|
|
+ var $goTop=$('.go-top');
|
|
|
+ if($(this).scrollTop()>0){
|
|
|
+ $goTop.css("display","block");
|
|
|
+
|
|
|
+ }else{
|
|
|
+ $goTop.css("display","none");
|
|
|
+ }
|
|
|
+ })
|
|
|
+ $('.go-top').click(function(e){
|
|
|
+ e.preventDefault();
|
|
|
+ if ($('html').scrollTop()) {
|
|
|
+ $('html').animate({ scrollTop: 0 }, 1000);
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ $('body').animate({ scrollTop: 0 }, 1000);
|
|
|
+ return false;
|
|
|
+ })
|
|
|
});
|