提现添加1.0档位
This commit is contained in:
parent
560b680484
commit
f587a99e71
|
|
@ -53,6 +53,7 @@ class WithDrawActivity : AppViewsEmptyViewModelActivity<ViewBinding>() {
|
||||||
titlebar.setTitleText(R.string.sacar)
|
titlebar.setTitleText(R.string.sacar)
|
||||||
|
|
||||||
mItemViewList.add(withdraw01)
|
mItemViewList.add(withdraw01)
|
||||||
|
mItemViewList.add(withdraw1)
|
||||||
mItemViewList.add(withdraw10)
|
mItemViewList.add(withdraw10)
|
||||||
mItemViewList.add(withdraw20)
|
mItemViewList.add(withdraw20)
|
||||||
mItemViewList.add(withdraw50)
|
mItemViewList.add(withdraw50)
|
||||||
|
|
@ -64,27 +65,32 @@ class WithDrawActivity : AppViewsEmptyViewModelActivity<ViewBinding>() {
|
||||||
handleGotoWithdraw(itemIndex)
|
handleGotoWithdraw(itemIndex)
|
||||||
})
|
})
|
||||||
|
|
||||||
withdraw10.setNumAndAction(1, 10.0,
|
withdraw1.setNumAndAction(1, 1.0,
|
||||||
{ itemIndex->
|
{ itemIndex->
|
||||||
handleGotoWithdraw(itemIndex)
|
handleGotoWithdraw(itemIndex)
|
||||||
})
|
})
|
||||||
|
|
||||||
withdraw20.setNumAndAction(2, 20.0,
|
withdraw10.setNumAndAction(2, 10.0,
|
||||||
{ itemIndex->
|
{ itemIndex->
|
||||||
handleGotoWithdraw(itemIndex)
|
handleGotoWithdraw(itemIndex)
|
||||||
})
|
})
|
||||||
|
|
||||||
withdraw50.setNumAndAction(3, 50.0,
|
withdraw20.setNumAndAction(3, 20.0,
|
||||||
{ itemIndex->
|
{ itemIndex->
|
||||||
handleGotoWithdraw(itemIndex)
|
handleGotoWithdraw(itemIndex)
|
||||||
})
|
})
|
||||||
|
|
||||||
withdraw100.setNumAndAction(4, 100.0,
|
withdraw50.setNumAndAction(4, 50.0,
|
||||||
{ itemIndex->
|
{ itemIndex->
|
||||||
handleGotoWithdraw(itemIndex)
|
handleGotoWithdraw(itemIndex)
|
||||||
})
|
})
|
||||||
|
|
||||||
withdraw300.setNumAndAction(5, 300.0,
|
withdraw100.setNumAndAction(5, 100.0,
|
||||||
|
{ itemIndex->
|
||||||
|
handleGotoWithdraw(itemIndex)
|
||||||
|
})
|
||||||
|
|
||||||
|
withdraw300.setNumAndAction(6, 300.0,
|
||||||
{ itemIndex->
|
{ itemIndex->
|
||||||
handleGotoWithdraw(itemIndex)
|
handleGotoWithdraw(itemIndex)
|
||||||
})
|
})
|
||||||
|
|
@ -115,7 +121,7 @@ class WithDrawActivity : AppViewsEmptyViewModelActivity<ViewBinding>() {
|
||||||
|
|
||||||
private fun handleGotoWithdraw(itemIndex: Int) {
|
private fun handleGotoWithdraw(itemIndex: Int) {
|
||||||
val cashNum = mItemViewList.get(itemIndex).getCashNum()
|
val cashNum = mItemViewList.get(itemIndex).getCashNum()
|
||||||
if (cashNum > 1.0) {
|
if (cashNum >= 1.0) {
|
||||||
WithdrawManager.instance().setItemStarted(itemIndex)
|
WithdrawManager.instance().setItemStarted(itemIndex)
|
||||||
gotoWithdrawSubActivity(itemIndex)
|
gotoWithdrawSubActivity(itemIndex)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -116,11 +116,12 @@ class WithdrawManager private constructor() {
|
||||||
private fun generateItemList(): MutableList<WithdrawItem> {
|
private fun generateItemList(): MutableList<WithdrawItem> {
|
||||||
val itemList = mutableListOf<WithdrawItem>()
|
val itemList = mutableListOf<WithdrawItem>()
|
||||||
itemList.add(WithdrawItem(0, 0.1, isBigWithDraw = false))
|
itemList.add(WithdrawItem(0, 0.1, isBigWithDraw = false))
|
||||||
itemList.add(WithdrawItem(1, 10.0, AndroidUtil.randomInt(50, 70), generateSubItemList(10.0)))
|
itemList.add(WithdrawItem(1, 1.0, AndroidUtil.randomInt(50, 70), generateSubItemList(1.0)))
|
||||||
itemList.add(WithdrawItem(2, 20.0, AndroidUtil.randomInt(50, 70), generateSubItemList(20.0)))
|
itemList.add(WithdrawItem(2, 10.0, AndroidUtil.randomInt(50, 70), generateSubItemList(10.0)))
|
||||||
itemList.add(WithdrawItem(3, 50.0, AndroidUtil.randomInt(50, 70), generateSubItemList(50.0)))
|
itemList.add(WithdrawItem(3, 20.0, AndroidUtil.randomInt(50, 70), generateSubItemList(20.0)))
|
||||||
itemList.add(WithdrawItem(4, 100.0, AndroidUtil.randomInt(50, 70), generateSubItemList(100.0)))
|
itemList.add(WithdrawItem(4, 50.0, AndroidUtil.randomInt(50, 70), generateSubItemList(50.0)))
|
||||||
itemList.add(WithdrawItem(5, 300.0, AndroidUtil.randomInt(50, 70), generateSubItemList(300.0)))
|
itemList.add(WithdrawItem(5, 100.0, AndroidUtil.randomInt(50, 70), generateSubItemList(100.0)))
|
||||||
|
itemList.add(WithdrawItem(6, 300.0, AndroidUtil.randomInt(50, 70), generateSubItemList(300.0)))
|
||||||
return itemList
|
return itemList
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -188,6 +188,12 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<com.gamedog.vididin.features.withdraw.widget.WithDrawItemView
|
||||||
|
android:id="@+id/withdraw_1"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
/>
|
||||||
|
|
||||||
<com.gamedog.vididin.features.withdraw.widget.WithDrawItemView
|
<com.gamedog.vididin.features.withdraw.widget.WithDrawItemView
|
||||||
android:id="@+id/withdraw_10"
|
android:id="@+id/withdraw_10"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue