Commit 6817d30e authored by 俞嘉婷's avatar 俞嘉婷

feat: 活动背景图可配处理

parent 7c37b203
......@@ -2,7 +2,7 @@
.act_root {
background-color: #FAFFEE;
background-image: url("https://yun.duiba.com.cn/polaris/actBg.5a666aec020bafc3f10a1a967a564c792ccbef72.jpg");
// background-image: url("https://yun.duiba.com.cn/polaris/actBg.5a666aec020bafc3f10a1a967a564c792ccbef72.jpg");
background-size: 750rpx 1624rpx;
background-repeat: no-repeat;
......
......@@ -9,6 +9,7 @@ ComponentWithStore({
fields: {
showPhoneBtn: () => !store.homeInfo.mobile,
activityInfo: () => store.activityInfo,
homeInfo: () => store.homeInfo,
},
actions: {},
},
......
<!--pages/activity/activity.wxml-->
<view class="act_root">
<view class="act_root" style="background-image: url({{homeInfo.bgImg}})">
<swiper class="act_swiper" autoplay>
<swiper-item class="act_swiper_item" wx:for="{{activityInfo.topBanners}}" wx:key="*this">
<image class="swiper_item_img" src="{{item}}" lazy-load/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment