修改我的房产页面的顶部导航

This commit is contained in:
赵毅 2025-09-03 17:07:19 +08:00
parent 82a7e33889
commit 730e697798
3 changed files with 52 additions and 7 deletions

View File

@ -4,6 +4,39 @@ page {
overflow-y: hidden;
}
.searchBox {
padding-bottom: 24rpx;
background-color: #fff;
margin-top: 105rpx;
}
.searchBox_add {
height: 100%;
width: 100%;
display: flex;
}
.searchBox_left {
flex: 1;
display: flex;
align-items: center;
padding-left: 20rpx;
}
.searchBox_mid {
flex: 1;
font-size: 40rpx;
color: #222222;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
}
.searchBox_right {
flex: 1;
}
.container {
min-height: 100vh;
}

View File

@ -1,10 +1,18 @@
<template>
<view class="container">
<view class="searchBox" :style="{ height: localHeight + 'px', paddingTop: top + 'px' }">
<view class="searchBox_add">
<view class="searchBox_left">
<u-icon bold color="#000" size="40" name="arrow-left" @click="back"></u-icon>
</view>
<view class="searchBox_mid">我的房产</view>
<view class="searchBox_right"></view>
</view>
</view>
<view class="empty" v-if="communityList.length == 0">
<view class="emptyTitle">绑定房源</view>
<view class="emptyMsg">请绑定房源信息 以便使用其他功能</view>
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community_no_image3.png"
alt="" />
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community_no_image3.png" alt="" />
</view>
<view class="communityList">
@ -15,7 +23,8 @@
<image :src="item.pic" mode="aspectFill"></image>
</view>
<view class="communityItem_left_msg">
<view class="communityItem_left_msg_tit">{{ item.name }}<span> {{ item.room_owner_list.length }}
<view class="communityItem_left_msg_tit">{{ item.name }}<span> {{ item.room_owner_list.length
}}
</span></view>
<view class="communityItem_left_msg_msg">{{ item.addr }}</view>
</view>
@ -53,6 +62,9 @@ export default {
}
},
methods: {
back() {
NavgateTo("/packages/community/index/index")
},
addCommunity() {
NavgateTo("/packages/community/addCommunity/index")
},
@ -78,7 +90,7 @@ export default {
choseCommunity(e) {
this.currentCommunity = e
uni.setStorageSync('changeCommData', { id: e.community_id, name: e.name });
uni.setStorageSync('currentCommunityAddr',e.addr);
uni.setStorageSync('currentCommunityAddr', e.addr);
uni.setStorageSync("isShowNav", e.room_owner_list[0].type)
NavgateTo("1")
},

View File

@ -160,8 +160,8 @@
{
"path": "myCommunity/index",
"style": {
"navigationBarTitleText": "我的房产",
"navigationBarBackgroundColor": "#FFF"
"navigationBarTitleText": "",
"navigationStyle": "custom"
}
},
{