1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- //
- // AboutUsViewController.m
- // KulexiuForTeacher
- //
- // Created by Kyle on 2022/3/22.
- //
- #import "AboutUsViewController.h"
- #import "AboutUsBodyView.h"
- @interface AboutUsViewController ()
- @property (nonatomic, strong) AboutUsBodyView *bodyView;
- @end
- @implementation AboutUsViewController
- - (void)viewDidLoad {
- [super viewDidLoad];
- // Do any additional setup after loading the view.
- [self allocTitle:@"关于我们"];
- [self configUI];
- [self requestConfig];
- }
- - (void)requestConfig {
- [KSNetworkingManager queryConfigRequest:KS_POST success:^(NSDictionary * _Nonnull dic) {
- if ([dic ks_integerValueForKey:@"code"] == 200) {
- NSDictionary *result = [dic ks_dictionaryValueForKey:@"data"];
- NSString *phone = [result ks_stringValueForKey:@"customerServicePhone"];
- NSString *email = [result ks_stringValueForKey:@"customerServiceEmail"];
- [self.bodyView configPhone:phone email:email];
- }
- else {
-
- }
- } faliure:^(NSError * _Nonnull error) {
-
- }];
- }
- - (void)configUI {
- _bodyView = [AboutUsBodyView shareInstance];
- [self.scrollView addSubview:_bodyView];
- [_bodyView mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.mas_equalTo(self.scrollView.mas_top);
- make.right.left.mas_equalTo(self.view);
- make.height.mas_equalTo(kScreenHeight - kNaviBarHeight - iPhoneXSafeBottomMargin);
- }];
- }
- /*
- #pragma mark - Navigation
- // In a storyboard-based application, you will often want to do a little preparation before navigation
- - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
- // Get the new view controller using [segue destinationViewController].
- // Pass the selected object to the new view controller.
- }
- */
- @end
|