Commit ddfc3e36 authored by chengkun's avatar chengkun

多商品图片加载bug

parent a01649e9
......@@ -31,6 +31,7 @@ class OrderListAdapter : BaseQuickAdapter<OrderWebData, BaseViewHolder>(R.layout
}
private fun mapDataToHoder(data: OrderWebData, holder: BaseViewHolder) {
resetImageStatu(holder)
holder.itemView.setOnClickListener {
gotoMarketingDetail(data.marketing_id)
}
......@@ -93,4 +94,10 @@ class OrderListAdapter : BaseQuickAdapter<OrderWebData, BaseViewHolder>(R.layout
val pageUrl = XBirdPageConstants.FIGHT_ORDER_EVENT_DETAILS + "?marketing_id=${marketingId}"
XPageManager.push(XRouterPathConstants.COMMON_WEB_VIEW_ACTIVITY, hashMapOf(Pair(XBirdPageConstants.PAGE_URL, pageUrl)))
}
private fun resetImageStatu(holder: BaseViewHolder) {
holder.itemView.findViewById<LinearLayout>(R.id.ll_order_image1).visibility = View.VISIBLE
holder.itemView.findViewById<LinearLayout>(R.id.ll_order_image2).visibility = View.VISIBLE
holder.itemView.findViewById<LinearLayout>(R.id.ll_order_image3).visibility = View.VISIBLE
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment