Commit 1ce96473 authored by 李维's avatar 李维

修改学习时长曲线坐标不准的问题

parent 0b0e3113
......@@ -216,7 +216,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
for (let i = 1; i < 8; i++) {
const index = i;
const value = this.learntimes[i - 1];
date.setDate(date.getDate() - date.getDay() + index);
date.setDate(date.getDate() - (7 - date.getDay()) + index);
const xNode = cc.find(`dp${index}/date${index}`, linebg);
const dateStr = date["pattern"]("M月d日");
if (dateStr.split("")[0] != monthNum) {
......
......@@ -8,7 +8,7 @@
"genMipmaps": false,
"packable": true,
"width": 153,
"height": 11,
"height": 15,
"platformSettings": {},
"subMetas": {
"letterline": {
......
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