|
@@ -35,7 +35,7 @@
|
|
<div class="option">
|
|
<div class="option">
|
|
<div class="item" @click="goTransactionsList()">
|
|
<div class="item" @click="goTransactionsList()">
|
|
<img :src="require('@/assets/svg/icon-menu.svg')">
|
|
<img :src="require('@/assets/svg/icon-menu.svg')">
|
|
- <span>Transactions</span>
|
|
|
|
|
|
+ <span>Transaction History</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -89,7 +89,7 @@
|
|
:src="currentCurrencyInfo.iconPath"
|
|
:src="currentCurrencyInfo.iconPath"
|
|
/>
|
|
/>
|
|
<div class="text">
|
|
<div class="text">
|
|
- {{currentCurrencyInfo.currencyCode == 'USD' ? 'USD' : currentCurrencyInfo.tokenSymbol || 'Select a Reward'}}
|
|
|
|
|
|
+ {{currentCurrencyInfo.currencyCode == 'USD' ? 'USD' : currentCurrencyInfo.tokenSymbol || 'Select a reward'}}
|
|
</div>
|
|
</div>
|
|
<img
|
|
<img
|
|
class="arrow"
|
|
class="arrow"
|
|
@@ -218,13 +218,13 @@
|
|
<!-- 提示 -->
|
|
<!-- 提示 -->
|
|
<ul class="tips-wrapper">
|
|
<ul class="tips-wrapper">
|
|
<li class="row">
|
|
<li class="row">
|
|
- Rewards can only be claimed after the target user completes all tasks you set.
|
|
|
|
|
|
+ Rewards can only be claimed after the target user completes all tasks you set.
|
|
</li>
|
|
</li>
|
|
<li class="row">
|
|
<li class="row">
|
|
- Each user can only receive a reward once per task
|
|
|
|
|
|
+ Each user can only receive a reward once per task.
|
|
</li>
|
|
</li>
|
|
<li class="row">
|
|
<li class="row">
|
|
- The reward will expire in 7 days once issued. Please promote it as much as possible within this period. After experiment, remaining rewards will be returned to your DeNet Wallet.
|
|
|
|
|
|
+ The reward will expire in 7 days once issued. Please promote it as much as possible within this period. After the experiment, the remaining rewards will be returned to your DeNet Wallet.
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
|
|
|
|
@@ -315,7 +315,7 @@ let publishRes = reactive({});
|
|
|
|
|
|
let currentComData = {
|
|
let currentComData = {
|
|
default: {
|
|
default: {
|
|
- title: "Giveaways",
|
|
|
|
|
|
+ title: "Giveaway",
|
|
},
|
|
},
|
|
preview: {
|
|
preview: {
|
|
title: "Preview",
|
|
title: "Preview",
|
|
@@ -407,7 +407,7 @@ let formList = reactive([
|
|
checked: true,
|
|
checked: true,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label: "Like tweet",
|
|
|
|
|
|
+ label: "Like Tweet",
|
|
icon: require("../../assets/svg/icon-like.svg"),
|
|
icon: require("../../assets/svg/icon-like.svg"),
|
|
nodeType: "div",
|
|
nodeType: "div",
|
|
type: 2,
|
|
type: 2,
|
|
@@ -426,12 +426,12 @@ watch(
|
|
() => props.dialogVisible,
|
|
() => props.dialogVisible,
|
|
(newVal) => {
|
|
(newVal) => {
|
|
console.log("watch", newVal);
|
|
console.log("watch", newVal);
|
|
|
|
+ visible.value = newVal;
|
|
if (newVal) {
|
|
if (newVal) {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
setDialogHeight();
|
|
setDialogHeight();
|
|
}, 300);
|
|
}, 300);
|
|
}
|
|
}
|
|
- visible.value = newVal;
|
|
|
|
}
|
|
}
|
|
);
|
|
);
|
|
|
|
|
|
@@ -450,14 +450,16 @@ const close = () => {
|
|
/**
|
|
/**
|
|
* 设置弹窗高度
|
|
* 设置弹窗高度
|
|
*/
|
|
*/
|
|
-const setDialogHeight = () => {
|
|
|
|
|
|
+const setDialogHeight = (resize = false) => {
|
|
let clientHeight = window.innerHeight;
|
|
let clientHeight = window.innerHeight;
|
|
let gapSafe = 40;
|
|
let gapSafe = 40;
|
|
|
|
|
|
if (dialogHeight.value > clientHeight - gapSafe) {
|
|
if (dialogHeight.value > clientHeight - gapSafe) {
|
|
dialogHeight.value = clientHeight - gapSafe;
|
|
dialogHeight.value = clientHeight - gapSafe;
|
|
} else {
|
|
} else {
|
|
- dialogHeight.value = 680;
|
|
|
|
|
|
+ if(resize) {
|
|
|
|
+ dialogHeight.value = 680;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
@@ -503,8 +505,8 @@ const selectCurrency = (params) => {
|
|
if(params.currencyCode != "USD" && params.balance < params.minAmount) {
|
|
if(params.currencyCode != "USD" && params.balance < params.minAmount) {
|
|
let tokenSymbol = params.currencyCode == 'USD' ? 'USD' : params.tokenSymbol;
|
|
let tokenSymbol = params.currencyCode == 'USD' ? 'USD' : params.tokenSymbol;
|
|
messageBoxBlock({
|
|
messageBoxBlock({
|
|
- title: `Deposit ${tokenSymbol}`,
|
|
|
|
- content: `${tokenSymbol} available balance is ${params.balance}`,
|
|
|
|
|
|
+ title: `Whether to deposit ${tokenSymbol}`,
|
|
|
|
+ content: `Insufficient ${tokenSymbol} balance`,
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
currentCurrencyInfo.value = params;
|
|
currentCurrencyInfo.value = params;
|
|
@@ -587,6 +589,7 @@ const topUpDone = () => {
|
|
asyncIng.value = false;
|
|
asyncIng.value = false;
|
|
showCurrencyPop.value = false;
|
|
showCurrencyPop.value = false;
|
|
showComType.value = 'default';
|
|
showComType.value = 'default';
|
|
|
|
+ calcDomZoom();
|
|
asyncTokenRechRecord((res) => {
|
|
asyncTokenRechRecord((res) => {
|
|
if(res.code == 0 && res.data && res.data.length) {
|
|
if(res.code == 0 && res.data && res.data.length) {
|
|
let currencyInfo = res.data[0];
|
|
let currencyInfo = res.data[0];
|
|
@@ -930,21 +933,21 @@ const setIsEmptyTxt = () => {
|
|
const onIptSetErrorTxt = (params) => {
|
|
const onIptSetErrorTxt = (params) => {
|
|
depositGuide.value = false;
|
|
depositGuide.value = false;
|
|
if(!currentCurrencyInfo.value.currencyCode) {
|
|
if(!currentCurrencyInfo.value.currencyCode) {
|
|
- iptErrMsgTxt.value = "Please select a currency"
|
|
|
|
|
|
+ iptErrMsgTxt.value = "Select a reward"
|
|
} else if (!baseFormData.amountValue || baseFormData.amountValue == '0') {
|
|
} else if (!baseFormData.amountValue || baseFormData.amountValue == '0') {
|
|
- iptErrMsgTxt.value = "Please enter the ‘reward’ amount";
|
|
|
|
|
|
+ iptErrMsgTxt.value = "Enter an amount";
|
|
} else if (!baseFormData.totalCount || baseFormData.totalCount == '0') {
|
|
} else if (!baseFormData.totalCount || baseFormData.totalCount == '0') {
|
|
- iptErrMsgTxt.value = "Please enter the ‘winners’ amount";
|
|
|
|
|
|
+ iptErrMsgTxt.value = "Enter the number of winners";
|
|
} else if(+baseFormData.amountValue < +currentCurrencyInfo.value.balance) {
|
|
} else if(+baseFormData.amountValue < +currentCurrencyInfo.value.balance) {
|
|
let res = calcIptValue();
|
|
let res = calcIptValue();
|
|
if (!res.flag) {
|
|
if (!res.flag) {
|
|
- iptErrMsgTxt.value = `Please enter at least ${baseFormData.amountValue} ${currentCurrencyInfo.value.tokenSymbol} for ${res.count} winners`;
|
|
|
|
|
|
+ iptErrMsgTxt.value = `${baseFormData.amountValue} ${currentCurrencyInfo.value.tokenSymbol} Can send up to ${res.count} winners`;
|
|
} else {
|
|
} else {
|
|
iptErrMsgTxt.value = "";
|
|
iptErrMsgTxt.value = "";
|
|
}
|
|
}
|
|
} else if(currentCurrencyInfo.value.currencyCode != 'USD') {
|
|
} else if(currentCurrencyInfo.value.currencyCode != 'USD') {
|
|
depositGuide.value = true;
|
|
depositGuide.value = true;
|
|
- iptErrMsgTxt.value = `Insufficient ${currentCurrencyInfo.value.tokenSymbol} balance, please recharge`;
|
|
|
|
|
|
+ iptErrMsgTxt.value = `Insufficient ${currentCurrencyInfo.value.tokenSymbol} balance, please deposit`;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -992,7 +995,7 @@ onMounted(() => {
|
|
}
|
|
}
|
|
};
|
|
};
|
|
window.onresize = throttle(function () {
|
|
window.onresize = throttle(function () {
|
|
- setDialogHeight()
|
|
|
|
|
|
+ setDialogHeight(true)
|
|
}, 300)
|
|
}, 300)
|
|
});
|
|
});
|
|
</script>
|
|
</script>
|