修改搜索公寓全局变量的指向问题

This commit is contained in:
A1300399510
2024-04-29 18:07:03 +08:00
parent 4bc572173b
commit 31075ddd87
21 changed files with 37 additions and 28 deletions

View File

@@ -92,7 +92,7 @@
<div class="option-item flexflex" style="padding-bottom: 10px;">
<div class="option-title">学校附近</div>
<div class="option-box flexflex flex1">
<div class="item flexcenter" :class="{ pitch: 0 == pitchValue['school'] }" @click="selectOption('nearSchool', 0)">不限</div>
<!-- <div class="item flexcenter" :class="{ pitch: 0 == pitchValue['school'] }" @click="selectOption('nearSchool', 0)">不限</div> -->
<div class="item flexcenter" v-for="(item, index) in nearSchoolList" :key="index" :class="{ pitch: item['id'] == pitchValue['school'] }" @click="selectOption('nearSchool', item.id)">{{ item["name"] }}</div>
</div>
</div>
@@ -290,6 +290,7 @@ let pitchValue = ref({
watchEffect(() => {
// nearSchoolList = store.state.apartment.school || []
nearSchoolList = store.state.schoolList || []
console.log("nearSchoolList",nearSchoolList);
roomTypeList = store.state.apartment.roomtype || []
roomTypeKey = store.state.roomTypeKey || {}
roomlistingsList = store.state.apartment.roomlistings || []