package com.rv.home.rv.module.ui.main.home.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.rv.home.R;
import com.rv.home.R2;
import com.rv.home.rv.module.ui.main.home.bean.OrderPriceDetailBean;

/**
 * Created :Auser
 * Date: 2019/5/31.
 * Desc:订单价格明细
 */

public class OrderPriceDetailAdapter extends BaseQuickAdapter<OrderPriceDetailBean.ChildrenBean,BaseViewHolder> {
    public OrderPriceDetailAdapter() {
        super(R.layout.rv_item_order_price_detail);
    }

    @Override
    protected void convert(BaseViewHolder helper, OrderPriceDetailBean.ChildrenBean item) {
        helper.setText(R.id.tv_name,item.getKey());
        helper.setText(R.id.tv_attr,item.getDetail());
        helper.setText(R.id.tv_price,item.getVal());

    }
}
