YOUPAILCVideoChargeCell.m 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  1. //
  2. // YOUPAILCVideoChargeCell.m
  3. // LiveChat
  4. //
  5. // Created by 张灿 on 2018/10/11.
  6. // Copyright © 2018年 caicai. All rights reserved.
  7. //
  8. #import "YOUPAILCVideoChargeCell.h"
  9. @interface YOUPAILCVideoChargeCell()
  10. /* youpaipbgV */
  11. @property (weak, nonatomic) UIView *youpaipbgV;
  12. @property (nonatomic,weak)UILabel *youpaiptimerL;
  13. @property (nonatomic,weak)UILabel *youpaipgiftL;
  14. @property (nonatomic,weak)UILabel *youpaipgiftL1;
  15. @property (nonatomic,weak)UILabel *youpaipdiscountL;
  16. @property (nonatomic,weak)UILabel *youpaipguardL;
  17. @property (nonatomic,weak)UILabel *youpaiptimerMoneyL;
  18. /* 视频优惠 */
  19. @property (weak, nonatomic) UILabel *youpaipyouhuiquanLabel;
  20. //贵族优惠
  21. @property (weak, nonatomic) UILabel *youpaipyouNobleLabel;
  22. @property (weak, nonatomic) UILabel *payLabel;
  23. @property(nonatomic,strong)UILabel *youpaiIncomeL;
  24. @property(nonatomic,strong)UILabel *youpaipguardRight;
  25. @property(nonatomic,strong)UILabel *youpaipgiftLeft;
  26. @property(nonatomic,strong)UILabel *youpaipgiftRight;
  27. @property(nonatomic,strong)UIView *youpaipTwoBgView;
  28. @property(nonatomic,strong)UIView *threeBgView;
  29. @end
  30. @implementation YOUPAILCVideoChargeCell
  31. - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
  32. if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
  33. self.selectionStyle = UITableViewCellSelectionStyleNone;
  34. self.backgroundColor = [UIColor clearColor];
  35. [self youpaifinitUI];
  36. }
  37. return self;
  38. }
  39. - (void)youpaifinitUI{
  40. UIView *youpaipbgV = [[UIView alloc] init];
  41. self.youpaipbgV = youpaipbgV;
  42. youpaipbgV.backgroundColor = HexColorFromRGBA(0x000000, 0.1);
  43. youpaipbgV.layer.cornerRadius = 8.0f;
  44. youpaipbgV.clipsToBounds = YES;
  45. [self.contentView addSubview:youpaipbgV];
  46. [youpaipbgV mas_makeConstraints:^(MASConstraintMaker *make) {
  47. make.left.offset(14.0f);
  48. make.right.offset(-14.0f);
  49. make.top.offset(0);
  50. make.height.offset(282);
  51. }];
  52. UILabel *payLabel = [UILabel new];
  53. self.payLabel = payLabel;
  54. [youpaipbgV addSubview:payLabel];
  55. [payLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  56. make.centerX.mas_equalTo(0);
  57. make.top.mas_equalTo(12);
  58. }];
  59. payLabel.textColor = HexColorFromRGB(0xFED64B);
  60. payLabel.font = [UIFont systemFontOfSize:13];
  61. //第二层View
  62. UIView *youpaipTwoBgView = [[UIView alloc] init];
  63. self.youpaipTwoBgView = youpaipTwoBgView;
  64. youpaipTwoBgView.backgroundColor = HexColorFromRGBA(0x000000, 0.08);
  65. youpaipTwoBgView.layer.cornerRadius = 8.0f;
  66. youpaipTwoBgView.clipsToBounds = YES;
  67. [youpaipbgV addSubview:youpaipTwoBgView];
  68. [youpaipTwoBgView mas_makeConstraints:^(MASConstraintMaker *make) {
  69. make.left.offset(12.0f);
  70. make.right.offset(-13.0f);
  71. make.top.offset(40);
  72. make.height.offset(148.0f);
  73. }];
  74. //通话时长
  75. UILabel *youpaiptimerL = [[UILabel alloc] init];
  76. youpaiptimerL.font = LCFont14;
  77. youpaiptimerL.textColor = [UIColor whiteColor];
  78. [youpaipTwoBgView addSubview:youpaiptimerL];
  79. self.youpaiptimerL = youpaiptimerL;
  80. [youpaiptimerL mas_makeConstraints:^(MASConstraintMaker *make) {
  81. make.left.offset(10.0f);
  82. make.top.offset(10);
  83. make.height.offset(17.0f);
  84. }];
  85. //通话时长价值
  86. UILabel *youpaiptimerMoneyL = [[UILabel alloc] init];
  87. youpaiptimerMoneyL.font = LCFont12;
  88. youpaiptimerMoneyL.textColor = HexColorFromRGB(0xffffff);
  89. [youpaipTwoBgView addSubview:youpaiptimerMoneyL];
  90. self.youpaiptimerMoneyL = youpaiptimerMoneyL;
  91. [youpaiptimerMoneyL mas_makeConstraints:^(MASConstraintMaker *make) {
  92. make.right.mas_equalTo(-10.0f);
  93. make.top.equalTo(youpaiptimerL);
  94. }];
  95. //女神减免时长
  96. UILabel *youpaipdiscountL = [[UILabel alloc] init];
  97. youpaipdiscountL.font = [UIFont systemFontOfSize:12];
  98. youpaipdiscountL.textColor = [UIColor whiteColor];
  99. [youpaipTwoBgView addSubview:youpaipdiscountL];
  100. self.youpaipdiscountL = youpaipdiscountL;
  101. [youpaipdiscountL mas_makeConstraints:^(MASConstraintMaker *make) {
  102. make.left.mas_equalTo(youpaiptimerL).offset(70);
  103. make.top.mas_equalTo(youpaiptimerL.mas_bottom).offset(4.0f);
  104. make.height.mas_equalTo(14.0f);
  105. }];
  106. //贵族优惠|优惠券
  107. UILabel *youpaipyouhuiquanLabel = [UILabel new];
  108. self.youpaipyouhuiquanLabel = youpaipyouhuiquanLabel;
  109. youpaipyouhuiquanLabel.font = LCFont12;
  110. youpaipyouhuiquanLabel.textColor = [UIColor whiteColor];
  111. [youpaipTwoBgView addSubview:youpaipyouhuiquanLabel];
  112. [youpaipyouhuiquanLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  113. make.left.mas_equalTo(youpaipdiscountL);
  114. make.top.mas_equalTo(youpaipdiscountL.mas_bottom).offset(2.0f);
  115. make.height.offset(14.0f);
  116. }];
  117. //贵族优惠
  118. UILabel *youpaipyouNobleLabel = [UILabel new];
  119. self.youpaipyouNobleLabel = youpaipyouNobleLabel;
  120. youpaipyouNobleLabel.font = LCFont12;
  121. youpaipyouNobleLabel.textColor = [UIColor whiteColor];
  122. [youpaipTwoBgView addSubview:youpaipyouNobleLabel];
  123. [youpaipyouNobleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  124. make.left.mas_equalTo(youpaipyouhuiquanLabel);
  125. make.top.mas_equalTo(youpaipyouhuiquanLabel.mas_bottom).offset(2.0f);
  126. make.height.mas_equalTo(14.0f);
  127. }];
  128. //送出礼物|得到礼物
  129. UILabel *youpaipgiftL = [[UILabel alloc] init];
  130. youpaipgiftL.font = LCFont14;
  131. youpaipgiftL.textColor = [UIColor whiteColor];
  132. [youpaipTwoBgView addSubview:youpaipgiftL];
  133. self.youpaipgiftL = youpaipgiftL;
  134. [youpaipgiftL mas_makeConstraints:^(MASConstraintMaker *make) {
  135. make.left.mas_equalTo(10.0f);
  136. make.top.mas_equalTo(96);
  137. make.height.offset(17.0f);
  138. }];
  139. UILabel *youpaipgiftL1 = [[UILabel alloc] init];
  140. youpaipgiftL1.font = LCFont14;
  141. youpaipgiftL1.textColor = [UIColor whiteColor];
  142. [youpaipTwoBgView addSubview:youpaipgiftL1];
  143. self.youpaipgiftL1 = youpaipgiftL1;
  144. [youpaipgiftL1 mas_makeConstraints:^(MASConstraintMaker *make) {
  145. make.right.offset(-10.0f);
  146. make.top.equalTo(youpaipgiftL);
  147. make.height.offset(17.0f);
  148. }];
  149. //赠送|收到守护
  150. UILabel *youpaipguardL = [[UILabel alloc] init];
  151. youpaipguardL.font = LCFont14;
  152. youpaipguardL.textColor = [UIColor whiteColor];
  153. [youpaipTwoBgView addSubview:youpaipguardL];
  154. self.youpaipguardL = youpaipguardL;
  155. [youpaipguardL mas_makeConstraints:^(MASConstraintMaker *make) {
  156. make.left.mas_equalTo(10.0f);
  157. make.top.equalTo(youpaipgiftL.mas_bottom).offset(8.0f);
  158. make.height.offset(17.0f);
  159. }];
  160. //赠送|收到守护价格
  161. UILabel *youpaipguardRight = [[UILabel alloc] init];
  162. youpaipguardRight.font = LCFont14;
  163. youpaipguardRight.textColor = [UIColor whiteColor];
  164. [youpaipTwoBgView addSubview:youpaipguardRight];
  165. self.youpaipguardRight = youpaipguardRight;
  166. [youpaipguardRight mas_makeConstraints:^(MASConstraintMaker *make) {
  167. make.right.mas_equalTo(-10.0f);
  168. make.top.equalTo(youpaipguardL);
  169. make.height.offset(17.0f);
  170. }];
  171. //本次收入|支出多少
  172. UILabel *youpaiIncomeL = [[UILabel alloc] init];
  173. youpaiIncomeL.font = LCFont14;
  174. youpaiIncomeL.textColor = HexColorFromRGB(0xFED64B);
  175. [youpaipbgV addSubview:youpaiIncomeL];
  176. self.youpaiIncomeL = youpaiIncomeL;
  177. [youpaiIncomeL mas_makeConstraints:^(MASConstraintMaker *make) {
  178. make.centerX.mas_equalTo(0);
  179. make.top.mas_equalTo(youpaipTwoBgView.mas_bottom).offset(16.0f);
  180. make.height.offset(17.0f);
  181. }];
  182. //收到礼物|送出礼物
  183. UIView *threeBgView = [UIView new];
  184. self.threeBgView = threeBgView;
  185. [youpaipbgV addSubview:threeBgView];
  186. [threeBgView mas_makeConstraints:^(MASConstraintMaker *make) {
  187. make.top.mas_equalTo(youpaiIncomeL.mas_bottom).offset(10);
  188. make.left.mas_equalTo(12);
  189. make.right.mas_equalTo(-12);
  190. make.height.mas_equalTo(38);
  191. }];
  192. threeBgView.layer.cornerRadius = 8;
  193. threeBgView.clipsToBounds = YES;
  194. threeBgView.backgroundColor = HexColorFromRGBA(0xffffff, 0.08);
  195. UILabel *youpaipgiftLeft = [[UILabel alloc] init];
  196. self.youpaipgiftLeft = youpaipgiftLeft;
  197. youpaipgiftLeft.font = LCFont14;
  198. youpaipgiftLeft.textColor = HexColorFromRGB(0xffffff);
  199. [threeBgView addSubview:youpaipgiftLeft];
  200. [youpaipgiftLeft mas_makeConstraints:^(MASConstraintMaker *make) {
  201. make.left.mas_equalTo(10.0f);
  202. make.centerY.equalTo(0);
  203. }];
  204. UILabel *youpaipgiftRight = [[UILabel alloc] init];
  205. self.youpaipgiftRight = youpaipgiftRight;
  206. youpaipgiftRight.font = LCFont14;
  207. youpaipgiftRight.textColor = HexColorFromRGB(0xffffff);
  208. [threeBgView addSubview:youpaipgiftRight];
  209. [youpaipgiftRight mas_makeConstraints:^(MASConstraintMaker *make) {
  210. make.right.mas_equalTo(-10.0f);
  211. make.centerY.equalTo(0);
  212. }];
  213. }
  214. - (void)setYoupaipfinishModel:(YOUPAILCVideoFinishModel *)youpaipfinishModel{
  215. _youpaipfinishModel = youpaipfinishModel;
  216. self.youpaipdiscountL.hidden = YES;
  217. self.youpaipyouhuiquanLabel.hidden = YES;
  218. self.youpaipyouNobleLabel.hidden = YES;
  219. NSMutableArray *arr = [NSMutableArray new];
  220. if (youpaipfinishModel) {
  221. if (youpaipfinishModel.youpaipDes3.length>0) {
  222. [arr addObject:youpaipfinishModel.youpaipDes3];
  223. }
  224. if (youpaipfinishModel.youpaipDes2.length>0) {
  225. [arr addObject:youpaipfinishModel.youpaipDes2];
  226. }
  227. if (youpaipfinishModel.youpaipDes1.length>0) {
  228. [arr addObject:youpaipfinishModel.youpaipDes1];
  229. }
  230. }
  231. CGFloat height = 148-60+arr.count*20;
  232. [self.youpaipTwoBgView updateConstraints:^(MASConstraintMaker *make) {
  233. make.height.offset(height);
  234. }];
  235. [self.youpaipgiftL updateConstraints:^(MASConstraintMaker *make) {
  236. make.top.mas_equalTo(arr.count*20+36);
  237. }];
  238. UIView *frontV = nil;
  239. if (youpaipfinishModel.youpaipDes3.length !=0) {
  240. self.youpaipdiscountL.hidden = NO;
  241. self.youpaipdiscountL.text = youpaipfinishModel.youpaipDes3;
  242. [self.youpaipdiscountL mas_remakeConstraints:^(MASConstraintMaker *make) {
  243. if (frontV == nil) {
  244. make.top.mas_equalTo(self.youpaiptimerL.mas_bottom).offset(4.0f);
  245. }else{
  246. make.top.equalTo(frontV.mas_bottom).offset(4.0f);
  247. }
  248. make.left.mas_equalTo(self.youpaiptimerL).offset(70);
  249. make.height.mas_equalTo(14.0f);
  250. }];
  251. frontV = self.youpaipdiscountL;
  252. }
  253. if (youpaipfinishModel.youpaipDes1.length !=0) {
  254. self.youpaipyouhuiquanLabel.hidden = NO;
  255. self.youpaipyouhuiquanLabel.text =youpaipfinishModel.youpaipDes1;
  256. [self.youpaipyouhuiquanLabel mas_remakeConstraints:^(MASConstraintMaker *make) {
  257. if (frontV == nil) {
  258. make.top.mas_equalTo(self.youpaiptimerL.mas_bottom).offset(4.0f);
  259. }else{
  260. make.top.equalTo(frontV.mas_bottom).offset(2.0f);
  261. }
  262. make.left.mas_equalTo(self.youpaiptimerL).offset(70);
  263. make.height.mas_equalTo(14.0f);
  264. }];
  265. frontV = self.youpaipyouhuiquanLabel;
  266. }
  267. if (youpaipfinishModel.youpaipDes2.length !=0) {
  268. self.youpaipyouNobleLabel.hidden = NO;
  269. self.youpaipyouNobleLabel.text = youpaipfinishModel.youpaipDes2;
  270. [self.youpaipyouNobleLabel mas_remakeConstraints:^(MASConstraintMaker *make) {
  271. if (frontV == nil) {
  272. make.top.mas_equalTo(self.youpaiptimerL.mas_bottom).offset(4.0f);
  273. }else{
  274. make.top.equalTo(frontV.mas_bottom).offset(2.0f);
  275. }
  276. make.left.mas_equalTo(self.youpaiptimerL).offset(70);
  277. make.height.mas_equalTo(14.0f);
  278. }];
  279. frontV = self.youpaipyouNobleLabel;
  280. }
  281. if ([[LCSaveModel getUserModel].youpaipuserinfo.youpaipuser_id isEqualToString:youpaipfinishModel.youpaipfrom_uid]) {
  282. self.payLabel.text = [NSString stringWithFormat:@"本次支出:%@",youpaipfinishModel.youpaiptotal_paynew?youpaipfinishModel.youpaiptotal_paynew:@""];
  283. self.youpaiptimerMoneyL.text = [NSString stringWithFormat:@"%@",youpaipfinishModel.youpaippay_moneynew];
  284. self.youpaipgiftL.text = [NSString stringWithFormat:@"送出礼物:"];
  285. self.youpaipgiftL1.text =[NSString stringWithFormat:@"%@",youpaipfinishModel.youpaipgift_moneynew?youpaipfinishModel.youpaipgift_moneynew:@""];
  286. self.youpaipgiftLeft.text = @"收到礼物";
  287. self.youpaipgiftRight.text = youpaipfinishModel.youpaipgift_anchor_pricenew?youpaipfinishModel.youpaipgift_anchor_pricenew:@"";
  288. self.youpaipguardL.text = [NSString stringWithFormat:@"送出守护符:%@个",@(youpaipfinishModel.youpaipguard_numnew)];
  289. self.youpaipguardRight.text = [NSString stringWithFormat:@"%@",youpaipfinishModel.youpaipguard_pricenew?youpaipfinishModel.youpaipguard_pricenew:@""];
  290. self.youpaiIncomeL.text = [NSString stringWithFormat:@"本次收入:%@",youpaipfinishModel.youpaipgift_anchor_pricenew ?youpaipfinishModel.youpaipgift_anchor_pricenew:@""];
  291. // if ([youpaipfinishModel.youpaippreference_type isEqualToString:@"coupon"]) {//是否有优惠券
  292. //// [self.youpaipbgV mas_updateConstraints:^(MASConstraintMaker *make) {
  293. //// make.height.offset(170.0f+23);
  294. //// }];
  295. // self.youpaipyouhuiquanLabel.text = [NSString stringWithFormat:@"视频优惠: %@钻石/分钟",youpaipfinishModel.youpaipdes];
  296. // self.youpaipyouhuiquanMoneyL.text = [NSString stringWithFormat:@"+%@钻石",youpaipfinishModel.youpaipdiscount_amount];
  297. //
  298. // }else if([youpaipfinishModel.youpaippreference_type isEqualToString:@"noble"]){//贵族优惠
  299. //// [self.youpaipbgV mas_updateConstraints:^(MASConstraintMaker *make) {
  300. //// make.height.offset(170.0f+23);
  301. //// }];
  302. // self.youpaipyouhuiquanLabel.text = [NSString stringWithFormat:@"贵族优惠: %@钻石/分钟",youpaipfinishModel.youpaipdes];
  303. // self.youpaipyouhuiquanMoneyL.text = [NSString stringWithFormat:@"+%@钻石",youpaipfinishModel.youpaipdiscount_amount];
  304. //
  305. // }else if([youpaipfinishModel.youpaippreference_type isEqualToString:@"none"]){//没有优惠
  306. //// [self.youpaipbgV mas_updateConstraints:^(MASConstraintMaker *make) {
  307. //// make.height.offset(147.0f+23);
  308. //// }];
  309. // self.youpaipyouhuiquanLabel.text = [NSString stringWithFormat:@"贵族优惠 (%@)",@"未开通"];
  310. // }else{
  311. //// [self.youpaipbgV mas_updateConstraints:^(MASConstraintMaker *make) {
  312. //// make.height.offset(170.0f+23);
  313. //// }];
  314. // self.youpaipyouhuiquanLabel.text = [NSString stringWithFormat:@"贵族优惠 (%@)",@"未开通"];
  315. // self.youpaipyouhuiquanMoneyL.text = [NSString stringWithFormat:@"-0钻石"];
  316. //
  317. // }
  318. }else{
  319. // 总收入
  320. self.payLabel.text = [NSString stringWithFormat:@"本次收入:%@",youpaipfinishModel.youpaipincome_moneynew?youpaipfinishModel.youpaipincome_moneynew:@""];
  321. self.youpaiptimerMoneyL.text = [NSString stringWithFormat:@"%@",youpaipfinishModel.youpaipcall_income];
  322. self.youpaipgiftL.text = [NSString stringWithFormat:@"收到礼物:"];
  323. self.youpaipgiftL1.text = [NSString stringWithFormat:@"%@",youpaipfinishModel.youpaipgift_moneynew?youpaipfinishModel.youpaipgift_moneynew:@""];
  324. self.youpaipguardL.text = [NSString stringWithFormat:@"收到守护符:%@个",@(youpaipfinishModel.youpaipguard_numnew)];
  325. self.youpaipguardRight.text = [NSString stringWithFormat:@"%@",youpaipfinishModel.youpaipguard_pricenew];
  326. self.youpaiIncomeL.text = [NSString stringWithFormat:@"本次支出:%@",youpaipfinishModel.youpaipgift_anchor_pricenew?youpaipfinishModel.youpaipgift_anchor_pricenew:@""];
  327. self.youpaipgiftLeft.text = @"送出礼物";
  328. self.youpaipgiftRight.text = youpaipfinishModel.youpaipgift_anchor_pricenew;
  329. // if ([youpaipfinishModel.youpaippreference_type isEqualToString:@"coupon"]) {//是否有优惠券
  330. //// [self.youpaipbgV mas_updateConstraints:^(MASConstraintMaker *make) {
  331. //// make.height.offset(170.0f+23);
  332. //// }];
  333. // self.youpaipyouhuiquanLabel.text = [NSString stringWithFormat:@"视频优惠: %@钻石/分钟",youpaipfinishModel.youpaipdes];
  334. // self.youpaipyouhuiquanMoneyL.text = [NSString stringWithFormat:@"-%@钻石",youpaipfinishModel.youpaipdiscount_amount];
  335. //
  336. // }else if([youpaipfinishModel.youpaippreference_type isEqualToString:@"noble"]){//贵族优惠
  337. //// [self.youpaipbgV mas_updateConstraints:^(MASConstraintMaker *make) {
  338. //// make.height.offset(170.0f+23);
  339. //// }];
  340. // self.youpaipyouhuiquanLabel.text = [NSString stringWithFormat:@"贵族优惠: %@钻石/分钟",youpaipfinishModel.youpaipdes];
  341. // self.youpaipyouhuiquanMoneyL.text = [NSString stringWithFormat:@"-%@钻石",youpaipfinishModel.youpaipdiscount_amount];
  342. //
  343. // }else if([youpaipfinishModel.youpaippreference_type isEqualToString:@"none"]){//没有优惠
  344. //// [self.youpaipbgV mas_updateConstraints:^(MASConstraintMaker *make) {
  345. //// make.height.offset(147.0f+23);
  346. //// }];
  347. //
  348. // }else{
  349. //// [self.youpaipbgV mas_updateConstraints:^(MASConstraintMaker *make) {
  350. //// make.height.offset(170.0f+23);
  351. //// }];
  352. // self.youpaipyouhuiquanLabel.text = [NSString stringWithFormat:@"贵族优惠 (%@)",@"未开通"];
  353. // self.youpaipyouhuiquanMoneyL.text = [NSString stringWithFormat:@"-0钻石"];
  354. //
  355. // }
  356. }
  357. // self.youpaiptitleL.attributedText = [LCTools setRichTextWithTitle:titleText subTitle:[NSString stringWithFormat:@"(%@钻石/分钟)",youpaipfinishModel.youpaipskill.youpaipprice] titleColor:HexColorFromRGB(0xffffff) subTitleColor:HexColorFromRGB(0x9F9DA5) titleFontSize:16.0f subTitleFontSize:14.0f];
  358. NSInteger minute = youpaipfinishModel.youpaipcall_time / 60;
  359. NSInteger second = youpaipfinishModel.youpaipcall_time % 60;
  360. self.youpaiptimerL.text = [NSString stringWithFormat:@"通话时长:%@分%@秒",@(minute),@(second)];
  361. // self.youpaipdiscountL.text = youpaipfinishModel.youpaipDes3;
  362. // self.youpaipyouhuiquanLabel.text =youpaipfinishModel.youpaipDes1;
  363. // self.youpaipyouNobleLabel.text = youpaipfinishModel.youpaipDes2;
  364. // self.youpaipdiscountL.text = [NSString stringWithFormat:@"女神减免:%@分钟",@(youpaipfinishModel.youpaipreduce_time)];
  365. }
  366. @end