refactor: 移除调试日志并优化代码结构
移除多个组件中的调试日志语句,优化代码结构以提高可读性和维护性。同时调整了部分样式和逻辑,确保功能一致性和用户体验。
This commit is contained in:
@@ -32,11 +32,14 @@
|
||||
</template>
|
||||
<script setup>
|
||||
import { defineProps } from "vue"
|
||||
import { useRouter } from "vue-router";
|
||||
|
||||
const props = defineProps({
|
||||
item: Object,
|
||||
});
|
||||
|
||||
let router = useRouter();
|
||||
|
||||
const gobrand = (item) => router.push(`/apartmentDetail?uniqid=${item.uniqid}`);
|
||||
|
||||
</script>
|
||||
@@ -47,9 +50,12 @@ const gobrand = (item) => router.push(`/apartmentDetail?uniqid=${item.uniqid}`);
|
||||
border-radius: 17px;
|
||||
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.117647058823529);
|
||||
padding: 8px 0;
|
||||
margin-bottom: 20px;
|
||||
cursor: pointer;
|
||||
|
||||
&:not(:last-of-type) {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.25686275);
|
||||
}
|
||||
|
||||
@@ -267,7 +267,6 @@ let pitchValue = ref({
|
||||
|
||||
watchEffect(() => {
|
||||
// nearSchoolList = store.state.apartment.school || []
|
||||
console.log('store.state.schoolList',store.state.schoolList);
|
||||
nearSchoolList = store.state.schoolList || [];
|
||||
roomTypeList = store.state.apartment.roomtype || [];
|
||||
roomTypeKey = store.state.roomTypeKey || {};
|
||||
|
||||
Reference in New Issue
Block a user