<!--pages/rechargeCard/rechargeCard.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" enable-flex="true" wx:if="{{currentTab === 0}}" scroll-y="true" refresher-enabled="true" bindrefresherrefresh="onPullDownRefresh" scroll-x="false" refresher-triggered="{{isWXRefreshing}}">
|
<block wx:if="{{allCardPoints.length > 0}}" wx:for="{{allCardPoints}}" wx:key="index">
|
<view class="{{item.inUse===false?'item':'item-gray'}}">
|
<view class="item-card">
|
<text class="item-card-text">卡编号:</text>
|
<text class="item-card-text">{{item.vcNum}}</text>
|
<text wx:if="{{item.inUse==1}}" class="item-card-state">使用中</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>
|
<view class="button-view">
|
<text wx:if="{{item.inUse==0}}" class="ruinCard" data-item="{{item}}" bind:tap="ruinCard">销卡</text>
|
<text wx:if="{{item.inUse==0}}" class="recharge" data-item="{{item}}" bind:tap="rechargeCard">充值</text>
|
</view>
|
</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 class="all-waterIntake" wx:else>
|
<scroll-view class="list-container" scroll-y="true" scroll-x="false">
|
<block wx:if="{{allWaterPoints.length > 0}}" wx:for="{{allWaterPoints}}" wx:key="index">
|
<view class="item">
|
<view class="item-card">
|
<text class="item-card-text">卡编号:</text>
|
<text class="item-card-text">{{item.vcNum}}</text>
|
<text class="waterIntake-recharge">充值</text>
|
</view>
|
</view>
|
</block>
|
<view wx:if="{{allWaterPoints.length === 0}}" class="noMore-View">
|
<image class="noMore-img" src="/images/no_more.svg" />
|
<text class="noMore-text">没有数据</text>
|
</view>
|
</scroll-view>
|
|
</view>
|
<t-fab icon="gesture-add" text="添加虚拟卡" bind:click="handleClick" bind:move="handleMove" aria-label="增加" usingCustomNavbar draggable y-bounds="{{[0, 32]}}" style="--td-primary-color-7:#2D8BF7"></t-fab>
|
<t-dialog visible="{{showDialog}}" content="您还有余额未使用,如需销卡,请先使用完或退款后才可操作。" confirm-btn="{{ confirmBtn }}" bind:confirm="closeDialog" />
|
<t-dialog class="dialog" visible="{{isAddCardDialog}}" content="确认添加虚拟卡吗?" confirm-btn="{{ { content: '确认', variant: 'base', theme: 'danger' } }}" close-on-overlay-click="false" cancel-btn="取消" bind:confirm="addCardPost" bind:cancel="cancelDialog" />
|
</view>
|