|
@@ -82,7 +82,7 @@
|
|
|
<div
|
|
|
class="label currency-select"
|
|
|
:class="{'selected': currentCurrencyInfo.currencyCode}"
|
|
|
- @click="showCurrencyPop = true"
|
|
|
+ @click="selectCurrencyPopHandle"
|
|
|
>
|
|
|
<img v-if="currentCurrencyInfo.iconPath"
|
|
|
class="icon"
|
|
@@ -191,7 +191,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 机器人 -->
|
|
|
- <div class="anti-bot-wrapper">
|
|
|
+ <!-- <div class="anti-bot-wrapper">
|
|
|
<div class="label">
|
|
|
<img
|
|
|
:src="
|
|
@@ -214,7 +214,7 @@
|
|
|
/>
|
|
|
</div>
|
|
|
<el-switch v-model="openAntiBot" />
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<!-- 提示 -->
|
|
|
<ul class="tips-wrapper">
|
|
|
<li class="row">
|
|
@@ -345,7 +345,7 @@ let showCurrencyPop = ref(false);
|
|
|
|
|
|
let showMoreOption = ref(false);
|
|
|
|
|
|
-let currencyListDom = ref(null);
|
|
|
+let currencyListDom = ref('');
|
|
|
|
|
|
let refreshRotate = ref(false);
|
|
|
|
|
@@ -464,6 +464,15 @@ const setDialogHeight = (resize = false) => {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+const selectCurrencyPopHandle = () => {
|
|
|
+ showCurrencyPop.value = true;
|
|
|
+ nextTick(() => {
|
|
|
+ if(currencyListDom.value) {
|
|
|
+ currencyListDom.value.getCurrencyInfoList && currencyListDom.value.getCurrencyInfoList();
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* 获取实际支付金额
|
|
|
*/
|
|
@@ -591,11 +600,14 @@ const topUpDone = () => {
|
|
|
showCurrencyPop.value = false;
|
|
|
showComType.value = 'default';
|
|
|
calcDomZoom();
|
|
|
+ onIptSetErrorTxt()
|
|
|
+
|
|
|
asyncTokenRechRecord((res) => {
|
|
|
if(res.code == 0 && res.data && res.data.length) {
|
|
|
let currencyInfo = res.data[0];
|
|
|
if(currencyInfo.currencyCode == currentCurrencyInfo.value.currencyCode) {
|
|
|
currentCurrencyInfo.value.balance = currencyInfo.balance;
|
|
|
+ onIptSetErrorTxt()
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -915,7 +927,7 @@ const onIptSetErrorTxt = (params) => {
|
|
|
iptErrMsgTxt.value = "Enter an amount";
|
|
|
} else if (!baseFormData.totalCount || baseFormData.totalCount == '0') {
|
|
|
iptErrMsgTxt.value = "Enter the number of winners";
|
|
|
- } else if(+baseFormData.amountValue < +currentCurrencyInfo.value.balance) {
|
|
|
+ } else if(+baseFormData.amountValue <= +currentCurrencyInfo.value.balance) {
|
|
|
let res = calcIptValue();
|
|
|
if (!res.flag) {
|
|
|
iptErrMsgTxt.value = `${baseFormData.amountValue} ${currentCurrencyInfo.value.tokenSymbol} Can send up to ${res.count} winners`;
|