我的房产

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>
@ -99,120 +99,123 @@
</div> </div>
</div> </div>
</div> </div>
<nav-footer :current="1"/> <nav-footer :current="1" />
</div> </div>
</template> </template>
<script> <script>
import { import {
request, request,
picUrl, picUrl,
uniqueByField, uniqueByField,
menuButtonInfo, menuButtonInfo,
NavgateTo NavgateTo
} from '../../../utils'; } from '../../../utils';
import { apiArr } from '../../../api/v2Community'; import {
apiArr
} from '../../../api/v2Community';
export default { export default {
data() { data() {
return { return {
picUrl, communityVal:'添加我的房产',
top: "", picUrl,
localHeight: "", top: "",
queryPage: { localHeight: "",
page_num: 1, queryPage: {
page_size: 10, page_num: 1,
page_size: 10,
},
communityList: [],
flag: false,
functionList: [{
name: "报事报修",
link: "",
url: "http://192.168.0.172:5500/com_homeIcon1.png",
},
{
name: "物业缴费",
link: "/packages/community/propertyPayment/index",
url: "http://192.168.0.172:5500/com_homeIcon2.png",
},
{
name: "物业公积",
link: "/packages/community/providentFund/index",
url: "http://192.168.0.172:5500/com_homeIcon3.png",
},
{
name: "物业公积",
link: "",
url: "http://192.168.0.172:5500/com_homeIcon4.png",
},
{
name: "物业服务",
link: "",
url: "http://192.168.0.172:5500/com_homeIcon5.png",
},
],
ads1Show: false,
ads2Show: false,
}
},
onLoad(options) {
const meun = menuButtonInfo();
this.top = meun.top;
// this.top = meun.height + meun.top;
this.localHeight = meun.height;
// this.getCommunityList()
this.communityVal = uni.getStorageSync('changeCommName')
},
methods: {
desc() {
NavgateTo("../communityDetail/index")
},
apply() {
NavgateTo("../applyOwer/index")
},
closeAds() {
this.ads1Show = false
this.ads2Show = false
},
jump(e) {
console.log(e);
NavgateTo(e)
}, },
communityList: [],
flag: false,
functionList: [ addCommunity() {
{ NavgateTo("/packages/community/myCommunity/index")
name: "报事报修", },
link: "",
url: "http://192.168.0.172:5500/com_homeIcon1.png",
},
{
name: "物业缴费",
link: "/packages/community/propertyPayment/index",
url: "http://192.168.0.172:5500/com_homeIcon2.png",
},
{
name: "物业公积",
link: "/packages/community/providentFund/index",
url: "http://192.168.0.172:5500/com_homeIcon3.png",
},
{
name: "物业公积",
link: "",
url: "http://192.168.0.172:5500/com_homeIcon4.png",
},
{
name: "物业服务",
link: "",
url: "http://192.168.0.172:5500/com_homeIcon5.png",
},
],
ads1Show: false, // getCommunityList() {
ads2Show: false, // let that = this
} // request(apiArr.getCommunityList, 'POST', {
}, // page_num: that.queryPage.page_num,
onLoad(options) { // page_size: that.queryPage.page_size,
const meun = menuButtonInfo(); // user_id:""
this.top = meun.top; // }).then(res => {
// this.top = meun.height + meun.top; // console.log(res)
this.localHeight = meun.height; // if (res.rows.length == that.queryPage.page_size) {
// this.getCommunityList() // that.queryPage.page_num++
}, // that.flag = true
// that.communityList = that.communityList.concat(res.rows)
// }else{
methods: { // that.flag = false
desc() { // that.communityList = that.communityList.concat(res.rows)
NavgateTo("../communityDetail/index") // }
}, // })
apply() { // },
NavgateTo("../applyOwer/index")
},
closeAds() {
this.ads1Show = false
this.ads2Show = false
},
jump(e) {
console.log(e);
NavgateTo(e)
}, },
addCommunity(){
NavgateTo("/packages/community/myCommunity/index")
},
// getCommunityList() { }
// let that = this
// request(apiArr.getCommunityList, 'POST', {
// page_num: that.queryPage.page_num,
// page_size: that.queryPage.page_size,
// user_id:""
// }).then(res => {
// console.log(res)
// if (res.rows.length == that.queryPage.page_size) {
// that.queryPage.page_num++
// that.flag = true
// that.communityList = that.communityList.concat(res.rows)
// }else{
// that.flag = false
// that.communityList = that.communityList.concat(res.rows)
// }
// })
// },
},
}
</script> </script>
<style> <style>
@import url("./index.css"); @import url("./index.css");
</style> </style>

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,30 +29,52 @@
</template> </template>
<script> <script>
import { request, NavgateTo, isPhone } from '../../../utils'; import {
import { apiArr } from '../../../api/community'; request,
export default { NavgateTo,
data() { isPhone
return { } from '../../../utils';
} import {
}, apiArr
methods: { } from '../../../api/community';
addCommunity(){ export default {
NavgateTo("/packages/community/addCommunity/index") data() {
return {
communityList: [],
page_num: 1,
page_size: 10,
}
},
methods: {
addCommunity() {
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) {
this.getList();
},
onLoad(options) { onReachBottom() {},
}
},
onReachBottom() {
},
}
</script> </script>
<style> <style>
@import url("./index.css"); @import url("./index.css");
</style> </style>