feat: 开始组装 opt
This commit is contained in:
@@ -92,6 +92,8 @@ class IntExpAssembleStartActivity :
|
||||
)
|
||||
binding.rvWaybillList.layoutManager = LinearLayoutManager(this)
|
||||
binding.rvWaybillList.adapter = waybillAdapter
|
||||
// 添加点击监听器
|
||||
binding.rvWaybillList.addOnItemClickListener(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -117,6 +119,7 @@ class IntExpAssembleStartActivity :
|
||||
override fun onItemClick(position: Int, type: Int) {
|
||||
when (type) {
|
||||
0 -> viewModel.onPositionItemClick(position) // 组装位置点击
|
||||
1 -> viewModel.onWaybillItemClick(position) // 运单列表点击
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user