|
@@ -922,25 +922,6 @@ const calcIptValue = (cb) => {
|
|
|
};
|
|
|
}
|
|
|
|
|
|
- // let num = amountValue, scale = 1;
|
|
|
- // if(amountValue.indexOf('.') > -1) {
|
|
|
- // num = amountValue.toString();
|
|
|
- // let obj = scaleNumber(num);
|
|
|
- // num = obj.val;
|
|
|
- // scale = obj.scale;
|
|
|
- // }
|
|
|
- // let minAmount = currentCurrencyInfo.value.minAmount;
|
|
|
- // // 输入的token数量或者法币金额,平均分到每个红包,是否小于最小单位
|
|
|
- // if (num / totalCount < minAmount * scale) {
|
|
|
- // flag = false;
|
|
|
- // }
|
|
|
-
|
|
|
- // return {
|
|
|
- // flag,
|
|
|
- // count: Math.floor((num / minAmount * scale)/ (scale * scale))
|
|
|
- // };
|
|
|
- // console.log('baseFormData',`${baseFormData.amountValue} / ${baseFormData.totalCount}`)
|
|
|
-
|
|
|
if (math.format(math.evaluate(`${baseFormData.amountValue} / ${baseFormData.totalCount}`)) < +currentCurrencyInfo.value.minAmount) {
|
|
|
flag = false;
|
|
|
}
|
|
@@ -953,24 +934,14 @@ const calcIptValue = (cb) => {
|
|
|
/**
|
|
|
* 设置输入提示语
|
|
|
*/
|
|
|
-const setInputErrorMsg = (params) => {
|
|
|
-
|
|
|
- // let amountValue = baseFormData.amountValue;
|
|
|
- // let num = amountValue, scale = 1;
|
|
|
- // if(amountValue.indexOf('.') > -1) {
|
|
|
- // num = amountValue.toString();
|
|
|
- // let obj = scaleNumber(num);
|
|
|
- // num = obj.val;
|
|
|
- // scale = obj.scale;
|
|
|
- // }
|
|
|
-
|
|
|
- onIptSetErrorTxt(params);
|
|
|
+const setInputErrorMsg = () => {
|
|
|
+ onIptSetErrorTxt();
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 输入时 检测设置错误信息
|
|
|
*/
|
|
|
-const onIptSetErrorTxt = (params) => {
|
|
|
+const onIptSetErrorTxt = () => {
|
|
|
depositGuide.value = false;
|
|
|
if(!currentCurrencyInfo.value.currencyCode) {
|
|
|
iptErrMsgTxt.value = "Select a reward"
|
|
@@ -1086,6 +1057,7 @@ onMounted(() => {
|
|
|
top: 50%;
|
|
|
transform: translate(-50%, -50%);
|
|
|
box-sizing: border-box;
|
|
|
+ z-index: 2000;
|
|
|
|
|
|
.pop-mask {
|
|
|
width: 100%;
|