|
@@ -73,7 +73,7 @@
|
|
|
if([code isEqualToString:@"amasty_extrafee"]){ //subLostV
|
|
|
|
|
|
if ([dic[@"value"] qmui_CGFloatValue] > 0) {
|
|
|
- NSString *tips = [NSString stringWithFormat:@"%@%@%@",dic[@"title"],model.currency_symbol,dic[@"value"]];
|
|
|
+ NSString *tips = [NSString stringWithFormat:@"%@%@%.2f",dic[@"title"],model.currency_symbol, [dic[@"value"] floatValue]];
|
|
|
[self.subLostV xxx_configTips:tips isLost:YES];
|
|
|
} else {
|
|
|
[self.subLostV xxx_configTips:@"Extra Fee (insurance for lost)" isLost:NO];
|
|
@@ -92,7 +92,7 @@
|
|
|
priceStr = [NSString stringWithFormat:@"-%@%.2f",model.currency_symbol,temF];
|
|
|
}
|
|
|
} else{
|
|
|
- priceStr = [NSString stringWithFormat:@"%@%@",model.currency_symbol,dic[@"value"]];
|
|
|
+ priceStr = [NSString stringWithFormat:@"%@%.2f",model.currency_symbol, [dic[@"value"] floatValue]];
|
|
|
}
|
|
|
SubtotalCellItemV *itemV = [[SubtotalCellItemV alloc] init];
|
|
|
[self.stackSubTopV addArrangedSubview:itemV];
|
|
@@ -176,18 +176,22 @@
|
|
|
- (void)tt_setupViews{
|
|
|
[self addSubview:self.tipsLab];
|
|
|
[self addSubview:self.priceLab];
|
|
|
- [self.tipsLab mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
- make.left.mas_equalTo(0);
|
|
|
+
|
|
|
+ [self.priceLab mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
+// make.left.equalTo(self.tipsLab.mas_right).offset(10);
|
|
|
+ make.right.mas_equalTo(0);
|
|
|
make.top.mas_equalTo(0);
|
|
|
make.height.mas_equalTo(30);
|
|
|
- make.right.mas_equalTo(-100);
|
|
|
+ make.width.mas_lessThanOrEqualTo(150);
|
|
|
}];
|
|
|
- [self.priceLab mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
- make.left.equalTo(self.tipsLab.mas_right).offset(10);
|
|
|
- make.right.mas_equalTo(0);
|
|
|
+
|
|
|
+ [self.tipsLab mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
+ make.left.mas_equalTo(0);
|
|
|
make.top.mas_equalTo(0);
|
|
|
make.height.mas_equalTo(30);
|
|
|
+ make.right.mas_equalTo(self.priceLab.mas_left).offset(-4);
|
|
|
}];
|
|
|
+
|
|
|
}
|
|
|
-(void)xxx_configTips:(NSString *)tips price:(NSString *)priceStr{
|
|
|
self.tipsLab.text = tips;
|
|
@@ -206,6 +210,7 @@
|
|
|
if(!_priceLab){
|
|
|
_priceLab = [[UILabel alloc]init];
|
|
|
_priceLab.textColor = [UIColor colorWithHexString:@"#0B0B0B"];
|
|
|
+ _priceLab.adjustsFontSizeToFitWidth = YES;
|
|
|
_priceLab.font = [UIFont fontWithName:Rob_Regular size:14];
|
|
|
_priceLab.textAlignment = NSTextAlignmentRight;
|
|
|
}
|