58 lines
2.4 KiB
Plaintext
58 lines
2.4 KiB
Plaintext
<view class="main_look">
|
|
<view class="look_content">
|
|
<view class="pay_look">
|
|
<view data-type="count" class="inline_box font_large">
|
|
账户余额<t-icon bind:tap="showDialog" name="edit"/>
|
|
</view>
|
|
</view>
|
|
<view class="pay_look">
|
|
<text class="center_look font_large">{{ currentMoneyText }}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="space_box_no_padding font_big">
|
|
<text class="t-color-expend">支出{{expendMoney}}</text>
|
|
<text class="t-color-income">收入{{incomeMoney}}</text>
|
|
</view>
|
|
<view class="padding_box">
|
|
<t-divider content="{{dateRangeText}}" bind:tap="handleCalendar"/>
|
|
</view>
|
|
<t-collapse theme="card" defaultValue="{{[0]}}" expandMutex expandIcon>
|
|
<t-collapse-panel header="收入" value="{{0}}">
|
|
<view wx:if="{{incomeList != null && incomeList.length > 0}}">
|
|
<t-cell wx:for="{{incomeList}}" wx:key="index"
|
|
title="{{item.title}}"
|
|
description="{{item.dateTime}} • {{item.from}}"
|
|
align="top"
|
|
image="/image/bill/4.png"
|
|
note="+{{item.money}}"
|
|
class="t-cell-{{item.type}}"
|
|
url="{{'/pages/bill/index?id=' + item.id}}"
|
|
/>
|
|
</view>
|
|
</t-collapse-panel>
|
|
<t-collapse-panel header="支出" value="{{1}}">
|
|
<t-cell wx:for="{{payList}}" wx:key="index"
|
|
title="{{item.title}}"
|
|
description="{{item.dateTime}} • {{item.from}}"
|
|
align="top"
|
|
image="/image/bill/4.png"
|
|
note="-{{item.money}}"
|
|
class="t-cell-{{item.type}}"
|
|
url="{{'/pages/bill/index?id=' + item.id}}"
|
|
/>
|
|
</t-collapse-panel>
|
|
</t-collapse>
|
|
<t-calendar visible="{{visible}}" bind:confirm="handleConfirm" value="{{dateRange}}" type="range" max-date="{{maxDate}}" min-date="{{minDate}}" />
|
|
<t-dialog
|
|
visible="{{showSetMoney}}"
|
|
title="修改余额"
|
|
content="请慎重,可能无法收支平衡!"
|
|
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>
|