1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- //
- // RQExamResultHeaderView.m
- // jiaPei
- //
- // Created by 张嵘 on 2022/7/26.
- // Copyright © 2022 JCZ. All rights reserved.
- //
- #import "RQExamResultHeaderView.h"
- #import "QMUIPieProgressView.h"
- @interface RQExamResultHeaderView ()
- @property (weak, nonatomic) IBOutlet NSLayoutConstraint *topTopSuperView;
- @property (weak, nonatomic) IBOutlet UIView *bottomView;
- @property (weak, nonatomic) IBOutlet QMUIButton *errorBtn;
- @property (weak, nonatomic) IBOutlet QMUIButton *reExamBtn;
- @property (weak, nonatomic) IBOutlet QMUIButton *getMiJiBtn;
- @end
- @implementation RQExamResultHeaderView
- + (instancetype)examResultHeaderView {
- return [super rq_viewFromXib];
- }
- - (void)awakeFromNib {
- [super awakeFromNib];
- _topTopSuperView.constant = RQ_APPLICATION_STATUS_BAR_HEIGHT + RQ_APPLICATION_NAV_BAR_HEIGHT + 16.f;
- _bottomView.layer.shadowColor = RGBA_COLOR(124, 129, 136, 0.2).CGColor;
- [_backBtn addTarget:self action:@selector(backBtnAction) forControlEvents:UIControlEventTouchUpInside];
- [_reportCardBtn addTarget:self action:@selector(reportCardBtnAction) forControlEvents:UIControlEventTouchUpInside];
- _errorBtn.imagePosition = QMUIButtonImagePositionRight;
- _reExamBtn.imagePosition = QMUIButtonImagePositionRight;
- _myProgressView.shape = QMUIPieProgressViewShapeRing;
- _myProgressView.size = CGSizeMake(RQ_FIT_HORIZONTAL(148.f), RQ_FIT_HORIZONTAL(148.f));
- _myProgressView.layer.shadowColor = RGBA_COLOR(193, 16, 16, 0.2).CGColor;
- _getMiJiBtn.layer.cornerRadius = RQ_FIT_HORIZONTAL(24.f) / 2.f;
- [_fastUpBtn setBackgroundImage:[UIImage imageWithGradualChangingColor:^(QQGradualChangingColor *graColor) {
- graColor.fromColor = RQColorFromHexString(@"#FF4C52");
- graColor.toColor = RQColorFromHexString(@"#FC8269");
- graColor.type = QQGradualChangeTypeLeftToRight;
- } size:CGSizeMake(RQ_FIT_HORIZONTAL(76.f), RQ_FIT_HORIZONTAL(30.f)) cornerRadius:QQRadiusMakeSame(RQ_FIT_HORIZONTAL(30.f) / 2.f)] forState:UIControlStateNormal];
-
- // RGBA_COLOR(239, 145, 167, 0.2).CGColor
- }
- - (void)backBtnAction {
- [RQ_APPDELEGATE.services popToRootViewModelAnimated:YES];
- }
- - (void)reportCardBtnAction {
-
- }
- - (IBAction)upAction:(id)sender {
- [RQ_VIP_Module gotoBuyVipWithVipPageType:RQVIPPageType_Full];
- }
- @end
|