|
|
|
@ -10,20 +10,22 @@ var method = '/MainSystem/B3MiniProgramRpc/XuRpcs/Customer/AccountBalanceRpc/Get |
|
|
|
Page({ |
|
|
|
data: { |
|
|
|
dates: new Date().getFullYear() + '-' + (new Date().getMonth() + 1), |
|
|
|
list:[], |
|
|
|
list:[{ |
|
|
|
Detail:[], |
|
|
|
}], |
|
|
|
}, |
|
|
|
|
|
|
|
bindDateChange: function (e) { |
|
|
|
this.setData({ |
|
|
|
dates: e.detail.value, |
|
|
|
list: [], |
|
|
|
list: [{ |
|
|
|
Detail: [], |
|
|
|
},], |
|
|
|
}) |
|
|
|
var year=this.data.dates.split('-')[0]; |
|
|
|
var month = this.data.dates.split('-')[1]; |
|
|
|
// var day = this.data.dates.split('-')[2];
|
|
|
|
var i1 = parseInt(year) |
|
|
|
var i2 = parseInt(month) |
|
|
|
// var i3 = parseInt(day)
|
|
|
|
var that=this; |
|
|
|
pageindex = 0; |
|
|
|
var params = [i1, i2, pageindex,pagesize]; |
|
|
|
@ -42,7 +44,11 @@ Page({ |
|
|
|
|
|
|
|
onLoad: function (options) { |
|
|
|
this.setData({ |
|
|
|
list: [], |
|
|
|
list: [ |
|
|
|
{ |
|
|
|
Detail:[], |
|
|
|
}, |
|
|
|
], |
|
|
|
}); |
|
|
|
var that = this; |
|
|
|
pageindex = 0; |
|
|
|
@ -69,18 +75,16 @@ Page({ |
|
|
|
array[i].Date = timechage.formatTimeTwo(array[i].Date.substring(6, 19), "Y/M/D"); |
|
|
|
} |
|
|
|
let arrLast = that.data.list.concat(array); |
|
|
|
|
|
|
|
that.setData({ |
|
|
|
list: arrLast |
|
|
|
list: arrLast, |
|
|
|
// detailArr: arrLast.Detail
|
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 生命周期函数--监听页面显示 |
|
|
|
*/ |
|
|
|
onShow: function () { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
/* |
|
|
|
touchS: function (e) { |
|
|
|
if (e.touches.length == 1) { |
|
|
|
this.setData({ |
|
|
|
@ -135,7 +139,6 @@ Page({ |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//点击删除按钮事件
|
|
|
|
delItem: function (e) { |
|
|
|
//获取列表中要删除项的下标
|
|
|
|
@ -148,4 +151,6 @@ Page({ |
|
|
|
list: list |
|
|
|
}); |
|
|
|
}, |
|
|
|
*/ |
|
|
|
|
|
|
|
}) |