Browse Source

图片提交,人房逻辑调整

work_tab_bar
mk 1 year ago
parent
commit
08d352abd0
  1. BIN
      images/cardIcon.png
  2. 24
      pages/resiAndHouse/resiAndHouse.js

BIN
images/cardIcon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

24
pages/resiAndHouse/resiAndHouse.js

@ -34,13 +34,13 @@ Page({
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
lowerThreshold: '10', lowerThreshold: '10',
loadMoreVisible: false, loadMoreVisible: true,
loadFwMoreVisible: false, loadFwMoreVisible: false,
loadMoreType: "none", loadMoreType: "none",
loadFwMoreType: "none", loadFwMoreType: "none",
nodata: false, nodata: false,
selectVale: 'resi', selectVale: 'resi',
keyWord: '1', keyWord: '',
angencyId: null, angencyId: null,
category: null, category: null,
searchOrgIdPath: '', searchOrgIdPath: '',
@ -101,7 +101,7 @@ Page({
searchOrgIdPath:App.globalData.user.agencyId, searchOrgIdPath:App.globalData.user.agencyId,
} }
}) })
this.getTableFwData() // this.getTableFwData()
this.getAgencygridtree() this.getAgencygridtree()
this.getAllOrgCategoryCount() this.getAllOrgCategoryCount()
this.getTableData() this.getTableData()
@ -281,6 +281,20 @@ Page({
this.setData({ this.setData({
selectVale: e.currentTarget.dataset.type selectVale: e.currentTarget.dataset.type
}) })
if(e.currentTarget.dataset.type === 'resi'){
this.setData({
pageNo: 1,
tableData: []
})
this.getTableData()
this.getAllOrgCategoryCount()
}else if(e.currentTarget.dataset.type === 'house'){
this.setData({
pageNo: 1,
tableFwData: []
})
this.getTableFwData()
}
}, },
handelClickShowTree() { handelClickShowTree() {
this.setData({ this.setData({
@ -310,6 +324,7 @@ Page({
tableData: [] tableData: []
}) })
this.getTableData() this.getTableData()
this.getAllOrgCategoryCount()
}else{ }else{
this.setData({ this.setData({
pageNo: 1, pageNo: 1,
@ -356,7 +371,7 @@ Page({
// '1765976717767618562' // '1765976717767618562'
console.log(e); console.log(e);
wx.navigateTo({ wx.navigateTo({
url: `/subpages/searchResult/pages/punchCard/punchCard?resiId=${e.currentTarget.dataset.resiid}`, url: `/subpages/searchResult/pages/resiInfo/resiInfo?resiId=${e.currentTarget.dataset.resiid}`,
}) })
}, },
onClickJump(e) { onClickJump(e) {
@ -382,7 +397,6 @@ Page({
}, },
onScrollToLower(e) { onScrollToLower(e) {
if (this.data.loadMoreType === 'more') { if (this.data.loadMoreType === 'more') {
this.setData({ this.setData({
loadMoreVisible: true, loadMoreVisible: true,

Loading…
Cancel
Save