|
@@ -167,6 +167,28 @@ module.exports = class extends global.yoho.BaseModel { |
|
@@ -167,6 +167,28 @@ module.exports = class extends global.yoho.BaseModel { |
167
|
nextGrowth: nextGrowth,
|
167
|
nextGrowth: nextGrowth,
|
168
|
percent: nowGrowth < 7000 ? nowGrowth / 70 : 100
|
168
|
percent: nowGrowth < 7000 ? nowGrowth / 70 : 100
|
169
|
});
|
169
|
});
|
|
|
170
|
+
|
|
|
171
|
+ let percent = 0;
|
|
|
172
|
+
|
|
|
173
|
+ if (nowGrowth === 0) {
|
|
|
174
|
+ percent = 0;
|
|
|
175
|
+ } else if (nowGrowth > 0 && nowGrowth < 800) {
|
|
|
176
|
+ percent = 17;
|
|
|
177
|
+ } else if (nowGrowth === 800) {
|
|
|
178
|
+ percent = 33;
|
|
|
179
|
+ } else if (nowGrowth > 800 && nowGrowth < 3000) {
|
|
|
180
|
+ percent = 50;
|
|
|
181
|
+ } else if (nowGrowth === 3000) {
|
|
|
182
|
+ percent = 67;
|
|
|
183
|
+ } else if (nowGrowth > 3000 && nowGrowth < 7000) {
|
|
|
184
|
+ percent = 83;
|
|
|
185
|
+ } else {
|
|
|
186
|
+ percent = 100;
|
|
|
187
|
+ }
|
|
|
188
|
+
|
|
|
189
|
+ obj = _.assign(obj, {
|
|
|
190
|
+ percent: percent
|
|
|
191
|
+ });
|
170
|
}
|
192
|
}
|
171
|
resu.vipGrade.push(obj);
|
193
|
resu.vipGrade.push(obj);
|
172
|
return resu;
|
194
|
return resu;
|