<!--packageD/energy/powerEquipment/powerEquipment.wxml-->
<van-tabs active="{{ active }}" bind:change="swichTabTItem">
	<van-tab title="能量舱设备"></van-tab>
	<!-- <van-tab title="检测设备"></van-tab> -->
</van-tabs>
<view class="listBox">
	<view class="headTop">
		<text>设备总数:{{total}}</text>
	</view>
	<view class="list" wx:for="{{datas}}" wx:key='index'>
		<view class="list_top" catchtap="expand" data-info="{{item}}" data-ind='{{index}}'>
			<text style="margin-left:11rpx;font-size: 28rpx;">{{item.equipment_no}}</text>
		</view>
		<view class="lis" wx:if="{{item.checked}}">
			<view wx:if="item.info.device_data"><text>设备状态:</text><text style="color:#ff2c29;">{{item.info.device_data.device_status}}</text></view>
			<view wx:if="item.info.device_data"><text>设备信号强度:</text><text style="color:#ff2c29;">{{item.info.device_data.device_wifi}}</text></view>
			<view wx:if="item.info.device_data"><text> 设备网络类型:</text><text style="color:#ff2c29;">{{item.info.device_data.network}}</text></view>
		</view>
		<view class="list_bottom">
			<view class="erweima" catchtap="taperwei" data-info='{{item}}'>
				<icon class="iconfont icon-energetankshop_code" style="margin-top: -9rpx;margin-right:10rpx;"></icon>
				<text>查看二维码</text>
			</view>
			<view class="hexiao" catchtap="toRecord" data-id="{{item.id}}">
				<text>核销记录</text>
			</view>
			<view class="hexiao" catchtap="Delete" data-id="{{item.id}}">
				<text>删除设备</text>
			</view>
		</view>
	</view>
	<view class="line"></view>
</view>
<view class="btn" catchtap="bindEquipment">绑定设备</view>


<van-popup show="{{  rewardMoneyBtn }}" close-on-click-overlay="true" bind:close="onClose" custom-style="border-radius: 23rpx;">
	<view class="popupBox">
		<icon class="iconfont icon-guanbi" style="margin-right: 30rpx;" catchtap="onClose"></icon>
		<view class="is_code" catchlongtap="saveImg">
			<image src="{{codeimg}}"></image>
		</view>
		<view class="texts">长按保存二维码</view>
	</view>
</van-popup>
