陶杰
2024-11-12 767ca1416d96ff1d2f8d346c0a1bdd36bc6557f5
sub_pages/supplier/wallet/wallet-withdrao-deposit.vue
@@ -94,12 +94,16 @@
                  setTimeout(() => {
                     uni.navigateBack()
                  }, 1000)
               } else {
                  this.$message.showToast(resp.msg)
               }else{
                  // if(resp&&resp.data&&resp.data[0]){
                  //    this.$message.showToast(resp.data[0].msg)
                  // }
                  this.$message.showToast("提现失败")
               }
            }).catch(err => {
               console.log(err)
            }).finally(() => {
               this.$message.hideLoading()  // 关闭加载提示
            })
@@ -118,12 +122,17 @@
                    return callback(new Error('提现金额必须是有效的数字(最多两位小数)'));
                }
               // 提现金额要大于0   
               if (value <= 0) {
                  return callback(new Error('提现金额必须大于0'));
               if (value < 0.1) {
                  return callback(new Error('提现金额必须大于0.1'));
               }
               if (value > this.wallet.withdrawableAmount) {
                  return callback(new Error('提现金额不能大于可提现金额'));
               }
               // 提现金额不能大于500
               if (value > 500) {
                  return callback(new Error('提现金额不能大于500'));
               }
                callback();
            },