Browse Source

高度,样式微调

lisu
mk 2 years ago
parent
commit
ba68990fba
  1. 14
      pages/index/index.wxss
  2. 52
      pages/resiAndHouse/resiAndHouse.js
  3. 4
      pages/resiAndHouse/resiAndHouse.wxss
  4. 1
      pages/work2/work2.wxml

14
pages/index/index.wxss

@ -964,13 +964,13 @@
width: 490rpx;
height: auto;
font-family: PingFang SC;
font-weight: 500;
font-size: 32rpx;
color: #333333;
line-height: 32rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
/* font-weight: 500; */
font-size: 32rpx;
color: #333333;
line-height: 32rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.Information_test2{
width: 60rpx;

52
pages/resiAndHouse/resiAndHouse.js

@ -6,7 +6,7 @@ import api, {
getNextTree,
houseSearch,
allOrgHouseInfo,
getCommunityHouse
getCommunityHouse,
} from "../../utils/api"
Page({
@ -82,12 +82,13 @@ Page({
{ name: '出租', num: 0, value: '1' },
{ name: '闲置', num: 0, value: '2' },
{ name: '未出售', num: 0, value: '3' },
]
],
tempList:[]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
onLoad(options) {
this.setData({
searchOrgIdPath: App.globalData.user.agencyId,
cascaderName: App.globalData.user.agencyName,
@ -157,6 +158,45 @@ Page({
*/
onShareAppMessage() {
},
getUnitoption(val){
getNextTree({ level:val[0].level, id: val[0].id ||val[0].agencyId}).then(res => {
if (res.data.length > 0) {
if(res.data[0].level!='unit' ||res.data[0].level=='unit' ){
this.setData({
tempList:this.data.tempList.concat([res.data[0]])
})
this.getUnitoption(res.data)
}
let unitId = this.data.tempList.filter(item=>item.level == 'unit')[0].id
this.setData({
cascaderNameFw:this.data.tempList.map(item=>item.label).join(','),
'params1.searchOrgIdPath':unitId,
'params.orgId':unitId
})
const data = res.data.map(item => {
if (item.level != 'unit') {
return {
...item,
children: []
}
}
return {
...item,
children: null
}
});
const arr = this.getTreeFun(val[0].agencyId, this.data.angencyFwList, data);
this.setData({
angencyFwList: arr,
})
} else {
const arr = this.getTreeFun(val[0].agencyId, this.data.angencyFwList, null);
this.setData({
angencyFwList: arr,
})
}
})
},
toOCRCard() {
wx.navigateTo({
@ -311,10 +351,10 @@ Page({
})
},
// 组织树
getAgencygridtree() {
getAgencygridtree () {
api.getAgencygridtree().then(res => {
this.setData({
this.getUnitoption( [res.data])
this.setData({
angencyList: [res.data],
})
}).catch(err => {

4
pages/resiAndHouse/resiAndHouse.wxss

@ -1261,7 +1261,7 @@ page {
}
.scroll {
height: calc(100vh - 750rpx);
height: calc(100vh - 687rpx);
}
.text_61 {
@ -1394,7 +1394,7 @@ page {
font-size: 24rpx;
}
.resi_tag view{
padding: 7rpx 9rpx;
padding: 1rpx 9rpx;
box-sizing: border-box;
white-space:nowrap;
margin-right:5rpx;

1
pages/work2/work2.wxml

@ -8,7 +8,6 @@
</view>
<view class="box_2">
<view class="section_5">
<view class="list_1">
<view class="section_1-0">
<view class="text-wrapper_7-0">

Loading…
Cancel
Save