<view class="container">
|
<view class="all-waterIntake" wx:if="{{currentTab === 0}}">
|
<view class="search-container">
|
<input class="search-input" value="{{inputValue}}" placeholder="请输入取水口编码后点击搜索" bindinput="onInput" />
|
<t-button class="search-button" theme="primary" size="large" icon="search" shape="square" aria-label="搜索" bindtap="onSearch" style="background-color: #1890FF; border: none; height: 80rpx;"></t-button>
|
</view>
|
<view class="search-results" wx:if="{{allWaterPoints.length > 0}}" bindtap="closeSearch">
|
<block wx:for="{{allWaterPoints}}" wx:key="index">
|
<view class="result-item" bindtap="choseCard" data-item="{{item}}">
|
<text>{{item.intakeNum}}</text>
|
</view>
|
</block>
|
</view>
|
<scroll-view class="list-container" enable-flex="true" scroll-y="true" refresher-enabled="true" refresher-threshold="50" bindrefresherrefresh="onPullDownRefresh_common" refresher-triggered="{{isRefreshing_common}}">
|
<block wx:for="{{commonWaterPoints}}" wx:key="index">
|
<view class="item">
|
<view class="item-left">
|
<image class="item-img-left" src="/images/valve.svg" />
|
<text class="water-intake-name">{{item.intakeNum}}</text>
|
<image class="item-img" src="{{item.isOnLine ? '/images/wifi_no.svg' : '/images/wifi_off.svg'}}" />
|
</view>
|
<text class="item-button" bindtap="choseCard" data-item="{{item}}">开阀</text>
|
</view>
|
</block>
|
<view wx:if="{{commonWaterPoints.length === 0}}" class="noMore-View">
|
<image class="noMore-img" src="/images/no_more.svg" />
|
<text class="noMore-text">没有数据</text>
|
</view>
|
</scroll-view>
|
</view>
|
|
<t-dialog class="dialog" visible="{{showConfirm}}" content="确认打开{{choseItem.intakeNum}}吗?" confirm-btn="{{ { content: '确认', variant: 'base', theme: 'danger' } }}" close-on-overlay-click="false" cancel-btn="取消" bind:confirm="confirmDialog" bind:cancel="closeDialog" />
|
|
<t-dialog class="error-dialog" title="开阀错误" visible="{{showErrorDialog}}" content="{{errorData}}" confirm-btn="{{ confirmBtn }}" bind:confirm="closeErrorDialog" />
|
|
<t-dialog visible="{{showForceConfirm}}" content="当前虚拟卡被占用,是否强制开阀?" confirm-btn="{{ { content: '强制开阀', variant: 'base', theme: 'danger' } }}" cancel-btn="取消" bind:confirm="confirmForceDialog" bind:cancel="cancelDialog" />
|
|
|
|
|
</view>
|