Commit 6e840735 authored by 俞嘉婷's avatar 俞嘉婷

feat: 首页逻辑完善

parent 0cb03f7b
...@@ -144,8 +144,8 @@ ...@@ -144,8 +144,8 @@
margin-top: 18rpx; margin-top: 18rpx;
.act_item { .act_item {
width: 686rpx; width: 100%;
height: 420rpx; // height: 420rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }
} }
......
...@@ -29,11 +29,12 @@ ...@@ -29,11 +29,12 @@
<view class="content_info"> <view class="content_info">
<view class="content_info_bg"></view> <view class="content_info_bg"></view>
<view class="content_sub" wx:if="{{!homeInfo.subscribe}}" bindtap="clickSubscribe">订阅消息</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">
<view class="content_act_list_title">热门活动</view> <view class="content_act_list_title">热门活动</view>
<view class="content_act_list_more" bindtap="jumpActPage">查看更多 ></view> <view class="content_act_list_more" bindtap="jumpActPage">查看更多 ></view>
<view class="act_list"> <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> </view>
</view> </view>
......
...@@ -55,5 +55,5 @@ export const _asyncThrottle = (fun, delay = 2000) => { ...@@ -55,5 +55,5 @@ export const _asyncThrottle = (fun, delay = 2000) => {
/** 默认信息 */ /** 默认信息 */
export const defaultInfo = { export const defaultInfo = {
avatar: 'https://yun.duiba.com.cn/polaris/default_avator.8fa52026c1f64f47730d58eb31668c7e5e60bb59.png', avatar: 'https://yun.duiba.com.cn/polaris/default_avator.8fa52026c1f64f47730d58eb31668c7e5e60bb59.png',
nickname: "用户昵称" nickname: "微信用户"
} }
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