Authored by 郝肖肖

'code-check'

... ... @@ -44,10 +44,10 @@ module.exports = class extends global.yoho.BaseModel {
} else if (vip.current_total_growth <= vip.grades[2].val) {
vip.current_total_percent = (vip.current_total_growth * scale / vip.grades[2].val + scale);
} else if (vip.current_total_growth <= vip.grades[3].val) {
vip.current_total_percent = (vip.current_total_growth * scale / vip.grades[3].val + scale * 2)
vip.current_total_percent = (vip.current_total_growth * scale / vip.grades[3].val + scale * 2);
}
vip.current_total_percent = (vip.current_total_percent * 100).toFixed(2);
vip.current_total_percent = (vip.current_total_percent * 100).toFixed(2);
vip.user_name = decodeURIComponent(this.ctx && this.ctx.req && this.ctx.req.user.name || '');
... ...