精修页面布局-处理样式冲突导致的bug
This commit is contained in:
parent
9e7652dc78
commit
c3d1d735e8
|
|
@ -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() {
|
|||
|
||||
<!-- 我们的解决方案 -->
|
||||
<div class="index-solut">
|
||||
<h2>我们的解决方案</h2>
|
||||
<h2 style="margin: 0;">我们的解决方案</h2>
|
||||
<p>通过APP+单车+智能锁实现GPS定位实时找车、扫码快速开锁用车、预约用车、实时计费等功能。</p>
|
||||
<ul>
|
||||
<li class="index-solut-li">APP</li>
|
||||
|
|
@ -404,10 +404,7 @@ function initBanner() {
|
|||
</template>
|
||||
|
||||
<style scoped>
|
||||
/* 自定义动画效果 */
|
||||
.hover\:shadow-lg:hover {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
|
||||
/* 响应式字体大小 */
|
||||
@media (max-width: 640px) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user