沙盘演示系统应用的微信小程序
zuoxiao
2024-11-04 21525f47ca011b149a3674d0926cbe495ec872c8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!--pages/valveList/valveList.wxml 开关阀记录-->
<view  class="container">
  <!-- 顶部 Tabs -->
  <view class="tabs"> 
   <view class="tab" bindtap="switchTab" data-tab="0" id="tab0">
      虚拟卡
      <view class="indicator" wx:if="{{currentTab === 0}}"></view>
    </view> 
  <view class="tab" bindtap="switchTab" data-tab="1" id="tab1">
      水卡
      <view class="indicator" wx:if="{{currentTab === 1}}"></view>
    </view>
 </view>
  <scroll-view class="list-container" wx:if="{{currentTab === 0}}" scroll-y="true" scroll-x="false" refresher-enabled="true" bindrefresherrefresh="onPullVirtualDownRefresh" scroll-x="false" refresher-triggered="{{isVirtualRefreshing}}" bindscrolltolower="loadVirtualMore">
    <block wx:if="{{listVirtualData.length > 0}}" wx:for="{{listVirtualData}}" wx:key="index">
      <view class="list-item" >
        <!-- <image class="item-img" src="/images/pipeline.svg" /> -->
        <view class="item-time">
          <text class="item-text">消费金额:</text>
          <view>
            <text class="item-morny">{{item.expense}}</text>
            <text class="item-text">  元</text>
          </view>
        </view>
        <text class="item-text">水卡编号:{{item.cardNum}}</text>
        <text class="item-text">取水口编号:{{item.intakeNum}}</text>
        <text class="item-text">开阀类型:{{item.openType}}</text>
        <text class="item-text">开阀时间:{{item.openTime}}</text>
        <text class="item-text">关阀时间:{{item.closeTime}}</text>
        <view class="item-time">
          <text class="item-text">用水时长:{{item.duration}}分钟</text>
          <text class="item-text">用水量:{{item.amount}} m³</text>
        </view>
 
      </view>
    </block>
    <view wx:if="{{listVirtualData.length === 0}}" class="noMore-View">
      <image class="noMore-img" src="/images/no_more.svg" />
      <text class="noMore-text">没有数据</text>
    </view>
    <view wx:if="{{virtualIsLoding}}" class="loading">加载中...</view> <!-- 加载指示器 -->
    <view wx:if="{{ !virtualhasMore && listVirtualData.length > 0}}" class="loading">没有更多数据</view> 
  </scroll-view>
 
  <scroll-view class="list-container" wx:else scroll-y="true" scroll-x="false" refresher-enabled="true" bindrefresherrefresh="onPullPhysicalDownRefresh" scroll-x="false" refresher-triggered="{{isPhysicalRefreshing}}" bindscrolltolower="loadPhysicalMore">
    <block wx:if="{{listPhysicalData.length > 0}}" wx:for="{{listPhysicalData}}" wx:key="index">
      <view class="list-item" >
        <!-- <image class="item-img" src="/images/pipeline.svg" /> -->
        <view class="item-time">
          <text class="item-text">消费金额:</text>
          <view>
            <text class="item-morny">{{item.expense}}</text>
            <text class="item-text">  元</text>
          </view>
        </view>
        <text class="item-text">水卡编号:{{item.cardNum}}</text>
        <text class="item-text">取水口编号:{{item.intakeNum}}</text>
        <text class="item-text">开阀类型:{{item.openType}}</text>
        <text class="item-text">开阀时间:{{item.openTime}}</text>
        <text class="item-text">关阀时间:{{item.closeTime}}</text>
        <view class="item-time">
          <text class="item-text">用水时长:{{item.duration}}分钟</text>
          <text class="item-text">用水量:{{item.amount}} m³</text>
        </view>
 
      </view>
    </block>
    <view wx:if="{{listPhysicalData.length === 0}}" class="noMore-View">
      <image class="noMore-img" src="/images/no_more.svg" />
      <text class="noMore-text">没有数据</text>
    </view>
    <view wx:if="{{physicalIsLoding}}" class="loading">加载中...</view> <!-- 加载指示器 -->
    <view wx:if="{{!physicalHasMore && listPhysicalData.length > 0}}" class="loading">没有更多数据</view> 
  </scroll-view>
</view>