<view class="{{[$root.m0?'empty-wrap':'']}}"><block wx:if="{{scanList.length>0}}"><view class="container"><scroll-view style="{{('height:'+list_height+'rpx')}}" scroll-y="{{true}}"><block wx:for="{{scanList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><view class="list-item"><view style="display:flex;flex-direction:column;width:80%;"><text style="font-size:medium;word-break:break-all;">{{"设备名称: "+item.name}}</text><text style="font-size:x-small;color:gray;word-break:break-all;">{{"设备ID: "+item.deviceId}}</text><text style="font-size:x-small;color:gray;word-break:break-all;">{{"信号强度RSSI: "+item.RSSI}}</text></view><view class="openBtn" data-deviceId="{{item.deviceId}}" data-wxapp_ekey="{{item.wxapp_ekey}}" data-event-opts="{{[['tap',[['openDoor',['$event']]]]]}}" bindtap="__e">开门</view></view></block></block></scroll-view></view></block><block wx:if="{{scanList==null||scanList.length==0}}"><view class="default"><image src="/static/common/empty.png" mode="heightFix"></image><view><text>没有扫描到设备</text></view></view></block></view>