This commit is contained in:
2023-02-06 22:01:07 +08:00
parent 40ca4223dd
commit f2261a3066
26 changed files with 103 additions and 38 deletions

View File

@@ -1,3 +1,4 @@
const app = getApp();
Page({
data: {
cashAccountList : [
@@ -8,8 +9,14 @@ Page({
{"name":"信用卡","money":"-200.00"},
],
},
onLoad: function (options) {
onShow: function () {
app.$api.getSettings().then(setting => {
if (setting.data){
let cashAccountList = setting.data.CASH_SETTING
let oweAccountList = setting.data.OWE_SETTING
this.setData({cashAccountList,oweAccountList})
}
})
},
handleClick() {
wx.navigateTo({