新人优惠充值成功弹窗

This commit is contained in:
chenguilong
2022-08-01 15:10:27 +08:00
parent 1fc8bc9534
commit 7eb9f78290
15 changed files with 233 additions and 40 deletions

View File

@@ -269,7 +269,6 @@
9BDA3E7727FD41C200517FE6 /* XPAnchorFansTeamViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9BDA3E7627FD41C200517FE6 /* XPAnchorFansTeamViewController.m */; };
9BDA3E7A27FD43EF00517FE6 /* XPAnchorFansTeamEntranceView.m in Sources */ = {isa = PBXBuildFile; fileRef = 9BDA3E7927FD43EF00517FE6 /* XPAnchorFansTeamEntranceView.m */; };
9BDA3E7D27FD47AB00517FE6 /* XPAnchorFansTeamPresenter.m in Sources */ = {isa = PBXBuildFile; fileRef = 9BDA3E7C27FD47AB00517FE6 /* XPAnchorFansTeamPresenter.m */; };
9BE01AC528913B2500B50299 /* XPNewUserRechargeSuccessView.m in Sources */ = {isa = PBXBuildFile; fileRef = 9BE01AC428913B2500B50299 /* XPNewUserRechargeSuccessView.m */; };
9BE01AC828913D4C00B50299 /* XPNewUserRechargeViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9BE01AC728913D4C00B50299 /* XPNewUserRechargeViewController.m */; };
9BE01ACE28925F7D00B50299 /* XPMineNewUserRechargeView.m in Sources */ = {isa = PBXBuildFile; fileRef = 9BE01ACD28925F7D00B50299 /* XPMineNewUserRechargeView.m */; };
9BE01AD128927AC000B50299 /* XPDressUpShopViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9BE01AD028927AC000B50299 /* XPDressUpShopViewController.m */; };
@@ -296,6 +295,7 @@
9BEE3D142785884A00C83219 /* XPNobleCenterResidueView.m in Sources */ = {isa = PBXBuildFile; fileRef = 9BEE3D132785884A00C83219 /* XPNobleCenterResidueView.m */; };
9BEE3D1727858E5700C83219 /* XPNobleAuthorityDescView.m in Sources */ = {isa = PBXBuildFile; fileRef = 9BEE3D1627858E5700C83219 /* XPNobleAuthorityDescView.m */; };
9BF5192628801D4700B6BE92 /* XPAcrossRoomPKCountDownView.m in Sources */ = {isa = PBXBuildFile; fileRef = 9BF5192528801D4700B6BE92 /* XPAcrossRoomPKCountDownView.m */; };
9BFB10162897AAB300B3985E /* XPNewUserRechargeSucessView.m in Sources */ = {isa = PBXBuildFile; fileRef = 9BFB10152897AAB300B3985E /* XPNewUserRechargeSucessView.m */; };
9BFE992E288142FD009DA429 /* RoomClassifyModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 9BFE992D288142FD009DA429 /* RoomClassifyModel.m */; };
E80016232803CA5D00D6D17A /* XPMineGuildIncomeRecordViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E80016222803CA5D00D6D17A /* XPMineGuildIncomeRecordViewController.m */; };
E80016262803CB2800D6D17A /* XPGuildIncomeHeaderView.m in Sources */ = {isa = PBXBuildFile; fileRef = E80016252803CB2800D6D17A /* XPGuildIncomeHeaderView.m */; };
@@ -1425,8 +1425,6 @@
9BDA3E7B27FD47AB00517FE6 /* XPAnchorFansTeamPresenter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPAnchorFansTeamPresenter.h; sourceTree = "<group>"; };
9BDA3E7C27FD47AB00517FE6 /* XPAnchorFansTeamPresenter.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XPAnchorFansTeamPresenter.m; sourceTree = "<group>"; };
9BDA3E7F27FD480D00517FE6 /* XPAnchorFansTeamProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPAnchorFansTeamProtocol.h; sourceTree = "<group>"; };
9BE01AC328913B2500B50299 /* XPNewUserRechargeSuccessView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPNewUserRechargeSuccessView.h; sourceTree = "<group>"; };
9BE01AC428913B2500B50299 /* XPNewUserRechargeSuccessView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XPNewUserRechargeSuccessView.m; sourceTree = "<group>"; };
9BE01AC628913D4C00B50299 /* XPNewUserRechargeViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPNewUserRechargeViewController.h; sourceTree = "<group>"; };
9BE01AC728913D4C00B50299 /* XPNewUserRechargeViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XPNewUserRechargeViewController.m; sourceTree = "<group>"; };
9BE01ACC28925F7D00B50299 /* XPMineNewUserRechargeView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPMineNewUserRechargeView.h; sourceTree = "<group>"; };
@@ -1478,6 +1476,8 @@
9BEE3D1627858E5700C83219 /* XPNobleAuthorityDescView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XPNobleAuthorityDescView.m; sourceTree = "<group>"; };
9BF5192428801D4700B6BE92 /* XPAcrossRoomPKCountDownView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPAcrossRoomPKCountDownView.h; sourceTree = "<group>"; };
9BF5192528801D4700B6BE92 /* XPAcrossRoomPKCountDownView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XPAcrossRoomPKCountDownView.m; sourceTree = "<group>"; };
9BFB10142897AAB300B3985E /* XPNewUserRechargeSucessView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPNewUserRechargeSucessView.h; sourceTree = "<group>"; };
9BFB10152897AAB300B3985E /* XPNewUserRechargeSucessView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XPNewUserRechargeSucessView.m; sourceTree = "<group>"; };
9BFE992C288142FD009DA429 /* RoomClassifyModel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RoomClassifyModel.h; sourceTree = "<group>"; };
9BFE992D288142FD009DA429 /* RoomClassifyModel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RoomClassifyModel.m; sourceTree = "<group>"; };
B66633E061B1B34177CD011C /* Pods-xplan-ios.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-xplan-ios.release.xcconfig"; path = "Target Support Files/Pods-xplan-ios/Pods-xplan-ios.release.xcconfig"; sourceTree = "<group>"; };
@@ -4178,6 +4178,19 @@
path = Cell;
sourceTree = "<group>";
};
9BFB10172897C95200B3985E /* NewUserRecharge */ = {
isa = PBXGroup;
children = (
E8B3E7FC28489232009746AB /* XPNewUserGreetRoomAlertView.h */,
E8B3E7FD28489232009746AB /* XPNewUserGreetRoomAlertView.m */,
9BE01AC628913D4C00B50299 /* XPNewUserRechargeViewController.h */,
9BE01AC728913D4C00B50299 /* XPNewUserRechargeViewController.m */,
9BFB10142897AAB300B3985E /* XPNewUserRechargeSucessView.h */,
9BFB10152897AAB300B3985E /* XPNewUserRechargeSucessView.m */,
);
path = NewUserRecharge;
sourceTree = "<group>";
};
BFB922F5D81845AC32D1E1ED /* Frameworks */ = {
isa = PBXGroup;
children = (
@@ -6104,13 +6117,8 @@
E8B3E8042848B842009746AB /* View */ = {
isa = PBXGroup;
children = (
9BFB10172897C95200B3985E /* NewUserRecharge */,
9BE01AF42893E7E000B50299 /* Cell */,
E8B3E7FC28489232009746AB /* XPNewUserGreetRoomAlertView.h */,
E8B3E7FD28489232009746AB /* XPNewUserGreetRoomAlertView.m */,
9BE01AC328913B2500B50299 /* XPNewUserRechargeSuccessView.h */,
9BE01AC428913B2500B50299 /* XPNewUserRechargeSuccessView.m */,
9BE01AC628913D4C00B50299 /* XPNewUserRechargeViewController.h */,
9BE01AC728913D4C00B50299 /* XPNewUserRechargeViewController.m */,
189DD53226DE255300AB55B1 /* TabbarViewController.h */,
189DD53326DE255300AB55B1 /* TabbarViewController.m */,
);
@@ -7403,6 +7411,7 @@
9B86D886281942D200494FCD /* SocialMicroView.m in Sources */,
E8664ED027E42238000171BA /* XPRoomPKTimePickerView.m in Sources */,
E824544826F5945300BE8163 /* XPMinePayPwdProtocol.h in Sources */,
9BFB10162897AAB300B3985E /* XPNewUserRechargeSucessView.m in Sources */,
E824543A26F5880E00BE8163 /* XPLoginVerifBindPhoneProtocol.h in Sources */,
E8E20BE2281695800033B688 /* XPMineLoginPasswordViewController.m in Sources */,
E824543826F5820A00BE8163 /* XPLoginVerifBindPhonePresenter.m in Sources */,
@@ -7426,7 +7435,6 @@
E80DE4072775665000BE5BCB /* XPFirstRechargeCollectionViewCell.m in Sources */,
E8899C822785A694007944BE /* DatingInfoModel.m in Sources */,
9BB89DC327FE7F3A00586A83 /* XPAnchorFansRelationModel.m in Sources */,
9BE01AC528913B2500B50299 /* XPNewUserRechargeSuccessView.m in Sources */,
E8C6FFD72754BC61004DC9F0 /* XPHomeNavView.m in Sources */,
E8AC723226F49710007D6E91 /* XPMineNotificationTableViewCell.m in Sources */,
E8AC722926F488DA007D6E91 /* XPMineFeedbackProtocol.h in Sources */,

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@@ -0,0 +1,19 @@
//
// XPNewUserRechargeSucessView.h
// xplan-ios
//
// Created by GreenLand on 2022/8/1.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@class FirstRechargeModel;
@interface XPNewUserRechargeSucessView : UIView
@property (nonatomic,strong) FirstRechargeModel *rechargeInfo;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,152 @@
//
// XPNewUserRechargeSucessView.m
// xplan-ios
//
// Created by GreenLand on 2022/8/1.
//
#import "XPNewUserRechargeSucessView.h"
///Third
#import <Masonry/Masonry.h>
///Tool
#import "UIImage+Utils.h"
#import "ThemeColor+FirstRecharge.h"
#import "XPFirstRechargeFlowLayout.h"
#import "TTPopup.h"
///Model
#import "FirstRechargeModel.h"
///View
#import "XPNewUserRechargeCollectionViewCell.h"
@interface XPNewUserRechargeSucessView ()<UICollectionViewDelegate, UICollectionViewDataSource>
///
@property (nonatomic,strong) UIImageView *backImageView;
///
@property (nonatomic,strong) UICollectionView *collectionView;
///
@property (nonatomic,strong) UILabel *descriptionLabel;
///
@property (nonatomic,strong) UIButton *knownButton;
///
@property (nonatomic,strong) NSArray *datasource;
@end
@implementation XPNewUserRechargeSucessView
- (instancetype)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
[self initSubViews];
[self initSubViewConstraints];
}
return self;
}
#pragma mark - Private Method
- (void)initSubViews {
[self addSubview:self.backImageView];
[self addSubview:self.collectionView];
[self addSubview:self.knownButton];
[self addSubview:self.descriptionLabel];
}
- (void)initSubViewConstraints {
[self mas_makeConstraints:^(MASConstraintMaker *make) {
make.width.mas_equalTo(279);
make.height.mas_equalTo(268);
}];
[self.backImageView mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.mas_equalTo(0);
}];
[self.collectionView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(67);
make.left.mas_equalTo(25);
make.centerX.mas_equalTo(self);
make.height.mas_equalTo(94);
}];
[self.knownButton mas_makeConstraints:^(MASConstraintMaker *make) {
make.size.mas_equalTo(CGSizeMake(200, 44));
make.centerX.mas_equalTo(self);
make.top.mas_equalTo(self.collectionView.mas_bottom).mas_offset((20));
}];
[self.descriptionLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.mas_equalTo(self);
make.top.mas_equalTo(self.knownButton.mas_bottom).offset(4);
make.height.mas_equalTo(14);
}];
}
#pragma mark - UICollectionViewDelegate And UICollectionViewDatasource
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
return self.datasource.count;
}
- (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
XPNewUserRechargeCollectionViewCell * cell= [collectionView dequeueReusableCellWithReuseIdentifier:NSStringFromClass([XPNewUserRechargeCollectionViewCell class]) forIndexPath:indexPath];
cell.rewardInfo = [self.datasource objectAtIndex:indexPath.row];
return cell;
}
#pragma mark - Event Response
- (void)knowButtonAction:(UIButton *)sender {
[TTPopup dismiss];
}
#pragma mark - Getters And Setters
- (void)setRechargeInfo:(FirstRechargeModel *)rechargeInfo {
_rechargeInfo = rechargeInfo;
self.datasource = _rechargeInfo.firstChargeRewardList;
[self.collectionView reloadData];
}
- (UICollectionView *)collectionView{
if (!_collectionView) {
XPFirstRechargeFlowLayout *layout = [[XPFirstRechargeFlowLayout alloc] init];
layout.itemSize = CGSizeMake(70, 70+ 16);
layout.minimumLineSpacing = 12;
layout.sectionInset = UIEdgeInsetsMake(10, 10, 10, 10);
_collectionView = [[UICollectionView alloc] initWithFrame:CGRectZero collectionViewLayout:layout];
_collectionView.dataSource = self;
_collectionView.delegate = self;
_collectionView.backgroundColor = [UIColor clearColor];
[_collectionView registerClass:[XPNewUserRechargeCollectionViewCell class] forCellWithReuseIdentifier:NSStringFromClass([XPNewUserRechargeCollectionViewCell class])];
}
return _collectionView;
}
- (UIImageView *)backImageView {
if (!_backImageView) {
_backImageView = [[UIImageView alloc] init];
_backImageView.image = [UIImage imageNamed:@"new_user_recharge_success_bg"];
}
return _backImageView;
}
- (UILabel *)descriptionLabel {
if (!_descriptionLabel) {
_descriptionLabel = [[UILabel alloc] init];
_descriptionLabel.text = @"装扮类物品可进入“我的一我的装扮”使用哦";
_descriptionLabel.font = [UIFont fontWithName:@"PingFang-SC-Medium" size:10];
_descriptionLabel.textAlignment = NSTextAlignmentCenter;
_descriptionLabel.textColor = UIColorFromRGB(0xE64A94);
}
return _descriptionLabel;
}
- (UIButton *)knownButton {
if (!_knownButton) {
_knownButton = [UIButton buttonWithType:UIButtonTypeCustom];
[_knownButton setBackgroundImage:[UIImage imageNamed:@"new_user_recharge_succedss_know"] forState:UIControlStateNormal];
[_knownButton setBackgroundImage:[UIImage imageNamed:@"new_user_recharge_succedss_know"] forState:UIControlStateSelected];
[_knownButton addTarget:self action:@selector(knowButtonAction:) forControlEvents:UIControlEventTouchUpInside];
}
return _knownButton;
}
@end

View File

@@ -1,16 +0,0 @@
//
// XPNewUserRechargeView.h
// xplan-ios
//
// Created by GreenLand on 2022/7/27.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface XPNewUserRechargeSuccessView : UIView
@end
NS_ASSUME_NONNULL_END

View File

@@ -1,14 +0,0 @@
//
// XPNewUserRechargeView.m
// xplan-ios
//
// Created by GreenLand on 2022/7/27.
//
#import "XPNewUserRechargeSuccessView.h"
@implementation XPNewUserRechargeSuccessView
@end