拆分 取现sub页面 title
This commit is contained in:
parent
968c5354a1
commit
4a0a37e715
|
|
@ -316,6 +316,9 @@ class WithDrawActivity : AppViewsEmptyViewModelActivity<ViewBinding>(), OnTabSty
|
||||||
WithdrawFailDialog(this@WithDrawActivity, errorHintRes).show()
|
WithdrawFailDialog(this@WithDrawActivity, errorHintRes).show()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fun gotoWithdrawSubActivity() {
|
||||||
|
Router.Withdraw.startActivity(this)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,80 +50,11 @@ class WithDrawSubActivity : AppViewsEmptyViewModelActivity<ViewBinding>(), OnTab
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun ViewBinding.initViews() {
|
override fun ViewBinding.initViews() {
|
||||||
titlebar.setTitleText(R.string.sacar)
|
titlebar.setTitleText(R.string.title_withdraw_sub)
|
||||||
|
|
||||||
mItemViewList.add(withdraw01)
|
|
||||||
mItemViewList.add(withdraw10)
|
|
||||||
mItemViewList.add(withdraw20)
|
|
||||||
mItemViewList.add(withdraw50)
|
|
||||||
mItemViewList.add(withdraw100)
|
|
||||||
mItemViewList.add(withdraw300)
|
|
||||||
|
|
||||||
withdraw01.setNumAndAction(0, 0.1F,
|
|
||||||
{ itemIndex->
|
|
||||||
updateUIItemSelectStates(itemIndex)
|
|
||||||
})
|
|
||||||
|
|
||||||
withdraw10.setNumAndAction(1, 10F,
|
|
||||||
{ itemIndex->
|
|
||||||
updateUIItemSelectStates(itemIndex)
|
|
||||||
})
|
|
||||||
|
|
||||||
withdraw20.setNumAndAction(2, 20F,
|
|
||||||
{ itemIndex->
|
|
||||||
updateUIItemSelectStates(itemIndex)
|
|
||||||
})
|
|
||||||
|
|
||||||
withdraw50.setNumAndAction(3, 50F,
|
|
||||||
{ itemIndex->
|
|
||||||
updateUIItemSelectStates(itemIndex)
|
|
||||||
})
|
|
||||||
|
|
||||||
withdraw100.setNumAndAction(4, 100F,
|
|
||||||
{ itemIndex->
|
|
||||||
updateUIItemSelectStates(itemIndex)
|
|
||||||
})
|
|
||||||
|
|
||||||
withdraw300.setNumAndAction(5, 300F,
|
|
||||||
{ itemIndex->
|
|
||||||
updateUIItemSelectStates(itemIndex)
|
|
||||||
})
|
|
||||||
|
|
||||||
withdrawPix2.setIconAndText(R.mipmap.pix2_big, R.string.pix2, {
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
withdrawPix2.setSelectedState(true)
|
|
||||||
updateUIItemSelectStates(0)
|
|
||||||
|
|
||||||
setOnClickBatch(tvSacar, withdrawRecord) {
|
|
||||||
when(this) {
|
|
||||||
tvSacar -> {
|
|
||||||
val hasBindBank = AccountManager.hasValidBankInfo()
|
|
||||||
val cashNum = mItemViewList.get(mCurSelectedIndex).getCashNum()
|
|
||||||
if (!hasBindBank) {
|
|
||||||
WithdrawBindBankDialog(this@WithDrawSubActivity).setWithDrawCashNum(cashNum).show()
|
|
||||||
} else {
|
|
||||||
WithdrawInfoConfirmDialog(this@WithDrawSubActivity).setWithDrawCashNum(cashNum).show()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
withdrawRecord -> {
|
|
||||||
Router.WithdrawRecord.startActivity(this@WithDrawSubActivity)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
updateUICashTotal()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun updateUIItemSelectStates(itemIndex: Int) {
|
|
||||||
mCurSelectedIndex = itemIndex
|
|
||||||
mItemViewList.forEachIndexed { index, view ->
|
|
||||||
view.setSelectedState(index == mCurSelectedIndex)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun updateUICashTotal() {
|
private fun updateUICashTotal() {
|
||||||
binding.tvCashTotal.text = AccountManager.getCash().toString()
|
binding.tvCashTotal.text = AccountManager.getCash().toString()
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ object Router : RouterContract {
|
||||||
override val Benefit: BenefitRouter by lazy { routerEntryPoint.benefitRouter() }
|
override val Benefit: BenefitRouter by lazy { routerEntryPoint.benefitRouter() }
|
||||||
override val ZeroBuy: ZeroBuyRouter by lazy { routerEntryPoint.zeroBuyRouter() }
|
override val ZeroBuy: ZeroBuyRouter by lazy { routerEntryPoint.zeroBuyRouter() }
|
||||||
override val Withdraw: WithdrawRouter by lazy { routerEntryPoint.withdrawRouter() }
|
override val Withdraw: WithdrawRouter by lazy { routerEntryPoint.withdrawRouter() }
|
||||||
|
|
||||||
override val WinRecord: WinRecordRouter by lazy { routerEntryPoint.winRecordBuyRouter() }
|
override val WinRecord: WinRecordRouter by lazy { routerEntryPoint.winRecordBuyRouter() }
|
||||||
|
|
||||||
override val Privacy: IRouterPrivacy
|
override val Privacy: IRouterPrivacy
|
||||||
|
|
|
||||||
|
|
@ -142,5 +142,6 @@
|
||||||
<string name="withdraw_sub_top_hint_2">100%! Pix lmediato na Sua Contal!</string>
|
<string name="withdraw_sub_top_hint_2">100%! Pix lmediato na Sua Contal!</string>
|
||||||
<string name="regras">Regras</string>
|
<string name="regras">Regras</string>
|
||||||
<string name="with_draw_sub_hint">1. Grandes quantias em dinheiro sro distribuidas em vários dias;todas asrecompensas sao reais e válidas.\n2. Assistir a videos na p¡gina atual pode aumentar o progresso datarefa. Quando oprogresso atingir 100%, a recompensa diária emdinheiro pode ser reivindicada.\n3. Após reivindicar uma recompensa com sucesso, vocé podereceber a proximarecompensa em dinheiro no dia sequinte.4. Se a reivindicacao falhar, verifique se as informac\'es da contaestaopreenchidas corretamente e tente reivindicar a recompensaem dinheironovamente.\n5.Se houver comportamento de fraude, o sistema banirá a contae a colocara na</string>
|
<string name="with_draw_sub_hint">1. Grandes quantias em dinheiro sro distribuidas em vários dias;todas asrecompensas sao reais e válidas.\n2. Assistir a videos na p¡gina atual pode aumentar o progresso datarefa. Quando oprogresso atingir 100%, a recompensa diária emdinheiro pode ser reivindicada.\n3. Após reivindicar uma recompensa com sucesso, vocé podereceber a proximarecompensa em dinheiro no dia sequinte.4. Se a reivindicacao falhar, verifique se as informac\'es da contaestaopreenchidas corretamente e tente reivindicar a recompensaem dinheironovamente.\n5.Se houver comportamento de fraude, o sistema banirá a contae a colocara na</string>
|
||||||
|
<string name="title_withdraw_sub">Recompensas Diárias em Dinheiro</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
Loading…
Reference in New Issue