Files
quinn-accounts/pages/index/index.wxml
2023-03-02 21:49:51 +08:00

47 lines
1.9 KiB
Plaintext

<view class="main_look">
<view class="look_content font_big">
<view class="pay_look">
<text>今日支出\n</text>
<text class="font_big">{{sumToday}}</text>
</view>
<view class="balance_look">
<!-- <text>账户余额:{{sumBalance}}</text>-->
<text>预算余额:{{sumBudget - sumUsed}}</text>
</view>
</view>
</view>
<view class="space_box font_small">
<text>当月预算消费情况</text>
<view bind:tap="modifyBudget" class="inline_box"><t-icon name="money-circle" size="28rpx"/>查看</view>
</view>
<view class="padding_box">
<t-progress theme="plump" percentage="{{progress}}" status="{{ progress > 80 ? 'error' : 'success' }}" />
</view>
<view class="space_box font_small">
<text>当月预算:{{sumBudget}}</text>
<text>已消费:{{sumUsed}}</text>
</view>
<view class="padding_box">
<t-button theme="primary" size="medium" block bind:tap="addBill">记一笔</t-button>
<t-divider wx:if="{{todayList != null && todayList.length > 0}}" dashed content="今日记账清单"/>
</view>
<view wx:if="{{todayList != null && todayList.length > 0}}">
<t-cell-group theme="card">
<t-cell wx:for="{{todayList}}" wx:key="index"
title="{{item.moneyName}}"
description="{{item.date}} • {{item.accountName}}"
align="top"
image="{{item.moneyIcon}}"
url="{{'/pages/bill/index?id=' + item.id}}"
>
<text slot="note" class="t-color-{{item.billType}}">{{item.money}}</text>
</t-cell>
</t-cell-group>
</view>
<view wx:else class="empty-view" >
<t-empty icon="chart-bubble" description="今日还未记账" />
</view>
<!-- <t-empty wx:else t-class="empty-cls" t-class-image="t-empty__image" image="{{image}}" description="描述文字" />-->
<view class="placeholder"/>
<foot-tab value="label_1"/>