我的房产

This commit is contained in:
赵毅 2025-07-07 09:54:39 +08:00
parent b8bd07a9af
commit 2b148c85e8
4 changed files with 154 additions and 127 deletions

View File

@ -33,4 +33,6 @@ export const apiArr = {
getAllList:"/api/v2/wechat/community/get-all-list",//获取小区信息列表 getAllList:"/api/v2/wechat/community/get-all-list",//获取小区信息列表
commRoomSelect:"/api/v2/wechat/community-room/comm-room-select",//房源筛选器 commRoomSelect:"/api/v2/wechat/community-room/comm-room-select",//房源筛选器
commInfo:"/api/v2/wechat/mpuser-crud/community-owner/info",//我的房产信息小区列表
}; };

View File

@ -210,7 +210,6 @@
// this.roomList = res.rows // this.roomList = res.rows
this.step = '4'; this.step = '4';
} else { } else {
console.log(this.step)
this.dialogBoxShow = true; this.dialogBoxShow = true;
this.rName = item.label this.rName = item.label
} }

View File

@ -2,7 +2,7 @@
<div class="container"> <div class="container">
<div class="searchBox" :style="{ height: localHeight + 'px', paddingTop: top + 'px' }"> <div class="searchBox" :style="{ height: localHeight + 'px', paddingTop: top + 'px' }">
<div class="searchBox_add"> <div class="searchBox_add">
<div class="emptyCommunity" @click="addCommunity">添加我的房产</div> <div class="emptyCommunity" @click="addCommunity"> {{communityVal}} </div>
<div class="MyCommunity" v-if="false"> <div class="MyCommunity" v-if="false">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/community_mycommunity.png" <image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/community_mycommunity.png"
mode="aspectFill"></image> mode="aspectFill"></image>
@ -112,12 +112,15 @@ import {
NavgateTo NavgateTo
} from '../../../utils'; } from '../../../utils';
import { apiArr } from '../../../api/v2Community'; import {
apiArr
} from '../../../api/v2Community';
export default { export default {
data() { data() {
return { return {
communityVal:'添加我的房产',
picUrl, picUrl,
top: "", top: "",
localHeight: "", localHeight: "",
@ -128,8 +131,7 @@ export default {
communityList: [], communityList: [],
flag: false, flag: false,
functionList: [ functionList: [{
{
name: "报事报修", name: "报事报修",
link: "", link: "",
url: "http://192.168.0.172:5500/com_homeIcon1.png", url: "http://192.168.0.172:5500/com_homeIcon1.png",
@ -166,6 +168,7 @@ export default {
// this.top = meun.height + meun.top; // this.top = meun.height + meun.top;
this.localHeight = meun.height; this.localHeight = meun.height;
// this.getCommunityList() // this.getCommunityList()
this.communityVal = uni.getStorageSync('changeCommName')
}, },

View File

@ -7,14 +7,15 @@
</view> </view>
<div class="communityList"> <div class="communityList">
<div class="communityItem" v-for="item in 3"> <div class="communityItem" v-for="item in communityList">
<div class="communityItem_left"> <div class="communityItem_left">
<div class="communityItem_left_img"> <div class="communityItem_left_img">
<image src="http://192.168.0.172:5500/test.png"></image> <image src="http://192.168.0.172:5500/test.png"></image>
</div> </div>
<div class="communityItem_left_msg"> <div class="communityItem_left_msg" @click="toUpview(item.name)">
<div class="communityItem_left_msg_tit">世纪名城东区<span>5</span></div> <div class="communityItem_left_msg_tit">{{item.name}}<span> {{item.room_owner_list.length}}
<div class="communityItem_left_msg_msg">河北省 石家庄市 桥西区 塔谈国际 108km</div> </span></div>
<div class="communityItem_left_msg_msg">{{item.addr}}</div>
</div> </div>
</div> </div>
<div class="communityItem_right"> <div class="communityItem_right">
@ -28,27 +29,49 @@
</template> </template>
<script> <script>
import { request, NavgateTo, isPhone } from '../../../utils'; import {
import { apiArr } from '../../../api/community'; request,
NavgateTo,
isPhone
} from '../../../utils';
import {
apiArr
} from '../../../api/community';
export default { export default {
data() { data() {
return { return {
communityList: [],
page_num: 1,
page_size: 10,
} }
}, },
methods: { methods: {
addCommunity() { addCommunity() {
NavgateTo("/packages/community/addCommunity/index") NavgateTo("/packages/community/addCommunity/index")
}, },
async getList() {
await request(apiArr.commInfo, "POST", {
user_id: uni.getStorageSync('userId'),
longitude: uni.getStorageSync('location').lng,
latitude: uni.getStorageSync('location').lat,
page_num: this.page_num,
page_size: this.page_size
}).then(res => {
this.communityList = res.rows
console.log(res)
})
},
toUpview(name) {
uni.setStorageSync('changeCommName', name);
NavgateTo("/packages/community/index/index")
}
}, },
onLoad(options) { onLoad(options) {
this.getList();
}, },
onReachBottom() { onReachBottom() {},
},
} }
</script> </script>