| | |
| | | import org.greenrobot.eventbus.EventBus |
| | | |
| | | class SelectCityDetailAdapter: BaseRvAdapter<SitePointBean.DataBean.SitesBean>() { |
| | | var parentName = "" |
| | | override fun getLayoutResId(viewType: Int): Int { |
| | | return R.layout.item_select_city_detail |
| | | } |
| | |
| | | holder?.let { |
| | | it.itemView.tv_name.text = item!!.name |
| | | it.itemView.tv_name.clickDelay { |
| | | EventBus.getDefault().post(BaseEvent(BaseEvent.SELECT_POINT_SITE,item.name,item.id.toString())) |
| | | EventBus.getDefault().post(BaseEvent(BaseEvent.SELECT_POINT_SITE,item.name,item.id.toString(),parentName)) |
| | | } |
| | | } |
| | | } |