diff --git a/app/pages/sharedSolutions/bike.vue b/app/pages/sharedSolutions/bike.vue index 236c5b1..23d9d58 100644 --- a/app/pages/sharedSolutions/bike.vue +++ b/app/pages/sharedSolutions/bike.vue @@ -117,7 +117,7 @@ function initBanner() { const $picplayer = $('#picplayer'); const $piccontent = $('#piccontent'); - + if ($picplayer.length === 0 || $piccontent.length === 0) { console.error('轮播图容器未找到'); return; @@ -134,7 +134,7 @@ function initBanner() { // 设置按钮点击事件 pics.forEach((pic, index) => { $(`#picbtn${index}`).data('index', index); - $(`#picbtn${index}`).off('click').on('click', function() { + $(`#picbtn${index}`).off('click').on('click', function () { setSelectedItem(index); }); }); @@ -145,15 +145,15 @@ function initBanner() { function setSelectedItem(index) { selectedIndex = index; clearInterval(playID); - + // 隐藏当前图片 $piccontent.find('img').fadeOut('fast'); - + // 显示选中图片 $(`#picitem${index}`).fadeIn('slow'); - + // 更新按钮状态 - $('#picbtns .caption').each(function(i) { + $('#picbtns .caption').each(function (i) { if (i === index) { $(this).find('span').css('backgroundColor', '#485766'); } else { @@ -193,7 +193,7 @@ function initBanner() {
通过APP+单车+智能锁实现GPS定位实时找车、扫码快速开锁用车、预约用车、实时计费等功能。