|
@@ -38,6 +38,7 @@ class PersonDataDFragment : BaseXDFragment<DialogPersonDataBinding>() {
|
|
var roomId:String = ""
|
|
var roomId:String = ""
|
|
var isAnchor = false //是否是主播点击了资料卡
|
|
var isAnchor = false //是否是主播点击了资料卡
|
|
var isAdmin = false
|
|
var isAdmin = false
|
|
|
|
+ var isMessage = false
|
|
private var inRoom = false
|
|
private var inRoom = false
|
|
private var isForbid = 0 //0没有被禁言 1已被禁言
|
|
private var isForbid = 0 //0没有被禁言 1已被禁言
|
|
var openGiftDialog:((nickName:String,userId:String)->Unit)? = null
|
|
var openGiftDialog:((nickName:String,userId:String)->Unit)? = null
|
|
@@ -45,13 +46,14 @@ class PersonDataDFragment : BaseXDFragment<DialogPersonDataBinding>() {
|
|
var sendMsgInRoom:((nickName:String)->Unit)? = null
|
|
var sendMsgInRoom:((nickName:String)->Unit)? = null
|
|
|
|
|
|
companion object{
|
|
companion object{
|
|
- fun newInstance(uid:String,isAnchor:Boolean=false,inRoom:Boolean=false,roomId:String=""): PersonDataDFragment {
|
|
|
|
|
|
+ fun newInstance(uid:String,isAnchor:Boolean=false,inRoom:Boolean=false,roomId:String="",isMessage:Boolean=false): PersonDataDFragment {
|
|
val dialog = PersonDataDFragment()
|
|
val dialog = PersonDataDFragment()
|
|
val bundle = Bundle()
|
|
val bundle = Bundle()
|
|
bundle.putString("uid",uid)
|
|
bundle.putString("uid",uid)
|
|
bundle.putBoolean("inRoom",inRoom)
|
|
bundle.putBoolean("inRoom",inRoom)
|
|
bundle.putBoolean("isAnchor",isAnchor)
|
|
bundle.putBoolean("isAnchor",isAnchor)
|
|
bundle.putString("roomId",roomId)
|
|
bundle.putString("roomId",roomId)
|
|
|
|
+ bundle.putBoolean("isMessage",isMessage)
|
|
dialog.arguments = bundle
|
|
dialog.arguments = bundle
|
|
return dialog
|
|
return dialog
|
|
}
|
|
}
|
|
@@ -64,13 +66,16 @@ class PersonDataDFragment : BaseXDFragment<DialogPersonDataBinding>() {
|
|
inRoom = it.getBoolean("inRoom")
|
|
inRoom = it.getBoolean("inRoom")
|
|
isAnchor = it.getBoolean("isAnchor")
|
|
isAnchor = it.getBoolean("isAnchor")
|
|
roomId = it.getString("roomId","")
|
|
roomId = it.getString("roomId","")
|
|
|
|
+ isMessage = it.getBoolean("isMessage")
|
|
if (!TextUtils.isEmpty(uid)){
|
|
if (!TextUtils.isEmpty(uid)){
|
|
userVm.getOtherUserInfo(uid,roomId)
|
|
userVm.getOtherUserInfo(uid,roomId)
|
|
}
|
|
}
|
|
|
|
|
|
UserInfo.getUserInfo()?.let {
|
|
UserInfo.getUserInfo()?.let {
|
|
if (it.id == uid){
|
|
if (it.id == uid){
|
|
-// binding.ivGift.visibility = View.GONE
|
|
|
|
|
|
+ if (isMessage){
|
|
|
|
+ binding.ivGift.visibility = View.GONE
|
|
|
|
+ }
|
|
binding.tvAt.visibility = View.GONE
|
|
binding.tvAt.visibility = View.GONE
|
|
binding.llChat.visibility = View.GONE
|
|
binding.llChat.visibility = View.GONE
|
|
binding.llToFollow.visibility = View.GONE
|
|
binding.llToFollow.visibility = View.GONE
|