Commit f922a866 authored by IOS-张 博's avatar IOS-张 博

修改商品详情底部按钮文案展示

parent 4fac087d
......@@ -44,9 +44,15 @@ NS_ASSUME_NONNULL_BEGIN
/// 分享返现
@property (nonatomic, strong) NSString * shareEarnAmount;
/// 分享返现后台拼接字段
@property (nonatomic, strong) NSString * shareEarnAmountDesc;
/// 节省金额
@property (nonatomic, strong) NSString * earnAmount;
/// 节省金额后台拼接字段
@property (nonatomic, strong) NSString * earnAmountDesc;
/// 推广提升模型
@property (nonatomic, strong) QGGoodsPromoterTipsModel * promoterTips;
......
......@@ -153,7 +153,7 @@
- (void)setShareAmount:(NSString *)shareAmount orderAmount:(NSString *)orderAmount
{
if (![NSString isEmpty:shareAmount]) {
self.shareAmountLabel.text = [NSString stringWithFormat:@"(赚%@元)",shareAmount];
self.shareAmountLabel.text = shareAmount;
self.shareAmountLabel.hidden = NO;
[self.shareTitleLabel mas_remakeConstraints:^(MASConstraintMaker *make) {
......@@ -173,7 +173,7 @@
}
if (![NSString isEmpty:orderAmount]) {
self.orderAmountLabel.text = [NSString stringWithFormat:@"(省%@元)",orderAmount];
self.orderAmountLabel.text = orderAmount;
self.orderAmountLabel.hidden = NO;
[self.orderTitleLabel mas_remakeConstraints:^(MASConstraintMaker *make) {
......
......@@ -159,7 +159,7 @@
self.detailInfoModel = [QGMallGoodsDetailInfoModel yy_modelWithDictionary:responseObject[@"data"]];
[self.tableView reloadData];
self.bottomView.hidden = NO;
[self.bottomView setShareAmount:self.detailInfoModel.goodsInfo.shareEarnAmount orderAmount:self.detailInfoModel.goodsInfo.earnAmount];
[self.bottomView setShareAmount:self.detailInfoModel.goodsInfo.shareEarnAmountDesc orderAmount:self.detailInfoModel.goodsInfo.earnAmountDesc];
//数据埋点 每次打开只记录一次
QGAppCoreModelClickEvent * event = [QGAppCoreModelClickEvent acmcEventWithPage:@"商品详情页" path:@"商品详情" name:@"商品详情打开" detail_name:self.detailInfoModel.goodsInfo.goodsId acmc_model_other:self.detailInfoModel.goodsInfo.goodsName];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment