Development background
Originally conceived as a way to keep track of bills, the app has evolved into a number of “weird” features as demand from girlfriends has increased.
The reason for the strange code format
Those of you who have looked at the source code may have noticed that some of the code formats are a bit strange, such as the following code:
for (var w = 0; w < i.length; w++) i[w].datas = i[w].data.toFixed(2);
for (var b = 0; b < s.length; b++) s[b].datas = s[b].data.toFixed(2);
d = d.reverse(), f.push(p);
for (var C = 0; C < f.length; C++) f[C].data = f[C].data.reverse();
c = c.reverse(), u.push(h);
for (var S = 0; S < u.length; S++) u[S].data = u[S].data.reverse();
e.pieCharts(i, "pieCanvas"), e.pieCharts(s, "pieCanvas1"), e.lineCharts(f, "lineCanvas", d, Consumption (yuan)),
e.lineCharts(u, "lineCanvas1", c, Consumption (yuan)), console.log("byType", i), console.log("byPeople", s),
console.log("byWeeks", f, d), console.log("byMonths", h, c), e.setData({
byType: i,
byPeople: s
});
Copy the code
But it is not I intentionally (helpless face), the thing is purple, small program start most have no code in the habit of warehouse management, so the source code are stored in the local computer, basic until one day, inexplicable computer hard disk is broken, I this bad habit leads to small program source code are not preserved, That is when I began to pay attention to the remote code warehouse management. At this point, some people will ask, the source code is gone, do I re-knock a copy? No, because by then the applet had been released and was in use, SO I could decomcompile and get the source code for the released applet, but the format would be the same as it is today.
Version 1.0 portal
Version 1.0 address
Introduction to Version 2.0
Features are available in version 1.0
1. Label management 2. Consumption Record 3. Viewing list 4. Hard day record 5.
New in Version 2.0
1. New consumption record. 2
New Functions
1. New consumption record
Because my girlfriend disliked the previous version of the consumption record process is too cumbersome, so I put forward a new demand, want to record in the form of a form, so I have a new consumption record function. The page is as follows: The new consumption record function uses the form form to record, we can customize the form items, through the form management to determine the items to be filled in every day.
2, sleep clock function
It is used to record the sleeping time and statistic the sleeping situation every day.
As can be seen from the picture above, our sleep time is not healthy (face covering) and should be improved.
Version 3.0 TODO
Table 3. Statistical panel of new consumption Records……
Write in the last
Since this project was done while learning small programs before, there are still many areas that are not quite standardized or need to be improved. At present, I am still reconstructing and improving new functions, and interested students can communicate with each other.
The code address
Gitee: gitee.com/zheng_yongt… Personal website: jdhnv787.xyz/JYeontu/#/h…