|
@@ -345,7 +345,6 @@ let submitIng = ref(false);
|
|
|
let atUserList = ref([]);
|
|
|
|
|
|
let iptErrMsgTxt = ref("Please enter the ‘reward’ amount");
|
|
|
-let isIptErr = ref(false);
|
|
|
|
|
|
// 是否返回
|
|
|
let isBack = ref(false);
|
|
@@ -861,9 +860,12 @@ const setIsEmptyTxt = () => {
|
|
|
if (!baseFormData.amountValue) {
|
|
|
iptErrMsgTxt.value = "Please enter the ‘reward’ amount";
|
|
|
} else {
|
|
|
- if(!isIptErr.value) {
|
|
|
- if (!baseFormData.totalCount) {
|
|
|
- iptErrMsgTxt.value = "Please enter the ‘winners’ amount";
|
|
|
+ if (!baseFormData.totalCount) {
|
|
|
+ iptErrMsgTxt.value = "Please enter the ‘winners’ amount";
|
|
|
+ } else {
|
|
|
+ let res = calcIptValue();
|
|
|
+ if (!res.flag) {
|
|
|
+ iptErrMsgTxt.value = `Please reduce the 'winners' amount to ${res.count}`;
|
|
|
} else {
|
|
|
iptErrMsgTxt.value = "";
|
|
|
}
|
|
@@ -876,14 +878,11 @@ const setIsEmptyTxt = () => {
|
|
|
*/
|
|
|
const onIptSetErrorTxt = (params) => {
|
|
|
let {from, type,} = params;
|
|
|
- isIptErr.value = false;
|
|
|
if(baseFormData.amountValue < currentCurrencyInfo.value.balance) {
|
|
|
let res = calcIptValue();
|
|
|
if (!res.flag) {
|
|
|
iptErrMsgTxt.value = `Please reduce the 'winners' amount to ${res.count}`;
|
|
|
- isIptErr.value = true;
|
|
|
} else {
|
|
|
- isIptErr.value = false;
|
|
|
setIsEmptyTxt();
|
|
|
}
|
|
|
} else if(currentCurrencyInfo.value.currencyCode != 'USD') {
|
|
@@ -1115,6 +1114,7 @@ onMounted(() => {
|
|
|
padding: 0px 18px 18px 18px;
|
|
|
height: calc(100% - 80px);
|
|
|
overflow-y: scroll;
|
|
|
+ overflow-x: hidden;
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
.img-mode {
|
|
@@ -1348,7 +1348,7 @@ onMounted(() => {
|
|
|
}
|
|
|
|
|
|
.submit-btn-wrapper {
|
|
|
- width: 96%;
|
|
|
+ width: 100%;
|
|
|
background: #fff;
|
|
|
position: absolute;
|
|
|
bottom: 18px;
|