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

@@ -24,7 +24,6 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0"
android:src="@mipmap/jiaoy"/>
<!-- 头像框,与头像大小相同,覆盖在头像上 -->

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))
}
// 延迟后重新开始计时

View File

@@ -49,8 +49,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_2"
android:layout_height="@dimen/dp_22"
android:gravity="center"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"