Browse Source

1、图表页面传参

ProGo 4 years ago
parent
commit
79ae132ab6

+ 3 - 3
RMA/app/src/main/java/cn/muchinfo/rma/view/base/future/markets/MarketBaseModel.kt

@@ -174,10 +174,10 @@ class MarketBaseModel : BaseViewModel() {
             }
             }
 
 
             // 点击item
             // 点击item
-            holder.itemView.tag = list?.get(position)?.goodsid
+            holder.itemView.tag = list?.get(position)
             holder.itemView.setOnClickListener {
             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!!)
             }
             }
         }
         }