77 优化签约房按钮

This commit is contained in:
2025-12-18 14:24:09 +08:00
parent 6207705d2a
commit 894b397537
3 changed files with 4 additions and 4 deletions

View File

@@ -40,6 +40,7 @@ import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.cancel
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import retrofit2.http.POST
/**
* 签约房
@@ -488,6 +489,7 @@ class RoomMentorShipFragment(var mRoomInfoResp: RoomInfoResp?) :
// 在需要开始计时的地方调用
private fun startTimer(milliseconds: Long) {
LogUtils.e("startTimer: $milliseconds")
isStart = true
showBtn()
// 启动计时器
@@ -523,7 +525,7 @@ class RoomMentorShipFragment(var mRoomInfoResp: RoomInfoResp?) :
private fun updateTimerDisplay(time: String) {
// 在这里更新你的UI比如
mBinding.tvTime.text = "倒计时 ${time}"
LogUtils.e("updateTimerDisplay:" + mBinding.tvTime.text.toString() + "\n" + (mBinding.tvTime.visibility == View.VISIBLE))
LogUtils.e("updateTimerDisplay: 倒计时 ${time} =====" + mBinding.tvTime.text.toString() + "\n" + (mBinding.tvTime.visibility == View.VISIBLE))
}
// 延迟后重新开始计时