Procházet zdrojové kódy

bug修改(添加全职工作全国显示)

15555599100 před 6 roky
rodič
revize
031014767e

+ 22 - 0
HappyJob/HappyJob/Assets.xcassets/BImage/BReleaseImage/b_release_success.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "b_release_success@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "b_release_success@3x.png",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

binární
HappyJob/HappyJob/Assets.xcassets/BImage/BReleaseImage/b_release_success.imageset/b_release_success@2x.png


binární
HappyJob/HappyJob/Assets.xcassets/BImage/BReleaseImage/b_release_success.imageset/b_release_success@3x.png


+ 19 - 0
HappyJob/HappyJob/BClass/BRelease/ViewController/BReleaseJobsSuccessfulViewController.h

@@ -0,0 +1,19 @@
+//
+//  BReleaseJobsSuccessfulViewController.h
+//  HappyJob
+//
+//  Created by 张晓光 on 2019/7/25.
+//  Copyright © 2019 Bob. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface BReleaseJobsSuccessfulViewController : UIViewController
+
+@property (nonatomic, assign) BOOL  NaviPopToRoot;
+
+@end
+
+NS_ASSUME_NONNULL_END

+ 121 - 0
HappyJob/HappyJob/BClass/BRelease/ViewController/BReleaseJobsSuccessfulViewController.m

@@ -0,0 +1,121 @@
+//
+//  BReleaseJobsSuccessfulViewController.m
+//  HappyJob
+//
+//  Created by 张晓光 on 2019/7/25.
+//  Copyright © 2019 Bob. All rights reserved.
+//
+
+#import "BReleaseJobsSuccessfulViewController.h"
+
+@interface BReleaseJobsSuccessfulViewController ()
+
+@property (nonatomic, strong) UIImageView *imageV;
+@property (nonatomic, strong) UILabel     *titleLabel;
+@property (nonatomic, strong) UILabel     *detailLabel;
+
+
+@end
+
+@implementation BReleaseJobsSuccessfulViewController
+
+- (void)viewDidLoad {
+    [super viewDidLoad];
+    // Do any additional setup after loading the view.
+    self.title = @"岗位信息";
+    [self initViews];
+    [self autoLayOutViews];
+    self.view.backgroundColor = [UIColor whiteColor];
+    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithImage:[[UIImage imageNamed:@"navbar_back_black"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] style:UIBarButtonItemStylePlain target:self action:@selector(backClick)];
+    
+}
+- (void)backClick {
+    
+    if (self.NaviPopToRoot)
+    {
+         [self.navigationController popToRootViewControllerAnimated:YES];
+    }
+    else
+    {
+        UIViewController *rootVC = self.presentingViewController;
+        while (rootVC.presentingViewController)
+        {
+            rootVC = rootVC.presentingViewController;
+        }
+        [rootVC dismissViewControllerAnimated:YES completion:nil];
+    }
+}
+- (void)initViews {
+    
+    [self.view addSubview:self.imageV];
+    [self.view addSubview:self.titleLabel];
+    [self.view addSubview:self.detailLabel];
+    
+}
+- (void)autoLayOutViews {
+    
+    __weak typeof(self) weakSelf = self;
+    [_imageV mas_makeConstraints:^(MASConstraintMaker *make) {
+        
+        make.centerX.equalTo(weakSelf.view);
+        make.top.equalTo(weakSelf.view).offset(HJHorizontalScale(180));
+        make.size.mas_offset(CGSizeMake(HJHorizontalScale(157), HJHorizontalScale(157)));
+        
+    }];
+    [_titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+        
+        make.centerX.equalTo(weakSelf.view);
+        make.top.equalTo(weakSelf.imageV.mas_bottom).offset(HJHorizontalScale(60));
+    }];
+    [_detailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.centerX.equalTo(weakSelf.view);
+        make.left.equalTo(weakSelf.view).offset(HJHorizontalScale(66));
+        make.right.equalTo(weakSelf.view).offset(HJHorizontalScale(-66));
+        make.top.equalTo(weakSelf.titleLabel.mas_bottom).offset(HJHorizontalScale(20));
+    }];
+    
+}
+- (UIImageView *)imageV {
+    
+    if (_imageV == nil)
+    {
+        _imageV = [[UIImageView alloc]init];
+        _imageV.image = [UIImage imageNamed:@"b_release_success"];
+        
+    }
+    return _imageV;
+}
+- (UILabel *)titleLabel {
+    
+    if (_titleLabel == nil)
+    {
+        _titleLabel = [[UILabel alloc]init];
+        _titleLabel.textColor = COLOR_BACK3;
+        _titleLabel.text = @"招聘信息已成功提交";
+        _titleLabel.font = [UIFont systemFontOfSize:18];
+    }
+    return _titleLabel;
+}
+- (UILabel *)detailLabel {
+    
+    if (_detailLabel == nil)
+    {
+        _detailLabel = [[UILabel alloc]init];
+        _detailLabel.textColor = COLOR_GRAY9;
+        _detailLabel.text = @"信息已成功提交至后台,经由后台审核成功后即可在职位模块中查看到,审核时间一般需要1-2个工作日,请耐心等待。";
+        _detailLabel.font = [UIFont systemFontOfSize:12];
+        _detailLabel.numberOfLines = 0;
+    }
+    return _detailLabel;
+}
+/*
+#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