Browse Source

房屋审核

release
mk 2 years ago
parent
commit
1522f8bc4f
  1. 20
      api/houseAudit.js
  2. 4
      components/userManage/userManage.js
  3. BIN
      images/family/down.png
  4. BIN
      images/family/plus.png
  5. BIN
      images/family/reply.png
  6. BIN
      images/family/sub.png
  7. BIN
      images/family/user.png
  8. BIN
      images/search.png
  9. 9
      pages/index/index.js
  10. 87
      subpages/family/pages/index/index.js
  11. 90
      subpages/family/pages/index/index.wxml
  12. 596
      subpages/family/wxss/family.wxss
  13. BIN
      subpages/houseAudit/images/icon_fanhuidingbu.png
  14. 114
      subpages/houseAudit/page/audit/audit.js
  15. 4
      subpages/houseAudit/page/audit/audit.json
  16. 55
      subpages/houseAudit/page/audit/audit.wxml
  17. 187
      subpages/houseAudit/page/audit/audit.wxss
  18. 112
      subpages/houseAudit/page/index/index.js
  19. 9
      subpages/houseAudit/page/index/index.json
  20. 22
      subpages/houseAudit/page/index/index.wxml
  21. 82
      subpages/houseAudit/page/index/index.wxss

20
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)
}

4
components/userManage/userManage.js

@ -109,6 +109,10 @@ Component({
wx.navigateTo({ wx.navigateTo({
url: `../../../pages/user_moudle/certificationDetails/certificationDetails?userId=${userId}&partyFlag=1` url: `../../../pages/user_moudle/certificationDetails/certificationDetails?userId=${userId}&partyFlag=1`
}) })
}else if (this.searchData.index == 4) {//党员认证失败
wx.navigateTo({
url: `../../subpages/houseAudit/page/index/index`
})
} }
} }

BIN
images/family/down.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 B

BIN
images/family/plus.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
images/family/reply.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 376 B

BIN
images/family/sub.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
images/family/user.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 B

BIN
images/search.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

9
pages/index/index.js

