diff --git a/api/houseAudit.js b/api/houseAudit.js new file mode 100644 index 0000000..8a043e7 --- /dev/null +++ b/api/houseAudit.js @@ -0,0 +1,20 @@ +var fly = require('../utils/request.js') + +module.exports = { + getHousesalerentinfo, + housesalerentinfoAudit, +} + + +// 获取审核列表 +function getHousesalerentinfo(params) { + return fly.get('work/custom/housesalerentinfo/list2audit', { + pageNum:params.pageNum, + pageSize:params.pageSize, + auditStatus:params.auditStatus, + }) +} +// 提交房屋处理 +function housesalerentinfoAudit(params) { + return fly.post('work/custom/housesalerentinfo/audit', params) +} diff --git a/components/userManage/userManage.js b/components/userManage/userManage.js index 4caa6ce..ac7d390 100644 --- a/components/userManage/userManage.js +++ b/components/userManage/userManage.js @@ -109,6 +109,10 @@ Component({ wx.navigateTo({ url: `../../../pages/user_moudle/certificationDetails/certificationDetails?userId=${userId}&partyFlag=1` }) + }else if (this.searchData.index == 4) {//党员认证失败 + wx.navigateTo({ + url: `../../subpages/houseAudit/page/index/index` + }) } } diff --git a/images/family/down.png b/images/family/down.png new file mode 100644 index 0000000..f4d7d7d Binary files /dev/null and b/images/family/down.png differ diff --git a/images/family/plus.png b/images/family/plus.png new file mode 100644 index 0000000..69cd0b7 Binary files /dev/null and b/images/family/plus.png differ diff --git a/images/family/reply.png b/images/family/reply.png new file mode 100644 index 0000000..611fd0f Binary files /dev/null and b/images/family/reply.png differ diff --git a/images/family/sub.png b/images/family/sub.png new file mode 100644 index 0000000..4b6272c Binary files /dev/null and b/images/family/sub.png differ diff --git a/images/family/user.png b/images/family/user.png new file mode 100644 index 0000000..4fd3ac4 Binary files /dev/null and b/images/family/user.png differ diff --git a/images/search.png b/images/search.png new file mode 100644 index 0000000..137650f Binary files /dev/null and b/images/search.png differ diff --git a/pages/index/index.js b/pages/index/index.js index d267074..2367bc4 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -135,6 +135,8 @@ Page({ let tmp = e.currentTarget.dataset.tmp let state = e.currentTarget.dataset.state let navCode = e.currentTarget.dataset.navcode + console.log(tmp); + console.log(navCode); switch (tmp) { case 'tmp-1': let childNav = []; @@ -166,6 +168,8 @@ Page({ case 'tmp-3': + //一户一码审核 + if(navCode!='0205'){ let b_childNav = []; for (let i = 0; i < this.data.panel.length; i++) { if (this.data.panel[i].templateInfo !== null) { @@ -176,7 +180,12 @@ Page({ } wx.navigateTo({ url: '/pages/user_moudle/userManageList/userManageList?state=' + state + '&childNav=' + JSON.stringify(b_childNav) - }) + }) + }else{ + wx.navigateTo({ + url: "../../subpages/houseAudit/page/index/index" + }) + } break case 'tmp-4': diff --git a/subpages/family/pages/index/index.js b/subpages/family/pages/index/index.js index b63a97b..71fa53c 100644 --- a/subpages/family/pages/index/index.js +++ b/subpages/family/pages/index/index.js @@ -11,6 +11,11 @@ Page({ showQr: true, memberList:[], roomCode:null, + selectedTabBar:"resiNew", + loadMoreVisible:false, + keyWord:'',//房屋搜索字段 + houseInfo:[], + houseFlag:'1' }, /** @@ -62,10 +67,92 @@ Page({ }, // 跳转新增页面 handleTo(){ + if(this.data.selectedTabBar=='resiNew'){ + wx.navigateTo({ + url: '/subpages/family/pages/familyInfo/familyInfo?pageType=add&id='+ this.data.familyInfo.id + }) + }else if(this.data.selectedTabBar=='housePrice'){ + wx.navigateTo({ + url: '/subpages/family/pages/addHouse/addHouse?name=卖房', + }) + }else if(this.data.selectedTabBar=='groupPrice'){ + wx.navigateTo({ + url: '/subpages/family/pages/addGroupBuyPublish/addGroupBuyPublish', + }) + }else{ + + } + }, + chooseTabBar(e) { + this.data.pageNo = 1 + this.data.pageSize = 10 + if (e.currentTarget.dataset.type === 'resiNew') { + // this.getresiNewList() + } else if (e.currentTarget.dataset.type === 'housePrice') { + this.data.pageNo = 1 + this.data.pageSize = 10 + // this.getHousesalerentinfo() + } else if (e.currentTarget.dataset.type === 'groupPrice') { + + }else if (e.currentTarget.dataset.type === 'integral'){ + // this.getgroupPriceList() + wx.showLoading({ + title: "加载中", + mask: true, + }); + this.navigateToIntegralCentre() + + } + this.setData({ + selectedTabBar: e.currentTarget.dataset.type, + }) + console.log(this.data.selectedTabBar); + }, + handleActiveHouse(e){ + this.setData({ + houseFlag:e.currentTarget.dataset.status, + loadMoreVisible: false + }) + this.getHousesalerentinfo() +}, +handelKeyword(e){ + this.setData({ + keyWord:e.detail.value + }) + this.getHousesalerentinfo() + }, + navigateToIntegralCentre() { wx.navigateTo({ - url: '/subpages/family/pages/familyInfo/familyInfo?pageType=add&id='+ this.data.familyInfo.id + url:'/subpages/pointManagement/pages/pointList/pointList' }) + wx.hideLoading() }, + getHousesalerentinfo(){ + let parmas = { + pageNum:this.data.pageNo, + pageSize:this.data.pageSize, + houseStatus:this.data.houseFlag, + search:this.data.keyWord + } + wx.showLoading({ + title: '加载中', + }) + api + .getHousesalerentinfo(parmas) + .then((res) => { + console.log('房屋列表', res) + for(let i in res.data.list){ + res.data.list[i].createdData = res.data.list[i].createdData.substr(0,10) + } + this.setData({ + houseInfo:res.data.list, + }) + }) + .catch((err) => { + console.log(err) + }) + wx.hideLoading() +}, // 跳转查看页面 toFamilyInfo(e){ wx.navigateTo({ diff --git a/subpages/family/pages/index/index.wxml b/subpages/family/pages/index/index.wxml index c926951..c611f29 100644 --- a/subpages/family/pages/index/index.wxml +++ b/subpages/family/pages/index/index.wxml @@ -1,5 +1,6 @@ - + + @@ -25,40 +26,101 @@ - - - 成员新了 - 房价涨了 - 快递来了 - - - - - - - - 姓名 - 成员关系 - 手机号 - 明细 - - - - {{ item.userName }} - {{ item.relation }} - {{ item.mobile }} - 查看 - - - 暂无成员 - - + + + 成员新了 + + + 房价涨了 + + + 团购火了 + + + 积分多了 + + + + + + + + + 姓名 + 成员关系 + 手机号 + 明细 + + + + {{ item.userName }} + {{ item.relation }} + + {{ item.mobile }} + 待审核 + 查看 + + + 暂无成员 + + + 暂无家庭信息 + + + + + 我要买房 + 我要租房 + + + + + + + + + + + + {{item.address}} + {{houseFlag == '1'?'在售':'在租'}} + {{item.createdData}} + + {{item.price}} + + + {{item.description}} + + + + + + 暂无房屋信息 + 没有更多了~ + + + + + + + + 【社区送达】 护手霜 + 已截团 2023-04-23 15:10:22 + + + + - 暂无家庭信息 + + + diff --git a/subpages/family/wxss/family.wxss b/subpages/family/wxss/family.wxss index 9d0fd81..95c4a8f 100644 --- a/subpages/family/wxss/family.wxss +++ b/subpages/family/wxss/family.wxss @@ -1 +1,595 @@ -page{background:#fff;box-sizing:border-box}.f-container{width:100%;box-sizing:border-box}.f-top{position:relative;width:100%;height:200rpx;background:#e3271c;border-radius:0 0 30rpx 30rpx;-webkit-border-radius:0 0 30rpx 30rpx;-moz-border-radius:0 0 30rpx 30rpx;-ms-border-radius:0 0 30rpx 30rpx;-o-border-radius:0 0 30rpx 30rpx}.f-top .flex-view{display:flex;justify-content:space-between;}.f-top .f-card{position:absolute;left:50%;bottom:-64rpx;width:690rpx;height:200rpx;margin-left:-345rpx;background-color:#fff;box-sizing:border-box;padding:28rpx 30rpx 18rpx;box-shadow: rgba(184,184,184,.25) 0px 0px 30px 5px;overflow:hidden;border-radius:14rpx;-moz-border-radius:14rpx;-ms-border-radius:14rpx;-o-border-radius:14rpx;-webkit-border-radius:14rpx}.f-top .f-card .card-right{flex-shrink:0;margin-left:10rpx}.f-top .f-card .card-title{height:96rpx;font-family:PingFang-SC-Bold;font-size:34rpx;letter-spacing:1rpx;color:#333;overflow:hidden}.f-top .f-card .card-num{display:flex;align-items:center;font-family:PingFang-SC-Medium;font-size:28rpx;letter-spacing:1rpx;color:#333;overflow:hidden}.f-top .f-card .card-num image{flex-shrink:0;width:32rpx;height:18rpx}.f-top .f-card .card-qr{width:30rpx;height:30rpx;}.f-top .f-card .card-qr image{display:block;width:100%;height:100%;}.f-top .f-card .card-qr-long{width:100rpx;height:100rpx}.f-top .f-card .card-qr-name{font-family:PingFang-SC-Regular;font-size:22rpx;font-weight:400;font-stretch:normal;letter-spacing:1rpx;color:#333}.f-wr{width:100%;box-sizing:border-box;padding:100rpx 20rpx 0}.title-right,.title-wr{display:flex;align-items:center}.title-wr{justify-content:space-between;padding:28rpx 0;border-bottom:1rpx solid #e7eeee}.title-wr .title-label{position:relative;padding-left:25rpx;font-family:PingFang-SC-Bold;font-size:34rpx;font-weight:400;font-stretch:normal;letter-spacing:0;color:#333}.title-wr .title-label::after{content:'';position:absolute;top:50%;left:0;width:6rpx;height:30rpx;margin-top:-15rpx;background-color:#e60000;border-radius:3rpx;-webkit-border-radius:3rpx;-moz-border-radius:3rpx;-ms-border-radius:3rpx;-o-border-radius:3rpx}.title-wr .title-right-label{font-family:PingFang-SC-Light;font-size:26rpx;font-weight:400;font-stretch:normal;color:#999}.title-wr .right-icon{width:30rpx;height:30rpx}.f-table{background-color:#fbfbfb}.f-table .table-cell{display:flex;align-items:center;padding:26rpx 0;border:solid 1rpx #e3e3e3;border-top:0;font-family:PingFang-SC-Regular;font-size:30rpx;color:#000003}.f-table .table-cell .table-col{flex:1;text-align:center;line-height:1}.f-table .table-cell .table-col-4{color:#dd2a2a}.f-table .table-header{background:#f1f1f1;border:0;font-family:PingFang-SC-Regular;font-size:28rpx;color:#666}.f-btns{display:flex;align-items:center;padding:30rpx 0}.f-btns .f-btns-icon{width:30rpx;height:30rpx;font-size:28rpx;color:#dd2a2a;text-align:center;line-height:30rpx;border:1rpx solid #dd2a2a;border-radius:50%;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%}.f-btns .f-btns-label{margin-left:10rpx;font-size:28rpx;color:#dd2a2a}.mt40{margin-top:40rpx}.mt16{margin-top:16rpx}.no-data{font-size:28rpx;color:#999;text-align:center;line-height:300rpx}.m-fm .fm{top:500rpx;width:600rpx;padding:0 0 40rpx 0;background:#fff;overflow:hidden}.m-fm .fm .btn-close{top:27rpx;padding:0 30rpx;font-size:36rpx;color:#fff;line-height:90rpx}.m-fm .fm .btn-close image{display:block;width:36rpx;height:36rpx}.m-fm .fm .fm-btn{width:240rpx;height:54rpx;margin:20rpx auto 0;font-family:PingFang-SC-Medium;font-size:28rpx;font-weight:400;font-stretch:normal;letter-spacing:0;color:#999;text-align:center;line-height:54rpx;border-radius:27rpx;border:solid 1rpx #eee;-webkit-border-radius:27rpx;-moz-border-radius:27rpx;-ms-border-radius:27rpx;-o-border-radius:27rpx}.m-fm .fm-header{width:100%;height:90rpx;margin-bottom:20rpx;text-align:center;line-height:90rpx;font-family:PingFang-SC-Bold;font-size:32rpx;color:#fff;background-image:linear-gradient(90deg,#ca151d 0,#e11c13 100%)}.m-fm .fm-qr{width:400rpx;height:400rpx;box-sizing:border-box;margin:0 auto}.m-fm .fm-qr image{display:block;width:100%;height:100%}.no-family{padding-top:200rpx}.no-family image{display:block;width:506rpx;margin:0 auto}.no-family .no-btn{width:220rpx;height:66rpx;margin:60rpx auto 0;font-size:32rpx;color:#fff;text-align:center;line-height:66rpx;background-image:linear-gradient(90deg,#ca151d 0,#e11c13 100%);border-radius:30rpx;-webkit-border-radius:30rpx;-moz-border-radius:30rpx;-ms-border-radius:30rpx;-o-border-radius:30rpx} \ No newline at end of file +page { + background: #fff; + box-sizing: border-box +} + +.f-container { + width: 100%; + box-sizing: border-box +} + +.f-top { + position: relative; + width: 100%; + height: 200rpx; + background: #e3271c; + border-radius: 0 0 30rpx 30rpx; + -webkit-border-radius: 0 0 30rpx 30rpx; + -moz-border-radius: 0 0 30rpx 30rpx; + -ms-border-radius: 0 0 30rpx 30rpx; + -o-border-radius: 0 0 30rpx 30rpx +} + +.f-top .flex-view { + display: flex; + justify-content: space-between; +} + +.f-top .f-card { + position: absolute; + left: 50%; + bottom: -64rpx; + width: 690rpx; + height: 200rpx; + margin-left: -345rpx; + background-color: #fff; + box-sizing: border-box; + padding: 28rpx 30rpx 18rpx; + box-shadow: rgba(184, 184, 184, .25) 0px 0px 30px 5px; + overflow: hidden; + border-radius: 14rpx; + -moz-border-radius: 14rpx; + -ms-border-radius: 14rpx; + -o-border-radius: 14rpx; + -webkit-border-radius: 14rpx +} + +.f-top .f-card .card-right { + flex-shrink: 0; + margin-left: 10rpx +} + +.f-top .f-card .card-title { + height: 96rpx; + font-family: PingFang-SC-Bold; + font-size: 34rpx; + letter-spacing: 1rpx; + color: #333; + overflow: hidden +} + +.f-top .f-card .card-num { + display: flex; + align-items: center; + font-family: PingFang-SC-Medium; + font-size: 28rpx; + letter-spacing: 1rpx; + color: #333; + overflow: hidden +} + +.f-top .f-card .card-num image { + flex-shrink: 0; + width: 32rpx; + height: 18rpx +} + +.f-top .f-card .card-qr { + width: 30rpx; + height: 30rpx; +} + +.f-top .f-card .card-qr image { + display: block; + width: 100%; + height: 100%; +} + +.f-top .f-card .card-qr-long { + width: 100rpx; + height: 100rpx +} + +.f-top .f-card .card-qr-name { + font-family: PingFang-SC-Regular; + font-size: 22rpx; + font-weight: 400; + font-stretch: normal; + letter-spacing: 1rpx; + color: #333 +} + +.f-wr { + width: 100%; + box-sizing: border-box; + padding: 100rpx 20rpx 0 +} + +.title-right, +.title-wr { + display: flex; + align-items: center +} + +.title-wr { + justify-content: space-between; + padding: 28rpx 0; + border-bottom: 1rpx solid #e7eeee +} + +.title-wr .title-label { + position: relative; + padding-left: 25rpx; + font-family: PingFang-SC-Bold; + font-size: 34rpx; + font-weight: 400; + font-stretch: normal; + letter-spacing: 0; + color: #333 +} + +.title-wr .title-label::after { + content: ''; + position: absolute; + top: 50%; + left: 0; + width: 6rpx; + height: 30rpx; + margin-top: -15rpx; + background-color: #e60000; + border-radius: 3rpx; + -webkit-border-radius: 3rpx; + -moz-border-radius: 3rpx; + -ms-border-radius: 3rpx; + -o-border-radius: 3rpx +} + +.title-wr .title-right-label { + font-family: PingFang-SC-Light; + font-size: 26rpx; + font-weight: 400; + font-stretch: normal; + color: #999 +} + +.title-wr .right-icon { + width: 30rpx; + height: 30rpx +} + +.f-table { + background-color: #fbfbfb +} + +.f-table .table-cell { + display: flex; + align-items: center; + padding: 26rpx 0; + border: solid 1rpx #e3e3e3; + border-top: 0; + font-family: PingFang-SC-Regular; + font-size: 30rpx; + color: #000003 +} + +.f-table .table-cell .table-col { + flex: 1; + text-align: center; + line-height: 1 +} + +.f-table .table-cell .table-col-4 { + color: #dd2a2a +} + +.f-table .table-header { + background: #f1f1f1; + border: 0; + font-family: PingFang-SC-Regular; + font-size: 28rpx; + color: #666 +} + +.f-btns { + display: flex; + align-items: center; + padding: 30rpx 0 +} + +.f-btns .f-btns-icon { + width: 30rpx; + height: 30rpx; + font-size: 28rpx; + color: #dd2a2a; + text-align: center; + line-height: 30rpx; + border: 1rpx solid #dd2a2a; + border-radius: 50%; + -webkit-border-radius: 50%; + -moz-border-radius: 50%; + -ms-border-radius: 50%; + -o-border-radius: 50% +} + +.f-btns .f-btns-label { + margin-left: 10rpx; + font-size: 28rpx; + color: #dd2a2a +} + +.mt40 { + margin-top: 40rpx +} + +.mt16 { + margin-top: 16rpx +} + +.no-data { + font-size: 28rpx; + color: #999; + text-align: center; + line-height: 300rpx +} + +.m-fm .fm { + top: 500rpx; + width: 600rpx; + padding: 0 0 40rpx 0; + background: #fff; + overflow: hidden +} + +.m-fm .fm .btn-close { + top: 27rpx; + padding: 0 30rpx; + font-size: 36rpx; + color: #fff; + line-height: 90rpx +} + +.m-fm .fm .btn-close image { + display: block; + width: 36rpx; + height: 36rpx +} + +.m-fm .fm .fm-btn { + width: 240rpx; + height: 54rpx; + margin: 20rpx auto 0; + font-family: PingFang-SC-Medium; + font-size: 28rpx; + font-weight: 400; + font-stretch: normal; + letter-spacing: 0; + color: #999; + text-align: center; + line-height: 54rpx; + border-radius: 27rpx; + border: solid 1rpx #eee; + -webkit-border-radius: 27rpx; + -moz-border-radius: 27rpx; + -ms-border-radius: 27rpx; + -o-border-radius: 27rpx +} + +.m-fm .fm-header { + width: 100%; + height: 90rpx; + margin-bottom: 20rpx; + text-align: center; + line-height: 90rpx; + font-family: PingFang-SC-Bold; + font-size: 32rpx; + color: #fff; + background-image: linear-gradient(90deg, #ca151d 0, #e11c13 100%) +} + +.m-fm .fm-qr { + width: 400rpx; + height: 400rpx; + box-sizing: border-box; + margin: 0 auto +} + +.m-fm .fm-qr image { + display: block; + width: 100%; + height: 100% +} + +.no-family { + padding-top: 200rpx +} + +.no-family image { + display: block; + width: 506rpx; + margin: 0 auto +} + +.no-family .no-btn { + width: 220rpx; + height: 66rpx; + margin: 60rpx auto 0; + font-size: 32rpx; + color: #fff; + text-align: center; + line-height: 66rpx; + background-image: linear-gradient(90deg, #ca151d 0, #e11c13 100%); + border-radius: 30rpx; + -webkit-border-radius: 30rpx; + -moz-border-radius: 30rpx; + -ms-border-radius: 30rpx; + -o-border-radius: 30rpx +} +.tab-bar { + width: 100%; + height: 90rpx; + background: #fff; + overflow-x: scroll; + display: flex; + align-items: center; + justify-content: space-around; + position: relative; + padding:0 60rpx; + box-sizing: border-box; +} + +.tab-bar .type { + font-size: 30rpx; + color: #999; + flex: 1; + text-align: center; + /* width: 300rpx; */ + height: 90rpx; + line-height: 90rpx; +} + +.tab-bar .hover-tabbar { + background: #f3f3f3; +} + +.tab-bar .type.selected-resiNew { + color: #F82525; + font-weight: bolder; +} + +.tab-bar .type.selected-housePrice { + color: #F82525; + font-weight: bolder; +} + +.tab-bar .type.selected-groupPrice { + color: #F82525; + font-weight: bolder; +} + +.tab-bar .type.selected-integral { + color: #F82525; + font-weight: bolder; +} + +.tab-bar .select-bar { + position: absolute; + bottom: 0; + left: 0; + width: 80rpx; + height: 6rpx; + background: #f95454; + border-radius: 4rpx; + transition: left 0.5s ease; +} + +.tab-bar .select-bar.selected-resiNew { + left: 12%; + transition: left 0.5s ease; + } + + .tab-bar .select-bar.selected-housePrice { + left: 34%; + transition: left 0.5s ease; + } + + .tab-bar .select-bar.selected-groupPrice { + left: 54%; + transition: left 0.5s ease; + } + .tab-bar .select-bar.selected-integral { + left: 75%; + transition: left 0.5s ease; +} +.f-wr .housePrice-list { + overflow-y: scroll; +} +.f-wr .housePrice-list .housePrice-hader{ + display: flex; + padding: 20rpx 61rpx; + background-color: #fff; + +} +.f-wr .housePrice-list .housePrice-hader .active_btn{ + background: #dc1e20; + color: #fff; + border: 1px solid #dc1e20; + opacity: 1; +} +.f-wr .housePrice-list .search-box{ + display: flex; + margin-top: 20rpx; + height: 60rpx; + line-height: 60rpx; + align-items: center; + padding: 0 30rpx; + position: relative; +} +.f-wr .housePrice-list .housePrice-content{ + width: 100%; + height: 440rpx; + border-radius: 5%; + margin-top: 20rpx; + box-sizing: border-box; + background-color: #fff; +} +.housePrice-images{ + display: flex; + justify-content: left; + padding: 20rpx 20rpx 0rpx 0rpx; + background-color: #fff; + height: 230rpx; + border-radius: 0 0 5rpx 5rpx; +} +.housePrice-images image{ + margin-left: 20rpx; + border-radius: 5rpx; + float: left; + height: 207rpx; + width: 202rpx; +} +.f-wr .housePrice-list .housePrice-content view{ + background-color: #fff; +} +.f-wr .housePrice-list .housePrice-content .housePrice-header{ + display: flex; + background-color: #fff; + box-sizing: border-box; + padding: 10rpx 0 10rpx 0; + border-radius: 5rpx 5rpx 0 0 ; +} +.f-wr .housePrice-list .housePrice-content .housePrice-body{ + padding: 0 20rpx; +} +.f-wr .housePrice-list .housePrice-content .housePrice-header image{ + width: 100rpx; + height: 100rpx; + border-radius: 50%; +} +.f-wr .housePrice-list .housePrice-content .housePrice-header .housePrice-header-name { + display: flex; + flex-direction: column; + justify-content: center; + padding:0 20rpx; + flex: 1; +} +.housePrice-header-top{ + display: flex; + justify-content: space-between; + align-items: center; +} +.housePrice-header-top .tag{ + background-color: #fff0e2; + color:#ffa822 ; + padding: 0rpx 20rpx; + font-size: 24rpx; + border-radius: 3rpx; + box-sizing: border-box; + margin-left: 20rpx; + height: 40rpx; + line-height: 40rpx; +} +.housePrice-header-name .price{ + color: #e74636; +} +.housePrice-header-top .address { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + line-height: 63rpx; + max-width: 250rpx; +} + +.housePrice-header-top .date{ + color: #757775; + flex: 1; + text-align: right; + overflow: hidden; + height: 63rpx; + line-height: 63rpx; +} +.housePrice-header-name .price{ + color: #e74636; +} +.f-wr .housePrice-list .search-img{ + width:40rpx; + height:40rpx; + object-fit: cover; + margin: 0 7rpx 0 25rpx; + position: absolute; + z-index: 5; +} +.f-wr .housePrice-list .search-box .search-input{ + background: #fff; + border-radius: 25rpx; + padding-left: 24rpx; + width:100%; + height: 100%; +} +.f-wr .housePrice-list .search-box .search-img{ + position: absolute; + right: 38rpx; + width: 29rpx; + height: 32rpx; + top:12rpx ; +} +.f-wr .housePrice-list .housePrice-hader view{ + width: 166rpx; + height: 56rpx; + line-height: 56rpx; + background: #FFFFFF; + border: 1px solid #828282a9; + border-radius: 28rpx; + text-align: center; + color: #333333; + font-family: PingFang SC; + font-weight: bold; +} +.img_btn{ + width: 134rpx; + height: 134rpx; + position: fixed; + bottom: 30rpx; + left: 50%; + transform: translateX(-50rpx); +} +.groupPrice-list { + width: 100%; + overflow-y: scroll; +} +.groupPrice-list .groupPrice-card{ + display: flex; + justify-content: space-around; + align-items: center; + margin-top: 14rpx; + padding: 30rpx; + box-sizing: border-box; + background-color: #fff; +} +.groupPrice-list .groupPrice-card image{ + border-radius: 20rpx; + width: 220rpx; + height: 146rpx; +} +.groupPrice-list .groupPrice-card .right{ + flex: 1; + /* */ + height: 146rpx; + flex-direction: column; + justify-content: space-between; + padding-left: 20rpx; +} +.groupPrice-list .groupPrice-card .right view{ + height: 50%; + display: flex; + align-items: center; +} +.nomore-tip { + width: 100%; + height: 100rpx; + background: #f7f7f7; + display: flex; + justify-content: center; + align-items: center; + color: #999; + font-size: 26rpx; + } \ No newline at end of file diff --git a/subpages/houseAudit/images/icon_fanhuidingbu.png b/subpages/houseAudit/images/icon_fanhuidingbu.png new file mode 100644 index 0000000..86839c2 Binary files /dev/null and b/subpages/houseAudit/images/icon_fanhuidingbu.png differ diff --git a/subpages/houseAudit/page/audit/audit.js b/subpages/houseAudit/page/audit/audit.js new file mode 100644 index 0000000..ec44bd6 --- /dev/null +++ b/subpages/houseAudit/page/audit/audit.js @@ -0,0 +1,114 @@ +// subpages/houseAudit/page/audit/audit.js +import api from "../../../../api/houseAudit" +Page({ + + /** + * 页面的初始数据 + */ + data: { + houseDetailObj:{}, + swiperCurrent:1, + tabFlag:0 + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + let decodeObj = decodeURIComponent(options.houseObj) + let obj = JSON.parse(decodeObj) + obj.createdTime = obj.createdTime.substr(0,10) + this.setData({ + houseDetailObj:obj, + tabFlag:options.houseFlag + }) + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + }, + swiperChange(e){ + this.setData({ + swiperCurrent:e.detail.current + 1 + }) + console.log(this.data.swiperCurrent); + }, + navigatetoBannerDetail(){ + console.log(this.data.swiperCurrent); + wx.previewImage({ + current: this.data.swiperCurrent, // 当前显示图片的http链接 + urls: this.data.houseDetailObj.photoList // 需要预览的图片http链接列表 + }) + }, + handleilcikAudit(e){ + console.log(e); + let num = parseInt(e.currentTarget.dataset.value) + console.log(typeof num); + let par = { + id:this.data.houseDetailObj.id, + auditStatus:num + } + api.housesalerentinfoAudit(par).then(res=>{ + if(res.code==0){ + wx.showLoading({ + title: '操作完成', + mask: true, + }) + }else if(res.code == 500){ + wx.showLoading({ + title: res.msg, + mask: true, + }) + } + wx.hideLoading() + wx.navigateBack() + }).catch(err=>{ + console.log(err); + }) + } +}) \ No newline at end of file diff --git a/subpages/houseAudit/page/audit/audit.json b/subpages/houseAudit/page/audit/audit.json new file mode 100644 index 0000000..a0984fc --- /dev/null +++ b/subpages/houseAudit/page/audit/audit.json @@ -0,0 +1,4 @@ +{ + "usingComponents": {}, + "navigationBarTitleText": "房屋审核" +} \ No newline at end of file diff --git a/subpages/houseAudit/page/audit/audit.wxml b/subpages/houseAudit/page/audit/audit.wxml new file mode 100644 index 0000000..4238eaf --- /dev/null +++ b/subpages/houseAudit/page/audit/audit.wxml @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + {{houseDetailObj.address}} {{houseDetailObj.houseStatusDisplay}} + + {{swiperCurrent}}/{{houseDetailObj.photoList.length}} + + + 单价 {{houseDetailObj.price}}元/平 + 朝向 {{houseDetailObj.orientation}} + + + 楼层 {{houseDetailObj.floor}} + 电梯 {{houseDetailObj.hasElevator==0?'无':'有'}} + + + 套内 {{houseDetailObj.insideArea}} + + + + 挂牌 {{houseDetailObj.createdTime}} + + + + + 用途 {{houseDetailObj.houseType==1?'住宅':houseDetailObj.houseType==2?'办公':'门头'}} + + + + 房屋描述 + {{houseDetailObj.description}} + + + + + + + + \ No newline at end of file diff --git a/subpages/houseAudit/page/audit/audit.wxss b/subpages/houseAudit/page/audit/audit.wxss new file mode 100644 index 0000000..b8f4c27 --- /dev/null +++ b/subpages/houseAudit/page/audit/audit.wxss @@ -0,0 +1,187 @@ +/* subpages/houseAudit/page/audit/audit.wxss */ +page { + background: #f7f7f7; + box-sizing: border-box +} + +.f-container { + width: 100%; + box-sizing: border-box; + background: #f7f7f7; +} +.gray{ + color: #999; +} +.f-container >.card{ + background-color: #fff; + padding: 20rpx; +} +.images{ + overflow: hidden; + width: 100%; + height: 300rpx; +} +.images image{ + width: 100%; + height: 100%; +} +.houseName{ + display: flex; + justify-content: space-between; + align-items: center; + margin-top: 20rpx; +} +.houseName view>text{ + background-color: #fff0e2; + color:#ffa822 ; + padding: 5rpx 20rpx; + font-size: 24rpx; + border-radius: 3rpx; + box-sizing: border-box; + margin-left: 20rpx; +} +.card .row{ + display: flex; + align-items: center; + justify-content: space-around; + margin-top: 20rpx; +} +.card .row view{ + width: 50%; + text-align: left; + color: #999; + float: left; +} +.card .row view text{ + color: #000; + margin-left: 20rpx; +} +.describe{ + background-color: #f0fbff; + padding: 20rpx; + display: flex; + flex-direction: column; + justify-content: space-around; + align-items: left; + font-weight: 600; + margin-top: 20rpx; + border-radius: 8rpx; +} +.describe text{ + font-size: 28rpx; + font-weight: 300; + margin-top: 20rpx; +} +.card .reply-header{ + display: flex; + align-items: center; + justify-content: space-around; + padding: 20rpx 20rpx 0; + box-sizing: border-box; +} +.card .reply-header>view{ + width: 50%; +} +.card .reply-header .left{ + display: flex; + align-items: center; +} +.card .reply-header .right{ + display: flex; + justify-content: space-between; + align-items: center; + color: #999; +} +.card .reply-header .left image{ + width: 100rpx; + height: 100rpx; + margin-right: 20rpx; +} +.card .reply-header .right image{ + width: 32rpx; + height: 32rpx; + margin-right: 10rpx; +} +.card .reply-header .right>view{ + display: flex; + align-items: center; +} +.card .reply-content{ + display: flex; + flex-direction: column; + justify-content: space-around; + flex-wrap: none; + align-items: left; + padding-left: 140rpx; +} +.card .replys-content{ + display: flex; + justify-content: space-around; + padding-left: 140rpx; + margin-top: 20rpx; +} +.card .replys-content>image{ + width: 80rpx; + height: 80rpx; + margin-right: 20rpx; +} +.card .replys-content>view{ + flex: 1; + display: flex; + flex-direction: column; + justify-content: space-around; + align-items: left; +} +.card .replys-content>view>view{ + padding-top: 10rpx; +} +.card .replys-content>view .name{ + padding: 0rpx; + height: 80rpx; + line-height: 80rpx; +} +.input-section { + position: absolute; + display: flex; + align-items: center; + height: 110rpx; + bottom: 0rpx; + left: 0rpx; + right: 0rpx; + z-index: 500; + background: #fff; +} + +.input_input { + background: #fff; + margin-top: 12rpx; + z-index: 500; + width: 580rpx; + height: 110rpx; + padding-left: 35rpx; +} +.botBtn{ + display: flex; + width: 100%; + justify-content: space-around; + box-sizing: border-box; + padding: 0 40rpx; + background-color: #fff; +} +.botBtn .yes{ + background-color:#3284fe; + color: #fff; + margin:0; + width: 200rpx; + border-radius: 46rpx; + height: 92rpx; +} +.botBtn .no{ + width: 200rpx; + background-color: #e40000; + margin:0 0 0 30rpx; + border-radius: 46rpx; + color: #fff; + height: 92rpx; + +} \ No newline at end of file diff --git a/subpages/houseAudit/page/index/index.js b/subpages/houseAudit/page/index/index.js new file mode 100644 index 0000000..7a28699 --- /dev/null +++ b/subpages/houseAudit/page/index/index.js @@ -0,0 +1,112 @@ +// subpages/houseAudit/page/index/index.js +import api from '../../../../api/houseAudit' + +Page({ + //首页配置返回 + /** + * 页面的初始数据 + */ + data: { + houseList:[], + childNav:[{label:'待审核',value:'0'},{label:'审核通过',value:'1'},{label:'审核不通过',value:'-1'}], + tabflag:'0', + pageNum:0, + pageSize:10, + loadMoreVisible:false + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + this.getHousesalerentinfo() + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + this.getHousesalerentinfo() + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + this.setData({ + loadMoreVisible: true, + pageNum: this.data.pageNum + 1 + }) + this.getHousesalerentinfo() + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + }, + getHousesalerentinfo(){ + let parms = { + pageNum:this.data.pageNum, + pageSize:this.data.pageSize, + auditStatus:this.data.tabflag + } + api.getHousesalerentinfo(parms).then(res=>{ + console.log(res); + for(let i in res.data.list){ + res.data.list[i].createdData = res.data.list[i].createdData.substr(0,10) + } + this.setData({ + houseList:res.data.list + }) + }).catch(err=>{ + + }) + }, + handleClickTab(e){ + // 这里还要调下接口根据不同接口传不同的状态类型 + this.setData({ + tabflag:e.currentTarget.dataset.value + }) + this.getHousesalerentinfo() + }, + handleClickBtn(e){ + console.log(this.data.tabflag); + // 这里跳转到详情页面然后根据传过去的值去判断是审核还是详情 + let str = encodeURIComponent(JSON.stringify(e.currentTarget.dataset.item)) + //还有传参问题加上 + // 居民端的编辑提示信息可以修改下 + wx.navigateTo({ + url: `../audit/audit?houseFlag=${this.data.tabflag}&houseObj=${str}`, + }) + } +}) \ No newline at end of file diff --git a/subpages/houseAudit/page/index/index.json b/subpages/houseAudit/page/index/index.json new file mode 100644 index 0000000..daa4004 --- /dev/null +++ b/subpages/houseAudit/page/index/index.json @@ -0,0 +1,9 @@ +{ + "navigationBarTitleText": "房屋审核", + "usingComponents": { + "wux-tabs": "../../../../dist/tabs/index", + "wux-tab": "../../../../dist/tab/index", + "wux-badge": "../../../../dist/badge/index" + }, + "backgroundTextStyle": "dark" +} \ No newline at end of file diff --git a/subpages/houseAudit/page/index/index.wxml b/subpages/houseAudit/page/index/index.wxml new file mode 100644 index 0000000..c99b56e --- /dev/null +++ b/subpages/houseAudit/page/index/index.wxml @@ -0,0 +1,22 @@ + + + + + {{item.label}} + + + + + + {{item.address}} + + + 发布时间{{item.createdData}} + + + + + + 暂无信息 + 没有更多了~ + diff --git a/subpages/houseAudit/page/index/index.wxss b/subpages/houseAudit/page/index/index.wxss new file mode 100644 index 0000000..7895f0c --- /dev/null +++ b/subpages/houseAudit/page/index/index.wxss @@ -0,0 +1,82 @@ +/* subpages/houseAudit/page/index/index.wxss */ +page { + background: #f7f7f7; + box-sizing: border-box +} +.tabs{ + display: flex; + border-bottom: 2rpx #828282a9 solid; + color: #999; + width: 100%; + height: 88rpx; + line-height: 88rpx; + box-sizing: border-box; + position: relative; + -ms-flex-pack: distribute; + justify-content: left; + -ms-flex-align: center; + align-items: center; + background: #fff; + overflow: hidden; + white-space: nowrap; + padding: 0 20rpx; +} +.fontStyle{ + font-weight: 600; + font-size:40rpx ; + color: #000; +} +.tabs view{ + text-align: left; + margin-right: 30rpx; +} +.card{ + margin-top: 20rpx; + background-color: #fff; + box-sizing: border-box; + padding: 25rpx; +} +.card .bot{ + display: flex; + justify-content: space-between; +} +.card .address{ + display: -webkit-box; + overflow: hidden; + text-overflow: ellipsis; + word-wrap: break-word; + white-space: normal !important; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; +} +.card .bot view{ + color: #999; + font-size: 28rpx; + line-height: 60rpx; +} +.card .bot button{ + line-height: 60rpx; + font-size: 28rpx; + font-weight: normal; + border-radius: 30rpx; + color: #fff; + border: none; + background-color:#ffb12d; + margin: 0; +} +.nomore-tip { + width: 100%; + height: 100rpx; + background: #f7f7f7; + display: flex; + justify-content: center; + align-items: center; + color: #999; + font-size: 26rpx; + } + .no-data { + font-size: 28rpx; + color: #999; + text-align: center; + line-height: 500rpx +} \ No newline at end of file