From ca265b9a5bc97146ba8ddf69fd5fe6e52f502655 Mon Sep 17 00:00:00 2001 From: queenwuli <942534046@qq.com> Date: Mon, 28 Mar 2022 16:18:38 +0800 Subject: [PATCH] gx --- src/assets/i18n/en.js | 2 +- src/pages/index/orePool.vue | 38 +++++++++++++++++++++----------------- src/assets/i18n/zh.js | 2 +- 3 files changed, 23 insertions(+), 19 deletions(-) diff --git a/src/assets/i18n/en.js b/src/assets/i18n/en.js index d248b7f..581d4d1 100644 --- a/src/assets/i18n/en.js +++ b/src/assets/i18n/en.js @@ -29,7 +29,7 @@ Answer2: "Once a user participates in mining, liquidity node mining will be activated and the total amount generated by daily node mining will end in 24 hours, with each user acquiring mining data from the Minres new generation liquidity node pool for computing revenue. The daily settlement is6 times, 1 settlement every 4 hours, and the mining revenue is calculated by the percentage of wallet tokens of the liquid node pool users. The mining proceeds will be released to the user's centralised wallet upon successful community submission. The total amount of mobility node mining is accounted for by the ratio of the total amount of the user's wallet tokens. The more tokens you have in the mobility pool, the more tokens you will acquire from mining.", Answer3: "Participating in non-destructive and non-guaranteed liquidity mining requires paying ETH or TRX miner fees to receive replacement gold coupons, and the ETH wallet or TRX wallet address only needs to be applied once. Automatically open mining permission after success", Answer4: "You can convert the currency generated every day into USDT, and then initiate a withdrawal. USDT withdrawals will be automatically sent to the wallet address you added to the node, other addresses are not supported", - Answer5: "There is no profit below 100USDT.", + Answer5: "There is no profit below {amount}USDT.", Answer6: "When you have enough mining per day and keep it for enough time continuously, the mining pool will have a lot of rewards. For more details, please contact online customer service.", Answer7: "Please send an email to us, we will reply to you as soon as we receive the email:", Yield: " Yield ", diff --git a/src/assets/i18n/zh.js b/src/assets/i18n/zh.js index d3f539e..0c7fd86 100644 --- a/src/assets/i18n/zh.js +++ b/src/assets/i18n/zh.js @@ -29,7 +29,7 @@ Answer2: "一旦用户参与挖掘,流动性节点挖掘将被激活,每天节点挖掘产生的总金额将在24小时内结束,每个用户从Minres新一代流动性节点池中获取挖掘数据,用于计算收益。每日结算6次,每4小时结算1次,挖矿收益以液体节点池用户钱包代币百分比计算。成功提交社区后,挖掘收益将被释放到用户的中央钱包。移动节点挖掘的总量占用户钱包token总量的比例。你在移动池中拥有的代币越多,你从挖掘中获得的代币就越多。", Answer3: " 参与非破坏性和非担保流动性挖掘需要支付ETH或者TRX矿工费用才能收到替换金券,ETH钱包或者TRX钱包地址只需申请一次。成功后自动打开挖掘权限 ", Answer4: " 您可以将每天生成的货币转换为USDT,然后启动提款。USDT取款将自动发送到您添加到节点的钱包地址,不支持其他地址 ", - Answer5: "100USDT以下沒有盈利。", + Answer5: "{amount}USDT以下沒有盈利。", Answer6: "当你每天有足够的挖掘量,并持续保持足够的时间,挖掘池将有很多奖励。有关更多详细信息,请联系在线客户服务。 ", Answer7: "请发送电子邮件,我们将在收到电子邮件后立即回复您;", Yield: "收益率", diff --git a/src/pages/index/orePool.vue b/src/pages/index/orePool.vue index 6677348..8983cfd 100644 --- a/src/pages/index/orePool.vue +++ b/src/pages/index/orePool.vue @@ -32,7 +32,7 @@ </div> <vue-seamless-scroll :data="incomeList" :class-option="scrollOption" class="list-warp"> <div class="row flex align-center justify-between" v-for="item in incomeList"> - <span class="small-name">{{formatAddress(item.address)}}</span> + <span class="small-name">{{item.address}}</span> <span class="small-count">{{item.income}} ETH</span> </div> </vue-seamless-scroll> @@ -54,15 +54,8 @@ {{$t("message.Answer4")}} </van-collapse-item> <van-collapse-item :title='$t("message.Question5")' name="5"> - 100USDT-499USDT{{$t("message.Yield")}}≈2%<br> - 500USDT-4999USDT{{$t("message.Yield")}}≈2.4%<br> - 5000USDT-29999USDT{{$t("message.Yield")}}≈2.8%<br> - 30000USDT-99999USDT{{$t("message.Yield")}}≈3.2%<br> - 100000USDT-499999USDT{{$t("message.Yield")}}≈3.6%<br> - 500000USDT-999999USDT{{$t("message.Yield")}}≈4.2%<br> - 1000000USDT-4999999USDT{{$t("message.Yield")}}≈4.8%<br> - 5000000USDT-9999999USDT{{$t("message.Yield")}}≈5.2%<br> - {{$t("message.Answer5")}} + <p v-for="item in rateList">{{item.minValue}}USDT-{{item.maxValue}}USDT{{$t("message.Yield")}}≈{{item.ratio}}%</p> + {{$t("message.Answer5", {amount: rateList.length?rateList[0].minValue : 0})}} </van-collapse-item> <van-collapse-item :title='$t("message.Question6")' name="6"> {{$t("message.Answer6")}} @@ -100,13 +93,10 @@ let miningPoolData = ref({}); let incomeList = ref([]); const activeNames = ref(['']); - const formatAddress = (value) => { - if(value.length > 13) { - return value.slice(0, 8) + '********' + value.slice(-6) - } - } + const rateList = ref([]) onMounted(() => { proxy.initData() + proxy.initglobalSetData() }) return { activeNames, @@ -115,7 +105,7 @@ scrollOption: { step: 0.5 }, - formatAddress + rateList }; }, methods: { @@ -127,6 +117,16 @@ if(res.code == 200) { this.miningPoolData = res.data.mineData this.incomeList = res.data.userIncome + } + }) + }, + initglobalSetData () { + this.$axios({ + url: '/dapi/common/globalSetting', + method: 'get' + }).then((res) => { + if(res.code == 200) { + this.rateList = res.data.ratio; } }) } @@ -188,7 +188,11 @@ } .box-content .row .small-name{ font-size: 24px; - color: #3D8AF2 + color: #3D8AF2; + max-width: 50%; + overflow: hidden; + text-overflow:ellipsis; + white-space: nowrap; } .box-content .row .small-count{ font-size: 24px; -- Gitblit v1.9.1