project init
This commit is contained in:
19
pages/settings/account/index.js
Normal file
19
pages/settings/account/index.js
Normal file
@@ -0,0 +1,19 @@
|
||||
Page({
|
||||
data: {
|
||||
cashAccountList : [
|
||||
{"name":"现金","money":"2000.00"},
|
||||
{"name":"银行卡","money":"30500.03"}
|
||||
],
|
||||
oweAccountList : [
|
||||
{"name":"信用卡","money":"-200.00"},
|
||||
],
|
||||
},
|
||||
onLoad: function (options) {
|
||||
|
||||
},
|
||||
handleClick() {
|
||||
wx.navigateTo({
|
||||
url : "../edit/index?isAccount=1&isIncome=0&isAdd=1"
|
||||
})
|
||||
}
|
||||
});
|
||||
4
pages/settings/account/index.json
Normal file
4
pages/settings/account/index.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
}
|
||||
}
|
||||
23
pages/settings/account/index.wxml
Normal file
23
pages/settings/account/index.wxml
Normal file
@@ -0,0 +1,23 @@
|
||||
<view class="padding_box">
|
||||
<t-divider dashed content="资金账户"/>
|
||||
</view>
|
||||
<t-cell-group theme="card">
|
||||
<t-cell wx:for="{{cashAccountList}}" wx:key="index"
|
||||
title="{{item.name}}"
|
||||
align="top"
|
||||
image="/image/account/11.png"
|
||||
url="../edit/index?isAccount=true"
|
||||
/>
|
||||
</t-cell-group>
|
||||
<view class="padding_box">
|
||||
<t-divider dashed content="负债账户"/>
|
||||
</view>
|
||||
<t-cell-group theme="card">
|
||||
<t-cell wx:for="{{oweAccountList}}" wx:key="index"
|
||||
title="{{item.name}}"
|
||||
align="top"
|
||||
image="/image/account/4.png"
|
||||
url="../edit/index?isAccount=1&isIncome=0&isAdd=0"
|
||||
/>
|
||||
</t-cell-group>
|
||||
<t-fab icon="add" bind:click="handleClick" aria-label="新增账户"/>
|
||||
0
pages/settings/account/index.wxss
Normal file
0
pages/settings/account/index.wxss
Normal file
Reference in New Issue
Block a user