project init
This commit is contained in:
36
pages/budget/index.wxml
Normal file
36
pages/budget/index.wxml
Normal file
@@ -0,0 +1,36 @@
|
||||
<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">{{ mainMoney }}</text>
|
||||
</view>
|
||||
<view class="balance_look">
|
||||
<text>当月使用: {{ 900.00 }}</text>
|
||||
<text>预算剩余: {{ 1200.00 }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<t-cell wx:for="{{payTypeList}}" wx:key="index"
|
||||
title="{{item.name}}"
|
||||
align="top"
|
||||
image="/image/bill/3.png"
|
||||
note="{{item.money}}"
|
||||
bind:tap="changeBudget"
|
||||
data-type="item"
|
||||
data-id="{{item.id}}"
|
||||
>
|
||||
<t-progress wx:if="{{item.money}}" slot="description" percentage="{{25}}" />
|
||||
<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>
|
||||
Reference in New Issue
Block a user