|
|
@@ -174,10 +174,10 @@ class MarketBaseModel : BaseViewModel() {
|
|
|
}
|
|
|
|
|
|
// 点击item
|
|
|
- holder.itemView.tag = list?.get(position)?.goodsid
|
|
|
+ holder.itemView.tag = list?.get(position)
|
|
|
holder.itemView.setOnClickListener {
|
|
|
- val goodsId: Int = it.tag as Int
|
|
|
- ChartActivity.start(list?.get(position)?.goodscode, list?.get(position)?.outgoodscode, context!!)
|
|
|
+ val goodsInfo: GoodsInfo = it.tag as GoodsInfo
|
|
|
+ ChartActivity.start(goodsInfo.goodscode, goodsInfo.outgoodscode, context!!)
|
|
|
}
|
|
|
}
|
|
|
|