Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
junlebao-milk-20240619
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
junlebao-milk-20240619
Commits
6817d30e
Commit
6817d30e
authored
Jun 27, 2024
by
俞嘉婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 活动背景图可配处理
parent
7c37b203
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
activity.less
miniprogram/pages/activity/activity.less
+1
-1
activity.ts
miniprogram/pages/activity/activity.ts
+1
-0
activity.wxml
miniprogram/pages/activity/activity.wxml
+1
-1
No files found.
miniprogram/pages/activity/activity.less
View file @
6817d30e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
.act_root {
.act_root {
background-color: #FAFFEE;
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-size: 750rpx 1624rpx;
background-repeat: no-repeat;
background-repeat: no-repeat;
...
...
miniprogram/pages/activity/activity.ts
View file @
6817d30e
...
@@ -9,6 +9,7 @@ ComponentWithStore({
...
@@ -9,6 +9,7 @@ ComponentWithStore({
fields
:
{
fields
:
{
showPhoneBtn
:
()
=>
!
store
.
homeInfo
.
mobile
,
showPhoneBtn
:
()
=>
!
store
.
homeInfo
.
mobile
,
activityInfo
:
()
=>
store
.
activityInfo
,
activityInfo
:
()
=>
store
.
activityInfo
,
homeInfo
:
()
=>
store
.
homeInfo
,
},
},
actions
:
{},
actions
:
{},
},
},
...
...
miniprogram/pages/activity/activity.wxml
View file @
6817d30e
<!--pages/activity/activity.wxml-->
<!--pages/activity/activity.wxml-->
<view class="act_root">
<view class="act_root"
style="background-image: url({{homeInfo.bgImg}})"
>
<swiper class="act_swiper" autoplay>
<swiper class="act_swiper" autoplay>
<swiper-item class="act_swiper_item" wx:for="{{activityInfo.topBanners}}" wx:key="*this">
<swiper-item class="act_swiper_item" wx:for="{{activityInfo.topBanners}}" wx:key="*this">
<image class="swiper_item_img" src="{{item}}" lazy-load/>
<image class="swiper_item_img" src="{{item}}" lazy-load/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment