| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //
- // SignInfoCell.m
- // 千模
- //
- // Created by MUMEI on 2018/5/31.
- // Copyright © 2018年 MUMEI. All rights reserved.
- //
- #import "SignInfoCell.h"
- @implementation SignInfoCell
- - (void)awakeFromNib {
- [super awakeFromNib];
- self.phone.keyboardType = UIKeyboardTypeNumberPad;
- self.intNum=0;
- self.num.text = [NSString stringWithFormat:@"%d",self.intNum];
- // Initialization code
- }
- - (IBAction)jian:(id)sender {
- if (self.intNum>0) {
- self.intNum--;
- self.num.text = [NSString stringWithFormat:@"%d",self.intNum];
- }
- self.totoalPrice.text = [NSString stringWithFormat:@"%d元",[_model.meprice charValue]*self.intNum];
- }
- - (IBAction)jia:(id)sender {
- self.intNum++;
- self.num.text = [NSString stringWithFormat:@"%d",self.intNum];
- self.totoalPrice.text = [NSString stringWithFormat:@"%d元",[_model.meprice charValue]*self.intNum];
- }
- - (void)setModel:(ActivityModel *)model{
- _model = model;
- self.price.text = [NSString stringWithFormat:@"%d元/人",[model.meprice charValue]];
- self.captionLabel.text = model.caption;
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- }
- @end
|