修改搜索页面的我的按钮

This commit is contained in:
A1300399510
2023-08-01 15:18:11 +08:00
parent 54bc83080d
commit 3c4571fd53

View File

@@ -18,7 +18,7 @@
<img src="../../assets/homeImage/Mycollect.png" class="img" alt=""> <img src="../../assets/homeImage/Mycollect.png" class="img" alt="">
我的收藏 我的收藏
</div> </div>
<div class="tool-btn dis-f al-item jus-x mg-l-10" @click="gouser('fav')"> <div class="tool-btn dis-f al-item jus-x mg-l-10" @click="gouser('publish')">
<img src="../../assets/homeImage/informationO.png" class="img" alt=""> <img src="../../assets/homeImage/informationO.png" class="img" alt="">
我的发布 我的发布
</div> </div>
@@ -74,7 +74,8 @@
中介房源 {{ seachKey.key && seachKey.key.intermediary && seachKey.key.intermediary.count }} 中介房源 {{ seachKey.key && seachKey.key.intermediary && seachKey.key.intermediary.count }}
</div> </div>
<div class="top-btn dis-f jus-x al-item third" @click="selectPage('apartment')" <div class="top-btn dis-f jus-x al-item third" @click="selectPage('apartment')"
:class="{ 'select-top-btn-bg': tabType === 'apartment' }" v-if="!isNeedHousing&&houseingPageType!=6"> :class="{ 'select-top-btn-bg': tabType === 'apartment' }"
v-if="!isNeedHousing && houseingPageType != 6">
<div class="second-select-third-box" v-show="tabType === 'intermediary'"> <div class="second-select-third-box" v-show="tabType === 'intermediary'">
<div class="box"> <div class="box">
@@ -438,7 +439,13 @@ defineExpose({
}) })
// 跳转我的页面 // 跳转我的页面
const gouser = tab => route.push(`/user?tab=${tab}`) const gouser = tab => {
if (!store.state['user']['uid']) {
store.state.showloginmodal = true
return
}
route.push(`/user?tab=${tab}`)
}
</script> </script>
<style scoped> <style scoped>