...
|
...
|
@@ -52,9 +52,12 @@ exports.crazyWheel = (req, res, next) => { |
|
|
return res.redirect('/activity/vip-day');
|
|
|
}
|
|
|
|
|
|
res.render('vip_day/crazy_wheel', {
|
|
|
pageStyle: 'vip-day game',
|
|
|
isWheel: true
|
|
|
vipDayModel.getJoinNum(1).then(result => {
|
|
|
res.render('vip_day/crazy_wheel', {
|
|
|
pageStyle: 'vip-day game',
|
|
|
isWheel: true,
|
|
|
joinNum: result && result.data || 0,
|
|
|
});
|
|
|
});
|
|
|
};
|
|
|
|
...
|
...
|
@@ -65,15 +68,16 @@ exports.crazyLuck = (req, res, next) => { |
|
|
res.locals.page = 'vipday_luck';
|
|
|
res.locals.width750 = true;
|
|
|
|
|
|
vipDayModel.getCoins(uid)
|
|
|
.then(result => {
|
|
|
res.render('vip_day/crazy_luck', {
|
|
|
pageStyle: 'vip-day game',
|
|
|
isLuck: true,
|
|
|
coin: result.data.total > 9999 ? (result.data.total / 10000).toFixed(2) + '万' : result.data.total
|
|
|
});
|
|
|
})
|
|
|
.catch(next);
|
|
|
co(function* (){
|
|
|
let coins = yield vipDayModel.getCoins(uid);
|
|
|
let joinNum = yield vipDayModel.getJoinNum(2);
|
|
|
res.render('vip_day/crazy_luck', {
|
|
|
pageStyle: 'vip-day game',
|
|
|
isLuck: true,
|
|
|
coin: coins && coins.data && (coins.data.total > 9999 ? (coins.data.total / 10000).toFixed(2) + '万' : coins.data.total),
|
|
|
joinNum: joinNum && joinNum.data || 0,
|
|
|
});
|
|
|
})().catch(next);
|
|
|
};
|
|
|
|
|
|
|
...
|
...
|
|