...
|
...
|
@@ -167,6 +167,28 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
nextGrowth: nextGrowth,
|
|
|
percent: nowGrowth < 7000 ? nowGrowth / 70 : 100
|
|
|
});
|
|
|
|
|
|
let percent = 0;
|
|
|
|
|
|
if (nowGrowth === 0) {
|
|
|
percent = 0;
|
|
|
} else if (nowGrowth > 0 && nowGrowth < 800) {
|
|
|
percent = 17;
|
|
|
} else if (nowGrowth === 800) {
|
|
|
percent = 33;
|
|
|
} else if (nowGrowth > 800 && nowGrowth < 3000) {
|
|
|
percent = 50;
|
|
|
} else if (nowGrowth === 3000) {
|
|
|
percent = 67;
|
|
|
} else if (nowGrowth > 3000 && nowGrowth < 7000) {
|
|
|
percent = 83;
|
|
|
} else {
|
|
|
percent = 100;
|
|
|
}
|
|
|
|
|
|
obj = _.assign(obj, {
|
|
|
percent: percent
|
|
|
});
|
|
|
}
|
|
|
resu.vipGrade.push(obj);
|
|
|
return resu;
|
...
|
...
|
|