ShoppingTableViewCell.h 1.92 KB
Newer Older
曹云霄's avatar
曹云霄 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
//
//  ShoppingTableViewCell.h
//  Lighting
//
//  Created by 曹云霄 on 16/4/29.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ShopcarModel.h"


@protocol ChangeGoodsNumberDelegate <NSObject>

@optional
/**
 *  当前商品数量、成交价     ,通过返回参数判断是否能修改
 */
- (void)changeGoodsNumber:(NSInteger)goodsNumber withcostPrice:(CGFloat)costprice withcellindex:(NSInteger)cellindex returnValue:(void(^)(id value))result;


@end






@interface ShoppingTableViewCell : UITableViewCell<UITextFieldDelegate>

/**
 *  选中
 */
@property (weak, nonatomic) IBOutlet UIButton *selectedButton;

/**
 *  商品图片
 */
@property (weak, nonatomic) IBOutlet UIImageView *goodsImageView;

/**
 *  商品信息
 */
@property (weak, nonatomic) IBOutlet UILabel *goodsInformationLabe;

/**
 *  吊牌价格
 */
@property (weak, nonatomic) IBOutlet UILabel *tagsPriceLabe;

/**
 *  成交价格
 */
@property (weak, nonatomic) IBOutlet UITextField *clinchTextfield;


/**
 *  商品数量
 */
@property (weak, nonatomic) IBOutlet UILabel *goodsNumbersLabe;


/**
 *  产品金额
 */
@property (weak, nonatomic) IBOutlet UILabel *productPriceLabe;



/**
 *  数据源model
 */
@property (nonatomic,strong) ShopcarModel *model;


/**
 *  传入cel下标
 */
@property (nonatomic,assign) NSInteger cellindex;


/**
 *  传回选中状态
 */
@property (nonatomic,copy) void(^returnCellblock)(NSInteger index);



/**
 *  成交价背景View
 */
@property (weak, nonatomic) IBOutlet UIView *ClinchPriceBackView;

/**
 *  商品数量
 */
@property (nonatomic,assign) id<ChangeGoodsNumberDelegate>delegate;

/**
 *  提示框回调
 */
@property (nonatomic,copy) void(^promptStringBlock)(NSString *string);

/**
 *  商品规格
 */
@property (weak, nonatomic) IBOutlet UILabel *specifications;

/**
 *  商品代码
 */
@property (weak, nonatomic) IBOutlet UILabel *goodsCode;

@end