...
|
...
|
@@ -17,7 +17,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
let data = {};
|
|
|
let scale = 1 / 3; // 分三等份
|
|
|
|
|
|
if (vipInfo.code !== 200) {
|
|
|
if (_.get(vipInfo, 'code', 400) !== 200) {
|
|
|
return vip;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -38,7 +38,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
}
|
|
|
|
|
|
// 进度条百分比
|
|
|
vip.current_total_percent = 100;
|
|
|
vip.current_total_percent = 1;
|
|
|
if (vip.current_total_growth <= vip.grades[1].val) {
|
|
|
vip.current_total_percent = (vip.current_total_growth * scale / vip.grades[1].val);
|
|
|
} else if (vip.current_total_growth <= vip.grades[2].val) {
|
...
|
...
|
|