...
|
...
|
@@ -35,11 +35,11 @@ export default class MineListHeader extends React.Component { |
|
|
//0不显示
|
|
|
return null;
|
|
|
} else if (num < 10) {
|
|
|
offset = 15;
|
|
|
offset = 17;
|
|
|
} else if (num < 100) {
|
|
|
offset = 15;
|
|
|
offset = 17;
|
|
|
} else {
|
|
|
offset = 10;
|
|
|
offset = 12;
|
|
|
num = '99+';
|
|
|
}
|
|
|
return (
|
...
|
...
|
@@ -71,20 +71,20 @@ export default class MineListHeader extends React.Component { |
|
|
let offset = 0;
|
|
|
if (isNaN(num)) {
|
|
|
//兼容非数字
|
|
|
offset = 6;
|
|
|
offset = 15;
|
|
|
} else if (num <= 0) {
|
|
|
//0不显示
|
|
|
return null;
|
|
|
} else if (num < 10) {
|
|
|
offset = 25;
|
|
|
offset = 30;
|
|
|
} else if (num < 100) {
|
|
|
offset = 25;
|
|
|
offset = 30;
|
|
|
} else if (num < 1000) {
|
|
|
offset = 20;
|
|
|
offset = 25;
|
|
|
} else if (num < 10000) {
|
|
|
offset = 15;
|
|
|
offset = 20;
|
|
|
} else {
|
|
|
offset = 0;
|
|
|
offset = 15;
|
|
|
num = '9999+';
|
|
|
}
|
|
|
return (
|
...
|
...
|
|