Authored by 李靖

进度条

... ... @@ -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;
... ...
... ... @@ -147,26 +147,11 @@
background-repeat: no-repeat;
float: left;
position: relative;
margin-right: 177px;
}
.point-item:nth-child(1) {
margin-right: 57px;
.level-text {
margin-left: -80px;
}
}
.point-item:nth-child(2) {
margin-right: 167px;
.level-text {
margin-left: -40px;
}
}
.point-item:nth-child(3) {
margin-right: 307px;
.point-item:last-child {
margin-right: 0;
}
.level-text {
... ...