电话
400-888-8888
13888888888
13888888888
微信
 
          微信咨询
手机站
 , 400);
    }, function() {
        $(this).children('div').stop().animate({
            right: '90px',
            opacity: 0
        }, 400, function() {
            $(this).hide()
        });
    })
    $('.y-kefu-box01 .kf-close-btn').on('click', function() {
        $(this).parent().animate({
            left: '55px'
        }, 400, function() {
            $(this).hide().next().show().animate({
                left: '0'
            }, 400);
        });
    })
    $('#hideStatus').on('click', function() {
        $(this).animate({
            left: '55px'
        }, 400, function() {
            $(this).hide().prev().show().animate({
                left: '0'
            }, 400);
        });
    })
    //返回顶部
    var yWin = $(window).scrollTop();
    var isShow = true;
    $(window).scroll(function() {
        yWin = $(window).scrollTop();
        console.log(yWin);
        if (yWin > 500) {
            if (isShow) {
                isShow = false;
                $('#yBackTop').show().animate({
                    left: '0'
                }, 400);
            }
        }
        if (yWin < 500) {
            if (!isShow) {
                isShow = true;
                $('#yBackTop').animate({
                    left: '55px'
                }, 400, function() {
                    $(this).hide();
                });
            }
        }
    })
    $('#yBackTop').on('click', function() {
        $('html,body').animate({
            'scrollTop': 0
        }, 800);
    })
, 400);
    }, function() {
        $(this).children('div').stop().animate({
            right: '90px',
            opacity: 0
        }, 400, function() {
            $(this).hide()
        });
    })
    $('.y-kefu-box01 .kf-close-btn').on('click', function() {
        $(this).parent().animate({
            left: '55px'
        }, 400, function() {
            $(this).hide().next().show().animate({
                left: '0'
            }, 400);
        });
    })
    $('#hideStatus').on('click', function() {
        $(this).animate({
            left: '55px'
        }, 400, function() {
            $(this).hide().prev().show().animate({
                left: '0'
            }, 400);
        });
    })
    //返回顶部
    var yWin = $(window).scrollTop();
    var isShow = true;
    $(window).scroll(function() {
        yWin = $(window).scrollTop();
        console.log(yWin);
        if (yWin > 500) {
            if (isShow) {
                isShow = false;
                $('#yBackTop').show().animate({
                    left: '0'
                }, 400);
            }
        }
        if (yWin < 500) {
            if (!isShow) {
                isShow = true;
                $('#yBackTop').animate({
                    left: '55px'
                }, 400, function() {
                    $(this).hide();
                });
            }
        }
    })
    $('#yBackTop').on('click', function() {
        $('html,body').animate({
            'scrollTop': 0
        }, 800);
    })