Fix download count error
This commit is contained in:
parent
07291e3363
commit
fa1138c2ce
|
@ -3,17 +3,10 @@ import './App.css';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import {isWeiXin} from "../../utils/navigatorUtils";
|
import {isWeiXin} from "../../utils/navigatorUtils";
|
||||||
|
|
||||||
function parseValue(value) {
|
|
||||||
if (value < 10000) return value;
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
const CountComponent = ({ value }) => {
|
const CountComponent = ({ value }) => {
|
||||||
if (value >= 10000) value = (value / 10000).toFixed(1);
|
if (isNaN(value)) return null;
|
||||||
if (!isNaN(value)) {
|
if (value >= 10000) value = (value / 10000).toFixed(1) + "万";
|
||||||
return <sup className="Gray">{value + "万"}</sup>
|
return <sup className="Gray">{value}</sup>
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const WxMessage = () => {
|
const WxMessage = () => {
|
||||||
|
|
Loading…
Reference in New Issue