congming_huose-apk/unpackage/dist/dev/mp-weixin/common/components/DeviceTab.wxml

1 line
3.8 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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><block wx:if="{{showModal}}"><view data-event-opts="{{[['tap',[['closeModal',['$event']]]]]}}" class="modal-mask data-v-52fa3be8" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="modal-content data-v-52fa3be8" catchtap="__e"><view class="modal-header data-v-52fa3be8"><text class="modal-title data-v-52fa3be8"></text><view data-event-opts="{{[['tap',[['closeModal',['$event']]]]]}}" class="close-btn data-v-52fa3be8" bindtap="__e">×</view></view><view class="modal-body data-v-52fa3be8"><view class="input-item data-v-52fa3be8"><text class="input-label data-v-52fa3be8">网关mac</text><input class="input-field data-v-52fa3be8" placeholder="请输入网关mac" placeholder-style="color: #ccc;" type="text" data-event-opts="{{[['input',[['__set_model',['$0','name','$event',[]],['formData']]]]]}}" value="{{formData.name}}" bindinput="__e"/></view><view class="input-item data-v-52fa3be8"><text class="input-label data-v-52fa3be8">设备mac</text><input class="input-field data-v-52fa3be8" placeholder="请输入设备mac" placeholder-style="color: #ccc;" type="text" data-event-opts="{{[['input',[['__set_model',['$0','phone','$event',[]],['formData']]]]]}}" value="{{formData.phone}}" bindinput="__e"/></view></view><view class="modal-footer data-v-52fa3be8"><button data-event-opts="{{[['tap',[['handleConfirm',['$event']]]]]}}" class="confirm-btn data-v-52fa3be8" bindtap="__e">确定</button></view></view></view></block></view>