@ -135,6 +135,8 @@ Page({
let tmp = e.currentTarget.dataset.tmp let tmp = e.currentTarget.dataset.tmp
let state = e.currentTarget.dataset.state let state = e.currentTarget.dataset.state
let navCode = e.currentTarget.dataset.navcode let navCode = e.currentTarget.dataset.navcode
console.log(tmp);
console.log(navCode);
switch (tmp) { switch (tmp) {
case 'tmp-1': case 'tmp-1':
let childNav = []; let childNav = [];
@ -166,6 +168,8 @@ Page({
case 'tmp-3': case 'tmp-3':
//一户一码审核
if(navCode!='0205'){
let b_childNav = []; let b_childNav = [];
for (let i = 0; i < this.data.panel.length; i++) { for (let i = 0; i < this.data.panel.length; i++) {
if (this.data.panel[i].templateInfo !== null) { if (this.data.panel[i].templateInfo !== null) {
@ -177,6 +181,11 @@ Page({
wx.navigateTo({ wx.navigateTo({
url: '/pages/user_moudle/userManageList/userManageList?state=' + state + '&childNav=' + JSON.stringify(b_childNav) url: '/pages/user_moudle/userManageList/userManageList?state=' + state + '&childNav=' + JSON.stringify(b_childNav)
}) })
}else{
wx.navigateTo({
url: "../../subpages/houseAudit/page/index/index"
})
}
break break
case 'tmp-4': case 'tmp-4':

87
subpages/family/pages/index/index.js

@ -11,6 +11,11 @@ Page({
showQr: true, showQr: true,
memberList:[], memberList:[],
roomCode:null, roomCode:null,
selectedTabBar:"resiNew",
loadMoreVisible:false,
keyWord:'',//房屋搜索字段
houseInfo:[],
houseFlag:'1'
}, },
/** /**
@ -62,9 +67,91 @@ Page({
}, },
// 跳转新增页面 // 跳转新增页面
handleTo(){ handleTo(){
if(this.data.selectedTabBar=='resiNew'){
wx.navigateTo({ wx.navigateTo({
url: '/subpages/family/pages/familyInfo/familyInfo?pageType=add&id='+ this.data.familyInfo.id 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/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){ toFamilyInfo(e){

90
subpages/family/pages/index/index.wxml

@ -1,5 +1,6 @@
<view class="f-container"> <view class="f-container">
<block wx:if="{{familyInfo.roomCode}}"> <!-- wx:if="{{familyInfo.roomCode}}" 恢复-->
<block >
<view class="f-top"> <view class="f-top">
<view class="f-card"> <view class="f-card">
<view class="flex-view"> <view class="flex-view">
@ -25,17 +26,25 @@
</view> </view>
</view> </view>
<view class="f-wr"> <view class="f-wr">
<view class="title-wr"> <view class="tab-bar">
<view class="flex" > <view class="type {{selectedTabBar === 'resiNew' ? 'selected-resiNew' : ''}}" data-type="resiNew" hover-class="hover-tabbar" hover-stay-time="300" bindtap="chooseTabBar">
<view class="title-label right20">成员新了</view> 成员新了
<view class="title-label right20">房价涨了</view>
<view class="title-label right20">快递来了</view></view>
<view class="title-right">
<!-- <view class="title-right-label">明细</view> -->
<image class="right-icon" src="../../images/arrow-right.png" />
</view> </view>
<view class="type {{selectedTabBar === 'housePrice' ? 'selected-housePrice' : ''}}" data-type="housePrice" hover-class="hover-tabbar" hover-stay-time="300" bindtap="chooseTabBar">
房价涨了
</view> </view>
<view class="f-table mt40"> <view class="type {{selectedTabBar === 'groupPrice' ? 'selected-groupPrice' : ''}}" data-type="groupPrice" hover-class="hover-tabbar" hover-stay-time="300" bindtap="chooseTabBar">
团购火了
</view>
<view class="type {{selectedTabBar === 'integral' ? 'selected-integral' : ''}}" data-type="integral" hover-class="hover-tabbar" hover-stay-time="300" bindtap="chooseTabBar">
积分多了
</view>
<view class="select-bar {{selectedTabBar === 'resiNew' ? 'selected-resiNew' : selectedTabBar === 'housePrice' ? 'selected-housePrice' : selectedTabBar === 'groupPrice' ? 'selected-groupPrice' :selectedTabBar === 'integral' ? 'selected-integral':''}}"></view>
</view>
<!-- 成员新了 -->
<view class="resiNew-list" wx:if="{{selectedTabBar === 'resiNew'}}">
<view class="f-table mt40" wx:if="{{familyInfo.roomCodeShow}}">
<view class="table-cell table-header"> <view class="table-cell table-header">
<view class="table-col">姓名</view> <view class="table-col">姓名</view>
<view class="table-col">成员关系</view> <view class="table-col">成员关系</view>
@ -46,19 +55,72 @@
<view class="table-cell" wx:for="{{familyInfo.members}}" wx:key="userId" class="table-cell"> <view class="table-cell" wx:for="{{familyInfo.members}}" wx:key="userId" class="table-cell">
<view class="table-col">{{ item.userName }}</view> <view class="table-col">{{ item.userName }}</view>
<view class="table-col">{{ item.relation }}</view> <view class="table-col">{{ item.relation }}</view>
<!-- -->
<view class="table-col">{{ item.mobile }}</view> <view class="table-col">{{ item.mobile }}</view>
<view class="table-col table-col-4" data-type="edit" data-id="{{item.idCard}}" <view class="table-col table-col-4" wx:if="{{item.auditType == '0' && item.auditState == '0'}}">待审核</view>
bind:tap="toFamilyInfo">查看</view> <view class="table-col table-col-4" data-type="edit" data-id="{{item.idCard}}" bind:tap="toFamilyInfo" wx:else>查看</view>
</view> </view>
</block> </block>
<view wx:else class="no-data">暂无成员</view> <view wx:else class="no-data">暂无成员</view>
</view> </view>
<view class="f-btns" data-type="add" data-id="{{ info.icResiUserId }}" bind:tap="handleTo"> <!-- <view class="f-btns" data-type="add" data-id="{{ info.icResiUserId }}" bind:tap="handleTo">
<view class="f-btns-icon">+</view> <view class="f-btns-icon">+</view>
<view class="f-btns-label">添加家庭成员</view> <view class="f-btns-label">添加家庭成员</view>
</view> -->
<view class="no-data" wx:else>暂无家庭信息</view>
</view>
<!-- 房价涨了 -->
<view class="housePrice-list" wx:if="{{selectedTabBar === 'housePrice'}}">
<view class="housePrice-hader">
<view class="{{houseFlag==='1'?'active_btn':''}}" data-status="1" bindtap="handleActiveHouse"> 我要买房</view>
<view style="margin-left:20rpx" class="{{houseFlag === '2'?'active_btn':''}}" data-status="2" bindtap="handleActiveHouse"> 我要租房 </view>
</view>
<view class="search-box">
<input type="text" bindblur="handelKeyword" value="{{keyWord}}" class="search-input" placeholder="请输入搜索关键字" />
<image class="search-img" bindtap="handelKeyword" src="../../../../images/search.png" />
</view>
<block wx:if="{{houseInfo.length!=0}}">
<view class="housePrice-content" bindtap="handleClickHouse" data-obj="{{item}}"
wx:for="{{houseInfo}}" wx:key="index" >
<view class="housePrice-header">
<image src="../../images/user.png"></image>
<view class="housePrice-header-name">
<view class="housePrice-header-top">
<text class="address">{{item.address}}</text>
<text class="tag">{{houseFlag == '1'?'在售':'在租'}}</text>
<text class="date">{{item.createdData}}</text>
</view>
<view class="price">{{item.price}}</view>
</view>
</view>
<view class="housePrice-body"> {{item.description}}</view>
<view class="housePrice-images">
<image wx:for="{{item.photoList}}" wx:key="i" wx:for-item="img" src="{{img}}"></image>
</view> </view>
</view> </view>
</block> </block>
<view wx:else class="no-data">暂无家庭信息</view> <view class="no-data" wx:else>暂无房屋信息</view>
<view style="display: {{loadMoreVisible ? 'flex' : 'none'}}" class="nomore-tip">没有更多了~</view>
</view>
<!-- 团购火了 -->
<view class="groupPrice-list" wx:if="{{selectedTabBar === 'groupPrice'}}">
<view class="groupPrice-card" bindtap="handleClickGroupPrice" data-id="'12345'">
<image src="../../../../images/relieve.png"></image>
<view class="right">
<view class="title">【社区送达】 护手霜</view>
<view style="color: #999;font-size: 26rpx;"> <text style="color:#cf4133;font-size: 28rpx;">已截团</text > 2023-04-23 15:10:22</view>
</view>
</view>
</view>
<!-- <view class="f-btns" data-type="add" data-id="{{ info.icResiUserId }}" bind:tap="handleTo">
<view class="f-btns-icon">+</view>
<view class="f-btns-label">添加家庭成员</view>
</view> -->
</view>
</block>
<image src="../../../../images/family/plus.png" class="img_btn" bind:tap="handleTo"></image>
<!-- <view wx:else class="no-data">暂无家庭信息</view> 恢复-->
</view> </view>

596
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} 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;
}

BIN
subpages/houseAudit/images/icon_fanhuidingbu.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

114
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);
})
}
})

4
subpages/houseAudit/page/audit/audit.json

@ -0,0 +1,4 @@
{
"usingComponents": {},
"navigationBarTitleText": "房屋审核"
}

55
subpages/houseAudit/page/audit/audit.wxml

@ -0,0 +1,55 @@
<!--subpages/houseAudit/page/audit/audit.wxml-->
<view class="f-container">
<view class="card">
<!-- <view class="images">
<image src="../../../../images/rexian.png">
</image>
</view> -->
<view class="images">
<swiper bindchange="swiperChange">
<!-- wx:if="{{bannerList.length > 0}}" -->
<block>
<swiper-item wx:for="{{houseDetailObj.photoList}}" wx:key="index">
<!---->
<image data-src="{{item}}" mode="aspectFill" class="banner-img" src="{{item}}" bindtap="navigatetoBannerDetail" />
</swiper-item>
</block>
</swiper>
</view>
<view class="houseName">
<view> {{houseDetailObj.address}} <text>{{houseDetailObj.houseStatusDisplay}}</text></view>
<!-- wx:if="{{bannerList.length > 0}}" -->
<text>{{swiperCurrent}}/{{houseDetailObj.photoList.length}}</text>
</view>
<view class="row">
<view>单价 <text>{{houseDetailObj.price}}元/平</text></view>
<view>朝向 <text>{{houseDetailObj.orientation}}</text></view>
</view>
<view class="row">
<view>楼层 <text>{{houseDetailObj.floor}}</text></view>
<view>电梯 <text>{{houseDetailObj.hasElevator==0?'无':'有'}}</text></view>
</view>
<view class="row">
<view>套内 <text>{{houseDetailObj.insideArea}}</text></view>
<view></view>
</view>
<view class="row">
<view>挂牌 <text>{{houseDetailObj.createdTime}}</text></view>
<view></view>
</view>
<view class="row">
<view>用途 <text>{{houseDetailObj.houseType==1?'住宅':houseDetailObj.houseType==2?'办公':'门头'}}</text></view>
<view></view>
</view>
<view class="describe">
<view>房屋描述</view>
<text>{{houseDetailObj.description}}</text>
</view>
</view>
<view wx:if="{{tabFlag==0}}" class="botBtn">
<button class="yes" bind:tap="handleilcikAudit" data-value='1'>通过</button>
<button class="no" bind:tap="handleilcikAudit" data-value='-1'>不通过</button>
</view>
</view>

187
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;
}

112
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}`,
})
}
})

9
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"
}

22
subpages/houseAudit/page/index/index.wxml

@ -0,0 +1,22 @@
<!--subpages/houseAudit/page/index/index.wxml-->
<view>
<view class="tabs">
<view wx:for="{{childNav}}" wx:key="index" data-value="{{item.value}}" bind:tap="handleClickTab">
<text class="{{tabflag == item.value?'fontStyle':''}}">{{item.label}}</text>
</view>
</view>
<block wx:if="{{houseList.length!=0}}">
<view class="card" wx:for="{{houseList}}" wx:form-item="item" >
<view class="address">{{item.address}}</view>
<view class="bot">
<view>
发布时间{{item.createdData}}
</view>
<button data-item="{{item}}" style="background-color:{{tabflag=='0'?'#3284fe':tabflag=='1'?'#51ec7b':'#ff5a58'}}" bind:tap="handleClickBtn">{{tabflag=='0'?'去审核':tabflag=='1'?'已通过':'未通过'}}</button>
</view>
</view>
</block>
<view class="no-data" wx:else>暂无信息</view>
<view style="display: {{loadMoreVisible ? 'flex' : 'none'}}" class="nomore-tip">没有更多了~</view>
</view>

82
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
}
Loading…
Cancel
Save