xcx 4 gadus atpakaļ
vecāks
revīzija
a5e1bc1fd5
1 mainītis faili ar 16 papildinājumiem un 12 dzēšanām
  1. 16
    12
      src/pages/WoDe/TiXian/index.vue

+ 16
- 12
src/pages/WoDe/TiXian/index.vue Parādīt failu

@@ -57,18 +57,22 @@ export default {
57 57
     Init () {
58 58
     },
59 59
     ToCashOut () {
60
-      // if (this.Amount === '') {
61
-      //   this.Toast('提现金额不能为空')
62
-      //   return false
63
-      // }
64
-      // if (this.Amount - 0 > this.UserInfo.account.cash - 0) {
65
-      //   this.Toast('提现金额不能大于账户余额')
66
-      //   return false
67
-      // }
68
-      // if (this.Password === '') {
69
-      //   this.Toast('提现密码不能为空')
70
-      //   return false
71
-      // }
60
+      if (this.Amount === '') {
61
+        this.Toast('提现金额不能为空')
62
+        return false
63
+      }
64
+      if (this.Amount - 0 < 100) {
65
+        this.Toast('提现金额不能小于100牛币')
66
+        return false
67
+      }
68
+      if (this.Amount - 0 > this.UserInfo.account.cash - 0) {
69
+        this.Toast('提现金额不能大于账户余额')
70
+        return false
71
+      }
72
+      if (this.Password === '') {
73
+        this.Toast('提现密码不能为空')
74
+        return false
75
+      }
72 76
       if (this.DataLock) return
73 77
       this.DataLock = true
74 78
       this.CashOut({ data: { amount: this.Amount, cashPass: md5(this.Password) } }).then((res) => {