no message

This commit is contained in:
A1300399510
2024-01-09 14:18:28 +08:00
parent e3a22c1d7c
commit 46af762ab6
9 changed files with 20 additions and 28 deletions

View File

@@ -25,8 +25,6 @@ onMounted(() => {
const route = useRoute()
watch(route, (newValue, oldValue) => {
console.log("1111111")
if (window._czc) {
let location = window.location
let contentUrl = location.pathname + location.hash

View File

@@ -87,6 +87,7 @@ api.index().then(res => {
store.state.wechat = res.data.wechat
store.state.apartment = res.data.config.apartment
store.state.schoolList = res.data.schoolList
store.state.advData = res.data.adv
}).finally(() => {
app.mount('#app')
})

View File

@@ -2,6 +2,7 @@ import { createStore } from 'vuex'
export default createStore({
state: {
advData: [],
seachTypeData: [],
indexData: [],//首页数据
ListSelectBtn: [],//瀑布流选项
@@ -9,18 +10,18 @@ export default createStore({
wechat: {}, // 微信号 二维码等数据
nav: [], // 顶部的导航数据
apartment: {}, // 公寓筛选的字段
routeList:{
index:{
path:'/',
title:'港校租房'
routeList: {
index: {
path: '/',
title: '港校租房'
},
secondaryIndex:{
path:'',
title:'',
secondaryIndex: {
path: '',
title: '',
}
},//导航路由列表
seachSelect:{
seachPage:{}
seachSelect: {
seachPage: {}
},//保存筛选条件
showloginmodal: false, // 是否需要登录状态
},
@@ -33,7 +34,7 @@ export default createStore({
},
modules: {
},
plugins:[
plugins: [
]
})

View File

@@ -54,7 +54,8 @@
</div>
<div class="information-wx-img" style="margin-top:20px;">
<!-- <img src="../assets/homeImage/informationWx.svg" class="information-wx-img" alt=""> -->
<img v-lazy="`${require('@/assets/homeImage/informationWx.svg')}`" class="information-wx-img" alt="">
<!-- <img v-lazy="`${require('@/assets/homeImage/informationWx.svg')}`" class="information-wx-img" alt=""> -->
<img v-lazy="advData?.banner?.image" class="information-wx-img" alt="">
</div>
</div>
<div class="information-right-box dis-f jus-bet"
@@ -179,6 +180,7 @@ let ListSelectBtn = reactive({ data: [], selectType: 'recommend' })
//首页数据
let indexData = reactive({ data: {} })
let seachTypeData = reactive({ data: [] })
let advData = ref({})
// api.index().then(res => {
// if (res.code === 200) {
// seachTypeData.data = res.data.combination
@@ -187,6 +189,7 @@ let seachTypeData = reactive({ data: [] })
// }
// })
watchEffect(() => {
advData.value = store.state.advData
seachTypeData.data = store.state.seachTypeData
indexData.data = store.state.indexData
ListSelectBtn.data = store.state.ListSelectBtn