公寓列表
This commit is contained in:
@@ -69,11 +69,17 @@
|
||||
<div class="quantity wid1200" v-else>共 <b>{{ count['publish'] }}</b> 条房源(上架 {{ stat['listing'] }} | 草稿 {{ stat['draft']
|
||||
}} | 下架 {{ stat['offshelf'] }})</div>
|
||||
|
||||
<div class="list wid1200 flexflex">
|
||||
<div class="item" v-for="item in 10">
|
||||
<biserial-list-item></biserial-list-item>
|
||||
<div class="list wid1200 flexflex" v-if="tabState == 'fav'">
|
||||
<div class="item" v-for="item in favData['list']">
|
||||
<public-list-item :item="item"></public-list-item>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list wid1200 flexflex" v-if="tabState == 'publish'">
|
||||
<div class="item" v-for="item in publishData['list']">
|
||||
<public-list-item :item="item"></public-list-item>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 有疑问 -->
|
||||
<have-questions></have-questions>
|
||||
@@ -91,6 +97,7 @@ import systematicNotificationPop from '@/components/user/systematic-notification
|
||||
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 { ref, reactive, onMounted, getCurrentInstance } from 'vue'
|
||||
const { proxy } = getCurrentInstance()
|
||||
import { ElLoading } from 'element-plus'
|
||||
@@ -105,7 +112,7 @@ let user = ref({})
|
||||
let count = ref({}) // 发布和收藏的数量
|
||||
let newmessagenum = ref(0)
|
||||
let validityidentity = ref('')
|
||||
let tabState = ref('publish') // fav publish
|
||||
let tabState = ref('fav') // fav publish
|
||||
|
||||
const identityObj = {
|
||||
1: "中介认证",
|
||||
@@ -117,13 +124,15 @@ async function init() {
|
||||
if (res.code != 200) return
|
||||
let data = res.data
|
||||
|
||||
if (data.count['publish'] > 0) {
|
||||
tabState.value = 'publish'
|
||||
getPublishData()
|
||||
} else {
|
||||
tabState.value = 'fav'
|
||||
getFavData()
|
||||
}
|
||||
// if (data.count['publish'] > 0) {
|
||||
// tabState.value = 'publish'
|
||||
// getPublishData()
|
||||
// } else {
|
||||
// tabState.value = 'fav'
|
||||
// getFavData()
|
||||
// }
|
||||
|
||||
getFavData()
|
||||
|
||||
user.value = data.user
|
||||
count.value = data.count
|
||||
@@ -408,6 +417,4 @@ const cutTab = (value) => {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user