Commit d730d722723a15ba20ab851728ff835780332631
1 parent
9760a5dc
更新积分广告图显示不全问题
Showing
2 changed files
with
17 additions
and
7 deletions
packageA/pages/checkin/checkin.wxml
| ... | ... | @@ -79,7 +79,7 @@ |
| 79 | 79 | <view class="date"> |
| 80 | 80 | <block wx:for="{{dateArr}}" wx:for-index="index" wx:for-item="item" wx:key="key"> |
| 81 | 81 | <!-- <view style="{{index ==0?'margin-left:calc(100%/7 * ' + firstDay + ');':''}}width:calc(100%/7);line-height:80rpx;" class="{{index+1==day?'today':''}} {{index+1==day&&isClock?'clockOn':''}}" ><view class="day">{{item}}</view></view> --> |
| 82 | - <view style="{{index ==0?'margin-left:calc(100%/7 * 0);':''}}width:calc(100%/7);line-height:80rpx;" class="{{item.isCheckIn ? 'active':''}} {{res.curbqdaynum&&item.isBq ? 'bq':''}}" bindtap="clickDay" data-day="{{item.num}}"> | |
| 82 | + <view style="width:calc(100% / 7) ; line-height: 80rpx;{{index ==0?'margin-left:calc(100%/7 * 0);':''}}" class="{{item.isCheckIn ? 'active':''}} {{res.curbqdaynum&&item.isBq ? 'bq':''}}" bindtap="clickDay" data-day="{{item.num}}"> | |
| 83 | 83 | <view class="day">{{item.num}}</view> |
| 84 | 84 | </view> |
| 85 | 85 | </block> |
| ... | ... | @@ -96,14 +96,15 @@ |
| 96 | 96 | <swiper class="swiper" circular="true" autoplay="true" indicator-dots="true" interval="2500"> |
| 97 | 97 | <block wx:for="{{ad_data}}"> |
| 98 | 98 | <navigator url="{{item.ad_weapplink}}" wx:if="{{g_filter.has_char(item.ad_weapplink,'plugin')>=0}}"> |
| 99 | - <swiper-item> | |
| 100 | - <image src="{{item.ad_code}}" data-index="{{index}}" class="slide-image" mode="widthFix" lazy-load="true" /> | |
| 99 | + <swiper-item class="swiper-item"> | |
| 100 | + <!-- mode="widthFix" --> | |
| 101 | + <image src="{{item.ad_code}}" data-index="{{index}}" class="slide-image" lazy-load="true" /> | |
| 101 | 102 | </swiper-item> |
| 102 | 103 | </navigator> |
| 103 | 104 | |
| 104 | 105 | <view data-url="{{item.ad_weapplink}}" wx:else bindtap="go_url"> |
| 105 | - <swiper-item> | |
| 106 | - <image src="{{item.ad_code}}" class="slide-image" mode="widthFix" lazy-load="true" /> | |
| 106 | + <swiper-item class="swiper-item"> | |
| 107 | + <image src="{{item.ad_code}}" class="slide-image" lazy-load="true" /> | |
| 107 | 108 | </swiper-item> |
| 108 | 109 | </view> |
| 109 | 110 | </block> | ... | ... |
packageA/pages/checkin/checkin.wxss
| ... | ... | @@ -192,7 +192,7 @@ page, |
| 192 | 192 | |
| 193 | 193 | |
| 194 | 194 | .jfbuy-container { |
| 195 | - padding: 60rpx 40rpx 40rpx; | |
| 195 | + padding: 60rpx 25rpx 40rpx; | |
| 196 | 196 | } |
| 197 | 197 | .jfbuy { |
| 198 | 198 | /* border: 2rpx solid black; */ |
| ... | ... | @@ -394,4 +394,13 @@ page, |
| 394 | 394 | } |
| 395 | 395 | .pop_up_no .close_img{ |
| 396 | 396 | width:60rpx; height:60rpx;position:absolute; right:-15px; top:-15rpx; |
| 397 | - } | |
| 398 | 397 | \ No newline at end of file |
| 398 | + } | |
| 399 | + .swiper { | |
| 400 | + width: 700rpx; | |
| 401 | + height: 300rpx; | |
| 402 | + /* background: #cccc; */ | |
| 403 | + } | |
| 404 | + .slide-image { | |
| 405 | + width: 100%; | |
| 406 | + height: 100%; | |
| 407 | + } | ... | ... |