Commit 7440d3db by 姜雷

添加打印数据

parent ffeb3fef
......@@ -103,7 +103,7 @@ Page({
const element = oList[index];
consumePrice += element.payableMoney;
consumeCount += element.payMen;
let daysIndex = element.createDate.slice(-2);
let daysIndex = Number(element.createDate.slice(-2));
dayList[daysIndex] = {
...dayList[daysIndex],
payMen: element.payMen,
......@@ -148,7 +148,7 @@ Page({
const element = oList[index];
rechargePrice += element.rechargeMoney;
rechargeCount += element.rechargeMen;
let daysIndex = element.completeAt.slice(-2);
let daysIndex = Number(element.completeAt.slice(-2));
dayList[daysIndex] = {
...dayList[daysIndex],
rechargeMoney: element.rechargeMoney,
......@@ -158,6 +158,7 @@ Page({
};
}
}
console.log(dayList);
this.setData!({
rechargeAndRefundList: dayList,
'rechargeData.count': rechargePrice,
......
......@@ -79,7 +79,7 @@ Page({
let oList = dayVos;
for (let index = 0; index < oList.length; index++) {
const element = oList[index];
let daysIndex = element.days.slice(-2);
let daysIndex = Number(element.days.slice(-2));
dayList[daysIndex] = {
...dayList[daysIndex],
count: element.count,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment