<template>
  <view class="page-container">
    <scroll-view class="page-body" scroll-y>
      <view class="data-list">
        <view class="data-card" v-for="(item, index) in storeList" :key="index">
          <view class="data-card-header">
            <text class="data-card-title">{{ item.name }}</text>
            <text class="data-card-tag green">正常</text>
          </view>
          <view class="data-card-row">
            <text>绑定经办人</text>
            <text class="val">{{ item.operator }}</text>
          </view>
          <view class="data-card-row">
            <text>仓位数</text>
            <text class="val">{{ item.positions }}</text>
          </view>
        </view>
      </view>
    </scroll-view>
  </view>
</template>

<!-- 贮存设施 -->
<script>
import { api } from '@/api'
export default {
  data() {
    return {
      storeList: [
        { name: '1号暂存间', operator: '李伟', positions: '3个（A/B/C区）' },
        { name: '2号暂存间', operator: '张明', positions: '2个（A/B区）' }
      ]
    }
  },
  methods: {
    getData() {
      api.facility().then(res => {
        
      })
    }
  }
}
</script>
