配置
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user