77 fix bugs.
This commit is contained in:
@@ -73,8 +73,6 @@ class RoomMentorShipFragment(var mRoomInfoResp: RoomInfoResp?) :
|
||||
private val timer = CountdownTimer()
|
||||
private val scope = CoroutineScope(Dispatchers.Main + SupervisorJob())
|
||||
|
||||
private val startOrDelay = arrayOf("开始", "延时")
|
||||
|
||||
private var mUserInfo: RoomUserBean? = mRoomInfoResp?.user_info
|
||||
|
||||
private var dialogMentorShip: DialogMentorShip? = null
|
||||
@@ -188,6 +186,7 @@ class RoomMentorShipFragment(var mRoomInfoResp: RoomInfoResp?) :
|
||||
mBinding.tvTimeLeft.setOnClickListener(this)
|
||||
mBinding.tvTimeRight.setOnClickListener(this)
|
||||
mBinding.ivHelp.setOnClickListener(this)
|
||||
mBinding.tvTimeStart.setOnClickListener(this)
|
||||
|
||||
if (mRoomInfoResp?.sign_info?.sign_id != "-1") {
|
||||
mSignId = mRoomInfoResp?.sign_info?.sign_id
|
||||
@@ -233,11 +232,11 @@ class RoomMentorShipFragment(var mRoomInfoResp: RoomInfoResp?) :
|
||||
}
|
||||
|
||||
R.id.tv_time_left -> {
|
||||
if (mBinding.tvTimeLeft.text.toString() == startOrDelay[0]) {
|
||||
MvpPre.signStart(mRoomId, mSignPitBean?.user_id!!)
|
||||
} else {
|
||||
MvpPre.signDelay(mSignId!!, mRoomId)
|
||||
}
|
||||
MvpPre.signDelay(mSignId!!, mRoomId)
|
||||
}
|
||||
|
||||
R.id.tv_time_start ->{
|
||||
MvpPre.signStart(mRoomId, mSignPitBean?.user_id!!)
|
||||
}
|
||||
|
||||
R.id.tv_time_right -> {
|
||||
@@ -273,7 +272,6 @@ class RoomMentorShipFragment(var mRoomInfoResp: RoomInfoResp?) :
|
||||
private fun showBtn(isSignUser: Boolean = false) {
|
||||
activity?.runOnUiThread {
|
||||
if (isStart) {
|
||||
mBinding.tvTimeLeft.text = startOrDelay[1]
|
||||
mBinding.tvTime.visibility = View.VISIBLE
|
||||
mBinding.groupLeftPrice.visibility = View.VISIBLE
|
||||
if (getHostUser() < 4) {
|
||||
@@ -282,8 +280,6 @@ class RoomMentorShipFragment(var mRoomInfoResp: RoomInfoResp?) :
|
||||
mBinding.tvTimeRight.visibility = View.GONE
|
||||
}
|
||||
} else {
|
||||
mBinding.tvTimeLeft.text = startOrDelay[0]
|
||||
|
||||
mBinding.tvTimeRight.visibility = View.GONE
|
||||
mBinding.tvTime.visibility = View.GONE
|
||||
mBinding.tvJsq.visibility = View.GONE
|
||||
@@ -305,9 +301,19 @@ class RoomMentorShipFragment(var mRoomInfoResp: RoomInfoResp?) :
|
||||
"0"
|
||||
)
|
||||
) {
|
||||
mBinding.tvTimeLeft.visibility = View.VISIBLE
|
||||
if (isStart){
|
||||
mBinding.tvTimeLeft.visibility = View.VISIBLE
|
||||
mBinding.tvTimeStart.visibility = View.GONE
|
||||
}else{
|
||||
mBinding.tvTimeLeft.visibility = View.GONE
|
||||
mBinding.tvTimeStart.visibility = View.VISIBLE
|
||||
}
|
||||
} else {
|
||||
mBinding.tvTimeLeft.visibility = View.GONE
|
||||
if (isStart){
|
||||
mBinding.tvTimeLeft.visibility = View.GONE
|
||||
}else{
|
||||
mBinding.tvTimeStart.visibility = View.GONE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -388,7 +394,6 @@ class RoomMentorShipFragment(var mRoomInfoResp: RoomInfoResp?) :
|
||||
|
||||
signTypeDialog?.show(0)
|
||||
|
||||
mBinding.tvTimeLeft.text = startOrDelay[1]
|
||||
mBinding.tvLeftPrice.text = currBodyValue
|
||||
mBinding.tvSignDay.visibility = View.VISIBLE
|
||||
mBinding.tvSignDay.text = "签约${signDay}天"
|
||||
|
||||
@@ -73,7 +73,7 @@ public class RoomOnlineDialogFragment extends BaseMvpDialogFragment<RoomPresente
|
||||
|
||||
@Override
|
||||
protected void initData() {
|
||||
// MvpPre.getRoomOnline(getArguments().getString("roomId"), "1", "10");
|
||||
MvpPre.getRoomOnline(getArguments().getString("roomId"), "1", "10");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user