Authored by 李靖

进度条

@@ -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;
@@ -147,26 +147,11 @@ @@ -147,26 +147,11 @@
147 background-repeat: no-repeat; 147 background-repeat: no-repeat;
148 float: left; 148 float: left;
149 position: relative; 149 position: relative;
  150 + margin-right: 177px;
150 } 151 }
151 152
152 - .point-item:nth-child(1) {  
153 - margin-right: 57px;  
154 -  
155 - .level-text {  
156 - margin-left: -80px;  
157 - }  
158 - }  
159 -  
160 - .point-item:nth-child(2) {  
161 - margin-right: 167px;  
162 -  
163 - .level-text {  
164 - margin-left: -40px;  
165 - }  
166 - }  
167 -  
168 - .point-item:nth-child(3) {  
169 - margin-right: 307px; 153 + .point-item:last-child {
  154 + margin-right: 0;
170 } 155 }
171 156
172 .level-text { 157 .level-text {