project init

This commit is contained in:
2023-01-28 14:37:45 +08:00
parent fa1176f658
commit 3a134326e7
83 changed files with 1482 additions and 140 deletions

View File

@@ -22,9 +22,19 @@ Page({
}
let isRun = wx.getStorageSync("isRun");
if (!isRun) {
this.startInter();
// this.startInter();
}
},
modifyBudget (){
wx.navigateTo({
url : '/pages/budget/index'
})
},
addBill() {
wx.navigateTo({
url : '/pages/bill/add/index'
})
},
/**
* 启动定时器
*/

View File

@@ -12,7 +12,7 @@
</view>
<view class="space_box font_small">
<text>当月预算消费情况</text>
<view class="inline_box"><t-icon name="tools" size="28rpx"/>调整</view>
<view bind:tap="modifyBudget" class="inline_box"><t-icon name="tools" size="28rpx"/>调整</view>
</view>
<view class="padding_box">
<t-progress theme="plump" percentage="{{progress}}" status="{{progress > 80 ? 'error' : 'success' }}" />
@@ -22,22 +22,25 @@
<text>已消费:777.80</text>
</view>
<view class="padding_box">
<t-button theme="primary" size="medium" block>记一笔</t-button>
<t-button theme="primary" size="medium" block bind:tap="addBill">记一笔</t-button>
<t-divider dashed content="今日记账清单"/>
<view wx:if="{{todayList != null && todayList.length > 0}}">
<t-cell wx:for="{{todayList}}" wx:key="index"
title="{{item.title}}"
description="{{item.dateTime}} • {{item.from}}"
align="top"
image="https://tdesign.gtimg.com/mobile/%E5%9B%BE%E7%89%87.png"
note="{{item.money}}"
class="t-cell-{{item.type}}"
/>
</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>
<view wx:if="{{todayList != null && todayList.length > 0}}">
<t-cell-group theme="card">
<t-cell wx:for="{{todayList}}" wx:key="index"
title="{{item.title}}"
description="{{item.dateTime}} • {{item.from}}"
align="top"
image="/image/bill/5.png"
note="{{item.money}}"
class="t-cell-{{item.type}}"
url="{{'/pages/bill/index?id=' + item.id}}"
/>
</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"/>