Commit 3c158da8e84b078d6cc481ed27bb1b20b920e5e1
1 parent
4912d933
广告滚动的时候,要有标题
Showing
2 changed files
with
10 additions
and
2 deletions
components/diy_advertising/diy_advertising.wxml
@@ -410,11 +410,17 @@ | @@ -410,11 +410,17 @@ | ||
410 | <block wx:for="{{object.data}}" wx:for-index="index" > | 410 | <block wx:for="{{object.data}}" wx:for-index="index" > |
411 | 411 | ||
412 | <navigator url="{{item.wxapp_imgurl}}" class="s1_gk_a1" wx:if="{{g_filter.has_char(item.wxapp_imgurl,'plugin')>=0}}"> | 412 | <navigator url="{{item.wxapp_imgurl}}" class="s1_gk_a1" wx:if="{{g_filter.has_char(item.wxapp_imgurl,'plugin')>=0}}"> |
413 | - <swiper-item><image src="{{item.src}}" bindload="imageLoad" data-index="{{index}}" class="slide-image" mode="widthFix" /></swiper-item> | 413 | + <swiper-item> |
414 | + <image src="{{item.src}}" bindload="imageLoad" data-index="{{index}}" class="slide-image" mode="widthFix" /> | ||
415 | + <view class="title">{{item.title}}</view> | ||
416 | + </swiper-item> | ||
414 | </navigator> | 417 | </navigator> |
415 | 418 | ||
416 | <view data-url="{{item.wxapp_imgurl}}" class="s1_gk_a1" bindtap="go_url" wx:else> | 419 | <view data-url="{{item.wxapp_imgurl}}" class="s1_gk_a1" bindtap="go_url" wx:else> |
417 | - <swiper-item><image src="{{item.src}}" bindload="imageLoad" data-index="{{index}}" class="slide-image" mode="widthFix" /></swiper-item> | 420 | + <swiper-item> |
421 | + <image src="{{item.src}}" bindload="imageLoad" data-index="{{index}}" class="slide-image" mode="widthFix" /> | ||
422 | + <view class="title">{{item.title}}</view> | ||
423 | + </swiper-item> | ||
418 | </view> | 424 | </view> |
419 | 425 | ||
420 | </block> | 426 | </block> |
components/diy_advertising/diy_advertising.wxss
@@ -331,3 +331,5 @@ | @@ -331,3 +331,5 @@ | ||
331 | } | 331 | } |
332 | .clicle{ width: 20rpx; height: 20rpx} | 332 | .clicle{ width: 20rpx; height: 20rpx} |
333 | .dots{ position: absolute; bottom: 10rpx; width: 100%; display: flex; justify-content: center} | 333 | .dots{ position: absolute; bottom: 10rpx; width: 100%; display: flex; justify-content: center} |
334 | +.title{ position: absolute; left: 0; bottom: 0; background-color: rgba(6,6,6,0.5); font-size: 30rpx; | ||
335 | + text-indent: 10rpx;width: 100%; height: 50rpx; line-height: 50rpx; color: #fff} |