|
@@ -99,8 +99,8 @@ export const commissionCalculation = (count, type) => {
|
|
return value % 1 === 0 ? Math.floor(value) : value.toFixed(2)
|
|
return value % 1 === 0 ? Math.floor(value) : value.toFixed(2)
|
|
}
|
|
}
|
|
|
|
|
|
-// type: emit-> 提交(需要*100) real-> 回显(需要/100)
|
|
|
|
|
|
+// type: emit-> 提交(需要*100) realPay-> 回显(需要/100)
|
|
export const payCalculation = (count, type) => {
|
|
export const payCalculation = (count, type) => {
|
|
- const Magnification = type === 'show' ? 1/100 : 100
|
|
|
|
- return ((count - 0)*Magnification).toFixed(2)
|
|
|
|
|
|
+ const Magnification = type === 'emit' ? 100 : 1/100
|
|
|
|
+ return type === 'emit' ? (count - 0)*Magnification : ((count - 0)*Magnification).toFixed(2)
|
|
}
|
|
}
|