|
|
@ -1,5 +1,14 @@ |
|
|
|
<template> |
|
|
|
<view class="page"> |
|
|
|
|
|
|
|
<view> |
|
|
|
<uv-swiper |
|
|
|
:list="bannerList" |
|
|
|
indicator |
|
|
|
height="520rpx" |
|
|
|
indicatorStyle="bottom: 100rpx;" |
|
|
|
keyName="image"></uv-swiper> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 瑶都万能墙 --> |
|
|
|
<view class="Headbackground"> |
|
|
@ -8,7 +17,7 @@ |
|
|
|
size="30rpx" |
|
|
|
color="#fff" |
|
|
|
name="map"></uv-icon> |
|
|
|
长沙 |
|
|
|
江华瑶族自治县 |
|
|
|
</view> |
|
|
|
<view class="top"> |
|
|
|
<view class=" profilePicture"> |
|
|
@ -16,7 +25,7 @@ |
|
|
|
</view> |
|
|
|
<view class="UniversalWall"> |
|
|
|
<view class="dynamic"> |
|
|
|
{{headinfo.name}} |
|
|
|
{{ headinfo.name }} |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="dynamics"> |
|
|
@ -24,44 +33,49 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="join"> |
|
|
|
<view class="join" |
|
|
|
@click="$refs.certificationPopup.open()"> |
|
|
|
加入 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="life"> |
|
|
|
<view class="mouse" @click="menuClick(item.url)" |
|
|
|
:key="index" |
|
|
|
v-for="(item, index) in menu"> |
|
|
|
<view class="RentingAhouseimg"> |
|
|
|
<image |
|
|
|
:src="item.icon" |
|
|
|
style="width: 90rpx;height: 90rpx;" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="RentingAhouse"> |
|
|
|
{{ item.title }} |
|
|
|
<view class="box"> |
|
|
|
<view class="life"> |
|
|
|
<view class="mouse" @click="menuClick(item.url)" |
|
|
|
:key="index" |
|
|
|
v-for="(item, index) in menu"> |
|
|
|
<view class="RentingAhouseimg"> |
|
|
|
<image |
|
|
|
:src="item.icon" |
|
|
|
style="width: 90rpx;height: 90rpx;" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="RentingAhouse"> |
|
|
|
{{ item.title }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="LabelOptions"> |
|
|
|
<uv-tabs :list="category" |
|
|
|
:activeStyle="{color : '#000', fontWeight : 900}" |
|
|
|
lineColor="#5baaff" |
|
|
|
lineHeight="8rpx" |
|
|
|
lineWidth="50rpx" |
|
|
|
keyName="title" |
|
|
|
@click="tabsClick"></uv-tabs> |
|
|
|
</view> |
|
|
|
|
|
|
|
<dynamicItem |
|
|
|
:key="index" |
|
|
|
v-for="(item, index) in list" |
|
|
|
:item="item" |
|
|
|
/> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="LabelOptions"> |
|
|
|
<uv-tabs :list="category" |
|
|
|
:activeStyle="{color : '#000', fontWeight : 900}" |
|
|
|
lineColor="#00f" |
|
|
|
lineHeight="8rpx" |
|
|
|
lineWidth="50rpx" |
|
|
|
keyName="title" |
|
|
|
@click="tabsClick"></uv-tabs> |
|
|
|
</view> |
|
|
|
|
|
|
|
<dynamicItem |
|
|
|
:key="index" |
|
|
|
v-for="(item, index) in list" |
|
|
|
:item="item" |
|
|
|
/> |
|
|
|
|
|
|
|
<createDetailPopup/> |
|
|
|
|
|
|
|
<certificationPopup ref="certificationPopup"/> |
|
|
|
|
|
|
|
<PrivacyAgreementPoup /> |
|
|
|
<tabber select="0" /> |
|
|
@ -71,6 +85,7 @@ |
|
|
|
<script> |
|
|
|
import PrivacyAgreementPoup from '@/components/config/PrivacyAgreementPoup.vue' |
|
|
|
import tabber from '@/components/base/tabbar.vue' |
|
|
|
import certificationPopup from '@/components/user/certificationPopup.vue' |
|
|
|
import createDetailPopup from '@/components/user/createDetailPopup.vue' |
|
|
|
import dynamicItem from '@/components/list/dynamic/dynamicItem.vue' |
|
|
|
import mixinsList from '@/mixins/list.js' |
|
|
@ -82,17 +97,26 @@ |
|
|
|
PrivacyAgreementPoup, |
|
|
|
createDetailPopup, |
|
|
|
dynamicItem, |
|
|
|
certificationPopup, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
headinfo: {}, |
|
|
|
menu : [], |
|
|
|
mixinsListApi : 'getPostPage', |
|
|
|
bannerList : [], |
|
|
|
} |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
this.getIndexHeaderInfo() |
|
|
|
this.getClassifyList() |
|
|
|
this.getBannerList() |
|
|
|
this.$store.commit('getCategory') |
|
|
|
}, |
|
|
|
onPullDownRefresh() { |
|
|
|
this.getIndexHeaderInfo() |
|
|
|
this.getClassifyList() |
|
|
|
this.getBannerList() |
|
|
|
this.$store.commit('getCategory') |
|
|
|
}, |
|
|
|
computed: { |
|
|
@ -100,7 +124,12 @@ |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
tabsClick(item) { |
|
|
|
console.log('item', item); |
|
|
|
if(item.index){ |
|
|
|
this.queryParams.classId = item.id |
|
|
|
}else{ |
|
|
|
delete this.queryParams.classId |
|
|
|
} |
|
|
|
this.getData() |
|
|
|
}, |
|
|
|
menuClick(url) { |
|
|
|
// 跳转页面 |
|
|
@ -130,6 +159,22 @@ |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
//获取菜单 |
|
|
|
getClassifyList(){ |
|
|
|
this.$api('getClassifyList',res =>{ |
|
|
|
if(res.code == 200){ |
|
|
|
this.menu = res.result |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 获取banner |
|
|
|
getBannerList(){ |
|
|
|
this.$api('getBannerList', res =>{ |
|
|
|
if(res.code == 200){ |
|
|
|
this.bannerList = res.result |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
@ -140,8 +185,12 @@ |
|
|
|
height: 100%; |
|
|
|
} |
|
|
|
.Headbackground { |
|
|
|
position: absolute; |
|
|
|
width: 100%; |
|
|
|
top: 0; |
|
|
|
left: 0; |
|
|
|
padding-top: 150rpx; |
|
|
|
background: linear-gradient(to bottom, rgb(85, 94, 123), rgb(45, 51, 73)); |
|
|
|
// background: linear-gradient(to bottom, rgb(85, 94, 123), rgb(45, 51, 73)); |
|
|
|
.Toggle{ |
|
|
|
margin: 10rpx 30rpx; |
|
|
|
padding: 20rpx; |
|
|
@ -189,7 +238,7 @@ |
|
|
|
.join { |
|
|
|
width: 125rpx; |
|
|
|
height: 50rpx; |
|
|
|
background-color: $uni-color-primary; |
|
|
|
background-color: $uni-color; |
|
|
|
margin-left: auto; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
@ -199,32 +248,38 @@ |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.life { |
|
|
|
margin-top: 20rpx; |
|
|
|
display: flex; |
|
|
|
justify-content: space-around; |
|
|
|
text-align: center; |
|
|
|
flex-wrap: wrap; |
|
|
|
|
|
|
|
.mouse { |
|
|
|
.RentingAhouseimg { |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
margin: 15rpx; |
|
|
|
width: 130rpx; |
|
|
|
height: 100rpx; |
|
|
|
background-color: #ffffff; |
|
|
|
border-top-left-radius: 40rpx; |
|
|
|
border-bottom-right-radius: 40rpx; |
|
|
|
border-bottom-left-radius: 20rpx; |
|
|
|
border-top-right-radius: 20rpx; |
|
|
|
|
|
|
|
.box{ |
|
|
|
margin-top: -60rpx; |
|
|
|
background-color: #f7f7f7; |
|
|
|
border-top-left-radius: 40rpx; |
|
|
|
border-top-right-radius: 40rpx; |
|
|
|
position: relative; |
|
|
|
z-index: 9; |
|
|
|
.life { |
|
|
|
margin-top: 20rpx; |
|
|
|
display: flex; |
|
|
|
justify-content: space-around; |
|
|
|
text-align: center; |
|
|
|
flex-wrap: wrap; |
|
|
|
|
|
|
|
.mouse { |
|
|
|
.RentingAhouseimg { |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
margin: 15rpx; |
|
|
|
width: 130rpx; |
|
|
|
height: 100rpx; |
|
|
|
background-color: #ffffff; |
|
|
|
border-top-left-radius: 40rpx; |
|
|
|
border-bottom-right-radius: 40rpx; |
|
|
|
border-bottom-left-radius: 20rpx; |
|
|
|
border-top-right-radius: 20rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</style> |