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; width: 490rpx;
height: auto; height: auto;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 500; /* font-weight: 500; */
font-size: 32rpx; font-size: 32rpx;
color: #333333; color: #333333;
line-height: 32rpx; line-height: 32rpx;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.Information_test2{ .Information_test2{
width: 60rpx; width: 60rpx;

52
pages/resiAndHouse/resiAndHouse.js

@ -6,7 +6,7 @@ import api, {
getNextTree, getNextTree,
houseSearch, houseSearch,
allOrgHouseInfo, allOrgHouseInfo,
getCommunityHouse getCommunityHouse,
} from "../../utils/api" } from "../../utils/api"
Page({ Page({
@ -82,12 +82,13 @@ Page({
{ name: '出租', num: 0, value: '1' }, { name: '出租', num: 0, value: '1' },
{ name: '闲置', num: 0, value: '2' }, { name: '闲置', num: 0, value: '2' },
{ name: '未出售', num: 0, value: '3' }, { name: '未出售', num: 0, value: '3' },
] ],
tempList:[]
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
this.setData({ this.setData({
searchOrgIdPath: App.globalData.user.agencyId, searchOrgIdPath: App.globalData.user.agencyId,
cascaderName: App.globalData.user.agencyName, cascaderName: App.globalData.user.agencyName,
@ -157,6 +158,45 @@ Page({
*/ */
onShareAppMessage() { 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() { toOCRCard() {
wx.navigateTo({ wx.navigateTo({
@ -311,10 +351,10 @@ Page({
}) })
}, },
// 组织树 // 组织树
getAgencygridtree() { getAgencygridtree () {
api.getAgencygridtree().then(res => { api.getAgencygridtree().then(res => {
this.setData({ this.getUnitoption( [res.data])
this.setData({
angencyList: [res.data], angencyList: [res.data],
}) })
}).catch(err => { }).catch(err => {

4
pages/resiAndHouse/resiAndHouse.wxss

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

1
pages/work2/work2.wxml

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

Loading…
Cancel
Save