2
This commit is contained in:
@@ -33,11 +33,15 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@property (nonatomic, copy, nullable) NSString *currency;
|
||||
/// 文案描述
|
||||
@property (nonatomic, copy, nullable) NSString *productDescription;
|
||||
/// 等级:1=VIP, 2=SVIP
|
||||
@property (nonatomic, assign) NSInteger level;
|
||||
|
||||
/// 展示金币(自动拼接单位)
|
||||
- (NSString *)coinsDisplayText;
|
||||
/// 展示价格,保留两位小数
|
||||
- (NSString *)priceDisplayText;
|
||||
/// 展示价格数字(不含货币符号)
|
||||
- (NSString *)priceNumberText;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -35,4 +35,8 @@
|
||||
return [NSString stringWithFormat:@"%.2f", priceValue];
|
||||
}
|
||||
|
||||
- (NSString *)priceNumberText {
|
||||
return [NSString stringWithFormat:@"%.2f", self.price];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user