ShoppingTableViewCell.h 1.82 KB
Newer Older
曹云霄's avatar
曹云霄 committed
1 2 3 4 5 6 7 8 9
//
//  ShoppingTableViewCell.h
//  Lighting
//
//  Created by 曹云霄 on 16/4/29.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>
勾芒's avatar
勾芒 committed
10
#import "ShopcarModel.h"
勾芒's avatar
勾芒 committed
11 12 13 14 15 16 17


@protocol ChangeGoodsNumberDelegate <NSObject>

/**
 *  当前商品数量、成交价
 */
勾芒's avatar
勾芒 committed
18
- (void)ChangeGoodsNumber:(int)goodsNumber WithcostPrice:(int)costprice Withcellindex:(NSInteger)cellindex;
勾芒's avatar
勾芒 committed
19 20 21 22 23 24 25 26 27


@end






勾芒's avatar
勾芒 committed
28
@interface ShoppingTableViewCell : UITableViewCell<UITextFieldDelegate>
曹云霄's avatar
曹云霄 committed
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

/**
 *  选中
 */
@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;



勾芒's avatar
勾芒 committed
69 70 71 72
/**
 *  数据源model
 */
@property (nonatomic,strong) ShopcarModel *model;
曹云霄's avatar
曹云霄 committed
73 74


勾芒's avatar
勾芒 committed
75 76 77 78
/**
 *  传入cel下标
 */
@property (nonatomic,assign) NSInteger cellindex;
曹云霄's avatar
曹云霄 committed
79 80


勾芒's avatar
勾芒 committed
81 82 83 84
/**
 *  传回选中状态
 */
@property (nonatomic,copy) void(^returnCellblock)(NSInteger index);
曹云霄's avatar
曹云霄 committed
85 86 87



勾芒's avatar
勾芒 committed
88 89 90 91
/**
 *  成交价背景View
 */
@property (weak, nonatomic) IBOutlet UIView *ClinchPriceBackView;
曹云霄's avatar
曹云霄 committed
92

勾芒's avatar
勾芒 committed
93 94 95 96
/**
 *  商品数量
 */
@property (nonatomic,assign) id<ChangeGoodsNumberDelegate>delegate;
曹云霄's avatar
曹云霄 committed
97

勾芒's avatar
勾芒 committed
98 99 100 101
/**
 *  提示框回调
 */
@property (nonatomic,copy) void(^promptStringBlock)(NSString *string);
曹云霄's avatar
曹云霄 committed
102

勾芒's avatar
勾芒 committed
103 104 105 106 107
/**
 *  商品规格
 */
@property (weak, nonatomic) IBOutlet UILabel *specifications;

polo2013's avatar
polo2013 committed
108 109 110 111
/**
 *  商品代码
 */
@property (weak, nonatomic) IBOutlet UILabel *goodsCode;
勾芒's avatar
勾芒 committed
112

曹云霄's avatar
曹云霄 committed
113
@end