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
6e840735
Commit
6e840735
authored
Jun 27, 2024
by
俞嘉婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 首页逻辑完善
parent
0cb03f7b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
index.less
miniprogram/pages/index/index.less
+2
-2
index.wxml
miniprogram/pages/index/index.wxml
+2
-1
util.ts
miniprogram/utils/util.ts
+1
-1
No files found.
miniprogram/pages/index/index.less
View file @
6e840735
...
...
@@ -144,8 +144,8 @@
margin-top: 18rpx;
.act_item {
width:
686rpx
;
height: 420rpx;
width:
100%
;
//
height: 420rpx;
margin-bottom: 20rpx;
}
}
...
...
miniprogram/pages/index/index.wxml
View file @
6e840735
...
...
@@ -29,11 +29,12 @@
<view class="content_info">
<view class="content_info_bg"></view>
<view class="content_sub" wx:if="{{!homeInfo.subscribe}}" bindtap="clickSubscribe">订阅消息</view>
<view class="content_sub" wx:else>已订阅</view>
<view class="content_act_list">
<view class="content_act_list_title">热门活动</view>
<view class="content_act_list_more" bindtap="jumpActPage">查看更多 ></view>
<view class="act_list">
<image class="act_item" wx:for="{{homeInfo.activities}}" wx:key="index" src="{{item}}"></image>
<image class="act_item" wx:for="{{homeInfo.activities}}" wx:key="index" src="{{item}}"
mode="widthFix"
></image>
</view>
</view>
</view>
...
...
miniprogram/utils/util.ts
View file @
6e840735
...
...
@@ -55,5 +55,5 @@ export const _asyncThrottle = (fun, delay = 2000) => {
/** 默认信息 */
export
const
defaultInfo
=
{
avatar
:
'https://yun.duiba.com.cn/polaris/default_avator.8fa52026c1f64f47730d58eb31668c7e5e60bb59.png'
,
nickname
:
"
用户昵称
"
nickname
:
"
微信用户
"
}
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