index.wxml 2.0 KB

1
  1. <view><view class="status_bar"></view><view style="position:fixed;top:44px;z-index:100;width:100%;"><uni-nav-bar vue-id="7763117e-1" right-icon="search" title="设备列表" data-event-opts="{{[['^clickRight',[['clickRight']]]]}}" bind:clickRight="__e" bind:__l="__l"></uni-nav-bar></view><view class="utabs_box"><view class="utabs"><u-tabs vue-id="7763117e-2" list="{{list}}" is-scroll="{{true}}" current="{{currents}}" item-width="140" font-size="24" gutter="20" bar-width="60" active-color="#42b983" data-event-opts="{{[['^change',[['change']]]]}}" bind:change="__e" bind:__l="__l"></u-tabs></view></view><view class="list"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['historys',['$0'],[[['eqlistdata','',index]]]]]]]}}" class="list_item" bindtap="__e"><view class="list_item_top"><view class="p1 _p"><image src="{{'http://www.hnyfwlw.com:8006/bigdata_app'+imgpath[0].path}}" mode></image>{{''+(item.$orig.device_name==''?"--":item.$orig.device_name)+''}}</view><view class="{{['_p',item.$orig.is_online?'p2':'p_out']}}">{{item.$orig.is_online?"在线":"离线"}}</view></view><view class="list_item_text"><view class="_p">{{"设备ID:"+(item.$orig.imei||item.$orig.device_id)}}</view><view class="_p">{{"适配用户:"+(item.$orig.real_name==''?"无":item.$orig.real_name)}}</view><view class="_p">{{"最新上报时间:"+item.f0}}</view><view class="_p">{{"添加设备时间:"+item.f1}}</view><view class="_p">{{"设备已运行:"+item.$orig.days+"天"}}</view></view><block wx:if="{{infoalter}}"><view data-event-opts="{{[['tap',[['modification',['$0'],[[['eqlistdata','',index]]]]]]]}}" class="list_item_btn" catchtap="__e">信息修改</view></block></view></block></view><block wx:if="{{isTop}}"><view data-event-opts="{{[['tap',[['top',['$event']]]]]}}" class="top" bindtap="__e"><image src="{{'http://www.hnyfwlw.com:8006/bigdata_app'+'/image/6209a98f0cb3b5086f2ca36152c9269.png'}}" mode></image></view></block></view>