<!--pages/readingHistory/components/meterInfo/index.wxml-->
<view class="wrapper">
    <view class="title">
        <view class="address">
            {{meterInfo.address}}
        </view>
        <view class="status">
            <view wx:if="{{meterInfo.enabled}}">
                正常
            </view>
            <view wx:else>
                停用
            </view>
        </view>
    </view>
    <view class="detail">
            <van-row gutter="20">
                <van-col span="12">
                    <view class="text">
                        <view>
                           设备编号
                        </view>
                        <view>
                            {{meterInfo.meterSn}}
                        </view>
                    </view>
                </van-col>
                <van-col span="12">
                    <view class="text">
                        <view>
                            电表类型
                        </view>
                        <view>
                            <view wx:if="{{meterInfo.meterBelongType === 0}}">
                                商户电表
                            </view>
                            <view wx:elif="{{meterInfo.meterBelongType === 1}}">
                                公区电表
                            </view>
                            <view wx:elif="{{meterInfo.meterBelongType === 2}}">
                                公摊电表
                            </view>
                        </view>
                    </view>
                </van-col>
                <van-col span="12">
                    <view class="text">
                        <view>
                            最近读数
                        </view>
                        <view>
                            {{meterInfo.overall}}
                        </view>
                    </view>
                </van-col>
                <van-col span="12">
                    <view class="text">
                        <view>
                            读数日期
                        </view>
                        <view>
                            {{meterInfo.readAt}}
                        </view>
                    </view>
                </van-col>
            </van-row>
        </view>
</view>