<!--pages/station/index.wxml-->
<view class="custom-tabs">
<t-tabs defaultValue="{{stickyProps}}" theme="tag" bind:change="onTabsChange" sticky>
  <!-- <t-tab-panel wx:for="{{tablist}}" wx:key="index" label="{{item}}" value="{{index}}" /> -->
  <t-tab-panel label="全部" value="">
  <view class="tagbox">
  <view class="tag_box" wx:for="{{baseInfo}}" wx:key="powerId" data-id="{{item.powerId}}" bind:tap="ondetails">
  <view class="tag_name">{{item.stationName}}</view>
  <!-- <view class="tag_name1"> -->
  <view class="tag_Unbind" wx:if="{{item.unbindStart==0}}" data-id="{{item.powerId}}" catchtap="onUnbind1">绑定</view>
  <view class="tag_Unbind" wx:if="{{item.unbindStart==1}}" data-id="{{item.powerId}}" catchtap="onUnbind2">解绑</view>

  <view class="tag_type1" wx:if="{{item.onlineStatus==1}}">正常</view>
  <view class="tag_type2" wx:if="{{item.onlineStatus==2}}">故障</view>
  <view class="tag_type3" wx:if="{{item.onlineStatus==0}}">离线</view>
  <!-- </view> -->
  </view>
  </view>
</t-tab-panel>
  <t-tab-panel label="正常" value="1">  
    <view class="tagbox">
  <view class="tag_box" wx:for="{{baseInfo}}" wx:key="powerId">
  <view class="tag_name">{{item.stationName}}</view>
  <!-- <view class="tag_name1"> -->
   <view class="tag_Unbind" wx:if="{{item.unbindStart==0}}" data-id="{{item.powerId}}" catchtap="onUnbind1">绑定</view>
  <view class="tag_Unbind" wx:if="{{item.unbindStart==1}}" data-id="{{item.powerId}}" catchtap="onUnbind2">解绑</view>
  <view class="tag_type1" wx:if="{{item.onlineStatus==1}}">正常</view>
  <view class="tag_type2" wx:if="{{item.onlineStatus==2}}">故障</view>
  <view class="tag_type3" wx:if="{{item.onlineStatus==0}}">离线</view>
  </view>
  <!-- </view> -->
  </view>
</t-tab-panel>
  <t-tab-panel label="故障" value="2">  
    <view class="tagbox">
  <view class="tag_box" wx:for="{{baseInfo}}" wx:key="powerId">
  <view class="tag_name">{{item.stationName}}</view>
  <!-- <view class="tag_name1"> -->
   <view class="tag_Unbind" wx:if="{{item.unbindStart==0}}" data-id="{{item.powerId}}" catchtap="onUnbind1">绑定</view>
  <view class="tag_Unbind" wx:if="{{item.unbindStart==1}}" data-id="{{item.powerId}}" catchtap="onUnbind2">解绑</view>
  <view class="tag_type1" wx:if="{{item.onlineStatus==1}}">正常</view>
  <view class="tag_type2" wx:if="{{item.onlineStatus==2}}">故障</view>
  <view class="tag_type3" wx:if="{{item.onlineStatus==0}}">离线</view>
  </view>
  <!-- </view> -->
  </view>
  <view class="box_image">
  <image class="tag_image" src="https://esos-iot.bjdexn.cn/wx_images/no_data.png" mode=""/>
  </view>
</t-tab-panel>
  <t-tab-panel label="离线" value="0">  
    <view class="tagbox">
  <view class="tag_box" wx:for="{{baseInfo}}" wx:key="powerId">
  <view class="tag_name">{{item.stationName}}</view>
  <!-- <view class="tag_name1"> -->
   <view class="tag_Unbind" wx:if="{{item.unbindStart==0}}" data-id="{{item.powerId}}" catchtap="onUnbind1">绑定</view>
  <view class="tag_Unbind" wx:if="{{item.unbindStart==1}}" data-id="{{item.powerId}}" catchtap="onUnbind2">解绑</view>
  <view class="tag_type1" wx:if="{{item.onlineStatus==1}}">正常</view>
  <view class="tag_type2" wx:if="{{item.onlineStatus==2}}">故障</view>
  <view class="tag_type3" wx:if="{{item.onlineStatus==0}}">离线</view>
  </view>
  <!-- </view> -->
  </view>
</t-tab-panel>
</t-tabs>
</view>
