管灌系统农户端微信小程序(嘉峪关应用)
zuoxiao
2024-05-30 910c37c43eceb27888b90631c868caa08f7eafcc
pages/openCard/openCard.wxml
@@ -1,5 +1,5 @@
<!--pages/openCard/openCard.wxml 开卡时的虚拟卡-->
<view>
<view class="container">
  <scroll-view class="list-container" scroll-y="true" scroll-x="false">
    <block wx:for="{{allCardPoints}}" wx:key="index">
@@ -14,10 +14,13 @@
            <text class="item-balance-text">{{item.balance}}</text>
            <text class="item-balance-text-yuan">元</text>
          </view>
          <text class="{{item.state===1?'item-button':'item-button-gray'}}"  bind:tap="openValva" data-item="{{item}}">{{item.state === 1 ? '选择' : '正在使用'}}</text>
          <text class="{{item.state===1?'item-button':'item-button-gray'}}" bind:tap="openValva" data-item="{{item}}">{{item.state === 1 ? '选择' : '使用中'}}</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>