BGRoomDataViewController.m 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. //
  2. // BGRoomDataViewController.m
  3. // UniversalApp
  4. //
  5. // Created by 志刚杨 on 2022/3/21.
  6. // Copyright © 2022 voidcat. All rights reserved.
  7. //
  8. #import "BGRoomDataViewController.h"
  9. @interface RoomDataModel :NSObject
  10. @property (nonatomic , copy) NSString * coin_number;
  11. @property (nonatomic , copy) NSString * day_coin;
  12. @end
  13. @implementation RoomDataModel
  14. @end
  15. @interface BGRoomDataViewController ()
  16. @end
  17. @implementation BGRoomDataViewController
  18. #pragma mark - LifeCycle
  19. - (void)dealloc {
  20. [self removeNotificationObserver];
  21. }
  22. -(void)viewWillAppear:(BOOL)animated {
  23. [super viewWillAppear:animated];
  24. }
  25. - (void)viewWillDisappear:(BOOL)animated {
  26. [super viewWillDisappear:animated];
  27. }
  28. - (void)viewDidLoad {
  29. [super viewDidLoad];
  30. //设置导航栏
  31. [self setupNavBar];
  32. //设置view
  33. [self setupView];
  34. //请求数据
  35. [self requestData];
  36. //添加通知
  37. [self addNotificationObserver];
  38. }
  39. #pragma mark - View
  40. - (void)setupNavBar {
  41. }
  42. - (void)setupView {
  43. }
  44. #pragma mark - Network
  45. - (void)requestData {
  46. // ViewRadius(self.avatar, self.avatar.width/2);
  47. // [self.avatar sd_setImageWithURL:safeurl(self.model.user.avatar)];
  48. // self.labNickname.text = self.model.voice.title;
  49. // self.labId.text = self.model.voice.user_id;
  50. //
  51. // ///voice/voice_additional_api/voice_earnings
  52. //
  53. // NSMutableDictionary *param=[NSMutableDictionary dictionary];
  54. // [param setObject:self.model.voice.user_id forKey:@"voice_id"];
  55. //
  56. // [CYNET POST:[[CYURLUtils sharedCYURLUtils] makeVoiceURLWithC:@"voice_additional_api" A:@"voice_earnings"] parameters:param responseCache:^(id responseObject) {
  57. //
  58. // } success:^(id responseObject) {
  59. //
  60. // RoomDataModel *model = [RoomDataModel modelWithJSON:responseObject];
  61. // self.labToday.text = model.day_coin;
  62. // self.labTotal.text = model.coin_number;
  63. //
  64. //
  65. // } failure:^(NSString *error) {
  66. // [[BGHUDHelper sharedInstance] tipMessage:error];
  67. // } hasCache:NO];
  68. }
  69. #pragma mark- Delegate
  70. #pragma mark UITableDatasource & UITableviewDelegate
  71. #pragma mark - Private
  72. #pragma mark - Event
  73. #pragma mark - Public
  74. #pragma mark - NSNotificationCenter
  75. - (void)addNotificationObserver {
  76. }
  77. - (void)removeNotificationObserver {
  78. }
  79. #pragma mark - Setter
  80. #pragma mark - Getter
  81. #pragma mark - MemoryWarning
  82. - (void)didReceiveMemoryWarning {
  83. }
  84. @end