|
|
@@ -431,10 +431,10 @@ const changeTransformation = async (index: any) => {
|
|
|
configTxt.value = result[0]
|
|
|
}
|
|
|
walletForm.value.orderAmt = index == 0 ? Number(configTxt.value.configValue) : 1
|
|
|
- if(index==0 && appStore?.userInfo?.pointsBalance < Number(configTxt.value.configValue)){
|
|
|
+ if(index==0 && appStore?.userInfo?.pointsBalance <= 0){
|
|
|
DGTMessage.warning(`${t('common.balanceNotEnough')}${t('common.baomibi')}`);
|
|
|
return;
|
|
|
- }else if(index==1 && appStore?.userInfo?.baoMiBalance < 1){
|
|
|
+ }else if(index==1 && appStore?.userInfo?.baoMiBalance <= 0){
|
|
|
DGTMessage.warning(`${t('common.balanceNotEnough')}${t('common.mibi')}`);
|
|
|
return;
|
|
|
}
|