40 lines
1.4 KiB
Plaintext
40 lines
1.4 KiB
Plaintext
<view class="main_look">
|
|
<view class="look_content">
|
|
<view class="pay_look">
|
|
<view bind:tap="changeBudget" data-type="count" class="inline_box font_big">总预算<t-icon name="tools"/></view>
|
|
</view>
|
|
<view class="pay_look">
|
|
<text class="center_look font_big">{{ sumBudget }}</text>
|
|
</view>
|
|
<view class="balance_look">
|
|
<text>当月使用: {{ sumUsed }}</text>
|
|
<text>预算剩余: {{ sumBalance }}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<t-cell wx:for="{{payTypeList}}" wx:key="index"
|
|
title="{{item.expendName}}"
|
|
align="top"
|
|
image="{{item.expendIcon}}"
|
|
note="{{item.budget}}"
|
|
bind:tap="changeBudget"
|
|
data-type="item"
|
|
data-id="{{item.id}}"
|
|
>
|
|
<view wx:if="{{item.money}}" slot="description">
|
|
<t-progress percentage="{{25}}" />
|
|
<text>已使用:{{item.used}}</text>
|
|
</view>
|
|
<text class="error_msg" wx:else slot="description">未设置预算</text>
|
|
</t-cell>
|
|
<t-dialog
|
|
visible="{{showSetBudget}}"
|
|
title="设置预算"
|
|
confirm-btn="{{ { content: '确定', variant: 'base'} }}"
|
|
cancel-btn="取消"
|
|
bind:confirm="onConfirm"
|
|
bind:cancel="closeDialog"
|
|
>
|
|
<t-input bindchange="onPriceInput" value="{{currentMoney}}" tips="{{priceError ? '请输入正确金额' : ''}}" slot="content" type="number" placeholder="0.00"/>
|
|
</t-dialog>
|