project init
This commit is contained in:
17
pages/settings/expend/index.js
Normal file
17
pages/settings/expend/index.js
Normal file
@@ -0,0 +1,17 @@
|
||||
Page({
|
||||
data: {
|
||||
payList: [
|
||||
{"name":"数码产品","money":"5000.00"},
|
||||
{"name":"虚拟产品","money":"2000.00"},
|
||||
{"name":"红包","money":"0.23"}
|
||||
]
|
||||
},
|
||||
onLoad: function (options) {
|
||||
|
||||
},
|
||||
handleClick() {
|
||||
wx.navigateTo({
|
||||
url : "../edit/index?isAccount=0&isIncome=0&isAdd=1"
|
||||
})
|
||||
}
|
||||
});
|
||||
4
pages/settings/expend/index.json
Normal file
4
pages/settings/expend/index.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
}
|
||||
}
|
||||
20
pages/settings/expend/index.wxml
Normal file
20
pages/settings/expend/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">{{ 7000.23 }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<t-cell-group theme="card">
|
||||
<t-cell wx:for="{{payList}}" wx:key="index"
|
||||
title="{{item.name}}"
|
||||
align="top"
|
||||
image="/image/bill/7.png"
|
||||
note="{{item.money}}"
|
||||
url="../edit/index?isAccount=0&isIncome=0&isAdd=0"
|
||||
/>
|
||||
</t-cell-group>
|
||||
<t-fab icon="add" bind:click="handleClick" aria-label="新增支出类型"/>
|
||||
19
pages/settings/expend/index.wxss
Normal file
19
pages/settings/expend/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