拍卖房麦位只有前六个能说话。
This commit is contained in:
@@ -1055,6 +1055,26 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
|
||||
MvpPre?.roomRedPackets(roomId)
|
||||
|
||||
|
||||
if (RoomType.fromTypeId(mRoomInfoResp?.room_info?.type_id.toString()) == RoomType.AUCTION){
|
||||
var userId = 0
|
||||
mRoomInfoResp?.room_auction?.auction_list?.forEachIndexed { idx, auction ->
|
||||
if (idx < 6) {
|
||||
if (auction.user_id.equals(mRoomInfoResp?.user_info?.user_id.toString())) {
|
||||
if (mRoomInfoResp?.room_info?.pit_list!![0].user_id.equals(mRoomInfoResp?.user_info?.user_id.toString())) {
|
||||
userId = -1
|
||||
} else {
|
||||
userId = auction.user_id.toInt()
|
||||
}
|
||||
mRoomInfoResp?.user_info?.pit_number = 1
|
||||
|
||||
roomBtnShowIsHide(userId)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
roomBtnShowIsHide()
|
||||
|
||||
softRebuildUI()
|
||||
@@ -1926,11 +1946,18 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
mRoomInfoResp?.user_info?.pit_number = 0
|
||||
}
|
||||
mRoomInfoResp?.room_info?.pit_list!![0] = RoomPitBean(pitNumber)
|
||||
var userId = 0
|
||||
mRoomInfoResp?.room_auction?.auction_list?.forEachIndexed { idx, auction ->
|
||||
if (idx < 6) {
|
||||
if (auction.user_id.equals(mRoomInfoResp?.user_info?.user_id.toString())) {
|
||||
if (mRoomInfoResp?.room_info?.pit_list!![0].user_id.equals(mRoomInfoResp?.user_info?.user_id.toString())) {
|
||||
userId = -1
|
||||
} else {
|
||||
userId = auction.user_id.toInt()
|
||||
}
|
||||
mRoomInfoResp?.user_info?.pit_number = 1
|
||||
|
||||
if (RoomType.fromTypeId(mRoomInfoResp?.room_info?.type_id.toString()) == RoomType.AUCTION){
|
||||
mRoomInfoResp?.room_auction?.auction_list?.forEach { it ->
|
||||
if (it.user_id.equals(SpUtil.getUserId().toString())) {
|
||||
mRoomInfoResp?.user_info?.pit_number = 9527
|
||||
roomBtnShowIsHide(userId)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2004,6 +2031,8 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
if (text == null || mRoomInfoResp == null || mRoomInfoResp?.room_auction == null) return
|
||||
if (mRoomInfoResp?.room_auction?.auction_list != null) {
|
||||
mRoomInfoResp?.room_auction?.auction_list!!.clear()
|
||||
} else {
|
||||
mRoomInfoResp?.room_auction?.auction_list = arrayListOf()
|
||||
}
|
||||
|
||||
var userId = 0
|
||||
@@ -3071,14 +3100,6 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
mBinding?.rlMisc?.visibility = View.GONE
|
||||
}
|
||||
|
||||
if (RoomType.fromTypeId(mRoomInfoResp?.room_info?.type_id.toString()) == RoomType.AUCTION){
|
||||
mRoomInfoResp?.room_auction?.auction_list?.forEach { it ->
|
||||
if (it.user_id.equals(SpUtil.getUserId().toString())) {
|
||||
mRoomInfoResp?.user_info?.pit_number = 9527
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//是否在麦上显示状态
|
||||
if (mRoomInfoResp?.user_info?.pit_number != 0) {
|
||||
maiStatus = false
|
||||
|
||||
Reference in New Issue
Block a user