Commit 021979b3 by 姜雷

修正数组下标并添加索引配置

parent 7440d3db
......@@ -112,7 +112,7 @@ Page({
consumePrice += element.payableMoney;
consumeCount += element.payMen;
var daysIndex = Number(element.createDate.slice(-2));
dayList[daysIndex] = __assign({}, dayList[daysIndex], { payMen: element.payMen, payableMoney: element.payableMoney });
dayList[daysIndex - 1] = __assign({}, dayList[daysIndex - 1], { payMen: element.payMen, payableMoney: element.payableMoney });
}
}
_this.setData({
......@@ -151,7 +151,7 @@ Page({
rechargePrice += element.rechargeMoney;
rechargeCount += element.rechargeMen;
var daysIndex = Number(element.completeAt.slice(-2));
dayList[daysIndex] = __assign({}, dayList[daysIndex], { rechargeMoney: element.rechargeMoney, rechargeMen: element.rechargeMen, refundCount: element.refundCount, refundMoney: element.refundMoney });
dayList[daysIndex - 1] = __assign({}, dayList[daysIndex - 1], { rechargeMoney: element.rechargeMoney, rechargeMen: element.rechargeMen, refundCount: element.refundCount, refundMoney: element.refundMoney });
}
}
console.log(dayList);
......@@ -216,4 +216,4 @@ Page({
});
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9udGhPcGVyYXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIm1vbnRoT3BlcmF0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHlDQUFrRDtBQUNsRCx5Q0FBOEM7QUFFOUMsSUFBSSxDQUFDO0lBQ0gsTUFBTTtRQUNKLElBQUksQ0FBQyxRQUFRLEVBQUUsQ0FBQztJQUNsQixDQUFDO0lBQ0QsSUFBSSxFQUFFO1FBQ0osS0FBSyxFQUFFLEVBQUU7UUFDVCxNQUFNLEVBQUUsRUFBRTtRQUNWLFFBQVEsRUFBRSxFQUFFO1FBQ1osWUFBWSxFQUFFO1lBQ1osS0FBSyxFQUFFLE1BQU07WUFDYixVQUFVLEVBQUUsT0FBTztZQUNuQixLQUFLLEVBQ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sOiAnL2RjeHkvcmVwb3J0SW5mby9kYWlseUNvbnN1bWVDb3VudCcsXG4gICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgIGRhdGE6IHJlcUJvZHksXG4gICAgfSlcbiAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgIGxldCBkYXlMaXN0ID0gbmV3IEFycmF5KDMxKVxuICAgICAgICAgIC5maWxsKHtcbiAgICAgICAgICAgIHBheU1lbjogMCxcbiAgICAgICAgICAgIHBheWFibGVNb25leTogMCxcbiAgICAgICAgICB9KVxuICAgICAgICAgIC5tYXAoKHYsIGlkeCkgPT4gKHsgLi4udiwgZGF5czogaWR4ICsgMSB9KSk7XG5cbiAgICAgICAgbGV0IGNvbnN1bWVQcmljZSA9IDA7XG4gICAgICAgIGxldCBjb25zdW1lQ291bnQgPSAwO1xuICAgICAgICBpZiAocmVzLmRhdGEgJiYgcmVzLmRhdGEubGVuZ3RoKSB7XG4gICAgICAgICAgbGV0IG9MaXN0ID0gcmVzLmRhdGE7XG4gICAgICAgICAgZm9yIChsZXQgaW5kZXggPSAwOyBpbmRleCA8IG9MaXN0Lmxlbmd0aDsgaW5kZXgrKykge1xuICAgICAgICAgICAgY29uc3QgZWxlbWVudCA9IG9MaXN0W2luZGV4XTtcbiAgICAgICAgICAgIGNvbnN1bWVQcmljZSArPSBlbGVtZW50LnBheWFibGVNb25leTtcbiAgICAgICAgICAgIGNvbnN1bWVDb3VudCArPSBlbGVtZW50LnBheU1lbjtcbiAgICAgICAgICAgIGxldCBkYXlzSW5kZXggPSBOdW1iZXIoZWxlbWVudC5jcmVhdGVEYXRlLnNsaWNlKC0yKSk7XG4gICAgICAgICAgICBkYXlMaXN0W2RheXNJbmRleF0gPSB7XG4gICAgICAgICAgICAgIC4uLmRheUxpc3RbZGF5c0luZGV4XSxcbiAgICAgICAgICAgICAgcGF5TWVuOiBlbGVtZW50LnBheU1lbixcbiAgICAgICAgICAgICAgcGF5YWJsZU1vbmV5OiBlbGVtZW50LnBheWFibGVNb25leSxcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHRoaXMuc2V0RGF0YSEoe1xuICAgICAgICAgIGNvbnN1bWVMaXN0OiBkYXlMaXN0LFxuICAgICAgICAgICdjb25zdW1lRGF0YS5jb3VudCc6IGNvbnN1bWVQcmljZSxcbiAgICAgICAgICAnY29uc3VtZUNvdW50LmNvdW50JzogY29uc3VtZUNvdW50LFxuICAgICAgICB9KTtcbiAgICAgIH0pXG4gICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgIH0pO1xuICB9LFxuICBmZXRjaFJlY2hhcmdlRGF0YShlbnRpdHk/OiB7IGFyZWFJZD86IG51bWJlcjsgbW9udGg/OiBzdHJpbmcgfSkge1xuICAgIGxldCByZXFCb2R5ID0ge1xuICAgICAgbW9udGg6IHRoaXMuZGF0YS5tb250aCxcbiAgICAgIC4uLmVudGl0eSxcbiAgICB9O1xuICAgIHN0YXRpc3RpY3NGZXRjaCh7XG4gICAgICB1cmw6ICcvZGN4eS9yZXBvcnRJbmZvL3F1ZXJ5UmVjaGFyZ2VMaXN0RGFpbHknLFxuICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICBkYXRhOiByZXFCb2R5LFxuICAgIH0pXG4gICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICBsZXQgZGF5TGlzdCA9IG5ldyBBcnJheSgzMSlcbiAgICAgICAgICAuZmlsbCh7XG4gICAgICAgICAgICByZWNoYXJnZU1vbmV5OiAwLFxuICAgICAgICAgICAgcmVjaGFyZ2VNZW46IDAsXG4gICAgICAgICAgICByZWZ1bmRDb3VudDogMCxcbiAgICAgICAgICAgIHJlZnVuZE1vbmV5OiAwLFxuICAgICAgICAgIH0pXG4gICAgICAgICAgLm1hcCgodiwgaWR4KSA9PiAoeyAuLi52LCBkYXlzOiBpZHggKyAxIH0pKTtcbiAgICAgICAgbGV0IHJlY2hhcmdlUHJpY2UgPSAwO1xuICAgICAgICBsZXQgcmVjaGFyZ2VDb3VudCA9IDA7XG4gICAgICAgIGlmIChyZXMuZGF0YSAmJiByZXMuZGF0YS5sZW5ndGgpIHtcbiAgICAgICAgICBsZXQgb0xpc3QgPSByZXMuZGF0YTtcbiAgICAgICAgICBmb3IgKGxldCBpbmRleCA9IDA7IGluZGV4IDwgb0xpc3QubGVuZ3RoOyBpbmRleCsrKSB7XG4gICAgICAgICAgICBjb25zdCBlbGVtZW50ID0gb0xpc3RbaW5kZXhdO1xuICAgICAgICAgICAgcmVjaGFyZ2VQcmljZSArPSBlbGVtZW50LnJlY2hhcmdlTW9uZXk7XG4gICAgICAgICAgICByZWNoYXJnZUNvdW50ICs9IGVsZW1lbnQucmVjaGFyZ2VNZW47XG4gICAgICAgICAgICBsZXQgZGF5c0luZGV4ID0gTnVtYmVyKGVsZW1lbnQuY29tcGxldGVBdC5zbGljZSgtMikpO1xuICAgICAgICAgICAgZGF5TGlzdFtkYXlzSW5kZXhdID0ge1xuICAgICAgICAgICAgICAuLi5kYXlMaXN0W2RheXNJbmRleF0sXG4gICAgICAgICAgICAgIHJlY2hhcmdlTW9uZXk6IGVsZW1lbnQucmVjaGFyZ2VNb25leSxcbiAgICAgICAgICAgICAgcmVjaGFyZ2VNZW46IGVsZW1lbnQucmVjaGFyZ2VNZW4sXG4gICAgICAgICAgICAgIHJlZnVuZENvdW50OiBlbGVtZW50LnJlZnVuZENvdW50LFxuICAgICAgICAgICAgICByZWZ1bmRNb25leTogZWxlbWVudC5yZWZ1bmRNb25leSxcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGNvbnNvbGUubG9nKGRheUxpc3QpO1xuICAgICAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgICAgICByZWNoYXJnZUFuZFJlZnVuZExpc3Q6IGRheUxpc3QsXG4gICAgICAgICAgJ3JlY2hhcmdlRGF0YS5jb3VudCc6IH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mVzID0+IHtcbiAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgaWYgKHJlcy5kYXRhKSB7XG4gICAgICAgICAgY29uc3Qga2V5TWFwID0ge1xuICAgICAgICAgICAgYWltaTogJ+iJvuexs+ixhicsXG4gICAgICAgICAgICBiZWFuOiAn5raI6LS56LGGJyxcbiAgICAgICAgICAgIGRpc2NvdW50OiAn5LyY5oOg6YeR6aKdJyxcbiAgICAgICAgICAgIG9ubGluZTogJ+e6v+S4iuaUr+S7mCcsXG4gICAgICAgICAgfTtcbiAgICAgICAgICBsZXQgZGF0YUxpc3QgPSBPYmplY3Qua2V5cyhyZXMuZGF0YSkubWFwKGtleSA9PiAoe1xuICAgICAgICAgICAga2V5LFxuICAgICAgICAgICAgYTogJzEnLFxuICAgICAgICAgICAgbmFtZToga2V5TWFwW2tleV0sXG4gICAgICAgICAgICBjb3VudDogcmVzLmRhdGFba2V5XSxcbiAgICAgICAgICB9KSk7XG4gICAgICAgICAgdGhpcy5zZXREYXRhISh7XG4gICAgICAgICAgICBwYXlUeXBlTGlzdDogZGF0YUxpc3QsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgIH0pXG4gICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgIH0pO1xuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9udGhPcGVyYXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIm1vbnRoT3BlcmF0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHlDQUFrRDtBQUNsRCx5Q0FBOEM7QUFFOUMsSUFBSSxDQUFDO0lBQ0gsTUFBTTtRQUNKLElBQUksQ0FBQyxRQUFRLEVBQUUsQ0FBQztJQUNsQixDQUFDO0lBQ0QsSU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Gl0eSk7XG4gIH0sXG4gIGZldGNoQ29uc3VtZURhdGEoZW50aXR5PzogeyBhcmVhSWQ/OiBudW1iZXI7IG1vbnRoPzogc3RyaW5nIH0pIHtcbiAgICBsZXQgcmVxQm9keSA9IHtcbiAgICAgIG1vbnRoOiB0aGlzLmRhdGEubW9udGgsXG4gICAgICAuLi5lbnRpdHksXG4gICAgfTtcbiAgICBzdGF0aXN0aWNzRmV0Y2goe1xuICAgICAgdXJsOiAnL2RjeHkvcmVwb3J0SW5mby9kYWlseUNvbnN1bWVDb3VudCcsXG4gICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgIGRhdGE6IHJlcUJvZHksXG4gICAgfSlcbiAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgIGxldCBkYXlMaXN0ID0gbmV3IEFycmF5KDMxKVxuICAgICAgICAgIC5maWxsKHtcbiAgICAgICAgICAgIHBheU1lbjogMCxcbiAgICAgICAgICAgIHBheWFibGVNb25leTogMCxcbiAgICAgICAgICB9KVxuICAgICAgICAgIC5tYXAoKHYsIGlkeCkgPT4gKHsgLi4udiwgZGF5czogaWR4ICsgMSB9KSk7XG5cbiAgICAgICAgbGV0IGNvbnN1bWVQcmljZSA9IDA7XG4gICAgICAgIGxldCBjb25zdW1lQ291bnQgPSAwO1xuICAgICAgICBpZiAocmVzLmRhdGEgJiYgcmVzLmRhdGEubGVuZ3RoKSB7XG4gICAgICAgICAgbGV0IG9MaXN0ID0gcmVzLmRhdGE7XG4gICAgICAgICAgZm9yIChsZXQgaW5kZXggPSAwOyBpbmRleCA8IG9MaXN0Lmxlbmd0aDsgaW5kZXgrKykge1xuICAgICAgICAgICAgY29uc3QgZWxlbWVudCA9IG9MaXN0W2luZGV4XTtcbiAgICAgICAgICAgIGNvbnN1bWVQcmljZSArPSBlbGVtZW50LnBheWFibGVNb25leTtcbiAgICAgICAgICAgIGNvbnN1bWVDb3VudCArPSBlbGVtZW50LnBheU1lbjtcbiAgICAgICAgICAgIGxldCBkYXlzSW5kZXggPSBOdW1iZXIoZWxlbWVudC5jcmVhdGVEYXRlLnNsaWNlKC0yKSk7XG4gICAgICAgICAgICBkYXlMaXN0W2RheXNJbmRleCAtIDFdID0ge1xuICAgICAgICAgICAgICAuLi5kYXlMaXN0W2RheXNJbmRleCAtIDFdLFxuICAgICAgICAgICAgICBwYXlNZW46IGVsZW1lbnQucGF5TWVuLFxuICAgICAgICAgICAgICBwYXlhYmxlTW9uZXk6IGVsZW1lbnQucGF5YWJsZU1vbmV5LFxuICAgICAgICAgICAgfTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgdGhpcy5zZXREYXRhISh7XG4gICAgICAgICAgY29uc3VtZUxpc3Q6IGRheUxpc3QsXG4gICAgICAgICAgJ2NvbnN1bWVEYXRhLmNvdW50JzogY29uc3VtZVByaWNlLFxuICAgICAgICAgICdjb25zdW1lQ291bnQuY291bnQnOiBjb25zdW1lQ291bnQsXG4gICAgICAgIH0pO1xuICAgICAgfSlcbiAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgfSk7XG4gIH0sXG4gIGZldGNoUmVjaGFyZ2VEYXRhKGVudGl0eT86IHsgYXJlYUlkPzogbnVtYmVyOyBtb250aD86IHN0cmluZyB9KSB7XG4gICAgbGV0IHJlcUJvZHkgPSB7XG4gICAgICBtb250aDogdGhpcy5kYXRhLm1vbnRoLFxuICAgICAgLi4uZW50aXR5LFxuICAgIH07XG4gICAgc3RhdGlzdGljc0ZldGNoKHtcbiAgICAgIHVybDogJy9kY3h5L3JlcG9ydEluZm8vcXVlcnlSZWNoYXJnZUxpc3REYWlseScsXG4gICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgIGRhdGE6IHJlcUJvZHksXG4gICAgfSlcbiAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgIGxldCBkYXlMaXN0ID0gbmV3IEFycmF5KDMxKVxuICAgICAgICAgIC5maWxsKHtcbiAgICAgICAgICAgIHJlY2hhcmdlTW9uZXk6IDAsXG4gICAgICAgICAgICByZWNoYXJnZU1lbjogMCxcbiAgICAgICAgICAgIHJlZnVuZENvdW50OiAwLFxuICAgICAgICAgICAgcmVmdW5kTW9uZXk6IDAsXG4gICAgICAgICAgfSlcbiAgICAgICAgICAubWFwKCh2LCBpZHgpID0+ICh7IC4uLnYsIGRheXM6IGlkeCArIDEgfSkpO1xuICAgICAgICBsZXQgcmVjaGFyZ2VQcmljZSA9IDA7XG4gICAgICAgIGxldCByZWNoYXJnZUNvdW50ID0gMDtcbiAgICAgICAgaWYgKHJlcy5kYXRhICYmIHJlcy5kYXRhLmxlbmd0aCkge1xuICAgICAgICAgIGxldCBvTGlzdCA9IHJlcy5kYXRhO1xuICAgICAgICAgIGZvciAobGV0IGluZGV4ID0gMDsgaW5kZXggPCBvTGlzdC5sZW5ndGg7IGluZGV4KyspIHtcbiAgICAgICAgICAgIGNvbnN0IGVsZW1lbnQgPSBvTGlzdFtpbmRleF07XG4gICAgICAgICAgICByZWNoYXJnZVByaWNlICs9IGVsZW1lbnQucmVjaGFyZ2VNb25leTtcbiAgICAgICAgICAgIHJlY2hhcmdlQ291bnQgKz0gZWxlbWVudC5yZWNoYXJnZU1lbjtcbiAgICAgICAgICAgIGxldCBkYXlzSW5kZXggPSBOdW1iZXIoZWxlbWVudC5jb21wbGV0ZUF0LnNsaWNlKC0yKSk7XG4gICAgICAgICAgICBkYXlMaXN0W2RheXNJbmRleCAtIDFdID0ge1xuICAgICAgICAgICAgICAuLi5kYXlMaXN0W2RheXNJbmRleCAtIDFdLFxuICAgICAgICAgICAgICByZWNoYXJnZU1vbmV5OiBlbGVtZW50LnJlY2hhcmdlTW9uZXksXG4gICAgICAgICAgICAgIHJlY2hhcmdlTWVuOiBlbGVtZW50LnJlY2hhcmdlTWVuLFxuICAgICAgICAgICAgICByZWZ1bmRDb3VudDogZWxlbWVudC5yZWZ1bmRDb3VudCxcbiAgICAgICAgICAgICAgcmVmdW5kTW9uZXk6IGVsZW1lbnQucmVmdW5kTW9uZXksXG4gICAgICAgICAgICB9O1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBjb25zb2xlLmxvZyhkYXlMaXN0KTtcbiAgICAgICAgdGhpcy5zZXREYXRhISh7XG4gICAgICAgICAgcmVjaGFyZ2VBbmRSZWZ1bmRMaXN0OiBkYXlMaXN0LFxuICAgICAgICAgICdyZWNoYXJnZURhdGEuY291bnQnOiByZWNoYXJnZVByaWNlLFxuICAgICAgICAgICdyZWNoYXJnZUNvdW50LmNvdW50JzogcmVjaGFyZ2VDb3VudCxcbiAgICAgICAgfSk7XG4gICAgICB9KVxuICAgICAgLmNhdGNoKGVyciA9PiB7XG4gICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICB9KTtcbiAgfSxcbiAgZmV0Y2hTZXJ2aWNlVHlwZUxpc3QoZW50aXR5KSB7XG4gICAgbGV0IHJlcUJvZHkgPSB7XG4gICAgICBtb250aDogdGhpcy5kYXRhLm1vbnRoLFxuICAgICAgLi4uZW50aXR5LFxuICAgIH07XG4gICAgc3RhdGlzdGljc0ZldGNoKHtcbiAgICAgIHVybDogJy9kY3h5L3JlcG9ydEluZm8vcXVlcnlDb25zdW1lT3JkZXJMaXN0JyxcbiAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgZGF0YTogcmVxQm9keSxcbiAgICB9KVxuICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgdGhpcy5zZXREYXRhISh7XG4gICAgICAgICAgc2VydmljZVR5cGVMaXN0OiByZXMuZGF0YSxcbiAgICAgICAgfSk7XG4gICAgICB9KVxuICAgICAgLmNhdGNoKGVyciA9PiB7XG4gICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICB9KTtcbiAgfSxcbiAgZmV0Y2hQYXlUeXBlTGlzdChlbnRpdHkpIHtcbiAgICBsZXQgcmVxQm9keSA9IHtcbiAgICAgIG1vbnRoOiB0aGlzLmRhdGEubW9udGgsXG4gICAgICAuLi5lbnRpdHksXG4gICAgfTtcbiAgICBzdGF0aXN0aWNzRmV0Y2goe1xuICAgICAgdXJsOiAnL2RjeHkvcmVwb3J0SW5mby9wYXlUeXBlQ29uc3VtZScsXG4gICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgIGRhdGE6IHJlcUJvZHksXG4gICAgfSlcbiAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgIGlmIChyZXMuZGF0YSkge1xuICAgICAgICAgIGNvbnN0IGtleU1hcCA9IHtcbiAgICAgICAgICAgIGFpbWk6ICfoib7nsbPosYYnLFxuICAgICAgICAgICAgYmVhbjogJ+a2iOi0ueixhicsXG4gICAgICAgICAgICBkaXNjb3VudDogJ+S8mOaDoOmHkeminScsXG4gICAgICAgICAgICBvbmxpbmU6ICfnur/kuIrmlK/ku5gnLFxuICAgICAgICAgIH07XG4gICAgICAgICAgbGV0IGRhdGFMaXN0ID0gT2JqZWN0LmtleXMocmVzLmRhdGEpLm1hcChrZXkgPT4gKHtcbiAgICAgICAgICAgIGtleSxcbiAgICAgICAgICAgIGE6ICcxJyxcbiAgICAgICAgICAgIG5hbWU6IGtleU1hcFtrZXldLFxuICAgICAgICAgICAgY291bnQ6IHJlcy5kYXRhW2tleV0sXG4gICAgICAgICAgfSkpO1xuICAgICAgICAgIHRoaXMuc2V0RGF0YSEoe1xuICAgICAgICAgICAgcGF5VHlwZUxpc3Q6IGRhdGFMaXN0LFxuICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICB9KVxuICAgICAgLmNhdGNoKGVyciA9PiB7XG4gICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICB9KTtcbiAgfSxcbn0pO1xuIl19
\ No newline at end of file
......@@ -104,8 +104,8 @@ Page({
consumePrice += element.payableMoney;
consumeCount += element.payMen;
let daysIndex = Number(element.createDate.slice(-2));
dayList[daysIndex] = {
...dayList[daysIndex],
dayList[daysIndex - 1] = {
...dayList[daysIndex - 1],
payMen: element.payMen,
payableMoney: element.payableMoney,
};
......@@ -149,8 +149,8 @@ Page({
rechargePrice += element.rechargeMoney;
rechargeCount += element.rechargeMen;
let daysIndex = Number(element.completeAt.slice(-2));
dayList[daysIndex] = {
...dayList[daysIndex],
dayList[daysIndex - 1] = {
...dayList[daysIndex - 1],
rechargeMoney: element.rechargeMoney,
rechargeMen: element.rechargeMen,
refundCount: element.refundCount,
......
......@@ -85,7 +85,7 @@ Page({
for (var index = 0; index < oList.length; index++) {
var element = oList[index];
var daysIndex = Number(element.days.slice(-2));
dayList[daysIndex] = __assign({}, dayList[daysIndex], { count: element.count });
dayList[daysIndex - 1] = __assign({}, dayList[daysIndex - 1], { count: element.count });
}
}
console.log('dayList:', dayList);
......@@ -124,4 +124,4 @@ Page({
});
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlckdyb3d0aC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInVzZXJHcm93dGgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHlDQUE2RDtBQUM3RCx5Q0FBOEM7QUFHOUMsSUFBSSxDQUFDO0lBQ0gsTUFBTTtRQUNKLElBQUksQ0FBQyxRQUFRLEVBQUUsQ0FBQztRQUNoQixJQUFJLENBQUMsYUFBYSxFQUFFLENBQUM7SUFDdkIsQ0FBQztJQUlELElBQUksRUFBRTtRQUNKLEtBQUssRUFBRSxFQUFFO1FBQ1QsTUFBTSxFQUFFLEVBQUU7UUFDVixRQUFRLEVBQUUsRUFBRTtRQUNaLFFBQVEsRUFBRSxFQUFFO1FBQ1osVUFBVSxFQUFFLEVBQUU7UUFDZCxhQUFhLEVBQUUsQ0FBQztRQUNoQixXQUFXLEVBQUUsQ0FBQztLQUNmO0lB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2xlLmxvZyhyZXMpO1xuICAgICAgICBjb25zdCB7IGN1c3RvbWVyQ291bnQsIGRheVZvcywgYWN0aXZlQ291bnQgfSA9IHJlcy5kYXRhO1xuICAgICAgICBsZXQgZGF5TGlzdCA9IG5ldyBBcnJheSgzMSlcbiAgICAgICAgICAuZmlsbCh7XG4gICAgICAgICAgICBjb3VudDogMCxcbiAgICAgICAgICB9KVxuICAgICAgICAgIC5tYXAoKHYsIGlkeCkgPT4gKHsgLi4udiwgZGF5czogaWR4ICsgMSB9KSk7XG5cbiAgICAgICAgaWYgKGRheVZvcyAmJiBkYXlWb3MubGVuZ3RoKSB7XG4gICAgICAgICAgbGV0IG9MaXN0ID0gZGF5Vm9zO1xuICAgICAgICAgIGZvciAobGV0IGluZGV4ID0gMDsgaW5kZXggPCBvTGlzdC5sZW5ndGg7IGluZGV4KyspIHtcbiAgICAgICAgICAgIGNvbnN0IGVsZW1lbnQgPSBvTGlzdFtpbmRleF07XG4gICAgICAgICAgICBsZXQgZGF5c0luZGV4ID0gTnVtYmVyKGVsZW1lbnQuZGF5cy5zbGljZSgtMikpO1xuICAgICAgICAgICAgZGF5TGlzdFtkYXlzSW5kZXhdID0ge1xuICAgICAgICAgICAgICAuLi5kYXlMaXN0W2RheXNJbmRleF0sXG4gICAgICAgICAgICAgIGNvdW50OiBlbGVtZW50LmNvdW50LFxuICAgICAgICAgICAgfTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgY29uc29sZS5sb2coJ2RheUxpc3Q6JywgZGF5TGlzdCk7XG4gICAgICAgIHRoaXMuc2V0RGF0YSEoe1xuICAgICAgICAgIGdyb3d0aExpc3Q6IGRheUxpc3QsXG4gICAgICAgICAgY3VzdG9tZXJDb3VudDogY3VzdG9tZXJDb3VudCA/IGN1c3RvbWVyQ291bnQgOiAwLFxuICAgICAgICAgIGFjdGl2ZUNvdW50OiBhY3RpdmVDb3VudCA/IGFjdGl2ZUNvdW50IDogMCxcbiAgICAgICAgfSk7XG4gICAgICB9KVxuICAgICAgLmNhdGNoKGVyciA9PiB7XG4gICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICB9KTtcbiAgfSxcbiAgYXJlYUNoYW5nZUhhbmRsZSh2YWwpIHtcbiAgICBjb25zb2xlLmxvZygnYXJlYUNoYW5nZUhhbmRsZScsIHZhbCk7XG4gICAgY29uc3QgeyBpZCwgbmFtZSB9ID0gdmFsO1xuICAgIHRoaXMuc2V0RGF0YSEoXG4gICAgICB7XG4gICAgICAgIGFyZWFJZDogaWQsXG4gICAgICAgIGFyZWFOYW1lOiBuYW1lLFxuICAgICAgfSxcbiAgICAgICgpID0+IHtcbiAgICAgICAgaWYgKGlkKSB7XG4gICAgICAgICAgdGhpcy5mZXRjaExpc3QoeyBhcmVhSWQ6IGlkIH0pO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIHRoaXMuZmV0Y2hMaXN0KCk7XG4gICAgICAgIH1cbiAgICAgIH0sXG4gICAgKTtcbiAgfSxcbiAgbW9udGhDaGFuZ2VIYW5kbGUodmFsKSB7XG4gICAgY29uc29sZS5sb2coJ21vbnRoQ2hhbmdlSGFuZGxlJywgdmFsKTtcbiAgICBjb25zdCB7IHZhbHVlIH0gPSB2YWwuZGV0YWlsO1xuICAgIHRoaXMuZmV0Y2hMaXN0KHsgbW9udGhTdHJpbmc6IHZhbHVlIH0pO1xuICAgIHRoaXMuc2V0RGF0YSEoe1xuICAgICAgbW9udGg6IHZhbHVlLFxuICAgIH0pO1xuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlckdyb3d0aC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInVzZXJHcm93dGgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHlDQUE2RDtBQUM3RCx5Q0FBOEM7QUFHOUMsSUFBSSxDQUF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3QoeyBtb250aFN0cmluZzogdmFsdWUgfSk7XG4gICAgdGhpcy5zZXREYXRhISh7XG4gICAgICBtb250aDogdmFsdWUsXG4gICAgfSk7XG4gIH0sXG59KTtcbiJdfQ==
\ No newline at end of file
......@@ -80,8 +80,8 @@ Page({
for (let index = 0; index < oList.length; index++) {
const element = oList[index];
let daysIndex = Number(element.days.slice(-2));
dayList[daysIndex] = {
...dayList[daysIndex],
dayList[daysIndex - 1] = {
...dayList[daysIndex - 1],
count: element.count,
};
}
......
{
"rules": [
{
"action": "disallow",
"page": "*"
}
]
}
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