|  |  |  | 
|---|
|  |  |  | <view class="container"> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <scroll-view class="list-container" scroll-y="true" scroll-x="false"> | 
|---|
|  |  |  | <block wx:for="{{allCardPoints}}" wx:key="index"> | 
|---|
|  |  |  | <view class="{{item.state===1?'item':'item-gray'}}"> | 
|---|
|  |  |  | <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.id}}</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.balance}}</text> | 
|---|
|  |  |  | <text class="item-balance-text">{{item.money}}</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.inUse===0?'item-button':'item-button-gray'}}" bind:tap="openValva" data-item="{{item}}">{{item.inUse===0 ? '选择' : '使用中'}}</text> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </block> | 
|---|