project init
This commit is contained in:
16
pages/settings/income/index.js
Normal file
16
pages/settings/income/index.js
Normal 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"
|
||||
})
|
||||
}
|
||||
});
|
||||
4
pages/settings/income/index.json
Normal file
4
pages/settings/income/index.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
}
|
||||
}
|
||||
20
pages/settings/income/index.wxml
Normal file
20
pages/settings/income/index.wxml
Normal 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="新增收入类型"/>
|
||||
19
pages/settings/income/index.wxss
Normal file
19
pages/settings/income/index.wxss
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user