Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
walk_daka_h5
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
穆启卓
walk_daka_h5
Commits
9048b940
Commit
9048b940
authored
Apr 08, 2019
by
穆启卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预计收益最大值
parent
62d03f4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
PartakeChallenge.vue
src/views/PartakeChallenge.vue
+4
-2
No files found.
src/views/PartakeChallenge.vue
View file @
9048b940
...
...
@@ -123,6 +123,7 @@ export default {
partakeMoneyIndex
:
0
,
payMoney
:
0
,
preMinMoney
:
0
,
preMaxRate
:
0
,
preMaxMoney
:
0
,
startTimeStamp
:
0
,
followInfo
:
{},
...
...
@@ -156,6 +157,7 @@ export default {
this
.
partakeStepList
=
resData
.
config
.
step
;
this
.
partakeDayList
=
resData
.
config
.
days
;
this
.
partakeMoneyList
=
resData
.
config
.
money
;
this
.
preMaxRate
=
resData
.
bet_rate
;
// 计算格式化开始日期
const
startDate
=
new
Date
(
this
.
startTimeStamp
*
1000
);
this
.
startTime
=
(
startDate
.
getMonth
()
+
1
)
+
'月'
+
startDate
.
getDate
()
+
'日'
;
...
...
@@ -175,8 +177,8 @@ export default {
// 计算金额和收益
calcMoney
()
{
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
.
preMaxMoney
=
(
this
.
partakeStepList
[
this
.
partakeStepIndex
].
rate2
+
this
.
partakeDayList
[
this
.
partakeDayIndex
].
rate2
+
this
.
partakeMoneyList
[
this
.
partakeMoneyIndex
].
rate2
)
/
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
.
payMoney
*
(
this
.
preMaxRate
+
1
)
;
},
// 计算格式化结束日期
calcDate
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment