Browse Source

充值提示

xiaomei 5 months ago
parent
commit
8ed91683dd
3 changed files with 5 additions and 4 deletions
  1. 1 1
      src/language/en.json
  2. 1 1
      src/language/zh.json
  3. 3 2
      src/views/mine/recharge.vue

+ 1 - 1
src/language/en.json

@@ -157,7 +157,7 @@
   "lang156": "Shipped",
   "lang157": "Fill in delivery information",
   "lang158": "Binding successful",
-  "lang159": "Your USDT balance is insufficient",
+  "lang159": "Your USDT balance is less than XX, only CC",
   "lang160": "Please enter the recharge amount",
   "lang161": "Balance",
   "lang162": "1. After the withdrawal, it will be reviewed by the platform administrator. If there is no abnormality, the review will be completed within 48 hours and the withdrawal address will be transferred. You can check the order progress in the details in the upper right corner.",

+ 1 - 1
src/language/zh.json

@@ -157,7 +157,7 @@
   "lang156": "已发货",
   "lang157": "填写收货信息",
   "lang158": "绑定成功",
-  "lang159": "您的USDT余额不足",
+  "lang159": "您的USDT余额不足XX,只有CC",
   "lang160": "请输入充值数量",
   "lang161": "余额",
   "lang162": "1.提现后由平台管理员审核,如无异常将于48小时之内完成审核并转入提现地址,您可在右上角明细中查看订单进度。",

+ 3 - 2
src/views/mine/recharge.vue

@@ -125,8 +125,8 @@ export default {
       if (!this.amount) {
         return this.$toast(this.$t('lang160'));
       }
-      if (this.walletBalance < this.amount) {
-        return this.$toast(this.$t('lang159'));
+      if (Number(this.walletBalance) < Number(this.amount)) {
+        return this.$toast(this.$t('lang159').replace('XX', this.amount).replace('CC', this.walletBalance));
       }
       this.show = true;
       usdt
@@ -144,6 +144,7 @@ export default {
                 this.amount = '';
                 this.show = false;
                 Notify({ type: 'success', message: this.$t('lang152') });
+                this.getUserInfo();
               } else {
                 this.show = false;
                 Toast({ message: `${res.msg}` });