feat: 修改部分用户详情页内容

This commit is contained in:
eggmanQQQ
2024-09-18 10:31:21 +08:00
parent 11c31b6616
commit c67bad9481
8 changed files with 33 additions and 14 deletions

View File

@@ -5,12 +5,11 @@
"scale" : "1x"
},
{
"filename" : "mine_user_info_edit_self@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "mine_user_info_edit_self@3x.png",
"filename" : "切图 12@3x.png",
"idiom" : "universal",
"scale" : "3x"
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 517 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 875 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 715 B

View File

@@ -70,9 +70,12 @@
- (void)checkReceiptWithOrderId:(NSString *)orderId transcationId:(NSString *)transcationId errorToast:(BOOL)errorToast{
NSString * uid = [AccountInfoStorage instance].getUid;
NSString * ticket = [AccountInfoStorage instance].getTicket;
@kWeakify(self);
[Api checkReceipt:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
@kStrongify(self);
[[self getView] checkReceiptSuccess:transcationId];
}fail:^(NSInteger code, NSString * _Nullable msg) {
@kStrongify(self);
[[self getView]checkReceiptFailWithCode:code transcationId:transcationId];
} showLoading:NO errorToast:errorToast] chooseEnv:@"true" chargeRecordId:orderId transcationId:transcationId uid:uid ticket:ticket];
}

View File

@@ -81,7 +81,7 @@
- (UIButton *)backButton {
if (!_backButton) {
_backButton = [UIButton buttonWithType:UIButtonTypeCustom];
[_backButton setImage:[[UIImage imageNamed:@"common_nav_back"]ms_SetImageForRTL] forState:UIControlStateNormal];
[_backButton setImage:[[UIImage imageNamed:@"common_nav_back_white"]ms_SetImageForRTL] forState:UIControlStateNormal];
_backButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
[_backButton addTarget:self action:@selector(backButtonAction:) forControlEvents:UIControlEventTouchUpInside];
[_backButton setEnlargeEdgeWithTop:10 right:10 bottom:10 left:10];

View File

@@ -54,6 +54,16 @@ return view;\
@property (nonatomic,strong) NSMutableArray<UserPhoto *> *userPhotoArray;
///
@property (nonatomic,strong) UIView * userInfoView;
///
@property (nonatomic,strong) UserPhoto *avatarPhoto;
///
@property (nonatomic,strong) NetImageView * avatarView;
@property (nonatomic,strong) NetImageView * avatarView_cp;
///
@property (nonatomic,strong) YYAnimatedImageView *headWearImageView;
///
@property (nonatomic, strong) SpriteSheetImageManager *manager;
@property (nonatomic, strong) SVGAImageView *headWearSvgaImageView;
///
@@ -111,16 +121,7 @@ return view;\
@property (nonatomic,strong) UILabel *signatureLabel;
///线
//@property (nonatomic,strong) UIView * lineView;
///
@property (nonatomic,strong) UserPhoto *avatarPhoto;
///
@property (nonatomic,strong) NetImageView * avatarView;
///
@property (nonatomic,strong) YYAnimatedImageView *headWearImageView;
///
@property (nonatomic, strong) SpriteSheetImageManager *manager;
@property (nonatomic, strong) SVGAImageView *headWearSvgaImageView;
///VIPicon
@property (nonatomic,strong) NetImageView *nobleImageView;
@@ -179,7 +180,22 @@ return view;\
[self addSubview:self.pi_cycleScrollView];
[self.pi_cycleScrollView mas_makeConstraints:^(MASConstraintMaker *make) {
make.leading.trailing.top.mas_equalTo(self);
make.height.mas_equalTo(kGetScaleWidth(256));
make.height.mas_equalTo(kGetScaleWidth(195));
}];
//
UIView *overlay = [[UIView alloc] initWithFrame:self.pi_cycleScrollView.bounds];
// 0.5
overlay.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.5];
//
[self.pi_cycleScrollView addSubview:overlay];
//
overlay.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
[overlay mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.mas_equalTo(self.pi_cycleScrollView);
}];
[self addSubview:self.onlineButton];
@@ -217,7 +233,7 @@ return view;\
[self addSubview:self.userInfoView];
[self.userInfoView mas_makeConstraints:^(MASConstraintMaker *make) {
make.leading.trailing.mas_equalTo(self);
make.top.mas_equalTo(self).offset(kGetScaleWidth(224));
make.top.mas_equalTo(self.pi_cycleScrollView.mas_bottom);
make.bottom.mas_equalTo(self);
}];

View File

@@ -1533,6 +1533,7 @@
if (!_vapView) {
_vapView = [[VAPView alloc] init];
_vapView.contentMode = UIViewContentModeScaleAspectFill;
_vapView.userInteractionEnabled = NO;
}
return _vapView;
}