电速宝
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

index.wxml 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!--pages/station/index.wxml-->
  2. <view class="custom-tabs">
  3. <t-tabs defaultValue="{{stickyProps}}" theme="tag" bind:change="onTabsChange" sticky>
  4. <!-- <t-tab-panel wx:for="{{tablist}}" wx:key="index" label="{{item}}" value="{{index}}" /> -->
  5. <t-tab-panel label="全部" value="">
  6. <view class="tagbox">
  7. <view class="tag_box" wx:for="{{baseInfo}}" wx:key="powerId" data-id="{{item.powerId}}" bind:tap="ondetails">
  8. <view class="tag_name">{{item.stationName}}</view>
  9. <!-- <view class="tag_name1"> -->
  10. <view class="tag_Unbind" wx:if="{{item.unbindStart==0}}" data-id="{{item.powerId}}" catchtap="onUnbind1">绑定</view>
  11. <view class="tag_Unbind" wx:if="{{item.unbindStart==1}}" data-id="{{item.powerId}}" catchtap="onUnbind2">解绑</view>
  12. <view class="tag_type1" wx:if="{{item.onlineStatus==1}}">正常</view>
  13. <view class="tag_type2" wx:if="{{item.onlineStatus==2}}">故障</view>
  14. <view class="tag_type3" wx:if="{{item.onlineStatus==0}}">离线</view>
  15. <!-- </view> -->
  16. </view>
  17. </view>
  18. </t-tab-panel>
  19. <t-tab-panel label="正常" value="1">
  20. <view class="tagbox">
  21. <view class="tag_box" wx:for="{{baseInfo}}" wx:key="powerId">
  22. <view class="tag_name">{{item.stationName}}</view>
  23. <!-- <view class="tag_name1"> -->
  24. <view class="tag_Unbind" wx:if="{{item.unbindStart==0}}" data-id="{{item.powerId}}" catchtap="onUnbind1">绑定</view>
  25. <view class="tag_Unbind" wx:if="{{item.unbindStart==1}}" data-id="{{item.powerId}}" catchtap="onUnbind2">解绑</view>
  26. <view class="tag_type1" wx:if="{{item.onlineStatus==1}}">正常</view>
  27. <view class="tag_type2" wx:if="{{item.onlineStatus==2}}">故障</view>
  28. <view class="tag_type3" wx:if="{{item.onlineStatus==0}}">离线</view>
  29. </view>
  30. <!-- </view> -->
  31. </view>
  32. </t-tab-panel>
  33. <t-tab-panel label="故障" value="2">
  34. <view class="tagbox">
  35. <view class="tag_box" wx:for="{{baseInfo}}" wx:key="powerId">
  36. <view class="tag_name">{{item.stationName}}</view>
  37. <!-- <view class="tag_name1"> -->
  38. <view class="tag_Unbind" wx:if="{{item.unbindStart==0}}" data-id="{{item.powerId}}" catchtap="onUnbind1">绑定</view>
  39. <view class="tag_Unbind" wx:if="{{item.unbindStart==1}}" data-id="{{item.powerId}}" catchtap="onUnbind2">解绑</view>
  40. <view class="tag_type1" wx:if="{{item.onlineStatus==1}}">正常</view>
  41. <view class="tag_type2" wx:if="{{item.onlineStatus==2}}">故障</view>
  42. <view class="tag_type3" wx:if="{{item.onlineStatus==0}}">离线</view>
  43. </view>
  44. <!-- </view> -->
  45. </view>
  46. <view class="box_image">
  47. <image class="tag_image" src="https://esos-iot.bjdexn.cn/wx_images/no_data.png" mode=""/>
  48. </view>
  49. </t-tab-panel>
  50. <t-tab-panel label="离线" value="0">
  51. <view class="tagbox">
  52. <view class="tag_box" wx:for="{{baseInfo}}" wx:key="powerId">
  53. <view class="tag_name">{{item.stationName}}</view>
  54. <!-- <view class="tag_name1"> -->
  55. <view class="tag_Unbind" wx:if="{{item.unbindStart==0}}" data-id="{{item.powerId}}" catchtap="onUnbind1">绑定</view>
  56. <view class="tag_Unbind" wx:if="{{item.unbindStart==1}}" data-id="{{item.powerId}}" catchtap="onUnbind2">解绑</view>
  57. <view class="tag_type1" wx:if="{{item.onlineStatus==1}}">正常</view>
  58. <view class="tag_type2" wx:if="{{item.onlineStatus==2}}">故障</view>
  59. <view class="tag_type3" wx:if="{{item.onlineStatus==0}}">离线</view>
  60. </view>
  61. <!-- </view> -->
  62. </view>
  63. </t-tab-panel>
  64. </t-tabs>
  65. </view>