Commit 219592058d404b5d2e85bfbc5f828b36861062eb

Authored by 后端开发-许程
1 parent b3e25619

商城首页广告修改

pages/index/index/index.wxml
@@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
27 <swiper autoplay="true" class="swiper_box" duration="1000" interval="3000" vertical=""bindchange="bannerSwiperChange"> 27 <swiper autoplay="true" class="swiper_box" duration="1000" interval="3000" vertical=""bindchange="bannerSwiperChange">
28 <swiper-item wx:for="{{banner}}" wx:key="banner"> 28 <swiper-item wx:for="{{banner}}" wx:key="banner">
29 <view url="{{item.media_link}}" class="slide-image-frame"> 29 <view url="{{item.media_link}}" class="slide-image-frame">
30 - <image class="slide-image" src="{{item.ad_code}}" lazy-load="true" binderror="bind_bnerr" data-errorimg="banner[{{index}}].ad_code"></image> 30 + <image class="slide-image"mode="widthFix" src="{{item.ad_code}}" lazy-load="true" binderror="bind_bnerr" data-errorimg="banner[{{index}}].ad_code"></image>
31 </view> 31 </view>
32 </swiper-item> 32 </swiper-item>
33 </swiper> 33 </swiper>
pages/index/index/index.wxss
@@ -61,8 +61,8 @@ left: 10%; @@ -61,8 +61,8 @@ left: 10%;
61 61
62 .swiper_box { 62 .swiper_box {
63 width: 100%; 63 width: 100%;
64 -  
65 -} 64 +
  65 +}
66 .s_prom{ 66 .s_prom{
67 width: 100%; 67 width: 100%;
68 height: 340rpx; 68 height: 340rpx;
@@ -342,7 +342,7 @@ line-height: 25rpx; @@ -342,7 +342,7 @@ line-height: 25rpx;
342 width: 95%; 342 width: 95%;
343 margin: auto; 343 margin: auto;
344 border-radius: 10rpx; 344 border-radius: 10rpx;
345 -height: 380rpx; 345 +
346 } 346 }
347 .xc-hook{ 347 .xc-hook{
348 width: 52rpx; 348 width: 52rpx;