oak-pay-business/es/components/accountOper/list/index.xml

56 lines
2.5 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<scroll-view scroll-y bindscrolltolower="loadMoreMp" class="myScroll" refresher-enabled="{{true}}"
bindrefresherrefresh="bindrefresherrefresh" refresher-triggered="{{refreshing}}">
<view class="header">
<picker mode="date" fields="month" value="{{monthStr}}" start="{{pickerStart}}" end="{{pickerEnd}}" bindchange="setMonthMp">
<view class="headerItem">
<span>{{monthStr || t('chooseMonth')}}</span>
<oak-icon name="unfold" size="20" color="#000"/>
</view>
</picker>
<view class="headerItem" bindtap="openChooseTypeMp">
<oak-icon name="search" size="20" color="#000" />
<span>{{t('type.'+type)}}</span>
</view>
</view>
<view wx:if="{{accountOpers && accountOpers.length>0}}" class="list">
<l-list wx:for="{{accountOpers}}" wx:key="id" gap="24" is-link="{{false}}" l-class="my-list-class">
<view slot="left-section" class="left">
<view class="avatar" style="background-color:{{item.bgColor}}">{{item.symbol}}</view>
<view class="middle">
<view class="type">{{item.type}}</view>
<view class="sub">{{item.time}}</view>
</view>
</view>
<view slot="right-section" class="right">
<view style="color:{{item.bgColor}}">{{item.value}}</view>
<view class="sub">{{t('account:attr.avail')}}{{item.avail}}</view>
</view>
</l-list>
</view>
<view wx:else class="empty">
<view class="content">
<oak-icon name="refresh" size="48" class="icon"/>
<view>{{t('common::noData')}}</view>
<l-button
plain="true"
bind:lintap="navigateBack"
l-class="btn"
size="long"
width="160"
height="80"
>
{{t('common::back')}}
</l-button>
</view>
</view>
</scroll-view>
<l-popup show="{{chooseType}}" content-align="bottom" bind:lintap="closeChooseTypeMp" >
<view class="container">
<l-radio-group current="{{type}}" bind:linchange="setTypeMp" none-checked="{{false}}" placement="row" l-class="radio-group-class">
<l-radio key="both">{{t('type.both')}}</l-radio>
<l-radio key="in">{{t('type.in')}}</l-radio>
<l-radio key="out">{{t('type.out')}}</l-radio>
</l-radio-group>
</view>
</view>
</l-popup>