| | |
| | | <template>
|
| | | <view class="container">
|
| | | <view class="flex f-d-c main">
|
| | | <view class="cur-header" v-if="!addressName">
|
| | | <view class="cur-header" v-if="!addressName">
|
| | | <u-icon name="/static/icon/map.png" width="15" height="18"></u-icon>
|
| | | <view>{{ curSelectSite.name }}/{{housingName}}{{buildingName}}</view>
|
| | | </view>
|
| | |
| | | <text>{{addressName}}</text>
|
| | | </view>
|
| | | </block>
|
| | | <view class="h0 flex-1 build-list-box content">
|
| | | |
| | | <view class="mt-20 around-p-20 flex a-i-c j-c-c">
|
| | | <u-search placeholder="请输入人员名" :showAction="false" @search="getBuildingList" @clear="getBuildingList" v-model="searchKey" :clearabled="true"></u-search>
|
| | | </view>
|
| | | |
| | | <view class="mt-20 h0 flex-1 build-list-box content">
|
| | | <u-collapse :value="buildingList.length == 1?['0']:''">
|
| | | <u-collapse-item v-if="isShowBuild" style="border: none;" :name="index" :title="item.unitName"
|
| | | :icon="'/static/icon/group.png'" v-for="(item, index) in buildingList" :key="index">
|
| | |
| | | <view class="room-content">
|
| | | <view class="flex flex-wrap j-c-s-b" style="width: 100%;">
|
| | | <view class="room-box flex f-d-c" v-for="(scItem, scIndex) in cItem.children"
|
| | | :key="scItem.id" @click="pushPage" :data-code="scItem.addressCode" :data-unit="item.unitName">
|
| | | :key="scItem.id" @click="pushPage" :data-code="scItem.addressCode"
|
| | | :data-unit="item.unitName">
|
| | | <view class="flex a-i-c j-c-s-b">
|
| | | <!-- <view class="l">
|
| | | <u-icon name="/static/icon/person.png" size="16"></u-icon>
|
| | |
| | | // 社区编号
|
| | | neiCode: "",
|
| | | buildingList: [],
|
| | | searchKey: '',
|
| | | shopList: [],
|
| | | curSelectSite: {},
|
| | | addressName:"" ,//详细地址
|
| | |
| | | // message: '正在加载',
|
| | | // duration: 9999999
|
| | | // })
|
| | | |
| | |
|
| | | uni.showLoading({
|
| | | title:"正在加载"
|
| | | title: "正在加载"
|
| | | })
|
| | | |
| | |
|
| | | this.isShowBuild = false
|
| | | this.isShowShop = false
|
| | | const param = {
|
| | |
| | | roleName: uni.getStorageSync('activeRole').roleName,
|
| | | name: this.addressType == 1 ? "" : this.neiCode,
|
| | | buildingName: this.addressType == 4 ? this.buildingName : "",
|
| | | addressType: this.addressType
|
| | | addressType: this.addressType,
|
| | | searchKey: this.searchKey
|
| | | }
|
| | | const res = await getHouseList(param)
|
| | | if (res.code == 200) {
|
| | |
| | | }
|
| | | },
|
| | | pushPage(e) {
|
| | | let { code,unit } = e.currentTarget.dataset;
|
| | | let {
|
| | | code,
|
| | | unit
|
| | | } = e.currentTarget.dataset;
|
| | | let url = `/subPackage/house/roomDetails/index?id=${code}&unit=${unit}`
|
| | | this.$u.func.globalNavigator(url, "navTo")
|
| | | },
|
| | |
| | | overflow-y: auto;
|
| | |
|
| | | .content {
|
| | | margin-top: 20rpx;
|
| | | background-color: #fff;
|
| | |
|
| | | .floor-info-box {
|
| | |
| | | /deep/ .u-cell__body {
|
| | | background-color: rgb(236, 244, 255);
|
| | | }
|
| | | |
| | | .house-address{
|
| | | padding:20rpx;
|
| | | |
| | |
|
| | | .house-address {
|
| | | padding: 20rpx;
|
| | |
|
| | | }
|
| | | </style> |