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

@@ -0,0 +1,16 @@
Page({
data: {
incomeList: [
{"name":"薪资","money":"89310.00"},
{"name":"红包","money":"0.23"}
]
},
onLoad: function (options) {
},
handleClick() {
wx.navigateTo({
url : "../edit/index?isAccount=0&isIncome=1&isAdd=1"
})
}
});

View File

@@ -0,0 +1,4 @@
{
"usingComponents": {
}
}

View File

@@ -0,0 +1,20 @@
<view class="main_look">
<view class="look_content">
<view class="pay_look">
<view bind:tap="changeBudget" data-type="count" class="inline_box font_big">年度总收入</view>
</view>
<view class="pay_look">
<text class="center_look font_big">{{ 89310.23 }}</text>
</view>
</view>
</view>
<t-cell-group theme="card">
<t-cell wx:for="{{incomeList}}" wx:key="index"
title="{{item.name}}"
align="top"
image="/image/bill/11.png"
note="{{item.money}}"
url="../edit/index?isAccount=0&isIncome=1&isAdd=0"
/>
</t-cell-group>
<t-fab icon="add" bind:click="handleClick" aria-label="新增收入类型"/>

View File

@@ -0,0 +1,19 @@
.main_look {
padding: 0 30rpx;
margin-bottom: 20rpx;
}
.look_content {
display: flex;
flex-direction: column;
justify-content: center;
height: 200rpx;
background-color: #111111;
background-size:100% 100%;
font-weight: bold;
}
.pay_look {
padding: 0 20rpx;
display: flex;
flex-direction: row;
justify-content: center;
}