个人中心数字ui调整——review by 于良
Showing
1 changed file
with
9 additions
and
9 deletions
@@ -35,11 +35,11 @@ export default class MineListHeader extends React.Component { | @@ -35,11 +35,11 @@ export default class MineListHeader extends React.Component { | ||
35 | //0不显示 | 35 | //0不显示 |
36 | return null; | 36 | return null; |
37 | } else if (num < 10) { | 37 | } else if (num < 10) { |
38 | - offset = 15; | 38 | + offset = 17; |
39 | } else if (num < 100) { | 39 | } else if (num < 100) { |
40 | - offset = 15; | 40 | + offset = 17; |
41 | } else { | 41 | } else { |
42 | - offset = 10; | 42 | + offset = 12; |
43 | num = '99+'; | 43 | num = '99+'; |
44 | } | 44 | } |
45 | return ( | 45 | return ( |
@@ -71,20 +71,20 @@ export default class MineListHeader extends React.Component { | @@ -71,20 +71,20 @@ export default class MineListHeader extends React.Component { | ||
71 | let offset = 0; | 71 | let offset = 0; |
72 | if (isNaN(num)) { | 72 | if (isNaN(num)) { |
73 | //兼容非数字 | 73 | //兼容非数字 |
74 | - offset = 6; | 74 | + offset = 15; |
75 | } else if (num <= 0) { | 75 | } else if (num <= 0) { |
76 | //0不显示 | 76 | //0不显示 |
77 | return null; | 77 | return null; |
78 | } else if (num < 10) { | 78 | } else if (num < 10) { |
79 | - offset = 25; | 79 | + offset = 30; |
80 | } else if (num < 100) { | 80 | } else if (num < 100) { |
81 | - offset = 25; | 81 | + offset = 30; |
82 | } else if (num < 1000) { | 82 | } else if (num < 1000) { |
83 | - offset = 20; | 83 | + offset = 25; |
84 | } else if (num < 10000) { | 84 | } else if (num < 10000) { |
85 | - offset = 15; | 85 | + offset = 20; |
86 | } else { | 86 | } else { |
87 | - offset = 0; | 87 | + offset = 15; |
88 | num = '9999+'; | 88 | num = '9999+'; |
89 | } | 89 | } |
90 | return ( | 90 | return ( |
-
Please register or login to post a comment