Commit 9048b940 by 穆启卓

预计收益最大值

parent 62d03f4b
...@@ -123,6 +123,7 @@ export default { ...@@ -123,6 +123,7 @@ export default {
partakeMoneyIndex: 0, partakeMoneyIndex: 0,
payMoney: 0, payMoney: 0,
preMinMoney: 0, preMinMoney: 0,
preMaxRate: 0,
preMaxMoney: 0, preMaxMoney: 0,
startTimeStamp: 0, startTimeStamp: 0,
followInfo: {}, followInfo: {},
...@@ -156,6 +157,7 @@ export default { ...@@ -156,6 +157,7 @@ export default {
this.partakeStepList = resData.config.step; this.partakeStepList = resData.config.step;
this.partakeDayList = resData.config.days; this.partakeDayList = resData.config.days;
this.partakeMoneyList = resData.config.money; this.partakeMoneyList = resData.config.money;
this.preMaxRate = resData.bet_rate;
// 计算格式化开始日期 // 计算格式化开始日期
const startDate = new Date(this.startTimeStamp * 1000); const startDate = new Date(this.startTimeStamp * 1000);
this.startTime = (startDate.getMonth() + 1) + '月' + startDate.getDate() + '日'; this.startTime = (startDate.getMonth() + 1) + '月' + startDate.getDate() + '日';
...@@ -175,8 +177,8 @@ export default { ...@@ -175,8 +177,8 @@ export default {
// 计算金额和收益 // 计算金额和收益
calcMoney() { calcMoney() {
this.payMoney = this.partakeDayList[this.partakeDayIndex].days * this.partakeMoneyList[this.partakeMoneyIndex].money; this.payMoney = this.partakeDayList[this.partakeDayIndex].days * this.partakeMoneyList[this.partakeMoneyIndex].money;
this.preMinMoney = (this.partakeStepList[this.partakeStepIndex].rate1 + this.partakeDayList[this.partakeDayIndex].rate1 + this.partakeMoneyList[this.partakeMoneyIndex].rate1) / 100 * this.payMoney + this.payMoney; this.preMinMoney = this.payMoney * (((this.partakeStepList[this.partakeStepIndex].rate1 + this.partakeDayList[this.partakeDayIndex].rate1 + this.partakeMoneyList[this.partakeMoneyIndex].rate1) / 100) + 1);
this.preMaxMoney = (this.partakeStepList[this.partakeStepIndex].rate2 + this.partakeDayList[this.partakeDayIndex].rate2 + this.partakeMoneyList[this.partakeMoneyIndex].rate2) / 100 * this.payMoney + this.payMoney; this.preMaxMoney = this.payMoney * (this.preMaxRate + 1);
}, },
// 计算格式化结束日期 // 计算格式化结束日期
calcDate() { calcDate() {
......
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