|
@@ -227,9 +227,15 @@ export const validateBRPhone=(t)=>{
|
|
|
export const validateCountryPhone=(country,phone)=>{
|
|
export const validateCountryPhone=(country,phone)=>{
|
|
|
return validateBRPhone(phone);
|
|
return validateBRPhone(phone);
|
|
|
}
|
|
}
|
|
|
-export const formatCash=(cash,fixed=2)=>{
|
|
|
|
|
|
|
+export const formatCash=(cash,fixed=2,isIntIgnore=false)=>{
|
|
|
cash=Number(cash);
|
|
cash=Number(cash);
|
|
|
cash=cash/global.CASH_BASE;
|
|
cash=cash/global.CASH_BASE;
|
|
|
|
|
+ if (isIntIgnore){
|
|
|
|
|
+ let temp=parseInt(cash);
|
|
|
|
|
+ if (temp===cash){
|
|
|
|
|
+ fixed=0;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
return cash.toFixed(fixed);
|
|
return cash.toFixed(fixed);
|
|
|
}
|
|
}
|
|
|
export const getUrlParam=(name)=>{
|
|
export const getUrlParam=(name)=>{
|