无故事王国
2024-04-12 5ff885af9af801927e688163171b26336ae6bc25
WanPai/Root/Welfare/VC/WelfareVC.swift
@@ -157,7 +157,19 @@
                        let model = benefitHomeModel!.commodities[indexPath.row]
                        let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "_WelfareCoinCCell", for: indexPath) as! WelfareCoinCCell
                        cell.label_name.text = model.commodityName
                        cell.label_price.text = model.commodityPrice.currency()
                        switch model.redemptionMethod {
                                    case 1: //积分
                                                cell.label_price.text = "\(model.integral)积分"
                                    case 2: //现金+积分
                                                cell.label_price.text = "\(model.integral)积分+\(model.commodityPrice.currency())"
                                    case 3://现金
                                                cell.label_price.text = "\(model.commodityPrice.currency())"
                                    default:
                                                cell.label_price.text = ""
                        }
                        cell.img_cover.sd_setImage(with: URL(string: model.commodityImg), placeholderImage: nil)
                        return cell
            }