优化绑定房源操作中的页面效果

This commit is contained in:
赵毅 2025-10-18 15:50:31 +08:00
parent c58d7cd2ba
commit 770d53a51b

View File

@ -107,7 +107,7 @@
<div class="roomList">
<!-- <div class="roomItem" v-for="(item,index) in 5" :class="index == 1?'active2':''"> -->
<div @click="nextStep(item, index, 'room')" :class="{ active2: index === selectedRoomIndex }" class="roomItem"
<div @click="nextStep(item, index, 'room')" :class="{ active2: index === selectedFinalRoomIndex }" class="roomItem"
v-for="(item, index) in filteredFloorsList" :key="index">
{{ item.label }}
</div>
@ -152,6 +152,7 @@ export default {
return {
selectedFloorIndex: -1,
selectedRoomIndex: -1,
selectedFinalRoomIndex: -1, //
show: false,
step: "1",
communityName: "",
@ -209,7 +210,12 @@ export default {
},
async nextStep(item, index, type = "") {
if (type === "room") {
//
if (this.step == 3) {
this.selectedRoomIndex = index;
} else if (this.step == 4) {
this.selectedFinalRoomIndex = index;
}
} else {
this.selectedFloorIndex = index;
}