You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
204 lines
4.8 KiB
204 lines
4.8 KiB
<template>
|
|
<view>
|
|
<swiper class="cover_swiper" :current="current">
|
|
<swiper-item v-for="(item, index) in cover_images" :key="index">
|
|
<lf-image :src="item"></lf-image>
|
|
</swiper-item>
|
|
</swiper>
|
|
<view class="content">
|
|
<view class="card" v-for="item in 2" :key="item">
|
|
<view class="avatar">
|
|
<lf-image src="../../static/logo.png" ></lf-image>
|
|
</view>
|
|
<view class="info">
|
|
<!-- 昵称和说说文字 -->
|
|
<view class="lf-font-28 lf-color-777">编号 73949</view>
|
|
<view class="lf-font-32 lf-color-222 lf-m-t-10">我更新了相册</view>
|
|
<!-- 图片显示区 -->
|
|
<view class="images-box">
|
|
<view class="img" v-for="item in 2" :key="item">
|
|
<lf-image src="https://picsum.photos/seed/picsum/200/300" />
|
|
</view>
|
|
</view>
|
|
<!-- 赞过的用户头像 -->
|
|
<lf-nolan-photo></lf-nolan-photo>
|
|
<!-- 时间和更多按钮 -->
|
|
<view class="lf-row-between lf-m-t-23">
|
|
<view class="lf-font-28 lf-color-777">08:38</view>
|
|
<view class="more" @click="show_more = !show_more">
|
|
<text class="lf-iconfont icon-more"></text>
|
|
<view class="more-modal" v-if="show_more">
|
|
<view class="more-item">
|
|
<text class="lf-iconfont icon-zan"></text>
|
|
<text class="lf-m-l-14">赞</text>
|
|
</view>
|
|
<view class="more-item">
|
|
<text class="lf-iconfont icon-pinglun"></text>
|
|
<text class="lf-m-l-14">评论</text>
|
|
</view>
|
|
<view class="more-item">
|
|
<text class="lf-iconfont icon-fenxiang"></text>
|
|
<text class="lf-m-l-14">分享</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 评论 -->
|
|
<view class="comment">
|
|
<view>评论:</view>
|
|
<view class="lf-m-t-20">
|
|
<text>等呵呵~:</text>
|
|
<text class="lf-color-333">哈哈哈哈哈哈</text>
|
|
</view>
|
|
<view class="lf-m-t-20">
|
|
<text>编号37894</text>
|
|
<text class="lf-color-333 lf-m-l-10 lf-m-r-10">回复</text>
|
|
<text>等呵呵~:</text>
|
|
<text class="lf-color-333">俺是头大本驴</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 悬浮发布按钮 -->
|
|
<view class="fixed-bottom" hover-class="lf-opacity" @click="$url('/pages/saySomething/saySomething')">
|
|
<text class="lf-iconfont icon-jia lf-font-50"></text>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import lfNolanPhoto from '@/components/lf-nolanPhoto/lf-nolanPhoto.vue';
|
|
export default {
|
|
components: { lfNolanPhoto },
|
|
data(){
|
|
return {
|
|
current: 0,
|
|
cover_images: ['https://picsum.photos/seed/picsum/200/300'],
|
|
show_more: false
|
|
}
|
|
},
|
|
onLoad(){
|
|
|
|
},
|
|
methods: {
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped="scoped">
|
|
.cover_swiper{
|
|
width: 750rpx;
|
|
height: 375rpx;
|
|
}
|
|
.content{
|
|
width: 750rpx;
|
|
height: max-content;
|
|
padding: 40rpx 32rpx;
|
|
box-sizing: border-box;
|
|
.card{
|
|
width: 100%;
|
|
height: max-content;
|
|
padding-bottom: 30rpx;
|
|
border-bottom: 1rpx solid #e5e5e5;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
&:nth-child(n+2){
|
|
margin-top: 30rpx;
|
|
}
|
|
&:last-child{
|
|
border-bottom: none;
|
|
}
|
|
.avatar{
|
|
width: 110rpx;
|
|
height: 110rpx;
|
|
border-radius: 50%;
|
|
}
|
|
.info{
|
|
width: 560rpx;
|
|
height: max-content;
|
|
}
|
|
.images-box{
|
|
margin-top: 28rpx;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
.img{
|
|
width: 275rpx;
|
|
height: 275rpx;
|
|
background-color: #0BCE5F;
|
|
margin-right: 10rpx;
|
|
&:nth-child(2n){
|
|
margin-right: 0rpx;
|
|
}
|
|
&:nth-child(n+3){
|
|
margin-top: 10rpx;
|
|
}
|
|
}
|
|
}
|
|
|
|
.more{
|
|
width: 66rpx;
|
|
height: 40rpx;
|
|
background-color: #F5F5F5;
|
|
border-radius: 5rpx;
|
|
color: #333333;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-size: 42rpx;
|
|
position: relative;
|
|
.more-modal{
|
|
position: absolute;
|
|
left: -472rpx;
|
|
top: -14rpx;
|
|
width: 467rpx;
|
|
height: 68rpx;
|
|
background: #555555;
|
|
border-radius: 5rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
.more-item{
|
|
width: 156rpx;
|
|
height: 48rpx;
|
|
border-right: 1rpx solid #777777;
|
|
font-size: 24rpx;
|
|
color: #FFFFFF;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
&:last-child{
|
|
border-right: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.comment{
|
|
margin-top: 20rpx;
|
|
width: 100%;
|
|
height: max-content;
|
|
background-color: #F5F5F5;
|
|
border-radius: 5rpx;
|
|
box-sizing: border-box;
|
|
padding: 20rpx;
|
|
font-size: 28rpx;
|
|
color: #777777;
|
|
}
|
|
}
|
|
}
|
|
|
|
.fixed-bottom{
|
|
position: fixed;
|
|
right: 32rpx;
|
|
bottom: 40rpx;
|
|
width: 100rpx;
|
|
height: 100rpx;
|
|
background-color: #E21196;
|
|
border-radius: 50%;
|
|
color: #FFFFFF;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
</style>
|