oak-pay-business/es/components/withdraw/create/index.xml

114 lines
4.4 KiB
XML

<block wx:if="{{!withdrawable}}">
<view class="errorContainer">
<oak-icon name="delete_fill" size="48" color="#FF3141" />
<view>{{t('notSetYet')}}</view>
<l-button bind:lintap="goBack">{{t('common::back')}}</l-button>
</view>
</block>
<block wx:elif="{{chooseWa && waFilter}}">
<withdrawAccount-picker
oakPath="$$opb-withdraw-create-wapicker"
oakFilters="{{[waFilter]}}"
onPicker="{{pickWithdrawChannelMp}}"
onCancel="{{restartAll}}"
entity="user"
entityId="{{userId}}"
/>
</block>
<block wx:elif="{{withdrawCreate}}">
<view class="container">
<withdraw-display
withdraw="{{withdrawCreate}}"
create="{{true}}"
style="flex:1;"
/>
<view class="btns">
<l-button
size="long"
plain="true"
shape="square"
bind:lintap="restartAll"
l-class="cancelBtn"
>
{{t('common::action.cancel')}}
</l-button>
<l-button
size="long"
shape="square"
bind:lintap="createWithdraw"
>
{{t('common::action.commit')}}
</l-button>
</view>
</view>
</block>
<block wx:elif="{{account}}">
<view class="main">
<view class="label">{{t('label')}}</view>
<view class="input">
<span class="symbol">{{t('common::pay.symbol')}}</span>
<l-input
focus="{{true}}"
hide-label="{{true}}"
showRow="{{false}}"
type="number"
placeholder="{{t('placeholder')}}"
value="{{valueYuan ? valueYuan : undefind}}"
l-input-class="my-input-class"
bind:lininput="InputValueMp"
bind:linconfirm="createWithdrawData"
/>
</view>
<view class="tips">
<view class="tipLine">
<span>{{t('tips.1-1')}}</span>
<block wx:if="{{avail>0}}">
<span class="value" style="text-decoration: underline; margin-left: 16rpx;" bindtap="setValueMp" data-value="{{availYuan}}">
<span class="value">{{availYuan}}</span>
</span>
</block>
<block wx:else>
<span class="value">{{availYuan}}</span>
</block>
<span>{{t('tips.1-2')}}</span>
</view>
<view wx:if="{{refundAmount > 0}}" class="tipLine">
<span>{{t('tips.2-1')}}</span>
<span class="value">{{refundAmountYuan}}</span>
<span>{{t('tips.2-2')}}</span>
</view>
<view wx:if="{{manualAmount > 0}}" class="tipLine">
<span>{{t('tips.3-1')}}</span>
<span class="value">{{manualAmountYuan}}</span>
<span>{{t('tips.3-2')}}</span>
</view>
</view>
<view class="helps">
<view class="label2" bindtap="switchHelpMp" data-value="method">
<oak-icon wx:if="{{showMethodHelp}}" name="packup" size="18" color="blue"/>
<oak-icon wx:else name="unfold" size="18" color="skyblue"/>
<span style="margin-left: 16rpx;color:{{showMethodHelp ? 'blue' : 'skyblue'}};">{{t('helps.label.method')}}</span>
</view>
<view wx:if="{{showMethodHelp}}" class="content2">{{t('helps.content.method')}}</view>
<view class="label2" bindtap="switchHelpMp" data-value="loss">
<oak-icon wx:if="{{showLossHelp}}" name="packup" size="18" color="blue"/>
<oak-icon wx:else name="unfold" size="18" color="skyblue"/>
<span style="margin-left: 16rpx;color:{{showLossHelp ? 'blue' : 'skyblue'}};">{{t('helps.label.loss')}}</span>
</view>
<view wx:if="{{showLossHelp}}" class="content2">{{withdrawLossText}}</view>
</view>
<view class="gotoHistory" bindtap="onGoToHistoryMp">
<oak-icon name="coupons" size="18" color="@oak-color-primary" style="margin-right:8rpx;"/>
<span>{{t('gotoHistory')}}</span>
</view>
<view class="footer">
<l-button
size="long"
disabled="{{!executale}}"
bind:lintap = "createWithdrawData"
>
{{t('common::confirm')}}
</l-button>
</view>
</view>
</block>