index.wxml 2.6 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 class="inputs" style="{{'width:'+(width)+';'}}"><input class="inputbox" type="text" value="{{imports}}" placeholder="请输入设备ID或设备名称" clearable="{{false}}" data-event-opts="{{[['input',[['__set_model',['','imports','$event',[]]],['searchinput',['$event']]]]]}}" bindinput="__e"/><u-icon class="icon" vue-id="7763117e-2" name="search" size="40" data-event-opts="{{[['^click',[['search']]]]}}" bind:click="__e" bind:__l="__l"></u-icon></view></view><view class="utabs_box"><view class="utabs"><block wx:if="{{list.length}}"><u-tabs vue-id="7763117e-3" 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></block></view></view><block wx:if="{{loadingtf}}"><view class="loading"><image class="img" src="../../static/images/ajax-loader.gif" mode></image></view></block><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/image/fourMoodBase/'+type_id+'.png'}}" 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>