| | |
| | | <text>{{ curSelectSite.name }}/{{ curHouseTitle }}</text>
|
| | | </view>
|
| | | <view class="flex f-d-c main">
|
| | | <u-icon name="/static/icon/blue_floor.png"></u-icon>
|
| | | <view class="r">测试</view>
|
| | | </view>
|
| | | <!-- <view class="flex f-d-c main">
|
| | | <view class="flex house-container">
|
| | | <view class="house-list-box">
|
| | | <view class="house-list-box" v-if="isShowAoi" v-for="(item, index) in houseList"
|
| | | @click="pushPage(item)" :key="index">
|
| | | <view class="l">
|
| | | <u-icon name="/static/icon/blue_floor.png"></u-icon>
|
| | | </view>
|
| | | <view class="r">测试</view>
|
| | | <view class="r">
|
| | | {{item.name}}
|
| | | </view>
|
| | | </view>
|
| | | <!-- 商铺 -->
|
| | | <view class="house-list-box" v-if="isShowShop" v-for="(item, index) in shopList"
|
| | | @click="pushPage(item)" :key="index">
|
| | | <view class="l">
|
| | | <u-icon name="/static/icon/store.png"></u-icon>
|
| | | </view>
|
| | | <view class="r">
|
| | | {{item.name}}
|
| | | </view>
|
| | | </view>
|
| | | </view>
|
| | | </view> -->
|
| | | <u-toast ref="uToast"></u-toast>
|
| | | <u-divider text="已经到底了"></u-divider>
|
| | | </view>
|
| | | </view>
|
| | | </template>
|
| | |
|
| | |
| | | currentId: '',
|
| | | curSelectSite: {},
|
| | | curHouseTitle: '',
|
| | | addressType: 1,
|
| | | addressType:1,
|
| | | houseList: [{
|
| | | name: '-'
|
| | | }],
|
| | |
| | | this.curSelectSite = uni.getStorageSync('siteInfo')
|
| | | },
|
| | | mounted() {
|
| | | // this.getHouseInfo()
|
| | | this.getHouseInfo()
|
| | | },
|
| | | methods: {
|
| | | async getHouseInfo() {
|
| | |
| | | type: 2,
|
| | | code: this.currentId,
|
| | | roleName: uni.getStorageSync('activeRole').roleName,
|
| | | addressType: this.addressType
|
| | | addressType:this.addressType
|
| | | }
|
| | | const res = await getHouseList(param)
|
| | | // const aoiList = res.data.aoiList
|
| | | // const shopList = res.data.shopList
|
| | | let {
|
| | | aoiList,
|
| | | shopList
|
| | | } = res.data;
|
| | | let { aoiList ,shopList} = res.data;
|
| | | this.houseList = aoiList;
|
| | | this.shopList = shopList;
|
| | | if (aoiList.length) {
|
| | | this.isShowAoi = true
|
| | | }
|
| | | if (shopList.length) {
|
| | | if(shopList.length){
|
| | | this.isShowShop = true
|
| | | }
|
| | | // if (aoiList.length > 0) {
|
| | |
| | | margin-left: 15rpx;
|
| | | }
|
| | | }
|
| | |
|
| | | .main {
|
| | | height: 0;
|
| | | flex: 1;
|
| | | overflow-y: auto;
|
| | | margin-top: 20rpx;
|
| | |
| | | .house-container {
|
| | | flex-wrap: wrap;
|
| | | padding: 14rpx;
|
| | |
|
| | | .house-list-box {
|
| | | margin: 16rpx;
|
| | | padding: 0 16rpx;
|
| | |
| | | border-radius: 12rpx;
|
| | | color: #333333;
|
| | | // background: #FAFBFE;
|
| | | background-color: rgb(236, 244, 255);
|
| | | background-color:rgb(236,244,255);
|
| | | box-sizing: border-box;
|
| | | }
|
| | | }
|