ShoppingTableViewCell.h 1.92 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


@protocol ChangeGoodsNumberDelegate <NSObject>

曹云霄's avatar
曹云霄 committed
15
@optional
勾芒's avatar
勾芒 committed
16
/**
曹云霄's avatar
曹云霄 committed
17
 *  当前商品数量、成交价     ,通过返回参数判断是否能修改
勾芒's avatar
勾芒 committed
18
 */
19
- (void)changeGoodsNumber:(NSInteger)goodsNumber WithcostPrice:(CGFloat)costprice Withcellindex:(NSInteger)cellindex returnValue:(void(^)(id value))result;
勾芒's avatar
勾芒 committed
20 21 22 23 24 25 26 27 28


@end






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

/**
 *  选中
 */
@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
70 71 72 73
/**
 *  数据源model
 */
@property (nonatomic,strong) ShopcarModel *model;
曹云霄's avatar
曹云霄 committed
74 75


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


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



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

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

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

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

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

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