Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
ccbikai(👎🏻🍜)
9 years ago
Commit
e365edfe4c99459dcf033618ae604e42421c0370
2 parents
6279c28a
5ad47db0
Merge branch 'master' into release/5.0.0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
apps/activity/controllers/vipDay.js
apps/activity/controllers/vipDay.js
View file @
e365edf
...
...
@@ -8,11 +8,13 @@ const co = require('bluebird').coroutine;
function
humanNum_wan
(
num
)
{
if
(
num
>
9999
)
{
num
=
(
num
/
10000
).
toFixed
(
2
)
+
'万'
}
return
num
;
// if (num > 9999) {
// num = (num / 10000).toFixed(2) + '万'
// }
// return num;
}
exports
.
beforeIn
=
(
req
,
res
,
next
)
=>
{
...
...
@@ -87,7 +89,7 @@ exports.crazyWheel = (req, res, next) => {
}
vipDayModel
.
getJoinNum
(
1
).
then
(
result
=>
{
let
joins
=
result
&&
result
.
data
||
0
;
let
joins
=
result
&&
result
.
data
||
0
;
res
.
render
(
'vip_day/crazy_wheel'
,
{
title
:
'疯狂大转盘'
,
...
...
@@ -111,7 +113,7 @@ exports.crazyLuck = (req, res, next) => {
let
joinNum
=
yield
vipDayModel
.
getJoinNum
(
2
);
coins
=
(
coins
&&
coins
.
data
&&
coins
.
data
.
total
)
||
0
;
joinNum
=
(
joinNum
&&
joinNum
.
data
)
||
0
joinNum
=
(
joinNum
&&
joinNum
.
data
)
||
0
;
res
.
render
(
'vip_day/crazy_luck'
,
{
title
:
'拼手气'
,
...
...
Please
register
or
login
to post a comment