-
Notifications
You must be signed in to change notification settings - Fork 3
Loan
xxr5566833 edited this page Dec 2, 2017
·
2 revisions
贷款类,每一笔贷款可以抽象出一个类
这笔贷款初始的金钱数
这笔贷款的利率
这笔贷款的最长多少天就需要归还
这笔贷款是在哪一天被借出
目前需要还款的数量
是活期还是定期,定期为true,活期为false
初始化这笔贷款:
this.originMoney_
= money
this.interest_
= interest
this.deadline_
= deadline
this.initDay
= date.getDate()
this.currentMoney_
= money
this.isFixed_
= this.isfixed
按照利率公式,更新自己的 this.currentMoney_
return this.deadline_
+ this.initDay_
<= nowday
- 这两个表格主要作用跟考勤差不多
第一周贡献分 | 周一 | 周二 | 周三 | 周四 | 周五 | 周六 | 周日 |
---|---|---|---|---|---|---|---|
蔡帜 | 1 | 1 | 1 | 1 | 1 | ||
王子铭 | 1 | 1 | 1 | 1 | |||
游心 | 1 | 1 | 1 | 1 | 1 | ||
解小锐 | 1 | 1 | 1 | 1 | 1 | 1 | |
李金奇 | 1 | 1 | |||||
杨森 | 1 | ||||||
陈鑫 | 1 | ||||||
王辰昱 | 1 | 1 | 1 | ||||
赵晓宇 | 1 |
第二周贡献分 | 周一 | 周二 | 周三 | 周四 | 周五 | 周六 | 周日 |
---|---|---|---|---|---|---|---|
蔡帜 | 1 | 1 | 1 | ||||
王子铭 | 1 | 1 | 1 | 1 | |||
游心 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
解小锐 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
李金奇 | 1 | 1 | 1 | 1 | 1 | 1 | |
杨森 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
陈鑫 | 1 | 1 | 1 | 1 | 1 | 1 | |
王辰昱 | 1 | 1 | 1 | 1 | 1 | ||
赵晓宇 | 1 | 1 | 1 | 1 |
纪念刷夜小团队:
- 游心,解小锐,李金奇,王辰昱,杨森