公寓列表

This commit is contained in:
A1300399510
2023-07-18 19:01:35 +08:00
parent 1cc8d070b5
commit c0132f27fd
9 changed files with 648 additions and 154 deletions

View File

@@ -58,12 +58,12 @@
<script setup>
import store from '../../store/index';
import { useRoute, useRouter } from 'vue-router'
import { reactive, watchEffect, ref,defineProps } from "vue";
import { reactive, watchEffect, ref, defineProps } from "vue";
const props=defineProps({
bannerList:{
type:Array,
default:function (){
const props = defineProps({
bannerList: {
type: Array,
default: function () {
return []
}
}
@@ -73,15 +73,15 @@ const props=defineProps({
let url = location.href
let quitUrl = ref(`https://passport.gter.net/login/quit?referer=${url}`)
//个人信息
let user = reactive({data:{}})
let user = reactive({ data: {} })
//组件数据
let topTab = reactive({ data: [] })
let seachTab = reactive({ data: [] })
let bannerLists = reactive({data:[]})
let bannerLists = reactive({ data: [] })
watchEffect(() => {
user.data=store.state.user
bannerLists.data=props.bannerList
user.data = store.state.user
bannerLists.data = props.bannerList
if (!store.state.indexData.menu) return
store.state.indexData.menu.map(res => {
if (res.name === '首页') {
@@ -93,13 +93,13 @@ watchEffect(() => {
res.path = '/intermediaryHousing'
}
else if (res.name === '品牌公寓') {
res.path = '/apartment'
}
else if (res.name === '求房源') {
res.path = '/needHousing'
}
else if (res.name === '我的') {
res.path = '/user'
}
})
seachTab.data = store.state.indexData.menu
@@ -278,7 +278,7 @@ tabBtnType.value = route.path
margin: 0 auto;
width: 660px;
height: 280px;
border-radius:15px;
border-radius: 15px;
}
.user-box:hover .user-out-box {