77 优化签约房按钮
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
// 延迟后重新开始计时
|
||||
|
||||
Reference in New Issue
Block a user