Browse Source

提示优化

fly 5 days ago
parent
commit
a104c5edd4
2 changed files with 13 additions and 15 deletions
  1. 7 9
      src/views/Mention.vue
  2. 6 6
      src/views/Profile.vue

+ 7 - 9
src/views/Mention.vue

@@ -229,10 +229,11 @@ export default {
         this.showTips('请输入提现金额');
         return;
       }
-      if (this.amount < this.minWithdrawAmount) {
-        this.showTips(`提现金额不能小于${this.minWithdrawAmount}元`);
-        return;
-      }
+      // 取消前端金额校验
+      // if (this.amount < this.minWithdrawAmount) {
+      //   this.showTips(`提现金额不能小于${this.minWithdrawAmount}元`);
+      //   return;
+      // }
       if (!this.password) {
         this.showTips('请输入登录密码');
         return;
@@ -247,11 +248,8 @@ export default {
         
         let res = await withdrawCoin(params);
         
-        if(res.code == 1){
-          this.showTips('提现申请已提交');
-        }else{
-          this.showTips(res.msg);
-        }
+        // 只提示后端返回内容
+        this.showTips(res.msg);
         await this.getUserInfo();
       } catch (error) {
         console.error('提现失败:', error);

+ 6 - 6
src/views/Profile.vue

@@ -245,18 +245,18 @@ export default {
     },
     // 红旗资产提现
     handleRedFlagWithdraw() {
-      // this.$router.push('/mention?type=1');
-      this.$refs.toast.show('暂未开启', 'info');
+      this.$router.push('/mention?type=1');
+      // this.$refs.toast.show('暂未开启', 'info');
     },
     // 退休补贴提现
     handleRetirementWithdraw() {
-      // this.$router.push('/mention?type=2');
-      this.$refs.toast.show('中央资金筹备中', 'info');
+      this.$router.push('/mention?type=2');
+      // this.$refs.toast.show('中央资金筹备中', 'info');
     },
     // 党员薪资提现
     handlePartySalaryWithdraw() {
-      // this.$router.push('/mention?type=3');
-      this.$refs.toast.show('统一打款', 'info');
+      this.$router.push('/mention?type=3');
+      // this.$refs.toast.show('统一打款', 'info');
     },
     // 每日现金提现
     handleDailyCashWithdraw() {