推荐完成

This commit is contained in:
luyuan 2020-06-02 09:16:41 +08:00
parent 15730b8506
commit c312152365
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
2 changed files with 43 additions and 4 deletions

View File

@ -4,10 +4,11 @@
</image> </image>
<view class="title">这是标题这是标题这是标题</view> <view class="title">这是标题这是标题这是标题</view>
<view class="jianjie">这是简介这是简介这是简介</view>
<view class="user"> <view class="user">
<view> <view>
<image></image> <image></image>
<text></text> <text>这是名字</text>
</view> </view>
<image></image> <image></image>
</view> </view>
@ -20,16 +21,34 @@
} }
margin-top: 20rpx; margin-top: 20rpx;
width: 335rpx; width: 335rpx;
box-shadow:0 3rpx 7rpx 0 rgba(153, 153, 153, 0.35);
padding-bottom: 20rpx;
border-radius: 20rpx;
overflow: hidden;
.head{ .head{
width: 100%; width: 100%;
height: 334rpx; height: 334rpx;
border-radius: 20rpx 0;
} }
.title{ .title{
margin:0 auto;
margin-top: 20rpx;
font-size: 22rpx;
color: #333;
font-weight: 500;
line-height: 30rpx;
width: 307rpx;
overflow:hidden;
text-overflow:ellipsis;
display:-webkit-box;
-webkit-box-orient:vertical;
-webkit-line-clamp:2;
}
.jianjie{
margin:0 auto;
margin-top: 20rpx;
font-size: 22rpx; font-size: 22rpx;
color: #666; color: #666;
line-height: 30rpx; line-height: 30rpx;
margin-top: 20px;
width: 307rpx; width: 307rpx;
margin-left: 18rpx; margin-left: 18rpx;
overflow:hidden; overflow:hidden;
@ -37,18 +56,28 @@
display:-webkit-box; display:-webkit-box;
-webkit-box-orient:vertical; -webkit-box-orient:vertical;
-webkit-line-clamp:2; -webkit-line-clamp:2;
} }
.user{ .user{
display: flex;
justify-content: space-between;
align-items: center;
margin:0 auto;
margin-top: 20rpx;
width: 307rpx;
>view{ >view{
display: flex; display: flex;
align-items: center; align-items: center;
>image{ >image{
width: 38rpx; width: 38rpx;
height: 38rpx; height: 38rpx;
border-radius: 50%;
} }
>text{ >text{
font-size: 20rpx; font-size: 20rpx;
color:#333; color:#333;
margin-left: 9rpx;
} }
} }
>image{ >image{

View File

@ -17,7 +17,14 @@
<swiper-item></swiper-item> <swiper-item></swiper-item>
<swiper-item></swiper-item> <swiper-item></swiper-item>
</swiper> </swiper>
<videoItem></videoItem> <view class="list">
<view >
<videoItem v-for="item in 10"></videoItem>
</view>
<view style="margin-left:20rpx">
<videoItem v-for="item in 10"></videoItem>
</view>
</view>
</scroll-view> </scroll-view>
</swiper-item> </swiper-item>
<swiper-item> <swiper-item>
@ -91,6 +98,9 @@
border-radius: 20rpx; border-radius: 20rpx;
background-color: #0f0; background-color: #0f0;
} }
.list{
display: flex;
}
} }
} }
</style> </style>