diff --git a/src/components/app/PartDownload.js b/src/components/app/PartDownload.js index 916d02d..6aa4da1 100644 --- a/src/components/app/PartDownload.js +++ b/src/components/app/PartDownload.js @@ -3,6 +3,11 @@ import './App.css'; import PropTypes from 'prop-types'; import {isWeiXin} from "../../utils/navigatorUtils"; +function parseValue(value) { + if (value < 10000) return value; + return (value / 10000).toFixed(1) + "万"; +} + const WxMessage = () => { if (isWeiXin()) { return ( @@ -37,7 +42,7 @@ const PartDownload = ({ value, downloadCount, onSvgDownload, onImgDownload }) =>
Downloads

下载二维码 — {value} - {downloadCount} + {parseValue(downloadCount)}