feat(斋月活动): 调整前十的奖励金币计算方式
This commit is contained in:
parent
cc789841db
commit
553817f0e2
@ -2044,11 +2044,11 @@ const formatLargeNumber = (num) => {
|
||||
|
||||
if (absNum >= 1000000) {
|
||||
const millionValue = num / 1000000
|
||||
const roundedValue = Math.round(millionValue * 100) / 100
|
||||
const roundedValue = Math.floor(millionValue * 100) / 100 // 向下取整
|
||||
return roundedValue.toFixed(2) + 'M'
|
||||
} else if (absNum >= 1000) {
|
||||
const thousandValue = num / 1000
|
||||
const roundedValue = Math.round(thousandValue * 100) / 100
|
||||
const roundedValue = Math.floor(thousandValue * 100) / 100 // 向下取整
|
||||
return roundedValue.toFixed(2) + 'K'
|
||||
} else {
|
||||
return Math.floor(num).toString()
|
||||
@ -2685,6 +2685,7 @@ const getDrawRecords = async () => {
|
||||
// 领取任务奖励
|
||||
const receiveTaskReward = async (code) => {
|
||||
let data = {
|
||||
activityId: '2006671533988298666',
|
||||
taskCode: code,
|
||||
}
|
||||
try {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user