1 line
2.3 KiB
Plaintext
1 line
2.3 KiB
Plaintext
<view class="device-tab data-v-52fa3be8"><scroll-view class="device-list data-v-52fa3be8" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{isRefreshing}}" refresher-default-style="black" data-event-opts="{{[['scrolltolower',[['handqixing',['$event']]]],['refresherrefresh',[['onRefresh',['$event']]]]]}}" bindscrolltolower="__e" bindrefresherrefresh="__e"><block wx:for="{{deviceList}}" wx:for-item="device" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['handleDeviceClick',['$0'],[[['deviceList','',index]]]]]]]}}" class="device-item data-v-52fa3be8" bindtap="__e"><view class="device-avatar data-v-52fa3be8"><image src="{{device.productPicture}}" mode="aspectFill" class="data-v-52fa3be8"></image></view><view class="device-info data-v-52fa3be8"><text class="device-name data-v-52fa3be8">{{device.name}}</text><text class="device-name data-v-52fa3be8" style="font-weight:400;">{{device.productName}}</text><block wx:if="{{device.roomName}}"><text class="device-room data-v-52fa3be8">{{device.roomName}}</text></block><view class="device-status-bar data-v-52fa3be8"><block wx:if="{{device.productType=='HUB'}}"><image src="https://api.ccttiot.com/smartmeter/img/static/uQiIeJDApFO5xSvepE4k" mode="aspectFill" class="data-v-52fa3be8"></image></block><image src="https://api.ccttiot.com/smartmeter/img/static/uqQvPIflXlEoSaHjqc4q" mode="aspectFill" class="data-v-52fa3be8"></image><image src="https://api.ccttiot.com/smartmeter/img/static/uQ7HTwLk1XDaV11mohr4" mode="aspectFill" class="data-v-52fa3be8"></image></view></view><view class="device-arrow data-v-52fa3be8">›</view></view></block><block wx:if="{{$root.g0==0}}"><view style="margin:auto;margin-top:50rpx;width:272rpx;height:272rpx;border-radius:50%;border:1px solid #ccc;" class="data-v-52fa3be8"><image style="width:272rpx;height:272rpx;" src="https://api.ccttiot.com/ad93702b02429b8adf394569460b8b2a-1758263546164.png" mode class="data-v-52fa3be8"></image></view></block><block wx:if="{{$root.g1==0}}"><view style="width:600rpx;text-align:center;margin:auto;margin-top:30rpx;" class="data-v-52fa3be8">{{''+$root.g2+''}}</view></block><view data-event-opts="{{[['tap',[['handleAddDevice',['$event']]]]]}}" class="add-device-btn data-v-52fa3be8" bindtap="__e"><text class="add-icon data-v-52fa3be8">+</text><text class="data-v-52fa3be8">{{$root.g3}}</text></view></scroll-view></view> |