Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
L
LuckFarm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lmj
LuckFarm
Commits
053f2fa1
Commit
053f2fa1
authored
Nov 20, 2020
by
zhangshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 配置
parent
bd403b89
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
21 deletions
+37
-21
DGUniversalAlertView.m
GYDemo/GYDemo/Alert/DGUniversalAlertView.m
+16
-3
GYOrderAlertView.xib
GYDemo/GYDemo/Alert/GYOrderAlertView.xib
+3
-3
GYTaskAlertView.m
GYDemo/GYDemo/Alert/GYTaskAlertView.m
+1
-1
GYPrefixHeader.pch
GYDemo/GYDemo/GYPrefixHeader.pch
+6
-6
GYRankingViewCell.m
GYDemo/GYDemo/View/GYRankingViewCell.m
+1
-1
WelfareCenterVC.m
GYDemo/GYDemo/ViewController/Welfare/WelfareCenterVC.m
+10
-7
No files found.
GYDemo/GYDemo/Alert/DGUniversalAlertView.m
View file @
053f2fa1
...
@@ -262,11 +262,24 @@
...
@@ -262,11 +262,24 @@
//显示每日福利宝箱奖励
//显示每日福利宝箱奖励
-
(
void
)
configWithWelfareBoxModel
:
(
NSArray
*
)
boxModels
;{
-
(
void
)
configWithWelfareBoxModel
:
(
NSArray
*
)
boxModels
;{
self
.
firstStackView
.
hidden
=
false
;
self
.
secondStackView
.
hidden
=
false
;
self
.
thirdStackView
.
hidden
=
false
;
// self.lightImageView.hidden = false;
// self.lightImageView.hidden = false;
self
.
firstStackView
.
hidden
=
true
;
self
.
secondStackView
.
hidden
=
true
;
self
.
thirdStackView
.
hidden
=
true
;
if
(
self
.
dataSource
.
count
==
1
)
{
self
.
firstStackView
.
hidden
=
false
;
}
else
if
(
self
.
dataSource
.
count
==
2
)
{
self
.
secondStackView
.
hidden
=
false
;
}
else
if
(
self
.
dataSource
.
count
==
3
)
{
self
.
thirdStackView
.
hidden
=
false
;
}
self
.
topTypeImageView
.
image
=
[
UIImage
imageNamed
:
@"title_gain_box"
];
self
.
topTypeImageView
.
image
=
[
UIImage
imageNamed
:
@"title_gain_box"
];
self
.
topTypeImageView
.
hidden
=
NO
;
self
.
topTypeImageView
.
hidden
=
NO
;
NSInteger
index
=
0
;
NSInteger
index
=
0
;
...
...
GYDemo/GYDemo/Alert/GYOrderAlertView.xib
View file @
053f2fa1
...
@@ -28,19 +28,19 @@
...
@@ -28,19 +28,19 @@
<rect
key=
"frame"
x=
"-5"
y=
"-5"
width=
"343"
height=
"410"
/>
<rect
key=
"frame"
x=
"-5"
y=
"-5"
width=
"343"
height=
"410"
/>
</imageView>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
usesAttributedText=
"YES"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"XsE-NZ-ege"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
usesAttributedText=
"YES"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"XsE-NZ-ege"
>
<rect
key=
"frame"
x=
"
51"
y=
"50"
width=
"231"
height=
"23
.5"
/>
<rect
key=
"frame"
x=
"
49"
y=
"50"
width=
"235"
height=
"25
.5"
/>
<attributedString
key=
"attributedText"
>
<attributedString
key=
"attributedText"
>
<fragment
content=
"完成当前订单将获得钻石"
>
<fragment
content=
"完成当前订单将获得钻石"
>
<attributes>
<attributes>
<color
key=
"NSColor"
red=
"0.5607843137254902"
green=
"0.29803921568627451"
blue=
"0.0039215686274509803"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<color
key=
"NSColor"
red=
"0.5607843137254902"
green=
"0.29803921568627451"
blue=
"0.0039215686274509803"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<font
key=
"NSFont"
size=
"21"
name=
".PingFangSC-Regular
"
/>
<font
key=
"NSFont"
metaFont=
"system"
size=
"21
"
/>
</attributes>
</attributes>
</fragment>
</fragment>
</attributedString>
</attributedString>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
</label>
<collectionView
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"scaleToFill"
dataMode=
"none"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"tw6-yx-5Z1"
>
<collectionView
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"scaleToFill"
dataMode=
"none"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"tw6-yx-5Z1"
>
<rect
key=
"frame"
x=
"30"
y=
"8
2.5"
width=
"273"
height=
"297
.5"
/>
<rect
key=
"frame"
x=
"30"
y=
"8
4.5"
width=
"273"
height=
"295
.5"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<collectionViewFlowLayout
key=
"collectionViewLayout"
minimumLineSpacing=
"10"
minimumInteritemSpacing=
"10"
id=
"MaJ-Ce-qfl"
>
<collectionViewFlowLayout
key=
"collectionViewLayout"
minimumLineSpacing=
"10"
minimumInteritemSpacing=
"10"
id=
"MaJ-Ce-qfl"
>
<size
key=
"itemSize"
width=
"128"
height=
"128"
/>
<size
key=
"itemSize"
width=
"128"
height=
"128"
/>
...
...
GYDemo/GYDemo/Alert/GYTaskAlertView.m
View file @
053f2fa1
...
@@ -200,7 +200,7 @@
...
@@ -200,7 +200,7 @@
//区头的大小
//区头的大小
-
(
CGSize
)
collectionView
:
(
UICollectionView
*
)
collectionView
layout
:
(
UICollectionViewLayout
*
)
collectionViewLayout
referenceSizeForHeaderInSection
:
(
NSInteger
)
section
-
(
CGSize
)
collectionView
:
(
UICollectionView
*
)
collectionView
layout
:
(
UICollectionViewLayout
*
)
collectionViewLayout
referenceSizeForHeaderInSection
:
(
NSInteger
)
section
{
{
return
CGSizeMake
(
collectionView
.
frame
.
size
.
width
,
72
);
return
CGSizeMake
(
collectionView
.
frame
.
size
.
width
,
0
);
}
}
//区尾的大小
//区尾的大小
-
(
CGSize
)
collectionView
:
(
UICollectionView
*
)
collectionView
layout
:
(
UICollectionViewLayout
*
)
collectionViewLayout
referenceSizeForFooterInSection
:
(
NSInteger
)
section
-
(
CGSize
)
collectionView
:
(
UICollectionView
*
)
collectionView
layout
:
(
UICollectionViewLayout
*
)
collectionViewLayout
referenceSizeForFooterInSection
:
(
NSInteger
)
section
...
...
GYDemo/GYDemo/GYPrefixHeader.pch
View file @
053f2fa1
...
@@ -15,13 +15,13 @@
...
@@ -15,13 +15,13 @@
#define GYPrefixHeader_pch
#define GYPrefixHeader_pch
//测试
//测试
#define ServerReport @"http://reporttest.zhangxinhulian.com"
//
#define ServerReport @"http://reporttest.zhangxinhulian.com"
#define ServerHost @"http://feedapitest2.zhangxinhulian.com" // 服务端接口地址
//
#define ServerHost @"http://feedapitest2.zhangxinhulian.com" // 服务端接口地址
#define ServerAds @"http://bstest.zhangxinhulian.com/v4/ads"
//
#define ServerAds @"http://bstest.zhangxinhulian.com/v4/ads"
////正式
////正式
//
#define ServerReport @"http://report.clouddistribute.net"
#define ServerReport @"http://report.clouddistribute.net"
//
#define ServerHost @"https://feedapi.clouddistribute.net" // 服务端接口地址
#define ServerHost @"https://feedapi.clouddistribute.net" // 服务端接口地址
//
#define ServerAds @"http://bs.clouddistribute.net/v4/ads"
#define ServerAds @"http://bs.clouddistribute.net/v4/ads"
#define WXAppId @"wxe7a03eb52cce1b51"
#define WXAppId @"wxe7a03eb52cce1b51"
...
...
GYDemo/GYDemo/View/GYRankingViewCell.m
View file @
053f2fa1
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
self
.
nicknameLabel
.
text
=
model
.
nickname
;
self
.
nicknameLabel
.
text
=
model
.
nickname
;
self
.
coinNumberLabel
.
text
=
[
NSString
stringWithFormat
:
@"%ld"
,
model
.
drip
];
self
.
coinNumberLabel
.
text
=
[
NSString
stringWithFormat
:
@"%ld"
,
model
.
drip
];
self
.
diamondLabel
.
text
=
[
NSString
stringWithFormat
:
@"%ld
钻"
,
model
.
award
];
self
.
diamondLabel
.
text
=
[
NSString
stringWithFormat
:
@"%ld
%@"
,
model
.
award
,
CGUserManager
.
shared
.
unityString
];
[
self
.
userProfileView
setImageWithURL
:[
NSURL
URLWithString
:
model
.
headImg
]];
[
self
.
userProfileView
setImageWithURL
:[
NSURL
URLWithString
:
model
.
headImg
]];
}
}
...
...
GYDemo/GYDemo/ViewController/Welfare/WelfareCenterVC.m
View file @
053f2fa1
...
@@ -328,21 +328,24 @@
...
@@ -328,21 +328,24 @@
// [alertView showAlertToView:[(AppDelegate *)[UIApplication sharedApplication].delegate getMainWindow]];
// [alertView showAlertToView:[(AppDelegate *)[UIApplication sharedApplication].delegate getMainWindow]];
//
//
// return;
// return;
if
(
self
.
coinsProcess
<
6
){
return
;
}
WEAKSELF
;
WEAKSELF
;
[[
CGNetworkTools
shared
]
postWithAction
:
welfare_task_box
parameters
:@{}
success
:^
(
id
_Nonnull
response
)
{
[[
CGNetworkTools
shared
]
postWithAction
:
welfare_task_box
parameters
:@{}
success
:^
(
id
_Nonnull
response
)
{
if
(
response
)
{
if
(
response
)
{
if
(
weakSelf
.
coinsProcess
>=
6
){
if
(
weakSelf
.
coinsProcess
>=
6
){
weakSelf
.
coinsProcess
-=
6
;
weakSelf
.
coinsProcess
-=
6
;
NSArray
*
array
=
response
[
@"result"
][
@"data"
];
NSMutableArray
*
dataArray
=
[
WelfareBoxData
mj_objectArrayWithKeyValuesArray
:
array
];
DGUniversalAlertView
*
alertView
=
[
DGUniversalAlertView
loadFromNib
];
[
alertView
configWithWelfareBoxModel
:
dataArray
];
[
alertView
showAlertToView
:
weakSelf
.
view
];
}
}
[
weakSelf
updateUI
];
[
weakSelf
updateUI
];
NSArray
*
array
=
response
[
@"result"
][
@"data"
];
NSMutableArray
*
dataArray
=
[
WelfareBoxData
mj_objectArrayWithKeyValuesArray
:
array
];
DGUniversalAlertView
*
alertView
=
[
DGUniversalAlertView
loadFromNib
];
[
alertView
configWithWelfareBoxModel
:
dataArray
];
[
alertView
showAlertToView
:
weakSelf
.
view
];
}
}
}
failure
:^
(
NSError
*
_Nonnull
error
)
{
}
failure
:^
(
NSError
*
_Nonnull
error
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment