首次提交
This commit is contained in:
32
SweetParty/主类/音悦新增/仲夏夜梦曲/DDCaiAllRecordModel.h
Executable file
32
SweetParty/主类/音悦新增/仲夏夜梦曲/DDCaiAllRecordModel.h
Executable file
@@ -0,0 +1,32 @@
|
||||
//
|
||||
// DDCaiAllRecordModel.h
|
||||
// romantic
|
||||
//
|
||||
// Created by bj_szd on 2023/10/19.
|
||||
// Copyright © 2023 romantic. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface DDCaiAllRecordModel : NSObject
|
||||
|
||||
@property (nonatomic, assign) NSInteger win_type;
|
||||
@property (nonatomic, assign) NSInteger is_evil_wind;//是否双号 1是2否
|
||||
@property (nonatomic, copy) NSString *add_time;
|
||||
@property (nonatomic, assign) NSInteger is_join;//1中奖 2未中奖 3未参与
|
||||
|
||||
@property (nonatomic, strong) NSArray *win_gift_list;
|
||||
@property (nonatomic, strong) NSArray *win_type_data;
|
||||
@property (nonatomic, strong) NSArray *join_data;
|
||||
|
||||
//排行榜字段
|
||||
@property (nonatomic, copy) NSString *uid;
|
||||
@property (nonatomic, copy) NSString *nick_name;
|
||||
@property (nonatomic, copy) NSString *head_pic;
|
||||
@property (nonatomic, copy) NSString *win_total_price;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
13
SweetParty/主类/音悦新增/仲夏夜梦曲/DDCaiAllRecordModel.m
Executable file
13
SweetParty/主类/音悦新增/仲夏夜梦曲/DDCaiAllRecordModel.m
Executable file
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// DDCaiAllRecordModel.m
|
||||
// romantic
|
||||
//
|
||||
// Created by bj_szd on 2023/10/19.
|
||||
// Copyright © 2023 romantic. All rights reserved.
|
||||
//
|
||||
|
||||
#import "DDCaiAllRecordModel.h"
|
||||
|
||||
@implementation DDCaiAllRecordModel
|
||||
|
||||
@end
|
||||
19
SweetParty/主类/音悦新增/仲夏夜梦曲/DDCaiMyRecordAlert.h
Executable file
19
SweetParty/主类/音悦新增/仲夏夜梦曲/DDCaiMyRecordAlert.h
Executable file
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// DDCaiMyRecordAlert.h
|
||||
//
|
||||
//
|
||||
// Created by ybb on 2021/5/6.
|
||||
// Copyright © 2021 . All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface DDCaiMyRecordAlert : UIView
|
||||
|
||||
- (void)showOnView:(UIView *)parent;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
307
SweetParty/主类/音悦新增/仲夏夜梦曲/DDCaiMyRecordAlert.m
Executable file
307
SweetParty/主类/音悦新增/仲夏夜梦曲/DDCaiMyRecordAlert.m
Executable file
@@ -0,0 +1,307 @@
|
||||
//
|
||||
// BJBoxRecordAlert.m
|
||||
//
|
||||
//
|
||||
// Created by ybb on 2021/5/6.
|
||||
// Copyright © 2021 . All rights reserved.
|
||||
//
|
||||
|
||||
#import "DDCaiMyRecordAlert.h"
|
||||
#import "DDCaiMyRecordCell.h"
|
||||
#import "XiamuFooter.h"
|
||||
#import "XiamuTipView.h"
|
||||
|
||||
@interface DDCaiMyRecordAlert () <UITableViewDelegate, UITableViewDataSource>
|
||||
|
||||
@property (nonatomic, strong) UIView *mainView;
|
||||
@property (nonatomic, strong) UIImageView *bgImg;
|
||||
@property (nonatomic, strong) UITableView *tableView;
|
||||
|
||||
|
||||
@property (nonatomic, strong) NSMutableArray *dataArray; //礼物数组
|
||||
|
||||
//关于网络请求
|
||||
@property (nonatomic, assign) BOOL isLoadFirst;
|
||||
@property (nonatomic, assign) BOOL isOnRequesting, isNoMoreData, isNetError;
|
||||
@property (nonatomic, strong) XiamuFooter *footerView;
|
||||
@property (nonatomic, strong) XiamuTipView *tipsView;
|
||||
@property (nonatomic, assign) NSInteger pageIndex;
|
||||
|
||||
@property (nonatomic, assign) CGFloat mainW;
|
||||
@property (nonatomic, assign) CGFloat mainH;
|
||||
|
||||
@property (nonatomic, assign) CGFloat contentX;
|
||||
@property (nonatomic, assign) CGFloat contentTop;
|
||||
@property (nonatomic, assign) CGFloat contentBottom;
|
||||
|
||||
@property (nonatomic, copy) NSString *bgImgName;
|
||||
|
||||
@end
|
||||
|
||||
@implementation DDCaiMyRecordAlert
|
||||
|
||||
- (instancetype)initWithFrame:(CGRect)frame {
|
||||
if (self = [super initWithFrame:UIScreen.mainScreen.bounds]) {
|
||||
|
||||
self.backgroundColor = [kBlackColor colorWithAlphaComponent:0.3];
|
||||
|
||||
[ControlCreator createButton:self rect:self.bounds text:@"" font:nil color:nil backguoundColor:UIColor.clearColor imageName:nil target:self action:@selector(backAction:)];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)initMainView {
|
||||
if (_mainView) {
|
||||
return;
|
||||
}
|
||||
UIColor *color;
|
||||
color = HEXCOLOR(0xFFFFFF);
|
||||
_mainView = [[UIView alloc] initWithFrame:CGRectMake((APPW-_mainW)/2, (APPH-_mainH)/2, _mainW, _mainH)];
|
||||
_mainView.backgroundColor = UIColor.clearColor;
|
||||
[self addSubview:_mainView];
|
||||
|
||||
[ControlCreator createImageView:_mainView rect:_mainView.bounds imageName:self.bgImgName backguoundColor:nil];
|
||||
|
||||
UILabel *lab_1 = [ControlCreator createLabel:_mainView rect:CGRectZero text:@"时间" font:YBBoldFont(13) color:kWhiteColor backguoundColor:nil align:NSTextAlignmentLeft lines:1];
|
||||
[lab_1 mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.mas_equalTo(_contentTop);
|
||||
make.left.mas_equalTo(_contentX);
|
||||
}];
|
||||
|
||||
UILabel *lab_2 = [ControlCreator createLabel:_mainView rect:CGRectZero text:@"中奖位置" font:YBBoldFont(13) color:kWhiteColor backguoundColor:nil align:NSTextAlignmentLeft lines:1];
|
||||
[lab_2 mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.centerY.equalTo(lab_1);
|
||||
make.centerX.mas_equalTo(0);
|
||||
}];
|
||||
|
||||
UILabel *lab_3 = [ControlCreator createLabel:_mainView rect:CGRectZero text:@"获得礼物" font:YBBoldFont(13) color:kWhiteColor backguoundColor:nil align:NSTextAlignmentLeft lines:1];
|
||||
[lab_3 mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.centerY.equalTo(lab_1);
|
||||
make.right.mas_equalTo(-_contentX);
|
||||
}];
|
||||
|
||||
// UIButton *closeBtn = [ControlCreator createButton:self rect:CGRectZero text:@"" font:nil color:nil backguoundColor:nil imageName:@"hd_box_close" target:self action:@selector(backAction:)];
|
||||
// [closeBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
// make.centerX.mas_equalTo(0);
|
||||
// make.top.equalTo(_mainView.mas_bottom).offset(15);
|
||||
// }];
|
||||
}
|
||||
|
||||
- (void)initTableView {
|
||||
if (_tableView) {
|
||||
return;
|
||||
}
|
||||
|
||||
_tableView = [[UITableView alloc] initWithFrame:CGRectMake(_contentX, _contentTop+20, _mainView.width-_contentX*2, _mainView.height-_contentTop-20-_contentBottom)];
|
||||
_tableView.delegate = self;
|
||||
_tableView.dataSource = self;
|
||||
_tableView.backgroundColor = UIColor.clearColor;
|
||||
_tableView.showsVerticalScrollIndicator = NO;
|
||||
_tableView.separatorStyle = NO;
|
||||
NSString *cellId = NSStringFromClass(DDCaiMyRecordCell.class);
|
||||
[_tableView registerNib:[UINib nibWithNibName:cellId bundle:nil] forCellReuseIdentifier:cellId];
|
||||
[_mainView addSubview:_tableView];
|
||||
}
|
||||
|
||||
- (void)initMJrefresh {
|
||||
__weak typeof(self) weakSelf = self;
|
||||
|
||||
MJRefreshNormalHeader *header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{
|
||||
[weakSelf loadFirst];
|
||||
}];
|
||||
_tableView.mj_header = header;
|
||||
}
|
||||
|
||||
- (void)initTipView {
|
||||
if (_tipsView) {
|
||||
return;
|
||||
}
|
||||
_tipsView = [[XiamuTipView alloc]initWithFrame:CGRectMake(0, 0, _tableView.width, 250)];
|
||||
|
||||
[self.tableView addSubview:_tipsView];
|
||||
|
||||
__weak typeof(self) weakSelf = self;
|
||||
_tipsView.block = ^{
|
||||
if (weakSelf.isNetError) {
|
||||
[weakSelf loadFirst];
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
- (NSMutableArray *)dataArray {
|
||||
if (!_dataArray) {
|
||||
_dataArray = NSMutableArray.array;
|
||||
}
|
||||
return _dataArray;
|
||||
}
|
||||
|
||||
- (XiamuFooter *)footerView {
|
||||
if (!_footerView) {
|
||||
_footerView = [[XiamuFooter alloc] initWithFrame:CGRectMake(0, 0, _tableView.width, 40)];
|
||||
_footerView.hidden = YES;
|
||||
}
|
||||
return _footerView;
|
||||
}
|
||||
|
||||
- (void)showOnView:(UIView *)parent {
|
||||
CGFloat x = 12;
|
||||
CGFloat w = ScreenWidth-x*2;
|
||||
CGFloat h = w/350*465;
|
||||
self.mainW = w;
|
||||
self.mainH = h;
|
||||
|
||||
self.contentX = 22;
|
||||
self.contentTop = 100;
|
||||
self.contentBottom = 25;
|
||||
|
||||
self.bgImgName = @"zxy_record_bg";
|
||||
|
||||
[self initMainView];
|
||||
[self initTableView];
|
||||
[self initMJrefresh];
|
||||
// [self initTipView];
|
||||
|
||||
[parent addSubview:self];
|
||||
|
||||
[_tableView.mj_header beginRefreshing];
|
||||
}
|
||||
|
||||
#pragma mark - action
|
||||
|
||||
- (void)backAction:(id)sender {
|
||||
[self removeFromSuperview];
|
||||
}
|
||||
|
||||
#pragma mark - data
|
||||
|
||||
- (void)setIsOnRequesting:(BOOL)isOnRequesting {
|
||||
_isOnRequesting = isOnRequesting;
|
||||
if (isOnRequesting) {
|
||||
_isNetError = NO;
|
||||
[self.footerView stateLoading];
|
||||
return;
|
||||
}
|
||||
|
||||
if (_isNoMoreData) {
|
||||
[self.footerView stateNoMore];
|
||||
if (self.dataArray.count==0) {
|
||||
[self.tipsView stateNoResult];
|
||||
[self.footerView stateHide];
|
||||
}
|
||||
}
|
||||
if (_isNetError) {
|
||||
[self.footerView stateNetError];
|
||||
if (_isLoadFirst) {
|
||||
[self.tipsView stateNoNet];
|
||||
[self.footerView stateHide];
|
||||
[self.dataArray removeAllObjects];
|
||||
[_tableView reloadData];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (void)loadFirst {
|
||||
|
||||
if (_isOnRequesting) {
|
||||
return;
|
||||
}
|
||||
_pageIndex = 1;
|
||||
_isLoadFirst = YES;
|
||||
self.isNoMoreData = NO;
|
||||
[self loadListData];
|
||||
}
|
||||
|
||||
- (void)loadMore {
|
||||
if (_isOnRequesting) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (_isNoMoreData) {
|
||||
return;
|
||||
}
|
||||
|
||||
_isLoadFirst = NO;
|
||||
[self loadListData];
|
||||
}
|
||||
|
||||
- (void)loadListData {
|
||||
[self.tipsView stateHide];
|
||||
self.isNetError = NO;
|
||||
|
||||
__weak typeof(self) weakSelf = self;
|
||||
|
||||
self.isOnRequesting = YES;
|
||||
|
||||
NSDictionary *dict = @{@"page":@(self.pageIndex).stringValue,
|
||||
@"page_limit":@"20",
|
||||
};
|
||||
NSMutableDictionary *paras = [NSMutableDictionary dictionary];
|
||||
[paras addEntriesFromDictionary:dict];
|
||||
|
||||
// [SVProgressHUD showWithStatus:nil];
|
||||
[RCMicHTTP postWithURLString:@"/api/Sprite/get_monster_log" parameters:paras response:^(RCMicHTTPResult *result) {
|
||||
[SVProgressHUD dismiss];
|
||||
if (result.success) {
|
||||
if (result.errorCode == 200 && [result.content isKindOfClass:NSArray.class]) {
|
||||
[self checkRequestResult:result.content];
|
||||
|
||||
}else {
|
||||
[SVProgressHUD showInfoWithStatus:result.message];
|
||||
self.isNetError = YES;
|
||||
}
|
||||
}else {
|
||||
[SVProgressHUD showInfoWithStatus:@"网络错误"];
|
||||
self.isNetError = YES;
|
||||
}
|
||||
|
||||
weakSelf.isOnRequesting = NO;
|
||||
[weakSelf.tableView.mj_header endRefreshing];
|
||||
}];
|
||||
}
|
||||
|
||||
- (void)checkRequestResult:(NSArray *)listArr {
|
||||
if ([listArr isKindOfClass:NSArray.class]) {
|
||||
|
||||
if (_isLoadFirst) {
|
||||
[self.dataArray removeAllObjects];
|
||||
}
|
||||
if (listArr.count == 0 ) {
|
||||
self.isNoMoreData = YES;
|
||||
}
|
||||
NSArray *arr = [DDCaiAllRecordModel mj_objectArrayWithKeyValuesArray:listArr];
|
||||
[self.dataArray addObjectsFromArray:arr];
|
||||
[_tableView reloadData];
|
||||
|
||||
_pageIndex ++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#pragma mark - table view
|
||||
|
||||
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
|
||||
return self.dataArray.count;
|
||||
}
|
||||
|
||||
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
|
||||
return 70;
|
||||
}
|
||||
|
||||
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
|
||||
NSString *cellId = NSStringFromClass(DDCaiMyRecordCell.class);
|
||||
DDCaiMyRecordCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId forIndexPath:indexPath];
|
||||
cell.selectionStyle = NO;
|
||||
|
||||
DDCaiAllRecordModel *model = self.dataArray[indexPath.row];
|
||||
cell.model = model;
|
||||
|
||||
return cell;
|
||||
}
|
||||
|
||||
//- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {
|
||||
// if (indexPath.item+6>self.dataArray.count && !self.isNoMoreData) {
|
||||
// [self loadMore];
|
||||
// }
|
||||
//}
|
||||
|
||||
@end
|
||||
35
SweetParty/主类/音悦新增/仲夏夜梦曲/DDCaiMyRecordCell.h
Executable file
35
SweetParty/主类/音悦新增/仲夏夜梦曲/DDCaiMyRecordCell.h
Executable file
@@ -0,0 +1,35 @@
|
||||
//
|
||||
// DDCaiMyRecordCell.h
|
||||
// romantic
|
||||
//
|
||||
// Created by bj_szd on 2023/7/19.
|
||||
// Copyright © 2023 romantic. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "DDCaiAllRecordModel.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface DDCaiMyRecordCell : UITableViewCell
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UILabel *timeLab;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *winLab;
|
||||
@property (weak, nonatomic) IBOutlet UIView *giftView_1;
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *giftImgV_1;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *giftNumLab_1;
|
||||
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *giftNumWidthCon_1;
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UIView *giftView_2;
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *giftImgV_2;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *giftNumLab_2;
|
||||
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *giftNumWidthCon_2;
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UILabel *statusLab;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *joinLab;
|
||||
|
||||
@property (nonatomic, strong) DDCaiAllRecordModel *model;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
65
SweetParty/主类/音悦新增/仲夏夜梦曲/DDCaiMyRecordCell.m
Executable file
65
SweetParty/主类/音悦新增/仲夏夜梦曲/DDCaiMyRecordCell.m
Executable file
@@ -0,0 +1,65 @@
|
||||
//
|
||||
// DDCaiMyRecordCell.m
|
||||
// romantic
|
||||
//
|
||||
// Created by bj_szd on 2023/7/19.
|
||||
// Copyright © 2023 romantic. All rights reserved.
|
||||
//
|
||||
|
||||
#import "DDCaiMyRecordCell.h"
|
||||
#import "NSString+Time.h"
|
||||
|
||||
@implementation DDCaiMyRecordCell
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
|
||||
}
|
||||
|
||||
- (void)setModel:(DDCaiAllRecordModel *)model {
|
||||
_model = model;
|
||||
|
||||
self.timeLab.text = [NSString timestampToMDHM:model.add_time];
|
||||
|
||||
NSMutableArray *typeArr = [[NSMutableArray alloc] init];
|
||||
for (NSDictionary *dict in model.win_type_data) {
|
||||
[typeArr addObject:[dict safeStringForKey:@"type_name"]];
|
||||
}
|
||||
self.winLab.text = [typeArr componentsJoinedByString:@","];
|
||||
|
||||
self.giftView_1.hidden = self.giftView_2.hidden = self.statusLab.hidden = YES;
|
||||
for (NSInteger i = 0; i < model.win_gift_list.count; i++) {
|
||||
NSDictionary *dict = model.win_gift_list[i];
|
||||
if (i == 0) {
|
||||
self.giftView_1.hidden = NO;
|
||||
[self.giftImgV_1 sd_setImageWithURL:[NSURL URLWithString:[dict safeStringForKey:@"base_image"]]];
|
||||
self.giftNumLab_1.text = [dict safeStringForKey:@"num"];
|
||||
self.giftNumWidthCon_1.constant = YBFontW(YBBoldFont(9), [dict safeStringForKey:@"num"]) + 10;
|
||||
}else if (i == 1) {
|
||||
self.giftView_2.hidden = NO;
|
||||
[self.giftImgV_2 sd_setImageWithURL:[NSURL URLWithString:[dict safeStringForKey:@"base_image"]]];
|
||||
self.giftNumLab_2.text = [dict safeStringForKey:@"num"];
|
||||
self.giftNumWidthCon_2.constant = YBFontW(YBBoldFont(9), [dict safeStringForKey:@"num"]) + 10;
|
||||
}
|
||||
}
|
||||
//1中奖 2未中奖 3未参与
|
||||
if (model.is_join == 2) {
|
||||
self.statusLab.hidden = NO;
|
||||
self.statusLab.text = @"未中奖";
|
||||
}else if (model.is_join == 3) {
|
||||
self.statusLab.hidden = NO;
|
||||
self.statusLab.text = @"未参与";
|
||||
}
|
||||
|
||||
NSMutableArray *joinArr = [[NSMutableArray alloc] init];
|
||||
for (NSDictionary *dict in model.join_data) {
|
||||
[joinArr addObject:[NSString stringWithFormat:@"%@x%@", dict[@"type_name"], dict[@"num"]]];
|
||||
}
|
||||
if (joinArr.count > 0) {
|
||||
self.joinLab.text = [NSString stringWithFormat:@"我的弹奏:%@", [joinArr componentsJoinedByString:@","]];
|
||||
}else {
|
||||
self.joinLab.text = @"我的弹奏:无";
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
176
SweetParty/主类/音悦新增/仲夏夜梦曲/DDCaiMyRecordCell.xib
Executable file
176
SweetParty/主类/音悦新增/仲夏夜梦曲/DDCaiMyRecordCell.xib
Executable file
@@ -0,0 +1,176 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
|
||||
<device id="retina6_1" orientation="portrait" appearance="light"/>
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="DDCaiMyRecordCell">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="70"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="70"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ih3-S3-hls">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="70"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="2023-08-31 10:09" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="eWg-YO-LTB">
|
||||
<rect key="frame" x="0.0" y="17" width="115" height="16"/>
|
||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="小提琴" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Onp-dz-BPz">
|
||||
<rect key="frame" x="167.5" y="17" width="40" height="16"/>
|
||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kWU-sb-tEw">
|
||||
<rect key="frame" x="337" y="10" width="38" height="30"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="aIc-rl-ciP">
|
||||
<rect key="frame" x="0.0" y="0.0" width="30" height="30"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="30" id="Pba-Ev-lC2"/>
|
||||
<constraint firstAttribute="height" constant="30" id="gQd-tl-H8J"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rzh-wO-giD">
|
||||
<rect key="frame" x="15" y="0.0" width="23" height="12"/>
|
||||
<color key="backgroundColor" red="0.019607843137254902" green="0.1764705882352941" blue="0.52156862745098043" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="12" id="D5l-gE-FFA"/>
|
||||
<constraint firstAttribute="width" constant="23" id="z5M-rF-fvF"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="9"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
|
||||
<real key="value" value="0.5"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="6"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
|
||||
<color key="value" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="rzh-wO-giD" firstAttribute="top" secondItem="kWU-sb-tEw" secondAttribute="top" id="5uw-IP-ir8"/>
|
||||
<constraint firstAttribute="trailing" secondItem="rzh-wO-giD" secondAttribute="trailing" id="80a-6h-nZc"/>
|
||||
<constraint firstItem="aIc-rl-ciP" firstAttribute="leading" secondItem="kWU-sb-tEw" secondAttribute="leading" id="FcO-uO-xON"/>
|
||||
<constraint firstAttribute="width" constant="38" id="OcC-cO-8U5"/>
|
||||
<constraint firstItem="aIc-rl-ciP" firstAttribute="centerY" secondItem="kWU-sb-tEw" secondAttribute="centerY" id="bdf-xl-v7l"/>
|
||||
<constraint firstAttribute="height" constant="30" id="fgi-TN-UuU"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="cmp-Pm-kwU">
|
||||
<rect key="frame" x="296" y="10" width="38" height="30"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="RHk-zF-N4j">
|
||||
<rect key="frame" x="0.0" y="0.0" width="30" height="30"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="30" id="Zxr-SW-VGj"/>
|
||||
<constraint firstAttribute="height" constant="30" id="hAl-Z8-898"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9iP-sS-QkT">
|
||||
<rect key="frame" x="15" y="0.0" width="23" height="12"/>
|
||||
<color key="backgroundColor" red="0.019607843140000001" green="0.1764705882" blue="0.52156862749999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="23" id="0HE-6W-Zl8"/>
|
||||
<constraint firstAttribute="height" constant="12" id="rj7-aE-TuN"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="9"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
|
||||
<real key="value" value="0.5"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="6"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
|
||||
<color key="value" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="9iP-sS-QkT" firstAttribute="top" secondItem="cmp-Pm-kwU" secondAttribute="top" id="PVd-b4-Y4x"/>
|
||||
<constraint firstItem="RHk-zF-N4j" firstAttribute="centerY" secondItem="cmp-Pm-kwU" secondAttribute="centerY" id="eTx-O1-HS5"/>
|
||||
<constraint firstAttribute="width" constant="38" id="siA-h1-eww"/>
|
||||
<constraint firstItem="RHk-zF-N4j" firstAttribute="leading" secondItem="cmp-Pm-kwU" secondAttribute="leading" id="ww6-Ci-Mq5"/>
|
||||
<constraint firstAttribute="height" constant="30" id="xIT-CR-iHj"/>
|
||||
<constraint firstAttribute="trailing" secondItem="9iP-sS-QkT" secondAttribute="trailing" id="xbK-EK-m1M"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="未中奖" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="GlA-e4-9RB">
|
||||
<rect key="frame" x="335" y="17" width="40" height="16"/>
|
||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="我的弹奏:无" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5W8-Jb-Yce">
|
||||
<rect key="frame" x="0.0" y="43" width="375" height="13.5"/>
|
||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="11"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="5W8-Jb-Yce" firstAttribute="top" secondItem="eWg-YO-LTB" secondAttribute="bottom" constant="10" id="2Wu-lf-GsU"/>
|
||||
<constraint firstItem="kWU-sb-tEw" firstAttribute="leading" secondItem="cmp-Pm-kwU" secondAttribute="trailing" constant="3" id="33v-gh-7hw"/>
|
||||
<constraint firstItem="Onp-dz-BPz" firstAttribute="centerX" secondItem="ih3-S3-hls" secondAttribute="centerX" id="80Q-Z0-d6W"/>
|
||||
<constraint firstItem="GlA-e4-9RB" firstAttribute="centerY" secondItem="eWg-YO-LTB" secondAttribute="centerY" id="E3C-7f-4i3"/>
|
||||
<constraint firstItem="5W8-Jb-Yce" firstAttribute="leading" secondItem="eWg-YO-LTB" secondAttribute="leading" id="ELU-QP-6uP"/>
|
||||
<constraint firstAttribute="trailing" secondItem="kWU-sb-tEw" secondAttribute="trailing" id="Lyd-h2-qV2"/>
|
||||
<constraint firstItem="eWg-YO-LTB" firstAttribute="top" secondItem="ih3-S3-hls" secondAttribute="top" constant="17" id="NZ4-em-lia"/>
|
||||
<constraint firstItem="eWg-YO-LTB" firstAttribute="leading" secondItem="ih3-S3-hls" secondAttribute="leading" id="Ohs-zL-g1Z"/>
|
||||
<constraint firstAttribute="trailing" secondItem="GlA-e4-9RB" secondAttribute="trailing" id="alm-c8-zuJ"/>
|
||||
<constraint firstItem="Onp-dz-BPz" firstAttribute="centerY" secondItem="eWg-YO-LTB" secondAttribute="centerY" id="luS-oW-915"/>
|
||||
<constraint firstAttribute="trailing" secondItem="5W8-Jb-Yce" secondAttribute="trailing" id="moC-JL-RZM"/>
|
||||
<constraint firstItem="kWU-sb-tEw" firstAttribute="centerY" secondItem="eWg-YO-LTB" secondAttribute="centerY" id="nEz-nZ-TWQ"/>
|
||||
<constraint firstItem="cmp-Pm-kwU" firstAttribute="centerY" secondItem="kWU-sb-tEw" secondAttribute="centerY" id="yOK-jc-FKs"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="ih3-S3-hls" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="Hws-do-dYS"/>
|
||||
<constraint firstAttribute="trailing" secondItem="ih3-S3-hls" secondAttribute="trailing" id="O1p-M1-ggn"/>
|
||||
<constraint firstItem="ih3-S3-hls" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="Of6-xc-rlA"/>
|
||||
<constraint firstAttribute="bottom" secondItem="ih3-S3-hls" secondAttribute="bottom" id="dMd-0V-7As"/>
|
||||
</constraints>
|
||||
</tableViewCellContentView>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<connections>
|
||||
<outlet property="giftImgV_1" destination="aIc-rl-ciP" id="4PM-hF-LIO"/>
|
||||
<outlet property="giftImgV_2" destination="RHk-zF-N4j" id="dX5-6B-FuJ"/>
|
||||
<outlet property="giftNumLab_1" destination="rzh-wO-giD" id="BWp-Qt-eGl"/>
|
||||
<outlet property="giftNumLab_2" destination="9iP-sS-QkT" id="6ux-Wx-YHF"/>
|
||||
<outlet property="giftNumWidthCon_1" destination="z5M-rF-fvF" id="COp-Kj-U0d"/>
|
||||
<outlet property="giftNumWidthCon_2" destination="0HE-6W-Zl8" id="PzJ-wE-Z6F"/>
|
||||
<outlet property="giftView_1" destination="kWU-sb-tEw" id="SeX-hr-qdt"/>
|
||||
<outlet property="giftView_2" destination="cmp-Pm-kwU" id="I9G-jO-ej4"/>
|
||||
<outlet property="joinLab" destination="5W8-Jb-Yce" id="ObS-nY-e9Q"/>
|
||||
<outlet property="statusLab" destination="GlA-e4-9RB" id="QQj-nH-tWA"/>
|
||||
<outlet property="timeLab" destination="eWg-YO-LTB" id="lfW-Pj-RrV"/>
|
||||
<outlet property="winLab" destination="Onp-dz-BPz" id="YTZ-IG-OcP"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="131.8840579710145" y="95.424107142857139"/>
|
||||
</tableViewCell>
|
||||
</objects>
|
||||
</document>
|
||||
35
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYBoxModel.h
Normal file
35
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYBoxModel.h
Normal file
@@ -0,0 +1,35 @@
|
||||
//
|
||||
// ZXYBoxModel.h
|
||||
// romantic
|
||||
//
|
||||
// Created by bj_szd on 2024/2/21.
|
||||
// Copyright © 2024 romantic. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface ZXYBoxModel : NSObject
|
||||
|
||||
//剩余时间
|
||||
@property (nonatomic, assign) NSInteger surplus_time;
|
||||
//状态 1已结束 2进行中 3未开启
|
||||
@property (nonatomic, assign) NSInteger is_finsh;
|
||||
//中奖类型 1吉他2小提琴3古筝4架子鼓5钢琴
|
||||
@property (nonatomic, assign) NSInteger win_number;
|
||||
@property (nonatomic, copy) NSString *integral;//用户金币数量
|
||||
@property (nonatomic, copy) NSString *airship;//用户飞船数量
|
||||
//星球列表
|
||||
@property (nonatomic, strong) NSArray *multiple_list;
|
||||
|
||||
//中奖相关
|
||||
@property (nonatomic, assign) NSInteger is_win;//1中奖 2没中
|
||||
@property (nonatomic, strong) NSArray *win_gift_list;//中奖礼物
|
||||
@property (nonatomic, strong) NSArray *win_type_info;//中奖乐器
|
||||
@property (nonatomic, copy) NSString *win_count;
|
||||
@property (nonatomic, assign) NSInteger is_evil_wind;//是否双号 1是2否
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
13
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYBoxModel.m
Normal file
13
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYBoxModel.m
Normal file
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// ZXYBoxModel.m
|
||||
// romantic
|
||||
//
|
||||
// Created by bj_szd on 2024/2/21.
|
||||
// Copyright © 2024 romantic. All rights reserved.
|
||||
//
|
||||
|
||||
#import "ZXYBoxModel.h"
|
||||
|
||||
@implementation ZXYBoxModel
|
||||
|
||||
@end
|
||||
18
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYBoxView.h
Normal file
18
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYBoxView.h
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// ZXYBoxView.h
|
||||
// SweetParty
|
||||
//
|
||||
// Created by MAC on 2024/5/6.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface ZXYBoxView : UIView
|
||||
|
||||
@property (nonatomic, copy) NSString *rid;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
251
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYBoxView.m
Normal file
251
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYBoxView.m
Normal file
@@ -0,0 +1,251 @@
|
||||
//
|
||||
// ZXYBoxView.m
|
||||
// SweetParty
|
||||
//
|
||||
// Created by MAC on 2024/5/6.
|
||||
//
|
||||
|
||||
#import "ZXYBoxView.h"
|
||||
#import "ZWTimer.h"
|
||||
#import "ZXYBoxModel.h"
|
||||
#import "ZXYChooseNumView.h"
|
||||
#import "ZXYBuyView.h"
|
||||
#import "ZXYResultView.h"
|
||||
#import "DDCaiMyRecordAlert.h"
|
||||
#import "BJBoxRuleAlert.h"
|
||||
#import "BJBoxPoolAlert.h"
|
||||
#import "ZXYRankView.h"
|
||||
|
||||
@interface ZXYBoxView () <ZWTimerDelegate>
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *touchImgV;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *moneyLab;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *ticketLab;
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *timeBgImgV;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *timeLab;
|
||||
@property (weak, nonatomic) IBOutlet UIView *yueqiView_1;
|
||||
@property (weak, nonatomic) IBOutlet UIView *yueqiView_2;
|
||||
@property (weak, nonatomic) IBOutlet UIView *yueqiView_3;
|
||||
@property (weak, nonatomic) IBOutlet UIView *yueqiView_4;
|
||||
@property (weak, nonatomic) IBOutlet UIView *yueqiView_5;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *numLab_1;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *numLab_2;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *numLab_3;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *numLab_4;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *numLab_5;
|
||||
|
||||
@property (nonatomic, strong) NSArray *currentLabArr;
|
||||
|
||||
@property (nonatomic, strong) ZWTimer *timer;
|
||||
@property (nonatomic, assign) NSInteger leftSecond;
|
||||
@property (nonatomic, assign) NSInteger timerType;//1进行中 2结束
|
||||
|
||||
//自己参与的结果,新一轮开始的时候要置空
|
||||
@property (nonatomic, strong) NSDictionary *resultDict;
|
||||
@property (nonatomic, strong) ZXYResultView *resultView;
|
||||
|
||||
@property (nonatomic, assign) BOOL isSecondLoad;
|
||||
|
||||
@end
|
||||
|
||||
@implementation ZXYBoxView
|
||||
|
||||
- (void)dealloc {
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||
}
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
|
||||
self.currentLabArr = @[_numLab_1, _numLab_2, _numLab_3, _numLab_4, _numLab_5];
|
||||
|
||||
[self createUI];
|
||||
|
||||
[self fetchData];
|
||||
}
|
||||
|
||||
- (void)createUI {
|
||||
WEAK_SELF
|
||||
[self.touchImgV dg_Tapped:^{
|
||||
[weakSelf removeFromSuperview];
|
||||
}];
|
||||
|
||||
//中奖类型 1吉他2小提琴3古筝4架子鼓5钢琴
|
||||
[self.yueqiView_1 dg_Tapped:^{
|
||||
[weakSelf onPopChooseNum:1];
|
||||
}];
|
||||
[self.yueqiView_2 dg_Tapped:^{
|
||||
[weakSelf onPopChooseNum:2];
|
||||
}];
|
||||
[self.yueqiView_3 dg_Tapped:^{
|
||||
[weakSelf onPopChooseNum:3];
|
||||
}];
|
||||
[self.yueqiView_4 dg_Tapped:^{
|
||||
[weakSelf onPopChooseNum:4];
|
||||
}];
|
||||
[self.yueqiView_5 dg_Tapped:^{
|
||||
[weakSelf onPopChooseNum:5];
|
||||
}];
|
||||
|
||||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onSocketStart:) name:@"ZXYStartNoti" object:nil];
|
||||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onSocketEnd:) name:@"ZXYEndNoti" object:nil];
|
||||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onSocketResult:) name:@"ZXYResultNoti" object:nil];
|
||||
}
|
||||
|
||||
- (void)onSocketStart:(NSNotification *)noti {
|
||||
NSDictionary *dataDict = noti.userInfo;
|
||||
ZXYBoxModel *model = [ZXYBoxModel mj_objectWithKeyValues:dataDict];
|
||||
self.timerType = 1;
|
||||
self.leftSecond = model.surplus_time;
|
||||
[self.timer startGCDTimer:1 delegate:self];
|
||||
|
||||
//重置当前架数
|
||||
for (UILabel *currentLab in self.currentLabArr) {
|
||||
currentLab.text = @"0";
|
||||
}
|
||||
self.resultDict = nil;
|
||||
self.timeBgImgV.image = ImageNamed(@"zxy_time_bg");
|
||||
}
|
||||
|
||||
- (void)onSocketEnd:(NSNotification *)noti {
|
||||
NSDictionary *dataDict = noti.userInfo;
|
||||
ZXYBoxModel *model = [ZXYBoxModel mj_objectWithKeyValues:dataDict];
|
||||
|
||||
//延时0.2秒,以防万一
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
if (self.resultDict == nil) {
|
||||
[self onFeichuanAnimate:1 model:model];
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
- (void)onSocketResult:(NSNotification *)noti {
|
||||
NSDictionary *dataDict = noti.userInfo;
|
||||
NSLog(@"抽奖结果--%@", dataDict);
|
||||
self.resultDict = dataDict;
|
||||
ZXYBoxModel *model = [ZXYBoxModel mj_objectWithKeyValues:dataDict];
|
||||
if (model.is_win == 1) {
|
||||
[self onFeichuanAnimate:2 model:model];
|
||||
}else {
|
||||
[self onFeichuanAnimate:3 model:model];
|
||||
}
|
||||
//更新门票余额
|
||||
self.ticketLab.text = model.airship;
|
||||
}
|
||||
|
||||
- (void)onFeichuanAnimate:(NSInteger)type model:(ZXYBoxModel *)model {
|
||||
//探险中,飞机动画后弹出结果页
|
||||
self.timerType = 2;
|
||||
self.leftSecond = 10;
|
||||
[self.timer startGCDTimer:1 delegate:self];
|
||||
|
||||
[self addSubview:self.resultView];
|
||||
[self.resultView onShowWith:type model:model];
|
||||
}
|
||||
|
||||
- (void)onPopChooseNum:(NSInteger)type {
|
||||
ZXYChooseNumView *view = LoadNib(@"ZXYChooseNumView");
|
||||
view.frame = [UIScreen mainScreen].bounds;
|
||||
[self addSubview:view];
|
||||
[view onUpdateWith:type rid:self.rid];
|
||||
view.onConfirmBlock = ^() {
|
||||
[self fetchData];
|
||||
};
|
||||
}
|
||||
|
||||
//打开宝箱请求信息
|
||||
- (void)fetchData {
|
||||
NSDictionary *params = @{};
|
||||
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"/api/Sprite/get_monster_info" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
|
||||
ZXYBoxModel *model = [ZXYBoxModel mj_objectWithKeyValues:responseDic[@"data"]];
|
||||
[self onUpdateCommonInfo:model];
|
||||
[self onUpdateNumUI:model];
|
||||
|
||||
self.isSecondLoad = YES;
|
||||
} Failure:^(id _Nonnull errorData) {
|
||||
|
||||
}];
|
||||
}
|
||||
|
||||
- (void)onUpdateCommonInfo:(ZXYBoxModel *)model {
|
||||
self.moneyLab.text = [NSString stringWithFormat:@"%ld", [model.integral integerValue]];
|
||||
self.ticketLab.text = model.airship;
|
||||
|
||||
if (self.isSecondLoad == NO) {
|
||||
self.timerType = 1;
|
||||
self.leftSecond = model.surplus_time;
|
||||
[self.timer startGCDTimer:1 delegate:self];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)onUpdateNumUI:(ZXYBoxModel *)model {
|
||||
for (NSInteger i = 0; i < model.multiple_list.count; i++) {
|
||||
NSDictionary *dict = model.multiple_list[i];
|
||||
UILabel *currentLab = self.currentLabArr[i];
|
||||
currentLab.text = [dict safeStringForKey:@"num"];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)onTimerFired:(ZWTimer *)timer {
|
||||
self.leftSecond -= 1;
|
||||
if (self.leftSecond < 0) {
|
||||
self.leftSecond = 0;
|
||||
[self.timer stopTimer];
|
||||
}
|
||||
// if (self.timerType == 1) {
|
||||
self.timeLab.text = [NSString stringWithFormat:@"%02ld:%02ld", self.leftSecond/60, self.leftSecond%60];
|
||||
// }else if (self.timerType == 2) {
|
||||
// self.timeLab.text = [NSString stringWithFormat:@"弹奏中%02lds", self.leftSecond%60];
|
||||
// }
|
||||
if (self.leftSecond <= 5) {
|
||||
self.timeBgImgV.image = ImageNamed(@"zxy_time_bg_2");
|
||||
}
|
||||
}
|
||||
|
||||
- (ZWTimer *)timer {
|
||||
if (!_timer) {
|
||||
_timer = [[ZWTimer alloc] init];
|
||||
}
|
||||
return _timer;
|
||||
}
|
||||
|
||||
- (IBAction)onBuyTicket:(id)sender {
|
||||
ZXYBuyView *view = LoadNib(@"ZXYBuyView");
|
||||
view.frame = [UIScreen mainScreen].bounds;
|
||||
[self addSubview:view];
|
||||
view.rid = self.rid;
|
||||
view.onBuySuccessBlock = ^(NSString * _Nonnull integral, NSString * _Nonnull airship) {
|
||||
self.moneyLab.text = [NSString stringWithFormat:@"%ld", [integral integerValue]];
|
||||
self.ticketLab.text = airship;
|
||||
};
|
||||
}
|
||||
|
||||
- (IBAction)onPool:(id)sender {
|
||||
BJBoxPoolAlert *view = [[BJBoxPoolAlert alloc] initWithFrame:[UIScreen mainScreen].bounds];
|
||||
[view showOnView:self WithType:100];
|
||||
}
|
||||
|
||||
- (IBAction)onRule:(id)sender {
|
||||
BJBoxRuleAlert *view = [[BJBoxRuleAlert alloc] initWithFrame:[UIScreen mainScreen].bounds];
|
||||
[view showOnView:self WithType:100];
|
||||
}
|
||||
|
||||
- (IBAction)onRecord:(id)sender {
|
||||
DDCaiMyRecordAlert *view = [[DDCaiMyRecordAlert alloc] initWithFrame:[UIScreen mainScreen].bounds];
|
||||
[view showOnView:self];
|
||||
}
|
||||
|
||||
- (IBAction)onRank:(id)sender {
|
||||
ZXYRankView *view = [[ZXYRankView alloc] initWithFrame:[UIScreen mainScreen].bounds];
|
||||
[view showOnView:self];
|
||||
}
|
||||
|
||||
- (ZXYResultView *)resultView {
|
||||
if (!_resultView) {
|
||||
_resultView = LoadNib(@"ZXYResultView");
|
||||
_resultView.frame = [UIScreen mainScreen].bounds;
|
||||
}
|
||||
return _resultView;
|
||||
}
|
||||
|
||||
@end
|
||||
518
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYBoxView.xib
Normal file
518
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYBoxView.xib
Normal file
@@ -0,0 +1,518 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
|
||||
<device id="retina6_12" orientation="portrait" appearance="light"/>
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="ZXYBoxView">
|
||||
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Z8F-VH-e9A">
|
||||
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.29866121253188777" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</imageView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="FD5-YL-Deg">
|
||||
<rect key="frame" x="0.0" y="291.33333333333331" width="393" height="560.66666666666674"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="zxy_bg" translatesAutoresizingMaskIntoConstraints="NO" id="eRi-kw-x05">
|
||||
<rect key="frame" x="0.0" y="0.0" width="393" height="560.66666666666663"/>
|
||||
</imageView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ghe-fm-8EW">
|
||||
<rect key="frame" x="80" y="68" width="233" height="25"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="zxy_ticket_bg" translatesAutoresizingMaskIntoConstraints="NO" id="e7E-xc-IpA">
|
||||
<rect key="frame" x="0.0" y="0.0" width="233" height="25"/>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="我的音符:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="B5H-IC-hLh">
|
||||
<rect key="frame" x="35.999999999999993" y="4.3333333333333712" width="66.333333333333314" height="16"/>
|
||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fRW-fN-nXP">
|
||||
<rect key="frame" x="102.33333333333334" y="2" width="10.666666666666671" height="21"/>
|
||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="17"/>
|
||||
<color key="textColor" red="1" green="0.91764705879999997" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="张" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zK4-x9-xQg">
|
||||
<rect key="frame" x="116" y="4.3333333333333712" width="14" height="16"/>
|
||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="d3E-Kr-Ogz">
|
||||
<rect key="frame" x="153" y="0.33333333333337123" width="50" height="24"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="24" id="NlK-9N-02P"/>
|
||||
<constraint firstAttribute="width" constant="50" id="yLh-oe-778"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" title="去购买>">
|
||||
<color key="titleColor" red="1" green="0.91764705879999997" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="onBuyTicket:" destination="iN0-l3-epB" eventType="touchUpInside" id="ner-N2-Ued"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="B5H-IC-hLh" firstAttribute="centerY" secondItem="ghe-fm-8EW" secondAttribute="centerY" id="6VL-rM-ezb"/>
|
||||
<constraint firstAttribute="trailing" secondItem="e7E-xc-IpA" secondAttribute="trailing" id="6ez-Xz-JiC"/>
|
||||
<constraint firstItem="e7E-xc-IpA" firstAttribute="top" secondItem="ghe-fm-8EW" secondAttribute="top" id="8Ii-r2-NLI"/>
|
||||
<constraint firstItem="fRW-fN-nXP" firstAttribute="leading" secondItem="B5H-IC-hLh" secondAttribute="trailing" id="P30-sq-a2d"/>
|
||||
<constraint firstAttribute="bottom" secondItem="e7E-xc-IpA" secondAttribute="bottom" id="SIE-LL-YN9"/>
|
||||
<constraint firstItem="zK4-x9-xQg" firstAttribute="leading" secondItem="fRW-fN-nXP" secondAttribute="trailing" constant="3" id="SQ6-9K-ypT"/>
|
||||
<constraint firstItem="B5H-IC-hLh" firstAttribute="leading" secondItem="ghe-fm-8EW" secondAttribute="leading" constant="36" id="TdV-qO-heM"/>
|
||||
<constraint firstItem="d3E-Kr-Ogz" firstAttribute="leading" secondItem="zK4-x9-xQg" secondAttribute="trailing" constant="23" id="WT6-S6-BaQ"/>
|
||||
<constraint firstItem="fRW-fN-nXP" firstAttribute="centerY" secondItem="ghe-fm-8EW" secondAttribute="centerY" id="Yxg-yr-nYJ"/>
|
||||
<constraint firstItem="e7E-xc-IpA" firstAttribute="leading" secondItem="ghe-fm-8EW" secondAttribute="leading" id="dvu-SA-TXv"/>
|
||||
<constraint firstAttribute="height" constant="25" id="hho-7Q-15z"/>
|
||||
<constraint firstItem="d3E-Kr-Ogz" firstAttribute="centerY" secondItem="ghe-fm-8EW" secondAttribute="centerY" id="kst-dy-FVi"/>
|
||||
<constraint firstAttribute="trailing" secondItem="d3E-Kr-Ogz" secondAttribute="trailing" constant="30" id="xdO-fr-Puj"/>
|
||||
<constraint firstItem="zK4-x9-xQg" firstAttribute="centerY" secondItem="ghe-fm-8EW" secondAttribute="centerY" id="xrx-93-vwj"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="8WV-Vh-liu" userLabel="chargeView">
|
||||
<rect key="frame" x="14" y="98" width="83" height="21"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="zxy_money_bg" translatesAutoresizingMaskIntoConstraints="NO" id="VVv-Sd-e8E">
|
||||
<rect key="frame" x="0.0" y="0.0" width="83" height="21"/>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7cV-aO-lMB">
|
||||
<rect key="frame" x="41.666666666666664" y="3.6666666666666865" width="7.6666666666666643" height="13.333333333333336"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="11"/>
|
||||
<color key="textColor" red="1" green="0.95294117647058818" blue="0.60392156862745094" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="zxy_coin" translatesAutoresizingMaskIntoConstraints="NO" id="S9b-YS-KLG">
|
||||
<rect key="frame" x="0.0" y="0.33333333333337123" width="20" height="20"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="20" id="hhB-Aw-0z6"/>
|
||||
<constraint firstAttribute="width" constant="20" id="q7t-fX-YA1"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="S9b-YS-KLG" firstAttribute="centerY" secondItem="8WV-Vh-liu" secondAttribute="centerY" id="36i-9F-ab6"/>
|
||||
<constraint firstItem="7cV-aO-lMB" firstAttribute="centerY" secondItem="8WV-Vh-liu" secondAttribute="centerY" id="94x-af-X3d"/>
|
||||
<constraint firstAttribute="trailing" secondItem="VVv-Sd-e8E" secondAttribute="trailing" id="Afw-5p-HJi"/>
|
||||
<constraint firstItem="VVv-Sd-e8E" firstAttribute="leading" secondItem="8WV-Vh-liu" secondAttribute="leading" id="Akh-q4-Eal"/>
|
||||
<constraint firstAttribute="height" constant="21" id="B9D-M3-o3j"/>
|
||||
<constraint firstAttribute="width" constant="83" id="S2Y-pQ-wqa"/>
|
||||
<constraint firstItem="S9b-YS-KLG" firstAttribute="leading" secondItem="8WV-Vh-liu" secondAttribute="leading" id="deM-aM-7EK"/>
|
||||
<constraint firstAttribute="bottom" secondItem="VVv-Sd-e8E" secondAttribute="bottom" id="fV9-1Q-p3E"/>
|
||||
<constraint firstItem="VVv-Sd-e8E" firstAttribute="top" secondItem="8WV-Vh-liu" secondAttribute="top" id="wpg-mK-PxZ"/>
|
||||
<constraint firstItem="7cV-aO-lMB" firstAttribute="centerX" secondItem="8WV-Vh-liu" secondAttribute="centerX" multiplier="1.1" id="zzC-qN-QlR"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
|
||||
<color key="value" red="0.98039215690000003" green="0.91764705879999997" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="KoV-ik-85U">
|
||||
<rect key="frame" x="7" y="132" width="52" height="52"/>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" image="zxy_pool"/>
|
||||
<connections>
|
||||
<action selector="onPool:" destination="iN0-l3-epB" eventType="touchUpInside" id="HHd-yP-tcU"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="REU-Wy-KWH">
|
||||
<rect key="frame" x="7" y="191" width="52" height="52"/>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" image="zxy_rule"/>
|
||||
<connections>
|
||||
<action selector="onRule:" destination="iN0-l3-epB" eventType="touchUpInside" id="YWh-MB-CFb"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="mzs-cY-3YV">
|
||||
<rect key="frame" x="334" y="132" width="52" height="52"/>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" image="zxy_history"/>
|
||||
<connections>
|
||||
<action selector="onRecord:" destination="iN0-l3-epB" eventType="touchUpInside" id="otW-dK-0Jm"/>
|
||||
</connections>
|
||||
</button>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="zxy_time_bg" translatesAutoresizingMaskIntoConstraints="NO" id="Vhn-mJ-1cC">
|
||||
<rect key="frame" x="118.66666666666667" y="312.00000000000006" width="155.66666666666663" height="27.666666666666686"/>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="00:30" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WFW-wb-xUK">
|
||||
<rect key="frame" x="174.33333333333334" y="316.66666666666669" width="44.666666666666657" height="18"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
|
||||
<color key="textColor" red="1" green="0.95294117649999999" blue="0.60392156860000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ks6-J8-Lxb">
|
||||
<rect key="frame" x="143.66666666666666" y="359.66666666666669" width="106" height="71"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="zxy_yueqi_bg" translatesAutoresizingMaskIntoConstraints="NO" id="TMN-tf-tuJ">
|
||||
<rect key="frame" x="0.0" y="0.0" width="106" height="71"/>
|
||||
</imageView>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="zxy_yueqi_2" translatesAutoresizingMaskIntoConstraints="NO" id="hJh-B5-x9Q">
|
||||
<rect key="frame" x="-10" y="5.6666666666666288" width="60" height="60"/>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="x5倍" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="y3k-LU-j7c">
|
||||
<rect key="frame" x="49.999999999999993" y="10.999999999999998" width="31.666666666666664" height="19.333333333333329"/>
|
||||
<fontDescription key="fontDescription" name="DINAlternate-Bold" family="DIN Alternate" pointSize="16"/>
|
||||
<color key="textColor" red="1" green="0.95294117649999999" blue="0.60392156860000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="kw1-Bz-Bm4">
|
||||
<rect key="frame" x="50" y="37.333333333333371" width="37" height="16"/>
|
||||
<color key="backgroundColor" white="1" alpha="0.063004889455782309" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="37" id="9QE-Th-2HH"/>
|
||||
<constraint firstAttribute="height" constant="16" id="d99-AB-s13"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="12"/>
|
||||
<color key="textColor" red="1" green="0.95294117649999999" blue="0.60392156860000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
|
||||
<real key="value" value="0.5"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
|
||||
<color key="value" white="1" alpha="0.39899636612457484" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="8"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="kw1-Bz-Bm4" firstAttribute="leading" secondItem="y3k-LU-j7c" secondAttribute="leading" id="0vM-ZF-7zg"/>
|
||||
<constraint firstItem="y3k-LU-j7c" firstAttribute="top" secondItem="ks6-J8-Lxb" secondAttribute="top" constant="11" id="1bf-NO-kfJ"/>
|
||||
<constraint firstAttribute="width" constant="106" id="7jJ-r5-OAD"/>
|
||||
<constraint firstItem="TMN-tf-tuJ" firstAttribute="top" secondItem="ks6-J8-Lxb" secondAttribute="top" id="Fp2-RY-eX9"/>
|
||||
<constraint firstItem="y3k-LU-j7c" firstAttribute="leading" secondItem="ks6-J8-Lxb" secondAttribute="leading" constant="50" id="Q7z-0C-k5U"/>
|
||||
<constraint firstAttribute="height" constant="71" id="RCb-4a-90H"/>
|
||||
<constraint firstItem="TMN-tf-tuJ" firstAttribute="leading" secondItem="ks6-J8-Lxb" secondAttribute="leading" id="d5W-DQ-7bQ"/>
|
||||
<constraint firstItem="hJh-B5-x9Q" firstAttribute="leading" secondItem="ks6-J8-Lxb" secondAttribute="leading" constant="-10" id="oax-Yd-m2Q"/>
|
||||
<constraint firstAttribute="bottom" secondItem="TMN-tf-tuJ" secondAttribute="bottom" id="rRF-dx-Neb"/>
|
||||
<constraint firstItem="kw1-Bz-Bm4" firstAttribute="top" secondItem="y3k-LU-j7c" secondAttribute="bottom" constant="7" id="ucW-wt-x8C"/>
|
||||
<constraint firstAttribute="trailing" secondItem="TMN-tf-tuJ" secondAttribute="trailing" id="xUF-Lj-tgT"/>
|
||||
<constraint firstItem="hJh-B5-x9Q" firstAttribute="centerY" secondItem="ks6-J8-Lxb" secondAttribute="centerY" id="zFP-yE-ot6"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="lNB-TH-Gr3">
|
||||
<rect key="frame" x="27.666666666666671" y="359.66666666666669" width="106.00000000000001" height="71"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="zxy_yueqi_bg" translatesAutoresizingMaskIntoConstraints="NO" id="BmZ-55-qQd">
|
||||
<rect key="frame" x="0.0" y="0.0" width="106" height="71"/>
|
||||
</imageView>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="zxy_yueqi_1" translatesAutoresizingMaskIntoConstraints="NO" id="bfs-qC-lXf">
|
||||
<rect key="frame" x="-6" y="5.6666666666666288" width="60" height="60"/>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="x2倍" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="z8q-DK-ac1">
|
||||
<rect key="frame" x="49.999999999999993" y="10.999999999999998" width="31.666666666666664" height="19.333333333333329"/>
|
||||
<fontDescription key="fontDescription" name="DINAlternate-Bold" family="DIN Alternate" pointSize="16"/>
|
||||
<color key="textColor" red="1" green="0.95294117649999999" blue="0.60392156860000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="LC6-A3-swx">
|
||||
<rect key="frame" x="50" y="37.333333333333371" width="37" height="16"/>
|
||||
<color key="backgroundColor" white="1" alpha="0.063004889460000005" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="16" id="5KY-P5-rCv"/>
|
||||
<constraint firstAttribute="width" constant="37" id="Adc-wY-4Ik"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="12"/>
|
||||
<color key="textColor" red="1" green="0.95294117649999999" blue="0.60392156860000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
|
||||
<real key="value" value="0.5"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
|
||||
<color key="value" white="1" alpha="0.3989963661" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="8"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="bfs-qC-lXf" firstAttribute="leading" secondItem="lNB-TH-Gr3" secondAttribute="leading" constant="-6" id="7Mz-wq-9UV"/>
|
||||
<constraint firstAttribute="trailing" secondItem="BmZ-55-qQd" secondAttribute="trailing" id="Eke-mO-f7B"/>
|
||||
<constraint firstItem="BmZ-55-qQd" firstAttribute="leading" secondItem="lNB-TH-Gr3" secondAttribute="leading" id="Frz-Nz-Vw7"/>
|
||||
<constraint firstAttribute="height" constant="71" id="QDX-TN-uS2"/>
|
||||
<constraint firstItem="z8q-DK-ac1" firstAttribute="leading" secondItem="lNB-TH-Gr3" secondAttribute="leading" constant="50" id="V1j-oN-GsG"/>
|
||||
<constraint firstItem="LC6-A3-swx" firstAttribute="top" secondItem="z8q-DK-ac1" secondAttribute="bottom" constant="7" id="Vs1-4c-aVF"/>
|
||||
<constraint firstAttribute="width" constant="106" id="WbD-iO-qzO"/>
|
||||
<constraint firstItem="z8q-DK-ac1" firstAttribute="top" secondItem="lNB-TH-Gr3" secondAttribute="top" constant="11" id="Y72-fz-Jji"/>
|
||||
<constraint firstItem="bfs-qC-lXf" firstAttribute="centerY" secondItem="lNB-TH-Gr3" secondAttribute="centerY" id="bZY-Fn-Mv8"/>
|
||||
<constraint firstItem="LC6-A3-swx" firstAttribute="leading" secondItem="z8q-DK-ac1" secondAttribute="leading" id="rqu-hu-kIV"/>
|
||||
<constraint firstAttribute="bottom" secondItem="BmZ-55-qQd" secondAttribute="bottom" id="tep-E6-9w3"/>
|
||||
<constraint firstItem="BmZ-55-qQd" firstAttribute="top" secondItem="lNB-TH-Gr3" secondAttribute="top" id="uCY-s9-MfE"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="wXG-GE-gDk">
|
||||
<rect key="frame" x="259.66666666666669" y="359.66666666666669" width="106" height="71"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="zxy_yueqi_bg" translatesAutoresizingMaskIntoConstraints="NO" id="18R-ne-6XN">
|
||||
<rect key="frame" x="0.0" y="0.0" width="106" height="71"/>
|
||||
</imageView>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="zxy_yueqi_3" translatesAutoresizingMaskIntoConstraints="NO" id="jn8-Ev-zYW">
|
||||
<rect key="frame" x="-8.0000000000000284" y="5.6666666666666288" width="60" height="60"/>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="x6.5倍" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="TW2-1F-l0t">
|
||||
<rect key="frame" x="50" y="10.999999999999998" width="43" height="19.333333333333329"/>
|
||||
<fontDescription key="fontDescription" name="DINAlternate-Bold" family="DIN Alternate" pointSize="16"/>
|
||||
<color key="textColor" red="1" green="0.95294117649999999" blue="0.60392156860000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="PyJ-CL-sqx">
|
||||
<rect key="frame" x="50" y="37.333333333333371" width="37" height="16"/>
|
||||
<color key="backgroundColor" white="1" alpha="0.063004889460000005" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="16" id="CuJ-MM-Ow3"/>
|
||||
<constraint firstAttribute="width" constant="37" id="wfa-n8-bqX"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="12"/>
|
||||
<color key="textColor" red="1" green="0.95294117649999999" blue="0.60392156860000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
|
||||
<real key="value" value="0.5"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
|
||||
<color key="value" white="1" alpha="0.3989963661" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="8"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="106" id="6NN-w3-iBJ"/>
|
||||
<constraint firstItem="jn8-Ev-zYW" firstAttribute="leading" secondItem="wXG-GE-gDk" secondAttribute="leading" constant="-8" id="9ZO-4a-dpU"/>
|
||||
<constraint firstItem="PyJ-CL-sqx" firstAttribute="leading" secondItem="TW2-1F-l0t" secondAttribute="leading" id="Byi-9w-bFX"/>
|
||||
<constraint firstItem="jn8-Ev-zYW" firstAttribute="centerY" secondItem="wXG-GE-gDk" secondAttribute="centerY" id="KEk-Fg-thx"/>
|
||||
<constraint firstItem="TW2-1F-l0t" firstAttribute="top" secondItem="wXG-GE-gDk" secondAttribute="top" constant="11" id="MET-y9-kOd"/>
|
||||
<constraint firstItem="TW2-1F-l0t" firstAttribute="leading" secondItem="wXG-GE-gDk" secondAttribute="leading" constant="50" id="QF5-il-mQJ"/>
|
||||
<constraint firstAttribute="height" constant="71" id="WFQ-56-u6O"/>
|
||||
<constraint firstItem="18R-ne-6XN" firstAttribute="top" secondItem="wXG-GE-gDk" secondAttribute="top" id="Wne-yH-eNh"/>
|
||||
<constraint firstAttribute="bottom" secondItem="18R-ne-6XN" secondAttribute="bottom" id="XHa-A6-k3b"/>
|
||||
<constraint firstItem="PyJ-CL-sqx" firstAttribute="top" secondItem="TW2-1F-l0t" secondAttribute="bottom" constant="7" id="h7k-fr-zxq"/>
|
||||
<constraint firstItem="18R-ne-6XN" firstAttribute="leading" secondItem="wXG-GE-gDk" secondAttribute="leading" id="sI0-oR-PYL"/>
|
||||
<constraint firstAttribute="trailing" secondItem="18R-ne-6XN" secondAttribute="trailing" id="vwD-ko-r6V"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Ksp-bT-5CL">
|
||||
<rect key="frame" x="70.666666666666671" y="463.66666666666669" width="106.00000000000001" height="71.000000000000057"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="zxy_yueqi_bg" translatesAutoresizingMaskIntoConstraints="NO" id="v3I-Xx-UX5">
|
||||
<rect key="frame" x="0.0" y="0.0" width="106" height="71"/>
|
||||
</imageView>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="zxy_yueqi_4" translatesAutoresizingMaskIntoConstraints="NO" id="X1V-36-4Mt">
|
||||
<rect key="frame" x="28" y="-32" width="60" height="60"/>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="x10倍" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="uB8-QP-TLL">
|
||||
<rect key="frame" x="33.333333333333329" y="26" width="39.333333333333329" height="19.333333333333329"/>
|
||||
<fontDescription key="fontDescription" name="DINAlternate-Bold" family="DIN Alternate" pointSize="16"/>
|
||||
<color key="textColor" red="1" green="0.95294117649999999" blue="0.60392156860000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ylv-mz-vHm">
|
||||
<rect key="frame" x="34.333333333333329" y="48.333333333333371" width="37" height="16"/>
|
||||
<color key="backgroundColor" white="1" alpha="0.063004889460000005" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="16" id="IMz-ci-2Hl"/>
|
||||
<constraint firstAttribute="width" constant="37" id="qsC-sw-tXE"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="12"/>
|
||||
<color key="textColor" red="1" green="0.95294117649999999" blue="0.60392156860000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
|
||||
<real key="value" value="0.5"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
|
||||
<color key="value" white="1" alpha="0.3989963661" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="8"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="bottom" secondItem="v3I-Xx-UX5" secondAttribute="bottom" id="0zf-GA-2AU"/>
|
||||
<constraint firstAttribute="width" constant="106" id="2lV-dw-bKk"/>
|
||||
<constraint firstAttribute="trailing" secondItem="v3I-Xx-UX5" secondAttribute="trailing" id="372-YT-09n"/>
|
||||
<constraint firstItem="X1V-36-4Mt" firstAttribute="top" secondItem="Ksp-bT-5CL" secondAttribute="top" constant="-32" id="Gsb-OG-60r"/>
|
||||
<constraint firstItem="X1V-36-4Mt" firstAttribute="centerX" secondItem="Ksp-bT-5CL" secondAttribute="centerX" constant="5" id="ISk-Ln-Pxt"/>
|
||||
<constraint firstItem="ylv-mz-vHm" firstAttribute="top" secondItem="uB8-QP-TLL" secondAttribute="bottom" constant="3" id="NVN-nm-fGd"/>
|
||||
<constraint firstItem="uB8-QP-TLL" firstAttribute="centerX" secondItem="Ksp-bT-5CL" secondAttribute="centerX" id="QbD-gg-FlW"/>
|
||||
<constraint firstItem="v3I-Xx-UX5" firstAttribute="top" secondItem="Ksp-bT-5CL" secondAttribute="top" id="XRI-np-kX6"/>
|
||||
<constraint firstAttribute="height" constant="71" id="dgX-Z9-V7a"/>
|
||||
<constraint firstItem="uB8-QP-TLL" firstAttribute="top" secondItem="Ksp-bT-5CL" secondAttribute="top" constant="26" id="ecg-IC-Fyq"/>
|
||||
<constraint firstItem="ylv-mz-vHm" firstAttribute="centerX" secondItem="Ksp-bT-5CL" secondAttribute="centerX" id="kmP-22-Bgu"/>
|
||||
<constraint firstItem="v3I-Xx-UX5" firstAttribute="leading" secondItem="Ksp-bT-5CL" secondAttribute="leading" id="tKS-0p-jSs"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="2U9-kt-6EH">
|
||||
<rect key="frame" x="216.66666666666663" y="463.66666666666669" width="106" height="71.000000000000057"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="zxy_yueqi_bg" translatesAutoresizingMaskIntoConstraints="NO" id="n6M-28-rnf">
|
||||
<rect key="frame" x="0.0" y="0.0" width="106" height="71"/>
|
||||
</imageView>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="zxy_yueqi_5" translatesAutoresizingMaskIntoConstraints="NO" id="WOz-QK-6RM">
|
||||
<rect key="frame" x="25" y="-32" width="60" height="60"/>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="x20倍" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zqm-Ec-9ZH">
|
||||
<rect key="frame" x="33.333333333333343" y="26" width="39.333333333333343" height="19.333333333333329"/>
|
||||
<fontDescription key="fontDescription" name="DINAlternate-Bold" family="DIN Alternate" pointSize="16"/>
|
||||
<color key="textColor" red="1" green="0.95294117649999999" blue="0.60392156860000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1dw-AJ-KOU">
|
||||
<rect key="frame" x="34.333333333333343" y="48.333333333333371" width="37" height="16"/>
|
||||
<color key="backgroundColor" white="1" alpha="0.063004889460000005" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="37" id="Kq7-U5-8qJ"/>
|
||||
<constraint firstAttribute="height" constant="16" id="XTH-jh-vF5"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="12"/>
|
||||
<color key="textColor" red="1" green="0.95294117649999999" blue="0.60392156860000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
|
||||
<real key="value" value="0.5"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
|
||||
<color key="value" white="1" alpha="0.3989963661" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="8"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="bottom" secondItem="n6M-28-rnf" secondAttribute="bottom" id="19I-Cl-9UG"/>
|
||||
<constraint firstItem="WOz-QK-6RM" firstAttribute="top" secondItem="2U9-kt-6EH" secondAttribute="top" constant="-32" id="3Dy-ER-gez"/>
|
||||
<constraint firstItem="1dw-AJ-KOU" firstAttribute="centerX" secondItem="2U9-kt-6EH" secondAttribute="centerX" id="5g4-ZT-aIn"/>
|
||||
<constraint firstAttribute="trailing" secondItem="n6M-28-rnf" secondAttribute="trailing" id="85b-tz-3Kf"/>
|
||||
<constraint firstItem="n6M-28-rnf" firstAttribute="top" secondItem="2U9-kt-6EH" secondAttribute="top" id="ClJ-kz-6Tp"/>
|
||||
<constraint firstItem="zqm-Ec-9ZH" firstAttribute="centerX" secondItem="2U9-kt-6EH" secondAttribute="centerX" id="Frl-ae-r3e"/>
|
||||
<constraint firstAttribute="width" constant="106" id="SeN-aS-jau"/>
|
||||
<constraint firstItem="n6M-28-rnf" firstAttribute="leading" secondItem="2U9-kt-6EH" secondAttribute="leading" id="Xlp-0S-bvw"/>
|
||||
<constraint firstItem="WOz-QK-6RM" firstAttribute="centerX" secondItem="2U9-kt-6EH" secondAttribute="centerX" constant="2" id="ZVa-IZ-x8m"/>
|
||||
<constraint firstItem="zqm-Ec-9ZH" firstAttribute="top" secondItem="2U9-kt-6EH" secondAttribute="top" constant="26" id="j8a-27-HBL"/>
|
||||
<constraint firstItem="1dw-AJ-KOU" firstAttribute="top" secondItem="zqm-Ec-9ZH" secondAttribute="bottom" constant="3" id="pOE-11-SgF"/>
|
||||
<constraint firstAttribute="height" constant="71" id="xrc-PA-lIL"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="9j2-ga-YPe">
|
||||
<rect key="frame" x="334" y="191" width="52" height="52"/>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" image="zxy_rank"/>
|
||||
<connections>
|
||||
<action selector="onRank:" destination="iN0-l3-epB" eventType="touchUpInside" id="q2R-Da-6KS"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="Vhn-mJ-1cC" firstAttribute="centerY" secondItem="WFW-wb-xUK" secondAttribute="centerY" id="7Ib-Ww-kkT"/>
|
||||
<constraint firstItem="Ksp-bT-5CL" firstAttribute="top" secondItem="ks6-J8-Lxb" secondAttribute="bottom" constant="33" id="7WJ-ij-q1B"/>
|
||||
<constraint firstItem="eRi-kw-x05" firstAttribute="top" secondItem="FD5-YL-Deg" secondAttribute="top" id="8jF-pc-U9J"/>
|
||||
<constraint firstItem="8WV-Vh-liu" firstAttribute="leading" secondItem="FD5-YL-Deg" secondAttribute="leading" constant="14" id="9TQ-Jt-6RT"/>
|
||||
<constraint firstAttribute="bottom" secondItem="ks6-J8-Lxb" secondAttribute="bottom" constant="130" id="Aky-Pv-1mv"/>
|
||||
<constraint firstItem="ks6-J8-Lxb" firstAttribute="centerX" secondItem="FD5-YL-Deg" secondAttribute="centerX" id="Cbv-1S-ImM"/>
|
||||
<constraint firstItem="8WV-Vh-liu" firstAttribute="top" secondItem="FD5-YL-Deg" secondAttribute="top" constant="98" id="EQW-OY-XiU"/>
|
||||
<constraint firstItem="wXG-GE-gDk" firstAttribute="centerY" secondItem="ks6-J8-Lxb" secondAttribute="centerY" id="Hf3-j5-mTM"/>
|
||||
<constraint firstItem="KoV-ik-85U" firstAttribute="top" secondItem="FD5-YL-Deg" secondAttribute="top" constant="132" id="IHy-AX-uQQ"/>
|
||||
<constraint firstItem="9j2-ga-YPe" firstAttribute="centerX" secondItem="mzs-cY-3YV" secondAttribute="centerX" id="NkX-lc-1SO"/>
|
||||
<constraint firstItem="eRi-kw-x05" firstAttribute="leading" secondItem="FD5-YL-Deg" secondAttribute="leading" id="OWo-5M-iI8"/>
|
||||
<constraint firstItem="ghe-fm-8EW" firstAttribute="top" secondItem="FD5-YL-Deg" secondAttribute="top" constant="68" id="Uik-zB-WmW"/>
|
||||
<constraint firstItem="mzs-cY-3YV" firstAttribute="centerY" secondItem="KoV-ik-85U" secondAttribute="centerY" id="V15-Kd-UD0"/>
|
||||
<constraint firstItem="2U9-kt-6EH" firstAttribute="centerY" secondItem="Ksp-bT-5CL" secondAttribute="centerY" id="VGE-x6-dSH"/>
|
||||
<constraint firstItem="lNB-TH-Gr3" firstAttribute="centerY" secondItem="ks6-J8-Lxb" secondAttribute="centerY" id="Wx7-5Z-buY"/>
|
||||
<constraint firstItem="wXG-GE-gDk" firstAttribute="leading" secondItem="ks6-J8-Lxb" secondAttribute="trailing" constant="10" id="YEV-Mb-Nbw"/>
|
||||
<constraint firstItem="ks6-J8-Lxb" firstAttribute="top" secondItem="WFW-wb-xUK" secondAttribute="bottom" constant="25" id="bEZ-Aa-eOo"/>
|
||||
<constraint firstItem="ghe-fm-8EW" firstAttribute="centerX" secondItem="FD5-YL-Deg" secondAttribute="centerX" id="bdx-VI-4tS"/>
|
||||
<constraint firstItem="2U9-kt-6EH" firstAttribute="leading" secondItem="Ksp-bT-5CL" secondAttribute="trailing" constant="40" id="dS4-00-FGh"/>
|
||||
<constraint firstItem="Vhn-mJ-1cC" firstAttribute="centerX" secondItem="WFW-wb-xUK" secondAttribute="centerX" id="eTh-SK-kaH"/>
|
||||
<constraint firstItem="WFW-wb-xUK" firstAttribute="centerX" secondItem="FD5-YL-Deg" secondAttribute="centerX" id="fEn-4p-YFl"/>
|
||||
<constraint firstAttribute="bottom" secondItem="eRi-kw-x05" secondAttribute="bottom" id="iTC-il-S5c"/>
|
||||
<constraint firstAttribute="trailing" secondItem="mzs-cY-3YV" secondAttribute="trailing" constant="7" id="jaG-sB-alG"/>
|
||||
<constraint firstItem="9j2-ga-YPe" firstAttribute="centerY" secondItem="REU-Wy-KWH" secondAttribute="centerY" id="m6B-Ia-4Ft"/>
|
||||
<constraint firstItem="REU-Wy-KWH" firstAttribute="top" secondItem="KoV-ik-85U" secondAttribute="bottom" constant="7" id="mMe-s0-okS"/>
|
||||
<constraint firstAttribute="width" secondItem="FD5-YL-Deg" secondAttribute="height" multiplier="375:535" id="o2M-0e-E6u"/>
|
||||
<constraint firstAttribute="trailing" secondItem="eRi-kw-x05" secondAttribute="trailing" id="oq4-Ac-n5g"/>
|
||||
<constraint firstItem="ks6-J8-Lxb" firstAttribute="leading" secondItem="lNB-TH-Gr3" secondAttribute="trailing" constant="10" id="r89-f9-mqu"/>
|
||||
<constraint firstItem="REU-Wy-KWH" firstAttribute="centerX" secondItem="KoV-ik-85U" secondAttribute="centerX" id="vQ1-zj-G0d"/>
|
||||
<constraint firstItem="Ksp-bT-5CL" firstAttribute="centerX" secondItem="FD5-YL-Deg" secondAttribute="centerX" constant="-73" id="zjV-MX-ice"/>
|
||||
<constraint firstItem="KoV-ik-85U" firstAttribute="leading" secondItem="FD5-YL-Deg" secondAttribute="leading" constant="7" id="zzw-Da-CEa"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="FD5-YL-Deg" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="3mo-BW-zsK"/>
|
||||
<constraint firstItem="Z8F-VH-e9A" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="3t9-B9-zkj"/>
|
||||
<constraint firstItem="Z8F-VH-e9A" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="c0s-Lz-oRv"/>
|
||||
<constraint firstAttribute="trailing" secondItem="Z8F-VH-e9A" secondAttribute="trailing" id="eYr-WN-7Tc"/>
|
||||
<constraint firstAttribute="trailing" secondItem="FD5-YL-Deg" secondAttribute="trailing" id="h5c-lI-nUR"/>
|
||||
<constraint firstAttribute="bottom" secondItem="Z8F-VH-e9A" secondAttribute="bottom" id="qFb-DJ-Zm9"/>
|
||||
<constraint firstAttribute="bottom" secondItem="FD5-YL-Deg" secondAttribute="bottom" id="qgj-hE-48e"/>
|
||||
</constraints>
|
||||
<connections>
|
||||
<outlet property="moneyLab" destination="7cV-aO-lMB" id="IeF-FF-DSm"/>
|
||||
<outlet property="numLab_1" destination="LC6-A3-swx" id="FcD-fF-7Ai"/>
|
||||
<outlet property="numLab_2" destination="kw1-Bz-Bm4" id="yyu-WW-Y0V"/>
|
||||
<outlet property="numLab_3" destination="PyJ-CL-sqx" id="YHE-pa-02P"/>
|
||||
<outlet property="numLab_4" destination="ylv-mz-vHm" id="1TI-cs-QEP"/>
|
||||
<outlet property="numLab_5" destination="1dw-AJ-KOU" id="7yC-6h-VER"/>
|
||||
<outlet property="ticketLab" destination="fRW-fN-nXP" id="COq-Fg-RZC"/>
|
||||
<outlet property="timeBgImgV" destination="Vhn-mJ-1cC" id="6OS-Ca-bhw"/>
|
||||
<outlet property="timeLab" destination="WFW-wb-xUK" id="QNR-Pa-eTJ"/>
|
||||
<outlet property="touchImgV" destination="Z8F-VH-e9A" id="Bos-S0-uMU"/>
|
||||
<outlet property="yueqiView_1" destination="lNB-TH-Gr3" id="atC-4r-4lJ"/>
|
||||
<outlet property="yueqiView_2" destination="ks6-J8-Lxb" id="GrK-tF-L9L"/>
|
||||
<outlet property="yueqiView_3" destination="wXG-GE-gDk" id="PZc-7D-m7h"/>
|
||||
<outlet property="yueqiView_4" destination="Ksp-bT-5CL" id="BlO-AV-Kwl"/>
|
||||
<outlet property="yueqiView_5" destination="2U9-kt-6EH" id="pXW-g6-mQP"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="117" y="-11"/>
|
||||
</view>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="zxy_bg" width="375" height="535"/>
|
||||
<image name="zxy_coin" width="19.5" height="20"/>
|
||||
<image name="zxy_history" width="51.5" height="51.5"/>
|
||||
<image name="zxy_money_bg" width="83" height="21"/>
|
||||
<image name="zxy_pool" width="51.5" height="51.5"/>
|
||||
<image name="zxy_rank" width="51.5" height="51.5"/>
|
||||
<image name="zxy_rule" width="51.5" height="51.5"/>
|
||||
<image name="zxy_ticket_bg" width="199.5" height="25"/>
|
||||
<image name="zxy_time_bg" width="155.5" height="27.5"/>
|
||||
<image name="zxy_yueqi_1" width="60" height="60"/>
|
||||
<image name="zxy_yueqi_2" width="60" height="60"/>
|
||||
<image name="zxy_yueqi_3" width="60" height="60"/>
|
||||
<image name="zxy_yueqi_4" width="60" height="60"/>
|
||||
<image name="zxy_yueqi_5" width="60" height="60"/>
|
||||
<image name="zxy_yueqi_bg" width="106" height="71"/>
|
||||
</resources>
|
||||
</document>
|
||||
24
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYBuyView.h
Normal file
24
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYBuyView.h
Normal file
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// ZXYBuyView.h
|
||||
// SweetParty
|
||||
//
|
||||
// Created by MAC on 2024/5/6.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface ZXYBuyView : UIView
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *touchImgV;
|
||||
@property (weak, nonatomic) IBOutlet UITextField *numTF;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *priceLab;
|
||||
|
||||
@property (nonatomic, copy) void(^onBuySuccessBlock)(NSString *integral, NSString *airship);
|
||||
|
||||
@property (nonatomic, copy) NSString *rid;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
94
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYBuyView.m
Normal file
94
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYBuyView.m
Normal file
@@ -0,0 +1,94 @@
|
||||
//
|
||||
// ZXYBuyView.m
|
||||
// SweetParty
|
||||
//
|
||||
// Created by MAC on 2024/5/6.
|
||||
//
|
||||
|
||||
#import "ZXYBuyView.h"
|
||||
|
||||
@interface ZXYBuyView ()
|
||||
|
||||
@property (nonatomic, assign) NSInteger sprite_price;//门票价格
|
||||
@property (nonatomic, assign) NSInteger integral;//用户金币数量
|
||||
|
||||
@end
|
||||
|
||||
@implementation ZXYBuyView
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
|
||||
[self createUI];
|
||||
|
||||
//添加方法
|
||||
[self.numTF addTarget:self action:@selector(textFieldChanged:) forControlEvents:UIControlEventEditingChanged];
|
||||
}
|
||||
|
||||
- (void)textFieldChanged:(UITextField*)textField {
|
||||
[self onUpdatePriceLab];
|
||||
}
|
||||
|
||||
- (void)createUI {
|
||||
WEAK_SELF
|
||||
[self.touchImgV dg_Tapped:^{
|
||||
[weakSelf removeFromSuperview];
|
||||
}];
|
||||
}
|
||||
|
||||
- (void)setRid:(NSString *)rid {
|
||||
_rid = rid;
|
||||
|
||||
NSDictionary *params = @{};
|
||||
[AFNetworkRequset.shared postRequestWithParams:params Path:@"/api/Sprite/choice_amount_list" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
|
||||
self.integral = [responseDic[@"data"] safeIntForKey:@"integral"];
|
||||
self.sprite_price = [responseDic[@"data"] safeIntForKey:@"sprite_price"];
|
||||
[self onUpdatePriceLab];
|
||||
} Failure:^(id _Nonnull errorData) {
|
||||
|
||||
}];
|
||||
}
|
||||
|
||||
- (void)onUpdatePriceLab {
|
||||
NSInteger num = [self.numTF.text integerValue];
|
||||
self.priceLab.text = [NSString stringWithFormat:@"%ld/%ld", self.sprite_price*num, self.integral];
|
||||
}
|
||||
|
||||
- (IBAction)onLess:(id)sender {
|
||||
NSInteger num = [self.numTF.text integerValue];
|
||||
if (num <= 1) {
|
||||
return;
|
||||
}
|
||||
num -= 1;
|
||||
self.numTF.text = [NSString stringWithFormat:@"%ld", num];
|
||||
[self onUpdatePriceLab];
|
||||
}
|
||||
|
||||
- (IBAction)onMore:(id)sender {
|
||||
NSInteger num = [self.numTF.text integerValue];
|
||||
num += 1;
|
||||
self.numTF.text = [NSString stringWithFormat:@"%ld", num];
|
||||
[self onUpdatePriceLab];
|
||||
}
|
||||
|
||||
- (IBAction)onCancel:(id)sender {
|
||||
[self removeFromSuperview];
|
||||
}
|
||||
|
||||
- (IBAction)onConfirm:(id)sender {
|
||||
if ([self.numTF.text integerValue] <= 0) {
|
||||
return;
|
||||
}
|
||||
NSInteger num = [self.numTF.text integerValue];
|
||||
NSDictionary *params = @{@"rid":C_string(self.rid), @"num":@(num)};
|
||||
[AFNetworkRequset.shared postRequestWithParams:params Path:@"/api/Sprite/exchange_airship" Loading:NO Hud:YES Success:^(id _Nonnull responseDic) {
|
||||
if (self.onBuySuccessBlock) {
|
||||
self.onBuySuccessBlock([responseDic[@"data"] safeStringForKey:@"integral"], [responseDic[@"data"] safeStringForKey:@"airship"]);
|
||||
}
|
||||
[self removeFromSuperview];
|
||||
} Failure:^(id _Nonnull errorData) {
|
||||
|
||||
}];
|
||||
}
|
||||
|
||||
@end
|
||||
183
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYBuyView.xib
Normal file
183
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYBuyView.xib
Normal file
@@ -0,0 +1,183 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
|
||||
<device id="retina6_12" orientation="portrait" appearance="light"/>
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="ZXYBuyView">
|
||||
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="KSD-tF-VEs">
|
||||
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.30220042118409862" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</imageView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="qym-3G-Zu0">
|
||||
<rect key="frame" x="12" y="240" width="369" height="372"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ticket_buy_bg" translatesAutoresizingMaskIntoConstraints="NO" id="9yf-Fh-QHd">
|
||||
<rect key="frame" x="0.0" y="0.0" width="369" height="372"/>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="购买数量" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="obE-nr-laA">
|
||||
<rect key="frame" x="24.000000000000004" y="105" width="57.333333333333343" height="17"/>
|
||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="uVY-Od-2Yh">
|
||||
<rect key="frame" x="24" y="136" width="55" height="40"/>
|
||||
<color key="backgroundColor" white="1" alpha="0.11637120669999999" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="55" id="ZdU-Lt-jKg"/>
|
||||
<constraint firstAttribute="height" constant="40" id="yUc-Wz-3jB"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="19"/>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" title="-"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="20"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
<connections>
|
||||
<action selector="onLess:" destination="iN0-l3-epB" eventType="touchUpInside" id="Cww-D3-xaa"/>
|
||||
</connections>
|
||||
</button>
|
||||
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="1" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="TVZ-7J-rHP">
|
||||
<rect key="frame" x="89" y="136" width="90" height="40"/>
|
||||
<color key="backgroundColor" white="1" alpha="0.11637120669999999" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="40" id="iKu-yQ-h0z"/>
|
||||
<constraint firstAttribute="width" constant="90" id="omg-db-tvQ"/>
|
||||
</constraints>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<fontDescription key="fontDescription" name="DINAlternate-Bold" family="DIN Alternate" pointSize="19"/>
|
||||
<textInputTraits key="textInputTraits" keyboardType="numberPad" returnKeyType="done"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="20"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</textField>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="L1i-fK-EaR">
|
||||
<rect key="frame" x="189" y="136" width="55" height="40"/>
|
||||
<color key="backgroundColor" white="1" alpha="0.11637120669999999" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="40" id="F6P-pm-AdI"/>
|
||||
<constraint firstAttribute="width" constant="55" id="ocE-Is-Wi1"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="19"/>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" title="+"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="20"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
<connections>
|
||||
<action selector="onMore:" destination="iN0-l3-epB" eventType="touchUpInside" id="UIJ-7L-pXV"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="P1J-Mb-MBG">
|
||||
<rect key="frame" x="202" y="288" width="144" height="44"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="144" id="a1F-6e-eOd"/>
|
||||
<constraint firstAttribute="height" constant="44" id="dUP-qP-cbq"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" image="zxy_num_confirm"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
|
||||
<color key="value" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
<connections>
|
||||
<action selector="onConfirm:" destination="iN0-l3-epB" eventType="touchUpInside" id="KsJ-bN-laH"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Mgd-re-zbJ">
|
||||
<rect key="frame" x="23" y="288" width="144" height="44"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="44" id="dTD-bG-KZG"/>
|
||||
<constraint firstAttribute="width" constant="144" id="dqh-XK-ye9"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" image="zxy_num_cancel">
|
||||
<color key="titleColor" white="1" alpha="0.60397650270000003" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="onCancel:" destination="iN0-l3-epB" eventType="touchUpInside" id="34L-tN-lHz"/>
|
||||
</connections>
|
||||
</button>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="消耗金币:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zQS-8H-iYb">
|
||||
<rect key="frame" x="24" y="200" width="71.666666666666671" height="17"/>
|
||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0/0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="q56-bj-ybR">
|
||||
<rect key="frame" x="95.666666666666671" y="200" width="23.666666666666671" height="17"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="uVY-Od-2Yh" firstAttribute="leading" secondItem="obE-nr-laA" secondAttribute="leading" id="3ec-vN-aMF"/>
|
||||
<constraint firstItem="TVZ-7J-rHP" firstAttribute="leading" secondItem="uVY-Od-2Yh" secondAttribute="trailing" constant="10" id="49h-t2-Cqf"/>
|
||||
<constraint firstAttribute="bottom" secondItem="P1J-Mb-MBG" secondAttribute="bottom" constant="40" id="6DC-UU-179"/>
|
||||
<constraint firstItem="zQS-8H-iYb" firstAttribute="leading" secondItem="obE-nr-laA" secondAttribute="leading" id="FgE-Gk-44t"/>
|
||||
<constraint firstAttribute="bottom" secondItem="9yf-Fh-QHd" secondAttribute="bottom" id="Gc9-3g-Ncw"/>
|
||||
<constraint firstItem="L1i-fK-EaR" firstAttribute="leading" secondItem="TVZ-7J-rHP" secondAttribute="trailing" constant="10" id="HLN-bJ-XH8"/>
|
||||
<constraint firstItem="q56-bj-ybR" firstAttribute="leading" secondItem="zQS-8H-iYb" secondAttribute="trailing" id="JbH-bk-2F6"/>
|
||||
<constraint firstItem="Mgd-re-zbJ" firstAttribute="centerY" secondItem="P1J-Mb-MBG" secondAttribute="centerY" id="WIp-1a-BID"/>
|
||||
<constraint firstItem="L1i-fK-EaR" firstAttribute="centerY" secondItem="uVY-Od-2Yh" secondAttribute="centerY" id="YDj-kh-iDh"/>
|
||||
<constraint firstItem="Mgd-re-zbJ" firstAttribute="leading" secondItem="qym-3G-Zu0" secondAttribute="leading" constant="23" id="cc4-Ef-uXZ"/>
|
||||
<constraint firstItem="9yf-Fh-QHd" firstAttribute="top" secondItem="qym-3G-Zu0" secondAttribute="top" id="fCC-i2-5Gj"/>
|
||||
<constraint firstItem="q56-bj-ybR" firstAttribute="centerY" secondItem="zQS-8H-iYb" secondAttribute="centerY" id="fEX-H0-qNm"/>
|
||||
<constraint firstAttribute="trailing" secondItem="9yf-Fh-QHd" secondAttribute="trailing" id="fOY-4k-xBY"/>
|
||||
<constraint firstItem="9yf-Fh-QHd" firstAttribute="leading" secondItem="qym-3G-Zu0" secondAttribute="leading" id="fvT-hj-4Nf"/>
|
||||
<constraint firstAttribute="trailing" secondItem="P1J-Mb-MBG" secondAttribute="trailing" constant="23" id="gtS-5h-O8n"/>
|
||||
<constraint firstItem="TVZ-7J-rHP" firstAttribute="centerY" secondItem="uVY-Od-2Yh" secondAttribute="centerY" id="hP1-aS-jf4"/>
|
||||
<constraint firstAttribute="width" secondItem="qym-3G-Zu0" secondAttribute="height" multiplier="350:353" id="jPs-7n-2BC"/>
|
||||
<constraint firstItem="zQS-8H-iYb" firstAttribute="top" secondItem="uVY-Od-2Yh" secondAttribute="bottom" constant="24" id="p9m-Ty-j5V"/>
|
||||
<constraint firstItem="obE-nr-laA" firstAttribute="leading" secondItem="qym-3G-Zu0" secondAttribute="leading" constant="24" id="sPi-h1-tgv"/>
|
||||
<constraint firstItem="obE-nr-laA" firstAttribute="top" secondItem="qym-3G-Zu0" secondAttribute="top" constant="105" id="w0H-2y-jq2"/>
|
||||
<constraint firstItem="uVY-Od-2Yh" firstAttribute="top" secondItem="obE-nr-laA" secondAttribute="bottom" constant="14" id="xtj-DP-9Ml"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="qym-3G-Zu0" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="12" id="MQo-cP-Qgj"/>
|
||||
<constraint firstItem="KSD-tF-VEs" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="PC6-be-1SF"/>
|
||||
<constraint firstAttribute="trailing" secondItem="KSD-tF-VEs" secondAttribute="trailing" id="PUB-dn-JAj"/>
|
||||
<constraint firstAttribute="bottom" secondItem="KSD-tF-VEs" secondAttribute="bottom" id="Qkt-Xt-Lxy"/>
|
||||
<constraint firstItem="KSD-tF-VEs" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="Z2F-Ql-iSc"/>
|
||||
<constraint firstAttribute="trailing" secondItem="qym-3G-Zu0" secondAttribute="trailing" constant="12" id="sRA-WT-IYD"/>
|
||||
<constraint firstItem="qym-3G-Zu0" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="tLT-dD-iG2"/>
|
||||
</constraints>
|
||||
<connections>
|
||||
<outlet property="numTF" destination="TVZ-7J-rHP" id="EyW-Vx-atO"/>
|
||||
<outlet property="priceLab" destination="q56-bj-ybR" id="gHu-1H-mm9"/>
|
||||
<outlet property="touchImgV" destination="KSD-tF-VEs" id="XJn-2i-dT2"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="116.79389312977099" y="-11.267605633802818"/>
|
||||
</view>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="ticket_buy_bg" width="350" height="353"/>
|
||||
<image name="zxy_num_cancel" width="141" height="41"/>
|
||||
<image name="zxy_num_confirm" width="144" height="44"/>
|
||||
</resources>
|
||||
</document>
|
||||
18
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYChooseNumCell.h
Normal file
18
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYChooseNumCell.h
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// ZXYChooseNumCell.h
|
||||
// SweetParty
|
||||
//
|
||||
// Created by MAC on 2024/5/6.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface ZXYChooseNumCell : UICollectionViewCell
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UILabel *numLab;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
17
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYChooseNumCell.m
Normal file
17
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYChooseNumCell.m
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// ZXYChooseNumCell.m
|
||||
// SweetParty
|
||||
//
|
||||
// Created by MAC on 2024/5/6.
|
||||
//
|
||||
|
||||
#import "ZXYChooseNumCell.h"
|
||||
|
||||
@implementation ZXYChooseNumCell
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
// Initialization code
|
||||
}
|
||||
|
||||
@end
|
||||
46
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYChooseNumCell.xib
Normal file
46
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYChooseNumCell.xib
Normal file
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
|
||||
<device id="retina6_12" orientation="portrait" appearance="light"/>
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="gTV-IL-0wX" customClass="ZXYChooseNumCell">
|
||||
<rect key="frame" x="0.0" y="0.0" width="94" height="47"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
|
||||
<rect key="frame" x="0.0" y="0.0" width="94" height="47"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<subviews>
|
||||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="1" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="nQM-zW-48Z">
|
||||
<rect key="frame" x="0.0" y="0.0" width="94" height="47"/>
|
||||
<color key="backgroundColor" white="1" alpha="0.12161981491815477" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<fontDescription key="fontDescription" name="DINAlternate-Bold" family="DIN Alternate" pointSize="19"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="20"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</label>
|
||||
</subviews>
|
||||
</view>
|
||||
<constraints>
|
||||
<constraint firstItem="nQM-zW-48Z" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" id="3Kw-hQ-Ib9"/>
|
||||
<constraint firstAttribute="trailing" secondItem="nQM-zW-48Z" secondAttribute="trailing" id="5PY-vY-Mxm"/>
|
||||
<constraint firstAttribute="bottom" secondItem="nQM-zW-48Z" secondAttribute="bottom" id="bWa-w2-6Ek"/>
|
||||
<constraint firstItem="nQM-zW-48Z" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="z8o-wn-3TT"/>
|
||||
</constraints>
|
||||
<size key="customSize" width="94" height="47"/>
|
||||
<connections>
|
||||
<outlet property="numLab" destination="nQM-zW-48Z" id="MgE-k0-RJg"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="148.09160305343511" y="-12.323943661971832"/>
|
||||
</collectionViewCell>
|
||||
</objects>
|
||||
</document>
|
||||
26
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYChooseNumView.h
Normal file
26
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYChooseNumView.h
Normal file
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// ZXYChooseNumView.h
|
||||
// SweetParty
|
||||
//
|
||||
// Created by MAC on 2024/5/6.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface ZXYChooseNumView : UIView
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *touchImgV;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *titleLab;
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *titleImgV;
|
||||
@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
|
||||
@property (weak, nonatomic) IBOutlet UITextField *numTF;
|
||||
|
||||
@property (nonatomic, copy) void(^onConfirmBlock)(void);
|
||||
|
||||
- (void)onUpdateWith:(NSInteger)type rid:(NSString *)rid;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
124
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYChooseNumView.m
Normal file
124
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYChooseNumView.m
Normal file
@@ -0,0 +1,124 @@
|
||||
//
|
||||
// ZXYChooseNumView.m
|
||||
// SweetParty
|
||||
//
|
||||
// Created by MAC on 2024/5/6.
|
||||
//
|
||||
|
||||
#import "ZXYChooseNumView.h"
|
||||
#import "ZXYChooseNumCell.h"
|
||||
|
||||
@interface ZXYChooseNumView ()<UICollectionViewDataSource, UICollectionViewDelegateFlowLayout>
|
||||
|
||||
@property (nonatomic, strong) NSArray *dataArray;
|
||||
|
||||
@property (nonatomic, copy) NSString *rid;
|
||||
@property (nonatomic, assign) NSInteger type;
|
||||
|
||||
@end
|
||||
|
||||
@implementation ZXYChooseNumView
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
|
||||
self.dataArray = @[@"10",@"20",@"30",@"50",@"100"];
|
||||
|
||||
[self createUI];
|
||||
|
||||
//添加方法
|
||||
[self.numTF addTarget:self action:@selector(textFieldChanged:) forControlEvents:UIControlEventEditingChanged];
|
||||
}
|
||||
|
||||
- (void)textFieldChanged:(UITextField*)textField {
|
||||
|
||||
}
|
||||
|
||||
- (void)onUpdateWith:(NSInteger)type rid:(NSString *)rid {
|
||||
self.type = type;
|
||||
self.rid = rid;
|
||||
//中奖类型 1吉他2小提琴3古筝4架子鼓5钢琴
|
||||
NSArray *titleArr = @[@"吉他", @"小提琴", @"古筝", @"架子鼓", @"钢琴"];
|
||||
self.titleLab.text = titleArr[type-1];
|
||||
self.titleImgV.image = [UIImage imageNamed:[NSString stringWithFormat:@"zxy_yueqi_%ld", type]];
|
||||
}
|
||||
|
||||
- (void)createUI {
|
||||
WEAK_SELF
|
||||
[self.touchImgV dg_Tapped:^{
|
||||
[weakSelf removeFromSuperview];
|
||||
}];
|
||||
|
||||
UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
|
||||
layout.itemSize = CGSizeMake(90, 40);
|
||||
layout.minimumInteritemSpacing = 15;
|
||||
layout.minimumLineSpacing = 13;
|
||||
layout.sectionInset = UIEdgeInsetsMake(0, 0, 0, 0);
|
||||
|
||||
_collectionView.collectionViewLayout = layout;
|
||||
_collectionView.delegate = self;
|
||||
_collectionView.dataSource = self;
|
||||
[_collectionView registerNib:[UINib nibWithNibName:@"ZXYChooseNumCell" bundle:nil] forCellWithReuseIdentifier:@"ZXYChooseNumCell"];
|
||||
}
|
||||
|
||||
- (IBAction)onLess:(id)sender {
|
||||
NSInteger num = [self.numTF.text integerValue];
|
||||
if (num <= 1) {
|
||||
return;
|
||||
}
|
||||
num -= 1;
|
||||
self.numTF.text = [NSString stringWithFormat:@"%ld", num];
|
||||
}
|
||||
|
||||
- (IBAction)onMore:(id)sender {
|
||||
NSInteger num = [self.numTF.text integerValue];
|
||||
num += 1;
|
||||
self.numTF.text = [NSString stringWithFormat:@"%ld", num];
|
||||
}
|
||||
|
||||
- (IBAction)onCancel:(id)sender {
|
||||
[self removeFromSuperview];
|
||||
}
|
||||
|
||||
- (IBAction)onConfirm:(id)sender {
|
||||
if ([self.numTF.text integerValue] <= 0) {
|
||||
return;
|
||||
}
|
||||
NSString *open_data = [NSString stringWithFormat:@"%ld-%ld", self.type, [self.numTF.text integerValue]];
|
||||
NSDictionary *params = @{@"open_data":open_data, @"rid":C_string(self.rid)};
|
||||
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"/api/Sprite/open_explore_star" Loading:NO Hud:YES Success:^(id _Nonnull responseDic) {
|
||||
if (self.onConfirmBlock) {
|
||||
self.onConfirmBlock();
|
||||
}
|
||||
[self removeFromSuperview];
|
||||
|
||||
} Failure:^(id _Nonnull errorData) {
|
||||
|
||||
}];
|
||||
}
|
||||
|
||||
#pragma mark - UICollectionViewDelegate && UICollectionViewDataSource
|
||||
|
||||
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
|
||||
{
|
||||
return self.dataArray.count;
|
||||
}
|
||||
|
||||
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{
|
||||
ZXYChooseNumCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"ZXYChooseNumCell" forIndexPath:indexPath];
|
||||
NSString *str = self.dataArray[indexPath.row];
|
||||
cell.numLab.text = str;
|
||||
|
||||
return cell;
|
||||
}
|
||||
|
||||
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
|
||||
self.numTF.text = self.dataArray[indexPath.row];
|
||||
}
|
||||
|
||||
@end
|
||||
211
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYChooseNumView.xib
Normal file
211
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYChooseNumView.xib
Normal file
@@ -0,0 +1,211 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
|
||||
<device id="retina6_12" orientation="portrait" appearance="light"/>
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="ZXYChooseNumView">
|
||||
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="KSD-tF-VEs">
|
||||
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.30220042118409862" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</imageView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="qym-3G-Zu0">
|
||||
<rect key="frame" x="12" y="181" width="369" height="490"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="zxy_num_bg" translatesAutoresizingMaskIntoConstraints="NO" id="9yf-Fh-QHd">
|
||||
<rect key="frame" x="0.0" y="0.0" width="369" height="490"/>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="小提琴" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="NNC-bo-QIZ">
|
||||
<rect key="frame" x="146.66666666666666" y="38.666666666666657" width="76" height="30"/>
|
||||
<fontDescription key="fontDescription" type="system" weight="heavy" pointSize="25"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="zxy_yueqi_2" translatesAutoresizingMaskIntoConstraints="NO" id="6DM-FB-Qtv">
|
||||
<rect key="frame" x="30" y="0.0" width="100" height="100"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="100" id="eBT-Lb-0sf"/>
|
||||
<constraint firstAttribute="height" constant="100" id="w3S-1U-8DC"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="本次弹奏音符" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="obE-nr-laA">
|
||||
<rect key="frame" x="24" y="271" width="86" height="17"/>
|
||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="uVY-Od-2Yh">
|
||||
<rect key="frame" x="24" y="302" width="55" height="40"/>
|
||||
<color key="backgroundColor" white="1" alpha="0.11637120669999999" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="55" id="ZdU-Lt-jKg"/>
|
||||
<constraint firstAttribute="height" constant="40" id="yUc-Wz-3jB"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="19"/>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" title="-"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="20"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
<connections>
|
||||
<action selector="onLess:" destination="iN0-l3-epB" eventType="touchUpInside" id="Cww-D3-xaa"/>
|
||||
</connections>
|
||||
</button>
|
||||
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="1" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="TVZ-7J-rHP">
|
||||
<rect key="frame" x="89" y="302" width="90" height="40"/>
|
||||
<color key="backgroundColor" white="1" alpha="0.11637120669999999" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="40" id="iKu-yQ-h0z"/>
|
||||
<constraint firstAttribute="width" constant="90" id="omg-db-tvQ"/>
|
||||
</constraints>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<fontDescription key="fontDescription" name="DINAlternate-Bold" family="DIN Alternate" pointSize="19"/>
|
||||
<textInputTraits key="textInputTraits" keyboardType="numberPad" returnKeyType="done"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="20"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</textField>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="L1i-fK-EaR">
|
||||
<rect key="frame" x="189" y="302" width="55" height="40"/>
|
||||
<color key="backgroundColor" white="1" alpha="0.11637120669999999" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="40" id="F6P-pm-AdI"/>
|
||||
<constraint firstAttribute="width" constant="55" id="ocE-Is-Wi1"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="19"/>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" title="+"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="20"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
<connections>
|
||||
<action selector="onMore:" destination="iN0-l3-epB" eventType="touchUpInside" id="UIJ-7L-pXV"/>
|
||||
</connections>
|
||||
</button>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="选择弹奏次数" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="M53-vc-WBX">
|
||||
<rect key="frame" x="23" y="122" width="86" height="17"/>
|
||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" dataMode="none" translatesAutoresizingMaskIntoConstraints="NO" id="kzP-J1-ooD">
|
||||
<rect key="frame" x="23" y="154" width="323" height="93"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="93" id="HAD-PY-i0U"/>
|
||||
</constraints>
|
||||
<collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="10" minimumInteritemSpacing="10" id="5Gm-xg-1Y2">
|
||||
<size key="itemSize" width="128" height="128"/>
|
||||
<size key="headerReferenceSize" width="0.0" height="0.0"/>
|
||||
<size key="footerReferenceSize" width="0.0" height="0.0"/>
|
||||
<inset key="sectionInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/>
|
||||
</collectionViewFlowLayout>
|
||||
</collectionView>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="P1J-Mb-MBG">
|
||||
<rect key="frame" x="202" y="406" width="144" height="44"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="144" id="a1F-6e-eOd"/>
|
||||
<constraint firstAttribute="height" constant="44" id="dUP-qP-cbq"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" image="zxy_num_confirm"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
|
||||
<color key="value" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
<connections>
|
||||
<action selector="onConfirm:" destination="iN0-l3-epB" eventType="touchUpInside" id="KsJ-bN-laH"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Mgd-re-zbJ">
|
||||
<rect key="frame" x="23" y="406" width="144" height="44"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="44" id="dTD-bG-KZG"/>
|
||||
<constraint firstAttribute="width" constant="144" id="dqh-XK-ye9"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" image="zxy_num_cancel">
|
||||
<color key="titleColor" white="1" alpha="0.60397650270000003" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="onCancel:" destination="iN0-l3-epB" eventType="touchUpInside" id="34L-tN-lHz"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="obE-nr-laA" firstAttribute="top" secondItem="kzP-J1-ooD" secondAttribute="bottom" constant="24" id="3Kv-e2-GFx"/>
|
||||
<constraint firstItem="uVY-Od-2Yh" firstAttribute="leading" secondItem="obE-nr-laA" secondAttribute="leading" id="3ec-vN-aMF"/>
|
||||
<constraint firstItem="TVZ-7J-rHP" firstAttribute="leading" secondItem="uVY-Od-2Yh" secondAttribute="trailing" constant="10" id="49h-t2-Cqf"/>
|
||||
<constraint firstAttribute="bottom" secondItem="P1J-Mb-MBG" secondAttribute="bottom" constant="40" id="6DC-UU-179"/>
|
||||
<constraint firstAttribute="bottom" secondItem="9yf-Fh-QHd" secondAttribute="bottom" id="Gc9-3g-Ncw"/>
|
||||
<constraint firstItem="L1i-fK-EaR" firstAttribute="leading" secondItem="TVZ-7J-rHP" secondAttribute="trailing" constant="10" id="HLN-bJ-XH8"/>
|
||||
<constraint firstItem="M53-vc-WBX" firstAttribute="leading" secondItem="qym-3G-Zu0" secondAttribute="leading" constant="23" id="Hf4-48-RPP"/>
|
||||
<constraint firstItem="kzP-J1-ooD" firstAttribute="leading" secondItem="qym-3G-Zu0" secondAttribute="leading" constant="23" id="NlF-cD-xCM"/>
|
||||
<constraint firstItem="M53-vc-WBX" firstAttribute="top" secondItem="qym-3G-Zu0" secondAttribute="top" constant="122" id="VVY-qb-shW"/>
|
||||
<constraint firstItem="Mgd-re-zbJ" firstAttribute="centerY" secondItem="P1J-Mb-MBG" secondAttribute="centerY" id="WIp-1a-BID"/>
|
||||
<constraint firstItem="L1i-fK-EaR" firstAttribute="centerY" secondItem="uVY-Od-2Yh" secondAttribute="centerY" id="YDj-kh-iDh"/>
|
||||
<constraint firstItem="6DM-FB-Qtv" firstAttribute="top" secondItem="qym-3G-Zu0" secondAttribute="top" id="YjV-ik-Gr9"/>
|
||||
<constraint firstItem="NNC-bo-QIZ" firstAttribute="centerX" secondItem="qym-3G-Zu0" secondAttribute="centerX" id="b1F-C9-sNu"/>
|
||||
<constraint firstItem="Mgd-re-zbJ" firstAttribute="leading" secondItem="qym-3G-Zu0" secondAttribute="leading" constant="23" id="cc4-Ef-uXZ"/>
|
||||
<constraint firstItem="9yf-Fh-QHd" firstAttribute="top" secondItem="qym-3G-Zu0" secondAttribute="top" id="fCC-i2-5Gj"/>
|
||||
<constraint firstAttribute="trailing" secondItem="9yf-Fh-QHd" secondAttribute="trailing" id="fOY-4k-xBY"/>
|
||||
<constraint firstItem="9yf-Fh-QHd" firstAttribute="leading" secondItem="qym-3G-Zu0" secondAttribute="leading" id="fvT-hj-4Nf"/>
|
||||
<constraint firstAttribute="trailing" secondItem="P1J-Mb-MBG" secondAttribute="trailing" constant="23" id="gtS-5h-O8n"/>
|
||||
<constraint firstItem="kzP-J1-ooD" firstAttribute="top" secondItem="M53-vc-WBX" secondAttribute="bottom" constant="15" id="gul-5m-Drg"/>
|
||||
<constraint firstItem="NNC-bo-QIZ" firstAttribute="centerY" secondItem="qym-3G-Zu0" secondAttribute="centerY" multiplier="0.22" id="hGk-Ja-9NG"/>
|
||||
<constraint firstItem="TVZ-7J-rHP" firstAttribute="centerY" secondItem="uVY-Od-2Yh" secondAttribute="centerY" id="hP1-aS-jf4"/>
|
||||
<constraint firstAttribute="width" secondItem="qym-3G-Zu0" secondAttribute="height" multiplier="350:465" id="jPs-7n-2BC"/>
|
||||
<constraint firstItem="obE-nr-laA" firstAttribute="leading" secondItem="qym-3G-Zu0" secondAttribute="leading" constant="24" id="sPi-h1-tgv"/>
|
||||
<constraint firstAttribute="trailing" secondItem="kzP-J1-ooD" secondAttribute="trailing" constant="23" id="sko-pH-IJk"/>
|
||||
<constraint firstItem="6DM-FB-Qtv" firstAttribute="leading" secondItem="qym-3G-Zu0" secondAttribute="leading" constant="30" id="xEo-i3-R8X"/>
|
||||
<constraint firstItem="uVY-Od-2Yh" firstAttribute="top" secondItem="obE-nr-laA" secondAttribute="bottom" constant="14" id="xtj-DP-9Ml"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="qym-3G-Zu0" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="12" id="MQo-cP-Qgj"/>
|
||||
<constraint firstItem="KSD-tF-VEs" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="PC6-be-1SF"/>
|
||||
<constraint firstAttribute="trailing" secondItem="KSD-tF-VEs" secondAttribute="trailing" id="PUB-dn-JAj"/>
|
||||
<constraint firstAttribute="bottom" secondItem="KSD-tF-VEs" secondAttribute="bottom" id="Qkt-Xt-Lxy"/>
|
||||
<constraint firstItem="qym-3G-Zu0" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="WJr-6y-aPR"/>
|
||||
<constraint firstItem="KSD-tF-VEs" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="Z2F-Ql-iSc"/>
|
||||
<constraint firstAttribute="trailing" secondItem="qym-3G-Zu0" secondAttribute="trailing" constant="12" id="sRA-WT-IYD"/>
|
||||
</constraints>
|
||||
<connections>
|
||||
<outlet property="collectionView" destination="kzP-J1-ooD" id="IG5-g4-zVw"/>
|
||||
<outlet property="numTF" destination="TVZ-7J-rHP" id="EyW-Vx-atO"/>
|
||||
<outlet property="titleImgV" destination="6DM-FB-Qtv" id="u9D-mv-Tg9"/>
|
||||
<outlet property="titleLab" destination="NNC-bo-QIZ" id="HJZ-Hx-qoc"/>
|
||||
<outlet property="touchImgV" destination="KSD-tF-VEs" id="XJn-2i-dT2"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="116.79389312977099" y="-11.267605633802818"/>
|
||||
</view>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="zxy_num_bg" width="350" height="464.5"/>
|
||||
<image name="zxy_num_cancel" width="141" height="41"/>
|
||||
<image name="zxy_num_confirm" width="144" height="44"/>
|
||||
<image name="zxy_yueqi_2" width="60" height="60"/>
|
||||
</resources>
|
||||
</document>
|
||||
24
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYRankCell.h
Executable file
24
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYRankCell.h
Executable file
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// ZXYRankCell.h
|
||||
// romantic
|
||||
//
|
||||
// Created by bj_szd on 2023/7/19.
|
||||
// Copyright © 2023 romantic. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "DDCaiAllRecordModel.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface ZXYRankCell : UITableViewCell
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *avatarImgV;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *nicknameLab;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *valueLab;
|
||||
|
||||
@property (nonatomic, strong) DDCaiAllRecordModel *model;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
26
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYRankCell.m
Executable file
26
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYRankCell.m
Executable file
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// ZXYRankCell.m
|
||||
// romantic
|
||||
//
|
||||
// Created by bj_szd on 2023/7/19.
|
||||
// Copyright © 2023 romantic. All rights reserved.
|
||||
//
|
||||
|
||||
#import "ZXYRankCell.h"
|
||||
|
||||
@implementation ZXYRankCell
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
|
||||
}
|
||||
|
||||
- (void)setModel:(DDCaiAllRecordModel *)model {
|
||||
_model = model;
|
||||
|
||||
[self.avatarImgV sd_setImageWithURL:[NSURL URLWithString:model.head_pic] placeholderImage:kDefaultUserIcon];
|
||||
self.nicknameLab.text = model.nick_name;
|
||||
self.valueLab.text = [NSString stringWithFormat:@"获得总价值:%@", model.win_total_price];
|
||||
}
|
||||
|
||||
@end
|
||||
74
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYRankCell.xib
Executable file
74
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYRankCell.xib
Executable file
@@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
|
||||
<device id="retina6_1" orientation="portrait" appearance="light"/>
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="ZXYRankCell">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="70"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="70"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ih3-S3-hls">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="70"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="qXE-MQ-WjE">
|
||||
<rect key="frame" x="0.0" y="15" width="40" height="40"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="40" id="RDH-Pq-Gct"/>
|
||||
<constraint firstAttribute="height" constant="40" id="bQX-K6-bak"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="20"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Onp-dz-BPz">
|
||||
<rect key="frame" x="367" y="28" width="8" height="14.5"/>
|
||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="昵称" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="eWg-YO-LTB">
|
||||
<rect key="frame" x="48" y="28" width="25" height="14.5"/>
|
||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="qXE-MQ-WjE" firstAttribute="leading" secondItem="ih3-S3-hls" secondAttribute="leading" id="EaI-Bh-Nab"/>
|
||||
<constraint firstAttribute="trailing" secondItem="Onp-dz-BPz" secondAttribute="trailing" id="Svo-N0-IHg"/>
|
||||
<constraint firstItem="eWg-YO-LTB" firstAttribute="leading" secondItem="qXE-MQ-WjE" secondAttribute="trailing" constant="8" id="TQW-IH-FwR"/>
|
||||
<constraint firstItem="qXE-MQ-WjE" firstAttribute="centerY" secondItem="ih3-S3-hls" secondAttribute="centerY" id="TqN-H9-c7K"/>
|
||||
<constraint firstItem="eWg-YO-LTB" firstAttribute="centerY" secondItem="qXE-MQ-WjE" secondAttribute="centerY" id="YpR-Yz-uPy"/>
|
||||
<constraint firstItem="Onp-dz-BPz" firstAttribute="centerY" secondItem="ih3-S3-hls" secondAttribute="centerY" id="eON-Dz-ssF"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="ih3-S3-hls" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="Hws-do-dYS"/>
|
||||
<constraint firstAttribute="trailing" secondItem="ih3-S3-hls" secondAttribute="trailing" id="O1p-M1-ggn"/>
|
||||
<constraint firstItem="ih3-S3-hls" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="Of6-xc-rlA"/>
|
||||
<constraint firstAttribute="bottom" secondItem="ih3-S3-hls" secondAttribute="bottom" id="dMd-0V-7As"/>
|
||||
</constraints>
|
||||
</tableViewCellContentView>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<connections>
|
||||
<outlet property="avatarImgV" destination="qXE-MQ-WjE" id="jcH-WA-WDM"/>
|
||||
<outlet property="nicknameLab" destination="eWg-YO-LTB" id="wn2-6R-MR6"/>
|
||||
<outlet property="valueLab" destination="Onp-dz-BPz" id="Sru-n4-p0t"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="131.8840579710145" y="95.424107142857139"/>
|
||||
</tableViewCell>
|
||||
</objects>
|
||||
</document>
|
||||
19
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYRankView.h
Executable file
19
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYRankView.h
Executable file
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// ZXYRankView.h
|
||||
//
|
||||
//
|
||||
// Created by ybb on 2021/5/6.
|
||||
// Copyright © 2021 . All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface ZXYRankView : UIView
|
||||
|
||||
- (void)showOnView:(UIView *)parent;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
289
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYRankView.m
Executable file
289
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYRankView.m
Executable file
@@ -0,0 +1,289 @@
|
||||
//
|
||||
// BJBoxRecordAlert.m
|
||||
//
|
||||
//
|
||||
// Created by ybb on 2021/5/6.
|
||||
// Copyright © 2021 . All rights reserved.
|
||||
//
|
||||
|
||||
#import "ZXYRankView.h"
|
||||
#import "ZXYRankCell.h"
|
||||
#import "XiamuFooter.h"
|
||||
#import "XiamuTipView.h"
|
||||
|
||||
@interface ZXYRankView () <UITableViewDelegate, UITableViewDataSource>
|
||||
|
||||
@property (nonatomic, strong) UIView *mainView;
|
||||
@property (nonatomic, strong) UIImageView *bgImg;
|
||||
@property (nonatomic, strong) UITableView *tableView;
|
||||
|
||||
|
||||
@property (nonatomic, strong) NSMutableArray *dataArray; //礼物数组
|
||||
|
||||
//关于网络请求
|
||||
@property (nonatomic, assign) BOOL isLoadFirst;
|
||||
@property (nonatomic, assign) BOOL isOnRequesting, isNoMoreData, isNetError;
|
||||
@property (nonatomic, strong) XiamuFooter *footerView;
|
||||
@property (nonatomic, strong) XiamuTipView *tipsView;
|
||||
@property (nonatomic, assign) NSInteger pageIndex;
|
||||
|
||||
@property (nonatomic, assign) CGFloat mainW;
|
||||
@property (nonatomic, assign) CGFloat mainH;
|
||||
|
||||
@property (nonatomic, assign) CGFloat contentX;
|
||||
@property (nonatomic, assign) CGFloat contentTop;
|
||||
@property (nonatomic, assign) CGFloat contentBottom;
|
||||
|
||||
@property (nonatomic, copy) NSString *bgImgName;
|
||||
|
||||
@end
|
||||
|
||||
@implementation ZXYRankView
|
||||
|
||||
- (instancetype)initWithFrame:(CGRect)frame {
|
||||
if (self = [super initWithFrame:UIScreen.mainScreen.bounds]) {
|
||||
|
||||
self.backgroundColor = [kBlackColor colorWithAlphaComponent:0.3];
|
||||
|
||||
[ControlCreator createButton:self rect:self.bounds text:@"" font:nil color:nil backguoundColor:UIColor.clearColor imageName:nil target:self action:@selector(backAction:)];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)initMainView {
|
||||
if (_mainView) {
|
||||
return;
|
||||
}
|
||||
UIColor *color;
|
||||
color = HEXCOLOR(0xFFFFFF);
|
||||
_mainView = [[UIView alloc] initWithFrame:CGRectMake((APPW-_mainW)/2, (APPH-_mainH)/2, _mainW, _mainH)];
|
||||
_mainView.backgroundColor = UIColor.clearColor;
|
||||
[self addSubview:_mainView];
|
||||
|
||||
[ControlCreator createImageView:_mainView rect:_mainView.bounds imageName:self.bgImgName backguoundColor:nil];
|
||||
|
||||
// UIButton *closeBtn = [ControlCreator createButton:self rect:CGRectZero text:@"" font:nil color:nil backguoundColor:nil imageName:@"hd_box_close" target:self action:@selector(backAction:)];
|
||||
// [closeBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
// make.centerX.mas_equalTo(0);
|
||||
// make.top.equalTo(_mainView.mas_bottom).offset(15);
|
||||
// }];
|
||||
}
|
||||
|
||||
- (void)initTableView {
|
||||
if (_tableView) {
|
||||
return;
|
||||
}
|
||||
|
||||
_tableView = [[UITableView alloc] initWithFrame:CGRectMake(_contentX, _contentTop, _mainView.width-_contentX*2, _mainView.height-_contentTop-20-_contentBottom)];
|
||||
_tableView.delegate = self;
|
||||
_tableView.dataSource = self;
|
||||
_tableView.backgroundColor = UIColor.clearColor;
|
||||
_tableView.showsVerticalScrollIndicator = NO;
|
||||
_tableView.separatorStyle = NO;
|
||||
NSString *cellId = NSStringFromClass(ZXYRankCell.class);
|
||||
[_tableView registerNib:[UINib nibWithNibName:cellId bundle:nil] forCellReuseIdentifier:cellId];
|
||||
[_mainView addSubview:_tableView];
|
||||
}
|
||||
|
||||
- (void)initMJrefresh {
|
||||
__weak typeof(self) weakSelf = self;
|
||||
|
||||
MJRefreshNormalHeader *header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{
|
||||
[weakSelf loadFirst];
|
||||
}];
|
||||
_tableView.mj_header = header;
|
||||
}
|
||||
|
||||
- (void)initTipView {
|
||||
if (_tipsView) {
|
||||
return;
|
||||
}
|
||||
_tipsView = [[XiamuTipView alloc]initWithFrame:CGRectMake(0, 0, _tableView.width, 250)];
|
||||
|
||||
[self.tableView addSubview:_tipsView];
|
||||
|
||||
__weak typeof(self) weakSelf = self;
|
||||
_tipsView.block = ^{
|
||||
if (weakSelf.isNetError) {
|
||||
[weakSelf loadFirst];
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
- (NSMutableArray *)dataArray {
|
||||
if (!_dataArray) {
|
||||
_dataArray = NSMutableArray.array;
|
||||
}
|
||||
return _dataArray;
|
||||
}
|
||||
|
||||
- (XiamuFooter *)footerView {
|
||||
if (!_footerView) {
|
||||
_footerView = [[XiamuFooter alloc] initWithFrame:CGRectMake(0, 0, _tableView.width, 40)];
|
||||
_footerView.hidden = YES;
|
||||
}
|
||||
return _footerView;
|
||||
}
|
||||
|
||||
- (void)showOnView:(UIView *)parent {
|
||||
CGFloat x = 12;
|
||||
CGFloat w = ScreenWidth-x*2;
|
||||
CGFloat h = w/350*465;
|
||||
self.mainW = w;
|
||||
self.mainH = h;
|
||||
|
||||
self.contentX = 22;
|
||||
self.contentTop = 100;
|
||||
self.contentBottom = 25;
|
||||
|
||||
self.bgImgName = @"zxy_rank_bg";
|
||||
|
||||
[self initMainView];
|
||||
[self initTableView];
|
||||
[self initMJrefresh];
|
||||
// [self initTipView];
|
||||
|
||||
[parent addSubview:self];
|
||||
|
||||
[_tableView.mj_header beginRefreshing];
|
||||
}
|
||||
|
||||
#pragma mark - action
|
||||
|
||||
- (void)backAction:(id)sender {
|
||||
[self removeFromSuperview];
|
||||
}
|
||||
|
||||
#pragma mark - data
|
||||
|
||||
- (void)setIsOnRequesting:(BOOL)isOnRequesting {
|
||||
_isOnRequesting = isOnRequesting;
|
||||
if (isOnRequesting) {
|
||||
_isNetError = NO;
|
||||
[self.footerView stateLoading];
|
||||
return;
|
||||
}
|
||||
|
||||
if (_isNoMoreData) {
|
||||
[self.footerView stateNoMore];
|
||||
if (self.dataArray.count==0) {
|
||||
[self.tipsView stateNoResult];
|
||||
[self.footerView stateHide];
|
||||
}
|
||||
}
|
||||
if (_isNetError) {
|
||||
[self.footerView stateNetError];
|
||||
if (_isLoadFirst) {
|
||||
[self.tipsView stateNoNet];
|
||||
[self.footerView stateHide];
|
||||
[self.dataArray removeAllObjects];
|
||||
[_tableView reloadData];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (void)loadFirst {
|
||||
|
||||
if (_isOnRequesting) {
|
||||
return;
|
||||
}
|
||||
_pageIndex = 1;
|
||||
_isLoadFirst = YES;
|
||||
self.isNoMoreData = NO;
|
||||
[self loadListData];
|
||||
}
|
||||
|
||||
- (void)loadMore {
|
||||
if (_isOnRequesting) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (_isNoMoreData) {
|
||||
return;
|
||||
}
|
||||
|
||||
_isLoadFirst = NO;
|
||||
[self loadListData];
|
||||
}
|
||||
|
||||
- (void)loadListData {
|
||||
[self.tipsView stateHide];
|
||||
self.isNetError = NO;
|
||||
|
||||
__weak typeof(self) weakSelf = self;
|
||||
|
||||
self.isOnRequesting = YES;
|
||||
|
||||
NSDictionary *dict = @{@"page":@(self.pageIndex).stringValue,
|
||||
@"page_limit":@"20",
|
||||
};
|
||||
NSMutableDictionary *paras = [NSMutableDictionary dictionary];
|
||||
[paras addEntriesFromDictionary:dict];
|
||||
|
||||
// [SVProgressHUD showWithStatus:nil];
|
||||
[RCMicHTTP postWithURLString:@"/api/Sprite/get_user_monster_rank" parameters:paras response:^(RCMicHTTPResult *result) {
|
||||
[SVProgressHUD dismiss];
|
||||
if (result.success) {
|
||||
if (result.errorCode == 200 && [result.content isKindOfClass:NSArray.class]) {
|
||||
[self checkRequestResult:result.content];
|
||||
|
||||
}else {
|
||||
[SVProgressHUD showInfoWithStatus:result.message];
|
||||
self.isNetError = YES;
|
||||
}
|
||||
}else {
|
||||
[SVProgressHUD showInfoWithStatus:@"网络错误"];
|
||||
self.isNetError = YES;
|
||||
}
|
||||
|
||||
weakSelf.isOnRequesting = NO;
|
||||
[weakSelf.tableView.mj_header endRefreshing];
|
||||
}];
|
||||
}
|
||||
|
||||
- (void)checkRequestResult:(NSArray *)listArr {
|
||||
if ([listArr isKindOfClass:NSArray.class]) {
|
||||
|
||||
if (_isLoadFirst) {
|
||||
[self.dataArray removeAllObjects];
|
||||
}
|
||||
if (listArr.count == 0 ) {
|
||||
self.isNoMoreData = YES;
|
||||
}
|
||||
NSArray *arr = [DDCaiAllRecordModel mj_objectArrayWithKeyValuesArray:listArr];
|
||||
[self.dataArray addObjectsFromArray:arr];
|
||||
[_tableView reloadData];
|
||||
|
||||
_pageIndex ++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#pragma mark - table view
|
||||
|
||||
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
|
||||
return self.dataArray.count;
|
||||
}
|
||||
|
||||
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
|
||||
return 70;
|
||||
}
|
||||
|
||||
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
|
||||
NSString *cellId = NSStringFromClass(ZXYRankCell.class);
|
||||
ZXYRankCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId forIndexPath:indexPath];
|
||||
cell.selectionStyle = NO;
|
||||
|
||||
DDCaiAllRecordModel *model = self.dataArray[indexPath.row];
|
||||
cell.model = model;
|
||||
|
||||
return cell;
|
||||
}
|
||||
|
||||
//- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {
|
||||
// if (indexPath.item+6>self.dataArray.count && !self.isNoMoreData) {
|
||||
// [self loadMore];
|
||||
// }
|
||||
//}
|
||||
|
||||
@end
|
||||
36
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYResultView.h
Normal file
36
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYResultView.h
Normal file
@@ -0,0 +1,36 @@
|
||||
//
|
||||
// ZXYResultView.h
|
||||
// SweetParty
|
||||
//
|
||||
// Created by MAC on 2024/5/6.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "ZXYBoxModel.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface ZXYResultView : UIView
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *touchImgV;
|
||||
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *mainHeightCon;
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *bgImgV;
|
||||
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *yueqi1CenterXCon;
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *yueqiImgV_1;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *yueqiLab_1;
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *yueqiImgV_2;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *yueqiLab_2;
|
||||
@property (weak, nonatomic) IBOutlet UIView *giftBgView;
|
||||
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *gift1CenterXCon;
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *giftImgV_1;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *giftLab_1;
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *giftImgV_2;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *giftLab_2;
|
||||
@property (weak, nonatomic) IBOutlet UIButton *confirmBtn;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *noWinLab;
|
||||
|
||||
- (void)onShowWith:(NSInteger)type model:(ZXYBoxModel *)model;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
84
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYResultView.m
Normal file
84
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYResultView.m
Normal file
@@ -0,0 +1,84 @@
|
||||
//
|
||||
// ZXYResultView.m
|
||||
// SweetParty
|
||||
//
|
||||
// Created by MAC on 2024/5/6.
|
||||
//
|
||||
|
||||
#import "ZXYResultView.h"
|
||||
|
||||
@interface ZXYResultView ()
|
||||
|
||||
@end
|
||||
|
||||
@implementation ZXYResultView
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
|
||||
[self createUI];
|
||||
}
|
||||
|
||||
- (void)createUI {
|
||||
WEAK_SELF
|
||||
[self.touchImgV dg_Tapped:^{
|
||||
[weakSelf removeFromSuperview];
|
||||
}];
|
||||
}
|
||||
|
||||
- (IBAction)onConfirm:(id)sender {
|
||||
[self removeFromSuperview];
|
||||
}
|
||||
|
||||
- (void)onShowWith:(NSInteger)type model:(ZXYBoxModel *)model {
|
||||
if (type == 1 || type == 3) {
|
||||
self.mainHeightCon.constant = 361;
|
||||
self.bgImgV.image = ImageNamed(@"zxy_result_fail");
|
||||
self.giftBgView.hidden = self.confirmBtn.hidden = YES;
|
||||
self.noWinLab.hidden = NO;
|
||||
}else if (type == 2) {
|
||||
self.mainHeightCon.constant = 473;
|
||||
self.bgImgV.image = ImageNamed(@"zxy_result_success");
|
||||
self.giftBgView.hidden = self.confirmBtn.hidden = NO;
|
||||
self.noWinLab.hidden = YES;
|
||||
}
|
||||
|
||||
if (model.win_type_info.count == 2) {
|
||||
self.yueqi1CenterXCon.constant = -60;
|
||||
self.yueqiImgV_2.hidden = self.yueqiLab_2.hidden = NO;
|
||||
}else {
|
||||
self.yueqi1CenterXCon.constant = 0;
|
||||
self.yueqiImgV_2.hidden = self.yueqiLab_2.hidden = YES;
|
||||
}
|
||||
NSArray *yueqiImgVArr = @[_yueqiImgV_1, _yueqiImgV_2];
|
||||
NSArray *yueqiLabArr = @[_yueqiLab_1, _yueqiLab_2];
|
||||
for (NSInteger i = 0; i < model.win_type_info.count; i++) {
|
||||
NSDictionary *dict = model.win_type_info[i];
|
||||
UIImageView *imgV = yueqiImgVArr[i];
|
||||
[imgV sd_setImageWithURL:[NSURL URLWithString:[dict safeStringForKey:@"base_image"]]];
|
||||
|
||||
UILabel *lab = yueqiLabArr[i];
|
||||
lab.text = [dict safeStringForKey:@"type_name"];
|
||||
}
|
||||
|
||||
if (model.win_gift_list.count == 2) {
|
||||
self.gift1CenterXCon.constant = -60;
|
||||
self.giftImgV_2.hidden = self.giftLab_2.hidden = NO;
|
||||
}else {
|
||||
self.gift1CenterXCon.constant = 0;
|
||||
self.giftImgV_2.hidden = self.giftLab_2.hidden = YES;
|
||||
}
|
||||
NSArray *giftImgVArr = @[_giftImgV_1, _giftImgV_2];
|
||||
NSArray *giftLabArr = @[_giftLab_1, _giftLab_2];
|
||||
for (NSInteger i = 0; i < model.win_gift_list.count; i++) {
|
||||
NSDictionary *dict = model.win_gift_list[i];
|
||||
UIImageView *imgV = giftImgVArr[i];
|
||||
[imgV sd_setImageWithURL:[NSURL URLWithString:[dict safeStringForKey:@"base_image"]]];
|
||||
|
||||
UILabel *lab = giftLabArr[i];
|
||||
lab.text = [NSString stringWithFormat:@"%@(%@)*%@", dict[@"gift_name"], dict[@"gift_price"], dict[@"num"]];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@end
|
||||
220
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYResultView.xib
Normal file
220
SweetParty/主类/音悦新增/仲夏夜梦曲/ZXYResultView.xib
Normal file
@@ -0,0 +1,220 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
|
||||
<device id="retina6_12" orientation="portrait" appearance="light"/>
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="ZXYResultView">
|
||||
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Mp4-Wl-gnw">
|
||||
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.5" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</imageView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="DMq-un-zwe">
|
||||
<rect key="frame" x="21.666666666666657" y="189.66666666666663" width="350" height="473"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="zxy_result_success" translatesAutoresizingMaskIntoConstraints="NO" id="fwI-RA-gmv">
|
||||
<rect key="frame" x="0.0" y="0.0" width="350" height="473"/>
|
||||
</imageView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="wnY-0f-9vw">
|
||||
<rect key="frame" x="55" y="92.000000000000028" width="240" height="122"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="pnu-fE-daE">
|
||||
<rect key="frame" x="25" y="15" width="70" height="70"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="70" id="OLc-bX-3sS"/>
|
||||
<constraint firstAttribute="width" constant="70" id="r3O-Bx-9gh"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="弹奏乐器:小提琴" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fsY-3z-LFK">
|
||||
<rect key="frame" x="10.666666666666657" y="93" width="98.333333333333329" height="14.333333333333329"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="12"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="GU6-Te-qwc">
|
||||
<rect key="frame" x="145" y="15" width="70" height="70"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="70" id="51K-xN-sxM"/>
|
||||
<constraint firstAttribute="height" constant="70" id="Rtf-Ng-HBF"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="弹奏乐器:小提琴" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0qN-vZ-iJ3">
|
||||
<rect key="frame" x="130.66666666666669" y="93" width="98.333333333333314" height="14.333333333333329"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="12"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="1" alpha="0.059990500106292519" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="GU6-Te-qwc" firstAttribute="top" secondItem="pnu-fE-daE" secondAttribute="top" id="246-x9-LpY"/>
|
||||
<constraint firstItem="GU6-Te-qwc" firstAttribute="leading" secondItem="pnu-fE-daE" secondAttribute="trailing" constant="50" id="45z-gH-K5r"/>
|
||||
<constraint firstAttribute="height" constant="122" id="8uT-gC-P8m"/>
|
||||
<constraint firstItem="fsY-3z-LFK" firstAttribute="centerX" secondItem="pnu-fE-daE" secondAttribute="centerX" id="Amw-nR-is7"/>
|
||||
<constraint firstItem="fsY-3z-LFK" firstAttribute="top" secondItem="pnu-fE-daE" secondAttribute="bottom" constant="8" id="Jzg-mv-RyQ"/>
|
||||
<constraint firstItem="0qN-vZ-iJ3" firstAttribute="top" secondItem="GU6-Te-qwc" secondAttribute="bottom" constant="8" id="MiO-0j-t3H"/>
|
||||
<constraint firstItem="0qN-vZ-iJ3" firstAttribute="centerX" secondItem="GU6-Te-qwc" secondAttribute="centerX" id="izI-pA-d1n"/>
|
||||
<constraint firstItem="pnu-fE-daE" firstAttribute="top" secondItem="wnY-0f-9vw" secondAttribute="top" constant="15" id="kYL-V6-3Ga"/>
|
||||
<constraint firstItem="pnu-fE-daE" firstAttribute="centerX" secondItem="wnY-0f-9vw" secondAttribute="centerX" constant="-60" id="uhM-nl-6Hv"/>
|
||||
<constraint firstAttribute="width" constant="240" id="y7o-ri-tfK"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
|
||||
<color key="value" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
|
||||
<real key="value" value="0.5"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="10"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="W2Y-Xl-rdn">
|
||||
<rect key="frame" x="55" y="229" width="240" height="140"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="XyM-Zu-H1R">
|
||||
<rect key="frame" x="25" y="15" width="70" height="70"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="70" id="0ON-RT-Cx2"/>
|
||||
<constraint firstAttribute="height" constant="70" id="Mvb-ZV-lrM"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="冰淇淋(1000)*10" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="J1j-DX-tfN">
|
||||
<rect key="frame" x="11" y="93" width="98" height="14.333333333333329"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="12"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="McR-S4-kD1">
|
||||
<rect key="frame" x="145" y="15" width="70" height="70"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="70" id="W41-wS-Nwr"/>
|
||||
<constraint firstAttribute="height" constant="70" id="q1O-gV-nZl"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="冰淇淋(1000)*10" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="N5F-dF-BbS">
|
||||
<rect key="frame" x="131" y="93" width="98" height="14.333333333333329"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="12"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="1" alpha="0.059990500109999997" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="N5F-dF-BbS" firstAttribute="centerX" secondItem="McR-S4-kD1" secondAttribute="centerX" id="4wj-JT-cht"/>
|
||||
<constraint firstItem="J1j-DX-tfN" firstAttribute="centerX" secondItem="XyM-Zu-H1R" secondAttribute="centerX" id="5uY-tv-qTj"/>
|
||||
<constraint firstItem="J1j-DX-tfN" firstAttribute="top" secondItem="XyM-Zu-H1R" secondAttribute="bottom" constant="8" id="F3T-bV-YNg"/>
|
||||
<constraint firstItem="XyM-Zu-H1R" firstAttribute="top" secondItem="W2Y-Xl-rdn" secondAttribute="top" constant="15" id="FGt-gd-14U"/>
|
||||
<constraint firstItem="McR-S4-kD1" firstAttribute="leading" secondItem="XyM-Zu-H1R" secondAttribute="trailing" constant="50" id="YM7-M0-K1v"/>
|
||||
<constraint firstItem="XyM-Zu-H1R" firstAttribute="centerX" secondItem="W2Y-Xl-rdn" secondAttribute="centerX" constant="-60" id="jXe-In-DFG"/>
|
||||
<constraint firstAttribute="width" constant="240" id="jui-66-P4Y"/>
|
||||
<constraint firstAttribute="height" constant="140" id="mRP-EC-Cro"/>
|
||||
<constraint firstItem="McR-S4-kD1" firstAttribute="top" secondItem="XyM-Zu-H1R" secondAttribute="top" id="nWZ-hb-lJ3"/>
|
||||
<constraint firstItem="N5F-dF-BbS" firstAttribute="top" secondItem="McR-S4-kD1" secondAttribute="bottom" constant="8" id="xSy-rz-aCa"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
|
||||
<color key="value" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
|
||||
<real key="value" value="0.5"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="10"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="taT-fc-ggj">
|
||||
<rect key="frame" x="85" y="403" width="180" height="40"/>
|
||||
<color key="backgroundColor" red="0.90980392156862744" green="0.47843137254901957" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="180" id="BWd-gc-xWF"/>
|
||||
<constraint firstAttribute="height" constant="40" id="yrg-Ph-nRd"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" title="确定"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
|
||||
<real key="value" value="0.5"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
|
||||
<color key="value" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="20"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
<connections>
|
||||
<action selector="onConfirm:" destination="iN0-l3-epB" eventType="touchUpInside" id="it1-Fz-cX5"/>
|
||||
</connections>
|
||||
</button>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="很遗憾
这次什么都没有获得!" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="BYa-eA-aKY">
|
||||
<rect key="frame" x="23.333333333333343" y="244.00000000000003" width="303.33333333333326" height="71.666666666666657"/>
|
||||
<fontDescription key="fontDescription" type="system" weight="heavy" pointSize="30"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="350" id="2gB-xP-7pD"/>
|
||||
<constraint firstItem="W2Y-Xl-rdn" firstAttribute="top" secondItem="wnY-0f-9vw" secondAttribute="bottom" constant="15" id="2sQ-ZH-hZC"/>
|
||||
<constraint firstAttribute="height" constant="473" id="3tx-57-JJ6"/>
|
||||
<constraint firstItem="BYa-eA-aKY" firstAttribute="centerX" secondItem="DMq-un-zwe" secondAttribute="centerX" id="7Rk-By-SNe"/>
|
||||
<constraint firstItem="fwI-RA-gmv" firstAttribute="top" secondItem="DMq-un-zwe" secondAttribute="top" id="JmJ-fc-yNU"/>
|
||||
<constraint firstAttribute="bottom" secondItem="taT-fc-ggj" secondAttribute="bottom" constant="30" id="VOE-Tj-nWE"/>
|
||||
<constraint firstItem="wnY-0f-9vw" firstAttribute="top" secondItem="DMq-un-zwe" secondAttribute="top" constant="92" id="YDS-Xy-dgp"/>
|
||||
<constraint firstItem="taT-fc-ggj" firstAttribute="centerX" secondItem="DMq-un-zwe" secondAttribute="centerX" id="Zl2-vc-hcf"/>
|
||||
<constraint firstAttribute="bottom" secondItem="fwI-RA-gmv" secondAttribute="bottom" id="cyX-sJ-feM"/>
|
||||
<constraint firstItem="fwI-RA-gmv" firstAttribute="leading" secondItem="DMq-un-zwe" secondAttribute="leading" id="d0N-Ql-mUS"/>
|
||||
<constraint firstAttribute="trailing" secondItem="fwI-RA-gmv" secondAttribute="trailing" id="hoZ-64-uja"/>
|
||||
<constraint firstItem="wnY-0f-9vw" firstAttribute="centerX" secondItem="DMq-un-zwe" secondAttribute="centerX" id="mlP-4s-Tgr"/>
|
||||
<constraint firstItem="BYa-eA-aKY" firstAttribute="top" secondItem="wnY-0f-9vw" secondAttribute="bottom" constant="30" id="rcl-Oz-ApT"/>
|
||||
<constraint firstItem="W2Y-Xl-rdn" firstAttribute="centerX" secondItem="DMq-un-zwe" secondAttribute="centerX" id="vxE-Cu-A4u"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="Mp4-Wl-gnw" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="CRv-bq-Rhc"/>
|
||||
<constraint firstItem="Mp4-Wl-gnw" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="DTZ-mj-7aY"/>
|
||||
<constraint firstAttribute="bottom" secondItem="Mp4-Wl-gnw" secondAttribute="bottom" id="Hje-qq-eW6"/>
|
||||
<constraint firstItem="DMq-un-zwe" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="nXX-Bu-Oip"/>
|
||||
<constraint firstItem="DMq-un-zwe" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="p0t-WN-Kvr"/>
|
||||
<constraint firstAttribute="trailing" secondItem="Mp4-Wl-gnw" secondAttribute="trailing" id="ttK-V4-5lx"/>
|
||||
</constraints>
|
||||
<connections>
|
||||
<outlet property="bgImgV" destination="fwI-RA-gmv" id="swt-lS-pFC"/>
|
||||
<outlet property="confirmBtn" destination="taT-fc-ggj" id="JJZ-q2-5JO"/>
|
||||
<outlet property="gift1CenterXCon" destination="jXe-In-DFG" id="4b1-Hq-mSu"/>
|
||||
<outlet property="giftBgView" destination="W2Y-Xl-rdn" id="Ip7-FE-Eoc"/>
|
||||
<outlet property="giftImgV_1" destination="XyM-Zu-H1R" id="FRe-1r-bZ1"/>
|
||||
<outlet property="giftImgV_2" destination="McR-S4-kD1" id="BAf-eR-eIQ"/>
|
||||
<outlet property="giftLab_1" destination="J1j-DX-tfN" id="2aV-zg-GAb"/>
|
||||
<outlet property="giftLab_2" destination="N5F-dF-BbS" id="Zg8-v8-h1a"/>
|
||||
<outlet property="mainHeightCon" destination="3tx-57-JJ6" id="ExK-mk-7bP"/>
|
||||
<outlet property="noWinLab" destination="BYa-eA-aKY" id="nS2-D7-F8v"/>
|
||||
<outlet property="touchImgV" destination="Mp4-Wl-gnw" id="QyF-fD-Bym"/>
|
||||
<outlet property="yueqi1CenterXCon" destination="uhM-nl-6Hv" id="R64-1W-fRV"/>
|
||||
<outlet property="yueqiImgV_1" destination="pnu-fE-daE" id="huo-lW-bvN"/>
|
||||
<outlet property="yueqiImgV_2" destination="GU6-Te-qwc" id="OEf-XI-l4U"/>
|
||||
<outlet property="yueqiLab_1" destination="fsY-3z-LFK" id="c5r-ys-R5J"/>
|
||||
<outlet property="yueqiLab_2" destination="0qN-vZ-iJ3" id="aeK-Rj-om5"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="117" y="-11"/>
|
||||
</view>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="zxy_result_success" width="350" height="472.5"/>
|
||||
</resources>
|
||||
</document>
|
||||
Reference in New Issue
Block a user