Browse Source

修改分类标签利润bug

jikaipeng 5 years ago
parent
commit
6c82085073

BIN
KuDianProject.xcworkspace/xcuserdata/kaipeng.xcuserdatad/UserInterfaceState.xcuserstate


+ 1 - 0
KuDianProject/LiveData/Controller/KDPLiveLeftViewController.m

66
     tipLabel.textColor = [UIColor colorWithHex:0xFF7075];
66
     tipLabel.textColor = [UIColor colorWithHex:0xFF7075];
67
     tipLabel.layer.cornerRadius = 11;
67
     tipLabel.layer.cornerRadius = 11;
68
     tipLabel.layer.masksToBounds = YES;
68
     tipLabel.layer.masksToBounds = YES;
69
+    tipLabel.textAlignment = NSTextAlignmentCenter;
69
     tipLabel.text = @"目前只统计直播期间该商品订单数哦";
70
     tipLabel.text = @"目前只统计直播期间该商品订单数哦";
70
     tipLabel.centerX = self.view.centerX;
71
     tipLabel.centerX = self.view.centerX;
71
     [self.view addSubview:tipLabel];
72
     [self.view addSubview:tipLabel];

+ 2 - 1
KuDianProject/SupplyGood/View/KDPSupplyGoodCollectionViewCell.m

84
     self.profitLabel = [[UILabel alloc] init];
84
     self.profitLabel = [[UILabel alloc] init];
85
     self.profitLabel.textColor = [UIColor whiteColor];
85
     self.profitLabel.textColor = [UIColor whiteColor];
86
     self.profitLabel.font = [UIFont fontWithName:@"PingFangSC-Medium" size: 16];
86
     self.profitLabel.font = [UIFont fontWithName:@"PingFangSC-Medium" size: 16];
87
-    self.profitLabel.textAlignment = NSTextAlignmentCenter;
87
+    self.profitLabel.adjustsFontSizeToFitWidth = YES;
88
+    self.profitLabel.textAlignment = NSTextAlignmentLeft;
88
     [self.contenAView addSubview:self.profitLabel];
89
     [self.contenAView addSubview:self.profitLabel];
89
 }
90
 }
90
 
91