管灌系统农户端微信小程序(嘉峪关应用)
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
<!--pages/openCard/openCard.wxml 开卡时的虚拟卡-->
<view class="container">
 
  <scroll-view class="list-container" scroll-y="true" scroll-x="false">
    <block wx:if="{{allCardPoints.length > 0}}" wx:for="{{allCardPoints}}" wx:key="index">
      <view class="{{item.inUse===0?'item':'item-gray'}}">
        <view class="item-card">
          <text>卡编号:</text>
          <text>{{item.vcNum}}</text>
        </view>
        <view class="item-bottom">
          <image class="item-balance-img" src="/images/balance.svg" />
          <view class="item-balance">
            <text class="item-balance-text">{{item.money}}</text>
            <text class="item-balance-text-yuan">元</text>
          </view>
          <text class="{{item.inUse===0?'item-button':'item-button-gray'}}" bind:tap="openValva" data-item="{{item}}">{{item.inUse===0 ? '选择' : '使用中'}}</text>
        </view>
      </view>
    </block>
    <view wx:if="{{allCardPoints.length === 0}}" class="noMore-View">
          <image class="noMore-img" src="/images/no_more.svg" />
          <text class="noMore-text">没有数据</text>
        </view>
  </scroll-view>
</view>