From 3c158da8e84b078d6cc481ed27bb1b20b920e5e1 Mon Sep 17 00:00:00 2001 From: yvan.ni <765199919@qq.com> Date: Mon, 20 Jul 2020 17:14:51 +0800 Subject: [PATCH] 广告滚动的时候,要有标题 --- components/diy_advertising/diy_advertising.wxml | 10 ++++++++-- components/diy_advertising/diy_advertising.wxss | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/components/diy_advertising/diy_advertising.wxml b/components/diy_advertising/diy_advertising.wxml index fe1a1ae..649845c 100644 --- a/components/diy_advertising/diy_advertising.wxml +++ b/components/diy_advertising/diy_advertising.wxml @@ -410,11 +410,17 @@ - + + + {{item.title}} + - + + + {{item.title}} + diff --git a/components/diy_advertising/diy_advertising.wxss b/components/diy_advertising/diy_advertising.wxss index 72e1551..31c43fa 100644 --- a/components/diy_advertising/diy_advertising.wxss +++ b/components/diy_advertising/diy_advertising.wxss @@ -331,3 +331,5 @@ } .clicle{ width: 20rpx; height: 20rpx} .dots{ position: absolute; bottom: 10rpx; width: 100%; display: flex; justify-content: center} +.title{ position: absolute; left: 0; bottom: 0; background-color: rgba(6,6,6,0.5); font-size: 30rpx; + text-indent: 10rpx;width: 100%; height: 50rpx; line-height: 50rpx; color: #fff} -- libgit2 0.21.4