我的房产
This commit is contained in:
parent
b8bd07a9af
commit
2b148c85e8
@ -33,4 +33,6 @@ export const apiArr = {
|
||||
getAllList:"/api/v2/wechat/community/get-all-list",//获取小区信息列表
|
||||
commRoomSelect:"/api/v2/wechat/community-room/comm-room-select",//房源筛选器
|
||||
|
||||
commInfo:"/api/v2/wechat/mpuser-crud/community-owner/info",//我的房产信息小区列表
|
||||
|
||||
};
|
||||
@ -210,7 +210,6 @@
|
||||
// this.roomList = res.rows
|
||||
this.step = '4';
|
||||
} else {
|
||||
console.log(this.step)
|
||||
this.dialogBoxShow = true;
|
||||
this.rName = item.label
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<div class="container">
|
||||
<div class="searchBox" :style="{ height: localHeight + 'px', paddingTop: top + 'px' }">
|
||||
<div class="searchBox_add">
|
||||
<div class="emptyCommunity" @click="addCommunity">添加我的房产</div>
|
||||
<div class="emptyCommunity" @click="addCommunity"> {{communityVal}} </div>
|
||||
<div class="MyCommunity" v-if="false">
|
||||
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/community_mycommunity.png"
|
||||
mode="aspectFill"></image>
|
||||
@ -99,120 +99,123 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<nav-footer :current="1"/>
|
||||
<nav-footer :current="1" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
request,
|
||||
picUrl,
|
||||
uniqueByField,
|
||||
menuButtonInfo,
|
||||
NavgateTo
|
||||
} from '../../../utils';
|
||||
import {
|
||||
request,
|
||||
picUrl,
|
||||
uniqueByField,
|
||||
menuButtonInfo,
|
||||
NavgateTo
|
||||
} from '../../../utils';
|
||||
|
||||
import { apiArr } from '../../../api/v2Community';
|
||||
import {
|
||||
apiArr
|
||||
} from '../../../api/v2Community';
|
||||
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
picUrl,
|
||||
top: "",
|
||||
localHeight: "",
|
||||
queryPage: {
|
||||
page_num: 1,
|
||||
page_size: 10,
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
communityVal:'添加我的房产',
|
||||
picUrl,
|
||||
top: "",
|
||||
localHeight: "",
|
||||
queryPage: {
|
||||
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: [
|
||||
{
|
||||
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()
|
||||
},
|
||||
addCommunity() {
|
||||
NavgateTo("/packages/community/myCommunity/index")
|
||||
},
|
||||
|
||||
|
||||
methods: {
|
||||
desc() {
|
||||
NavgateTo("../communityDetail/index")
|
||||
},
|
||||
apply() {
|
||||
NavgateTo("../applyOwer/index")
|
||||
},
|
||||
closeAds() {
|
||||
this.ads1Show = false
|
||||
this.ads2Show = false
|
||||
},
|
||||
jump(e) {
|
||||
console.log(e);
|
||||
NavgateTo(e)
|
||||
// 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)
|
||||
// }
|
||||
// })
|
||||
// },
|
||||
},
|
||||
|
||||
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>
|
||||
|
||||
<style>
|
||||
@import url("./index.css");
|
||||
@import url("./index.css");
|
||||
</style>
|
||||
@ -7,14 +7,15 @@
|
||||
</view>
|
||||
|
||||
<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_img">
|
||||
<image src="http://192.168.0.172:5500/test.png"></image>
|
||||
</div>
|
||||
<div class="communityItem_left_msg">
|
||||
<div class="communityItem_left_msg_tit">世纪名城东区<span>(5)</span></div>
|
||||
<div class="communityItem_left_msg_msg">河北省 石家庄市 桥西区 塔谈国际 108km</div>
|
||||
<div class="communityItem_left_msg" @click="toUpview(item.name)">
|
||||
<div class="communityItem_left_msg_tit">{{item.name}}<span>( {{item.room_owner_list.length}}
|
||||
)</span></div>
|
||||
<div class="communityItem_left_msg_msg">{{item.addr}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="communityItem_right">
|
||||
@ -28,30 +29,52 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { request, NavgateTo, isPhone } from '../../../utils';
|
||||
import { apiArr } from '../../../api/community';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
addCommunity(){
|
||||
NavgateTo("/packages/community/addCommunity/index")
|
||||
import {
|
||||
request,
|
||||
NavgateTo,
|
||||
isPhone
|
||||
} from '../../../utils';
|
||||
import {
|
||||
apiArr
|
||||
} from '../../../api/community';
|
||||
export default {
|
||||
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>
|
||||
|
||||
<style>
|
||||
@import url("./index.css");
|
||||
</style>
|
||||
@import url("./index.css");
|
||||
</style>
|
||||
Loading…
x
Reference in New Issue
Block a user