点击事件

This commit is contained in:
renhaoting 2025-11-24 17:42:14 +08:00
parent 4a5fcfa0bb
commit 7436000c7f
2 changed files with 11 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class TasksFragment : AppViewsFragment<ViewBinding, UiState, ViewModel>(), OnTab
override fun ViewBinding.initViews() {
with(binding) {
setOnClickBatch(ivGotoDailySign, llTaskBenefit, llTaskWatchVideo, llTaskGame, llTaskZerobuy) {
setOnClickBatch(ivGotoDailySign, llTaskBenefit, llTaskWatchVideo, llTaskGame, llTaskZerobuy, tvWatchVideo, tvWithdraw) {
when(this) {
ivGotoDailySign->{
DailySignDialog(context).build().show()
@ -73,6 +73,14 @@ class TasksFragment : AppViewsFragment<ViewBinding, UiState, ViewModel>(), OnTab
llTaskZerobuy->{
Router.ZeroBuy.startActivity(requireActivity())
}
tvWatchVideo->{
WatchVideoDialog(requireContext()).show()
}
tvWithdraw->{
Router.Withdraw.startActivity(requireActivity())
}
}
}

View File

@ -78,6 +78,7 @@
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_watch_video"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
@ -140,6 +141,7 @@
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_withdraw"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textStyle="bold"