响应式完成

master
Lee 2022-10-09 11:15:33 +08:00
parent a741cc6f18
commit 78c5064d76
2 changed files with 10 additions and 14 deletions

View File

@ -1863,11 +1863,11 @@
.market-list::-webkit-scrollbar { .market-list::-webkit-scrollbar {
width: 4px; width: 4px;
height: 100%; height: 100%;
background-color: rgba(14, 53, 127, .1); background-color: rgba(153, 153, 153, .1);
} }
.market-list::-webkit-scrollbar-thumb { .market-list::-webkit-scrollbar-thumb {
background-color: rgba(14, 53, 127, .7); background-color: rgba(153, 153, 153, .7);
} }
.market-item { .market-item {
@ -3038,7 +3038,7 @@
.index-service .right-service>a { .index-service .right-service>a {
min-height: 1.7rem; min-height: 1.7rem;
padding: .3rem .36rem; padding: .3rem;
} }
.index-service .right-service>a>p { .index-service .right-service>a>p {
@ -4029,8 +4029,13 @@
.market-activity { .market-activity {
height: auto; height: auto;
} }
.market-swiper .swiper-wrapper{
display: block;
}
.market-swiper .swiper-slide { .market-swiper .swiper-slide {
display: block;
height: 3.5rem; height: 3.5rem;
margin-bottom: .3rem; margin-bottom: .3rem;
} }

View File

@ -233,16 +233,7 @@ $(function(){
// 友邻市集活动切换 // 友邻市集活动切换
if($('.market-swiper').length){ if($('.market-swiper').length){
if(window.innerWidth <= 960){ if(window.innerWidth > 960){
var marketSwiper = new Swiper('.market-swiper',{
direction: 'vertical', //向上
slidesPerView: "auto",
pagination: {
el: '.market-swiper .swiper-pagination',
clickable :true,
},
})
}else{
var marketSwiper = new Swiper('.market-swiper',{ var marketSwiper = new Swiper('.market-swiper',{
loop:true,//开启循环播放 loop:true,//开启循环播放
autoplay: {//开启自动播放 autoplay: {//开启自动播放