| | |
| | | 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 |
| | | } |