<template>
  <scroll-view class="content" scroll-y="true">
    <view class="conItem">
      <view class="conItem-title">房源</view>
      <view class="conItem-cont">
        <view class="conItem-cont-item" v-for="(item, index) in fyList" :key="index">
          <image :src="item.image" class="itemImg"></image>
          <text class="itemText">房子</text>
        </view>
      </view>
    </view>

    <view class="conItem">
      <view class="conItem-title">巡检</view>
      <view class="conItem-cont">
        <view class="conItem-cont-item" v-for="(item, index) in fyList" :key="index">
          <image :src="item.image" class="itemImg"></image>
          <text class="itemText">房子</text>
        </view>
      </view>
    </view>

    <view class="conItem">

    </view>
    <view class="conItem">

    </view>
  </scroll-view>
</template>

<script>
export default {
  data () {
    return {
      fyList: [
        { image: '/static/img/看房.png', text: '看房确认' },
        { image: '/static/img/退房检查.png', text: '退房检查' },
        { image: '/static/img/释放.png', text: '释放房源检查' },
        { image: '/static/img/预约.png', text: '预约看房' },
        { image: '/static/img/看房.png', text: '强制清退' },
      ]

    }
  },
  onLoad () {

  },
  methods: {

  }
}
</script>

<style lang="scss" scoped>
.content {
  width: 100%;
  height: 100vh;
  padding: 20rpx;
  box-sizing: border-box;
}

.conItem {
  left: 11rpx;
  top: 98rpx;
  width: 100%;
  border-radius: 10rpx;
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 2rpx 2rpx 4rpx rgba(0, 0, 0, 0.2);
  margin-bottom: 20rpx;
  padding: 20rpx;
  box-sizing: border-box;
}

.conItem-title {
  color: rgb(64, 64, 64);
  font-size: 30rpx;
  text-align: left;
}

.conItem-cont {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 20rpx;
}

.conItem-cont-item {
  width: 23%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-right: 2%;
  margin-bottom: 20rpx;

  .itemImg {
    width: 80rpx;
    height: 80rpx;
  }

  .itemText {
    color: rgb(64, 64, 64);
    font-size: 20rpx;
    margin-top: 5rpx;
  }
}

.conItem-cont-item:nth-child(4n) {
  margin-right: 0;
}
</style>
