bike页面更改1
This commit is contained in:
parent
0044180bb7
commit
5676c2e8f1
|
|
@ -23,14 +23,10 @@ useHead({
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
// 延迟加载以确保DOM完全渲染
|
// 延迟加载以确保DOM完全渲染
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
// 检查jQuery是否加载
|
|
||||||
if (typeof $ === 'undefined') {
|
|
||||||
console.error('jQuery未加载');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 设置首页巨幕高度
|
// 设置首页巨幕高度
|
||||||
$('.index-giant').height($(window).height());
|
// $('.index-giant').height($(window).height());
|
||||||
|
|
||||||
// 解决方案切换功能
|
// 解决方案切换功能
|
||||||
$('.index-solut ul li').on('click', function () {
|
$('.index-solut ul li').on('click', function () {
|
||||||
|
|
@ -53,48 +49,6 @@ onMounted(() => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// 左侧栏动画功能
|
|
||||||
(function offBar() {
|
|
||||||
let off = true;
|
|
||||||
$('.left-bar-1').on('click', function () {
|
|
||||||
if (off) {
|
|
||||||
$('.left-bar').animate({'right': 0}, "1000");
|
|
||||||
off = false;
|
|
||||||
} else {
|
|
||||||
$('.left-bar').animate({'right': '-32px'}, "slow");
|
|
||||||
off = true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
})();
|
|
||||||
|
|
||||||
// 微信二维码悬停效果
|
|
||||||
$('.left-bar-2 a.wecate').hover(function () {
|
|
||||||
$('.left-bar-3').show();
|
|
||||||
}, function () {
|
|
||||||
$('.left-bar-3').hide();
|
|
||||||
});
|
|
||||||
|
|
||||||
// 腾讯QQ悬停效果
|
|
||||||
$('._tencent').hover(function () {
|
|
||||||
$('.left-bar-4').show();
|
|
||||||
}, function () {
|
|
||||||
$('.left-bar-4').hide();
|
|
||||||
});
|
|
||||||
|
|
||||||
// 电话悬停效果
|
|
||||||
$('._phone').hover(function () {
|
|
||||||
$('.left-bar-5').show();
|
|
||||||
}, function () {
|
|
||||||
$('.left-bar-5').hide();
|
|
||||||
});
|
|
||||||
|
|
||||||
// 锚点滚动功能
|
|
||||||
$(".miaodian a").click(function () {
|
|
||||||
$("body").animate({
|
|
||||||
scrollTop: 3550
|
|
||||||
}, 1500);
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
|
|
||||||
// 初始化轮播图
|
// 初始化轮播图
|
||||||
initBanner();
|
initBanner();
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user