连云港陪玩陪聊
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.
 
 
 
 
 
 
chunwan/pages/dongtai/index.vue

220 lines
4.6 KiB

<template>
<view class="dongtai">
<view class="dongtai-tab">
<view class="tab">
<u-tabs :list="list" bg-color="transparent" :is-scroll="false" active-color="#222222" inactive-color="#666666" font-size="30" :active-item-style="activeStyle" bar-height="10" bar-width="60" v-model="current" @change="changeTabs"></u-tabs>
</view>
</view>
<view class="dongtai-list">
<view class="item" v-for="i in 10" :key="i" @click="openPage(1,1)">
<view class="a">
<view class="fl">
<image src="@/static/nv.png"></image>
<view class="info">
<view class="name">幽默的先生</view>
<view class="desc">2024-06-06 11:23</view>
</view>
</view>
<view class="fr">
<image src="@/static/shenglue.png"></image>
</view>
</view>
<view class="b">今天天气真好啊!碧蓝的天空,绿油油的油菜花,空中飘香,远远的山脉看着忽远忽近。</view>
<view class="c">
<image mode="aspectFill" src="@/static/1.png"></image>
<image mode="aspectFill" src="@/static/2.png"></image>
<image mode="aspectFill" src="@/static/3.png"></image>
</view>
<view class="d">
<view class="fl">
<view class="li">
<image src="@/static/xiaoxi.png"></image>69
</view>
<view class="li">
<image src="@/static/dianzan.png"></image>896
</view>
<view class="li" @click.stop="openPage(2)">
<image src="@/static/fenxiang.png"></image>分享
</view>
</view>
<view class="fr" @click.stop="openPage(3)">搭讪</view>
</view>
</view>
</view>
<view class="dongtai-fd" @click.stop="openPage(4)">
<image src="@/static/icon-fabu.png"></image>
</view>
<share :isShare="isShare" />
</view>
</template>
<script>
export default {
data() {
return {
isShare: false,
current: 0,
list:[{'name': '广场'},{'name': '关注'}],
activeStyle:{'fontSize': '35rpx'}
}
},
onLoad() {
},
methods: {
openPage(index,id){
if(index == 1){
uni.navigateTo({
url: "/pages/dongtai/detail?id="+id
})
}else if(index == 2){
this.isShare = true;
}else if(index == 4){
uni.navigateTo({
url: "/pages/dongtai/add"
})
}
},
changeTabs(index){
this.current = index
},
}
}
</script>
<style scoped lang="scss">
.dongtai{
overflow: hidden;
&-fd{
width: 135rpx;
height: 135rpx;
position: fixed;
right: 10rpx;
bottom: 100rpx;
z-index: 22;
image{
width: 100%;
height: 100%;
}
}
&-tab{
display: flex;
margin-top: 10rpx;
overflow: hidden;
.tab{
width: 250rpx;
}
}
&-list{
padding: 0 25rpx 25rpx;
overflow: hidden;
.item{
width: 100%;
background: #FFFFFF;
border-radius: 20rpx;
padding: 30rpx;
box-sizing: border-box;
margin-top: 20rpx;
.d{
font-weight: 400;
font-size: 24rpx;
color: #333333;
line-height: 42rpx;
margin-top: 20rpx;
text-align: left;
display: flex;
align-items: center;
justify-content: space-between;
.fl{
flex: 1;
display: flex;
align-items: center;
.li{
display: flex;
align-items: center;
width: 120rpx;
image{
width: 32rpx;
height: 32rpx;
margin-right: 10rpx;
}
}
}
.fr{
width: 90rpx;
line-height: 44rpx;
background: #000000;
border-radius: 44rpx;
text-align: center;
font-weight: 500;
font-size: 24rpx;
color: #FFFFFF;
}
}
.c{
width: 110%;
margin-top: 20rpx;
overflow: hidden;
image{
width: 210rpx;
height: 210rpx;
border-radius: 10rpx;
margin-right: 10rpx;
}
}
.b{
font-weight: 400;
font-size: 28rpx;
color: #222222;
line-height: 42rpx;
margin-top: 20rpx;
text-align: left;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2; /* 定义文本的行数 */
overflow: hidden;
text-overflow: ellipsis;
}
.a{
display: flex;
align-items: center;
justify-content: space-between;
.fl{
flex: 1;
display: flex;
align-items: center;
margin-right: 20rpx;
image{
width: 80rpx;
height: 80rpx;
background: #E6E9ED;
border-radius: 50%;
margin-right: 20rpx;
}
.info{
flex: 1;
}
.name{
font-weight: 400;
font-size: 30rpx;
color: #222222;
}
.desc{
font-weight: 400;
font-size: 22rpx;
color: #B6BCC2;
margin-top: 10rpx;
}
}
.fr{
width: 32rpx;
image{
width: 32rpx;
height: 32rpx;
}
}
}
}
}
}
</style>