|
|
@ -3,6 +3,13 @@ |
|
|
|
|
|
|
|
<!-- 瑶都万能墙 --> |
|
|
|
<view class="Headbackground"> |
|
|
|
<view class="Toggle"> |
|
|
|
<uv-icon |
|
|
|
size="30rpx" |
|
|
|
color="#fff" |
|
|
|
name="map"></uv-icon> |
|
|
|
长沙 |
|
|
|
</view> |
|
|
|
<view class="top"> |
|
|
|
<view class=" profilePicture"> |
|
|
|
<image :src="headinfo.headImage" mode=""></image> |
|
|
@ -24,22 +31,22 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="life"> |
|
|
|
<view class="mouse" @click="menuClick(index)" |
|
|
|
<view class="mouse" @click="menuClick(item.url)" |
|
|
|
:key="index" |
|
|
|
v-for="(item, index) in menu"> |
|
|
|
<view class="RentingAhouseimg"> |
|
|
|
<image |
|
|
|
:src="`../../static/image/home/${index}.png`" |
|
|
|
:src="item.icon" |
|
|
|
style="width: 90rpx;height: 90rpx;" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="RentingAhouse"> |
|
|
|
{{ item.name }} |
|
|
|
{{ item.title }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="LabelOptions"> |
|
|
|
<uv-tabs :list="tabs" |
|
|
|
<uv-tabs :list="category" |
|
|
|
:activeStyle="{color : '#000', fontWeight : 900}" |
|
|
|
lineColor="#00f" |
|
|
|
lineHeight="8rpx" |
|
|
@ -47,100 +54,14 @@ |
|
|
|
keyName="title" |
|
|
|
@click="tabsClick"></uv-tabs> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="works" :key="index" |
|
|
|
v-for="(item, index) in list"> |
|
|
|
<view class="box"> |
|
|
|
<view class="headPortraitimg"> |
|
|
|
<!-- <image :src="item" mode=""></image> --> |
|
|
|
</view> |
|
|
|
<view class="YaoduUniversalWall"> |
|
|
|
<view class="heide"> |
|
|
|
<view class="username text-ellipsis"> |
|
|
|
|
|
|
|
</view> |
|
|
|
<view class="inde"> |
|
|
|
男性 |
|
|
|
</view> |
|
|
|
<view class="inde"> |
|
|
|
99年 |
|
|
|
</view> |
|
|
|
<view class="inde"> |
|
|
|
大路铺镇 |
|
|
|
</view> |
|
|
|
<view class="authentication"> |
|
|
|
官方认证 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="Times"> |
|
|
|
<view class="TimeMonth"> |
|
|
|
<!-- 10-08 --> |
|
|
|
{{ item.createTime }}发布 |
|
|
|
</view> |
|
|
|
<!-- <view class="Month"> |
|
|
|
12:34 |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="dynamics" |
|
|
|
v-html="$utils.stringFormatHtml(item.title)"> |
|
|
|
</view> |
|
|
|
<view class="Artworkimages"> |
|
|
|
<view class="wrokimg" |
|
|
|
:key="i" |
|
|
|
v-for="(img, i) in item.image && item.image.split(',')"> |
|
|
|
<image :src="img" mode=""></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="bottom"> |
|
|
|
<view class="browse"> |
|
|
|
{{ item.isBrowse }}浏览 |
|
|
|
</view> |
|
|
|
<view class="browse"> |
|
|
|
{{ item.isComment }}条评论 |
|
|
|
</view> |
|
|
|
<view class="Leavingamessage"> |
|
|
|
<uv-icon size="30rpx" name="chat"></uv-icon> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="createDetail" |
|
|
|
@click="$refs.createDetailPopup.open('bottom')"> |
|
|
|
<uv-icon |
|
|
|
size="40rpx" |
|
|
|
color="#fff" |
|
|
|
name="plus"></uv-icon> |
|
|
|
</view> |
|
|
|
|
|
|
|
<uv-popup ref="createDetailPopup" :round="30"> |
|
|
|
<view class="createDetailPopup"> |
|
|
|
<view class="" |
|
|
|
:key="index" |
|
|
|
@click="$utils.navigateTo(item.path)" |
|
|
|
v-for="(item, index) in createDetail"> |
|
|
|
<image |
|
|
|
:src="`../../static/image/home/${index}.png`" |
|
|
|
style="width: 90rpx;height: 90rpx;" mode=""></image> |
|
|
|
|
|
|
|
<view class="info"> |
|
|
|
<view class="title"> |
|
|
|
{{ item.name }} |
|
|
|
</view> |
|
|
|
<view class="desc"> |
|
|
|
{{ item.desc }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="icon"> |
|
|
|
<uv-icon |
|
|
|
size="30rpx" |
|
|
|
name="arrow-right"></uv-icon> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</uv-popup> |
|
|
|
<dynamicItem |
|
|
|
:key="index" |
|
|
|
v-for="(item, index) in list" |
|
|
|
:item="item" |
|
|
|
/> |
|
|
|
|
|
|
|
<createDetailPopup/> |
|
|
|
|
|
|
|
<PrivacyAgreementPoup /> |
|
|
|
<tabber select="0" /> |
|
|
@ -150,97 +71,49 @@ |
|
|
|
<script> |
|
|
|
import PrivacyAgreementPoup from '@/components/config/PrivacyAgreementPoup.vue' |
|
|
|
import tabber from '@/components/base/tabbar.vue' |
|
|
|
import createDetailPopup from '@/components/user/createDetailPopup.vue' |
|
|
|
import dynamicItem from '@/components/list/dynamic/dynamicItem.vue' |
|
|
|
import mixinsList from '@/mixins/list.js' |
|
|
|
import { mapState } from 'vuex' |
|
|
|
export default { |
|
|
|
mixins: [mixinsList], |
|
|
|
components: { |
|
|
|
tabber, |
|
|
|
PrivacyAgreementPoup, |
|
|
|
createDetailPopup, |
|
|
|
dynamicItem, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
tabs: [ |
|
|
|
// { |
|
|
|
// name: '圈子动态', |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// name: '二手集市', |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// name: '游戏组局' |
|
|
|
// }, |
|
|
|
], |
|
|
|
headinfo: {}, |
|
|
|
menu : [ |
|
|
|
{ |
|
|
|
name : '租房', |
|
|
|
}, |
|
|
|
{ |
|
|
|
name : '工作', |
|
|
|
}, |
|
|
|
{ |
|
|
|
name : '活动', |
|
|
|
}, |
|
|
|
{ |
|
|
|
name : '美食', |
|
|
|
}, |
|
|
|
], |
|
|
|
createDetail : [ |
|
|
|
{ |
|
|
|
name : '圈子动态', |
|
|
|
desc : '发布动态(请发布到合适的分区)', |
|
|
|
path : '/pages_order/post/addPost', |
|
|
|
}, |
|
|
|
// { |
|
|
|
// name : '房屋出租', |
|
|
|
// desc : '发布房屋出租', |
|
|
|
// path : '/pages_order/renting/addRenting', |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// name : '工作', |
|
|
|
// desc : '发布工作', |
|
|
|
// path : '/pages_order/recruit/addRecruit', |
|
|
|
// }, |
|
|
|
], |
|
|
|
menu : [], |
|
|
|
mixinsListApi : 'getPostPage', |
|
|
|
} |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
this.getCategory() |
|
|
|
this.getIndexHeaderInfo() |
|
|
|
this.getData() |
|
|
|
this.getClassifyList() |
|
|
|
this.$store.commit('getCategory') |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapState(['city', 'category']), |
|
|
|
}, |
|
|
|
computed: {}, |
|
|
|
methods: { |
|
|
|
tabsClick(item) { |
|
|
|
console.log('item', item); |
|
|
|
}, |
|
|
|
menuClick(index) { |
|
|
|
console.log(index); |
|
|
|
menuClick(url) { |
|
|
|
// 跳转页面 |
|
|
|
if (index == 0) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages_order/renting/rentingList' |
|
|
|
if (url.includes('reLaunch:')) { |
|
|
|
uni.reLaunch({ |
|
|
|
url : url.replace('reLaunch:', '') |
|
|
|
}) |
|
|
|
} else if (index == 1) { |
|
|
|
}else{ |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages_order/recruit/recruitList' |
|
|
|
}) |
|
|
|
} else if (index == 2) { |
|
|
|
uni.reLaunch({ |
|
|
|
url: '/pages/index/activity' |
|
|
|
url |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
// 获取分类 |
|
|
|
getCategory(){ |
|
|
|
// 发起请求 |
|
|
|
this.$api('getClassInfo', res => { |
|
|
|
if(res.code == 200){ |
|
|
|
this.tabs = res.result |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
//获取首页头部信息 |
|
|
|
getIndexHeaderInfo(){ |
|
|
|
this.$api('getIndexHeaderInfo',res =>{ |
|
|
@ -249,18 +122,14 @@ |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
//根据分类获取动态帖子列表带分页 |
|
|
|
// getPostPage(){ |
|
|
|
// this.$api('getPostPage', { |
|
|
|
// pageNo : 1, |
|
|
|
// pageSize : 10, |
|
|
|
// },res =>{ |
|
|
|
// if(res.code == 200){ |
|
|
|
// this.postList = res.result.records |
|
|
|
// } |
|
|
|
// console.log(res); |
|
|
|
// }) |
|
|
|
// } |
|
|
|
//获取菜单 |
|
|
|
getClassifyList(){ |
|
|
|
this.$api('getClassifyList',res =>{ |
|
|
|
if(res.code == 200){ |
|
|
|
this.menu = res.result |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
@ -271,11 +140,20 @@ |
|
|
|
height: 100%; |
|
|
|
} |
|
|
|
.Headbackground { |
|
|
|
padding-top: 200rpx; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
padding-top: 150rpx; |
|
|
|
background: linear-gradient(to bottom, rgb(85, 94, 123), rgb(45, 51, 73)); |
|
|
|
|
|
|
|
.Toggle{ |
|
|
|
margin: 10rpx 30rpx; |
|
|
|
padding: 20rpx; |
|
|
|
background-color: #00000022; |
|
|
|
color: #fff; |
|
|
|
border-radius: 40rpx; |
|
|
|
width: fit-content; |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
font-size: 28rpx; |
|
|
|
} |
|
|
|
.top { |
|
|
|
display: flex; |
|
|
|
color: white; |
|
|
@ -346,173 +224,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.works { |
|
|
|
margin: 40rpx 24rpx; |
|
|
|
background-color: #fff; |
|
|
|
padding: 40rpx; |
|
|
|
border-radius: 20rpx; |
|
|
|
box-shadow: 0 0 6rpx 6rpx #00000011; |
|
|
|
|
|
|
|
.box { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
|
|
|
|
.headPortraitimg { |
|
|
|
width: 100rpx; |
|
|
|
height: 100rpx; |
|
|
|
background-color: greenyellow; |
|
|
|
border-radius: 15rpx; |
|
|
|
overflow: hidden; |
|
|
|
} |
|
|
|
|
|
|
|
.YaoduUniversalWall { |
|
|
|
padding: 0rpx 10rpx; |
|
|
|
.username{ |
|
|
|
max-width: 200rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.heide { |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
|
|
|
|
.inde { |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
padding: 0rpx 10rpx; |
|
|
|
margin: 0rpx 5rpx; |
|
|
|
font-size: 20rpx; |
|
|
|
height: 30rpx; |
|
|
|
color: white; |
|
|
|
background-color: rgb(124, 136, 242); |
|
|
|
border-radius: 7rpx; |
|
|
|
flex-shrink: 0; |
|
|
|
} |
|
|
|
|
|
|
|
.authentication { |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
padding: 0rpx 10rpx; |
|
|
|
margin: 0rpx 5rpx; |
|
|
|
font-size: 20rpx; |
|
|
|
height: 34rpx; |
|
|
|
padding: 0rpx 10rpx; |
|
|
|
color: white; |
|
|
|
background-color: #ffd036; |
|
|
|
border-radius: 7rpx; |
|
|
|
flex-shrink: 0; |
|
|
|
} |
|
|
|
|
|
|
|
.Times { |
|
|
|
display: flex; |
|
|
|
padding: 5rpx 0rpx; |
|
|
|
font-size: 20rpx; |
|
|
|
margin-top: 10rpx; |
|
|
|
|
|
|
|
.Month { |
|
|
|
margin: 0rpx 15rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.personalInformation { |
|
|
|
display: flex; |
|
|
|
|
|
|
|
.inde { |
|
|
|
font-size: 25rpx; |
|
|
|
padding: 0rpx 8rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.authentication { |
|
|
|
font-size: 25rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.dynamics { |
|
|
|
margin-top: 20rpx; |
|
|
|
font-size: 28rpx; |
|
|
|
// font-weight: bold; |
|
|
|
// line-height: 35rpx; |
|
|
|
letter-spacing: 3rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.Artworkimages { |
|
|
|
display: flex; |
|
|
|
flex-wrap: wrap; |
|
|
|
|
|
|
|
.wrokimg { |
|
|
|
margin: 10rpx; |
|
|
|
|
|
|
|
image { |
|
|
|
height: 190rpx; |
|
|
|
width: 190rpx; |
|
|
|
border-radius: 20rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.bottom { |
|
|
|
display: flex; |
|
|
|
|
|
|
|
font-size: 20rpx; |
|
|
|
|
|
|
|
.browse { |
|
|
|
margin: 0rpx 30rpx; |
|
|
|
color: rgb(132, 132, 132); |
|
|
|
} |
|
|
|
|
|
|
|
.Leavingamessage { |
|
|
|
height: 20rpx; |
|
|
|
width: 20rpx; |
|
|
|
margin-left: auto; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.createDetail{ |
|
|
|
position: fixed; |
|
|
|
top: 50vh; |
|
|
|
right: 50rpx; |
|
|
|
width: 100rpx; |
|
|
|
height: 100rpx; |
|
|
|
background-color: $uni-color-primary; |
|
|
|
border-radius: 50rpx; |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
box-shadow: 0 0 10rpx 10rpx rgba(#000, 0.1); |
|
|
|
} |
|
|
|
.createDetailPopup{ |
|
|
|
padding: 20rpx; |
|
|
|
background-color: #ffffff; |
|
|
|
&>view{ |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
padding: 24rpx; |
|
|
|
background-color: #f7f7f7; |
|
|
|
margin: 20rpx; |
|
|
|
border-radius: 20rpx; |
|
|
|
image{ |
|
|
|
width: 100rpx; |
|
|
|
height: 100rpx; |
|
|
|
margin-right: 20rpx; |
|
|
|
} |
|
|
|
.info{ |
|
|
|
.title{ |
|
|
|
font-size: 30rpx; |
|
|
|
} |
|
|
|
.desc{ |
|
|
|
font-size: 24rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
.icon{ |
|
|
|
margin-left: auto; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
</style> |