This commit is contained in:
A1300399510
2023-07-20 19:27:46 +08:00
parent 8cc4549dca
commit d5c86e2038
12 changed files with 274 additions and 41 deletions

View File

@@ -1,7 +1,9 @@
<template>
<page-top-bar></page-top-bar>
asgdaskhjdkhsk jkhkhkjhkjhjhjjjjjhjkhh
<div class="content"></div>
</template>
<script setup>

View File

@@ -771,10 +771,6 @@ export default {
this.intermediary = urlParams.get('intermediary') || 3; // 默认写房东吧
// this.verified = urlParams.get('verified') || 0;
setTimeout(() => {
console.log(this.$store.state.user, "state");
}, 1000)
this.init();
},
components: {
@@ -792,8 +788,6 @@ export default {
return require(url)
},
init() {
this.loading = this.$loading({
lock: true,
text: 'Loading',
@@ -852,19 +846,17 @@ export default {
if (info['type']) this.typeValue = info['type'] >>> 0
// if (!info['leasetime']) info['leasetime'] = null
let intermediary = data.intermediary
if (intermediary == 6) {
if (info["rent"].length != 0) {
this.rent_min = Number(info["rent"][0])
this.rent_max = Number(info["rent"][1])
this.rent_min = info["rent"][0] ? Number(info["rent"][0]) : null
this.rent_max = info["rent"][1] ? Number(info["rent"][1]) : null
}
if (info["acreage"].length != 0) {
this.acreage_min = Number(info["acreage"][0])
this.acreage_max = Number(info["acreage"][1])
this.acreage_min = info["acreage"][0] ? Number(info["acreage"][0]) : null
this.acreage_max = info["acreage"][0] ? Number(info["acreage"][1]) : null
}
if (info["rentalduration"]) info['rentalduration'] = Number(info['rentalduration'])

View File

@@ -8,12 +8,14 @@
<div class="list wid1200 flexflex" ref="gridContainer">
<apartment-item v-if="list.length != 0" v-for="item in list" :item="item"></apartment-item>
</div>
<div v-if="list.length == 0" class="empty-box wid1200 flexcenter">
<empty-duck :hintTextTwo="'建议放宽筛选条件'"></empty-duck>
</div>
<have-questions></have-questions>
<!-- 页尾 -->
<page-footer></page-footer>
<!-- 右下角咨询 -->
@@ -24,7 +26,6 @@
<script setup>
import pageTopBar from '../../components/pageTopBar/pageTopBar.vue';
import seachModule from "@/components/apartment/seachModule.vue";
import biserialItem from '../../components/biserialListItem/biserialListItem.vue'
import apartmentItem from '@/components/public/apartment-item.vue';
import haveQuestions from '@/components/public/have-questions.vue'
import pageFooter from '@/components/footer/footer.vue'
@@ -118,8 +119,6 @@ const handleTransfer = (data) => {
getData()
}
}
}
</script>

View File

@@ -97,18 +97,18 @@
<script setup>
import pageTopBar from '../components/pageTopBar/pageTopBar.vue';
import headerNav from '@/components/public/head.vue'
import systematicNotificationPop from '@/components/user/systematic-notification-pop.vue'
import haveQuestions from '@/components/public/have-questions.vue'
import pageFooter from '@/components/footer/footer.vue'
import biserialListItem from '@/components/biserialListItem/biserialListItem.vue'
import publicListItem from '@/components/public/public-list-item.vue'
import emptyDuck from '@/components/public/empty-duck.vue'
import { ref, reactive, onMounted, onUnmounted, getCurrentInstance, nextTick } from 'vue'
const { proxy } = getCurrentInstance()
import { useRouter } from 'vue-router';
import { ElLoading, ElMessage } from 'element-plus'
import Masonry from 'masonry-layout';
const { proxy } = getCurrentInstance()
const gridContainer = ref(null);
@@ -145,7 +145,7 @@ const identityObj = {
}
const init = () => {
proxy.$post("/tenement/v2/api/user").then(res => {
proxy.$post("/tenement/pc/api/user").then(res => {
if (res.code != 200) return
let data = res.data
@@ -164,6 +164,7 @@ const init = () => {
});
}
let loading = ElLoading.service({
lock: true,
text: 'Loading',
@@ -243,7 +244,7 @@ const cutTab = (value) => {
// 取消收藏
let cancelCollection = data => {
proxy.$post("/tenement/relation/operation", {
proxy.$post("/tenement/pc/api/user/operation", {
token: data['token']
}).then(res => {
if (res.code != 200) return
@@ -521,4 +522,5 @@ onUnmounted(() => {
align-items: center;
border-radius: 16px;
}
</style>