| | |
| | | |
| | | override fun initView() { |
| | | setTitleText("申请提现") |
| | | et_money.hint = "${getFormatTwo(CacheKey.getUserInfo().laveBusinessMoney)}元可提现" |
| | | et_money.hint = "${getFormatTwo(CacheKey.getUserInfo().balance)}元可提现" |
| | | et_money.filters = arrayOf<InputFilter>(object : InputFilter { |
| | | override fun filter( |
| | | source: CharSequence, |
| | |
| | | callNet(Api.queryInfo, map) { |
| | | val user = gson.fromJson<UserBean>(it, UserBean::class.java) |
| | | CacheKey.saveUserInfo(user.data) |
| | | et_money.hint = "${getFormatTwo(CacheKey.getUserInfo().laveBusinessMoney)}元可提现" |
| | | et_money.hint = "${getFormatTwo(CacheKey.getUserInfo().balance)}元可提现" |
| | | } |
| | | } |
| | | |
| | |
| | | toast("提现金额必须大于0") |
| | | return@clickDelay |
| | | } |
| | | if (money > CacheKey.getUserInfo().laveBusinessMoney) { |
| | | toast("提现金额不能大于${CacheKey.getUserInfo().laveBusinessMoney}元") |
| | | if (money > CacheKey.getUserInfo().balance) { |
| | | toast("提现金额不能大于${CacheKey.getUserInfo().balance}元") |
| | | return@clickDelay |
| | | } |
| | | val map = getMapByAny() |