1
李凌
8 days ago 349c48e168b9f2580334422228acde7d1b21bede
src/utils/index.js
@@ -78,7 +78,6 @@
  }
}
// 小数展示,保留五位小数
export const formatNumber = (num) => {
  if (typeof (num) !== 'number') {
@@ -99,7 +98,6 @@
  }
}
// 保留五位小数
export const formatNumberToFixedFive = (num) => {
@@ -137,7 +135,6 @@
  }
}
export const formatMoney = (val) => {
  if(val === 0){
    return 0
@@ -161,7 +158,6 @@
  return (val / Math.pow(num, 4)).toFixed(2) + "T"; //T  
}
export  const formatNews = (str) => {
  if(!str) {
    return ''
@@ -172,4 +168,9 @@
export const formatWithCommas = (num) => {
  if (num === null || num === undefined || isNaN(num)) return '--';
  return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
}
/** 体验矿机 test=Y,普通矿机 cycle 为可解锁分钟数 */
export function isMinerTest(test) {
  return test === 'Y' || test === true
}