Commit 219592058d404b5d2e85bfbc5f828b36861062eb
1 parent
b3e25619
商城首页广告修改
Showing
2 changed files
with
4 additions
and
4 deletions
pages/index/index/index.wxml
| ... | ... | @@ -27,7 +27,7 @@ |
| 27 | 27 | <swiper autoplay="true" class="swiper_box" duration="1000" interval="3000" vertical=""bindchange="bannerSwiperChange"> |
| 28 | 28 | <swiper-item wx:for="{{banner}}" wx:key="banner"> |
| 29 | 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 | 31 | </view> |
| 32 | 32 | </swiper-item> |
| 33 | 33 | </swiper> | ... | ... |
pages/index/index/index.wxss
| ... | ... | @@ -61,8 +61,8 @@ left: 10%; |
| 61 | 61 | |
| 62 | 62 | .swiper_box { |
| 63 | 63 | width: 100%; |
| 64 | - | |
| 65 | -} | |
| 64 | + | |
| 65 | +} | |
| 66 | 66 | .s_prom{ |
| 67 | 67 | width: 100%; |
| 68 | 68 | height: 340rpx; |
| ... | ... | @@ -342,7 +342,7 @@ line-height: 25rpx; |
| 342 | 342 | width: 95%; |
| 343 | 343 | margin: auto; |
| 344 | 344 | border-radius: 10rpx; |
| 345 | -height: 380rpx; | |
| 345 | + | |
| 346 | 346 | } |
| 347 | 347 | .xc-hook{ |
| 348 | 348 | width: 52rpx; | ... | ... |