Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
D
Dolphins
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
Dolphins
Commits
f2c8f2cc
Commit
f2c8f2cc
authored
Aug 01, 2020
by
lmj_521aiau@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
fcf5fecc
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
74 additions
and
37 deletions
+74
-37
ZJGoodsViewController.m
Dolphins/Classes/Goods/Controller/ZJGoodsViewController.m
+30
-6
ZJGuardViewController.m
Dolphins/Classes/Guard/Controller/ZJGuardViewController.m
+24
-11
ZJGoodsMagager.m
Dolphins/Classes/Tools/GoodsManager/ZJGoodsMagager.m
+13
-13
ResourceHeader.pch
Dolphins/Classes/Tools/PCH/ResourceHeader.pch
+7
-7
No files found.
Dolphins/Classes/Goods/Controller/ZJGoodsViewController.m
View file @
f2c8f2cc
...
@@ -273,22 +273,34 @@
...
@@ -273,22 +273,34 @@
[
self
.
xuanZheButoon
addTarget
:
self
action
:
@selector
(
xuanZheButoonClick
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
self
.
xuanZheButoon
addTarget
:
self
action
:
@selector
(
xuanZheButoonClick
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
UILabel
*
lab
=
[
UILabel
labelWithtext
:
@"购买前请先阅读并同意"
font
:[
UIFont
systemFontOfSize
:
KFont
(
13
)]
textColor
:
[
UIColor
colorWithHex
:
0x666666
]
alignment
:
NSTextAlignmentLeft
];
[
lab
sizeToFit
];
lab
.
userInteractionEnabled
=
YES
;
[
self
.
beiJingView
addSubview
:
lab
];
[
lab
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
equalTo
(
self
.
xuanZheButoon
.
mas_right
).
mas_offset
(
KScaleWidth
(
5
));
make
.
centerY
.
equalTo
(
self
.
xuanZheButoon
).
mas_offset
(
KScaleWidth
(
0
));
make
.
size
.
mas_equalTo
(
lab
.
size
);
}];
UITapGestureRecognizer
*
tap
=
[[
UITapGestureRecognizer
alloc
]
initWithTarget
:
self
action
:
@selector
(
protocolTextGesTap
)];
[
lab
addGestureRecognizer
:
tap
];
//同意Button
//同意Button
self
.
tongYButton
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
self
.
tongYButton
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
// self.tongYButton.backgroundColor = [UIColor redColor];
// self.tongYButton.backgroundColor = [UIColor redColor];
self
.
tongYButton
.
contentHorizontalAlignment
=
UIControlContentHorizontalAlignmentLeft
;
self
.
tongYButton
.
contentHorizontalAlignment
=
UIControlContentHorizontalAlignmentLeft
;
[
self
.
tongYButton
setTitle
:
@"
购买前请先阅读并同意
《海豚守护付费会员服务协议》"
forState
:
0
];
[
self
.
tongYButton
setTitle
:
@"《海豚守护付费会员服务协议》"
forState
:
0
];
[
self
.
tongYButton
setTitleColor
:
[
UIColor
colorWithHex
:
0x666666
]
forState
:
UIControlStateNormal
];
[
self
.
tongYButton
setTitleColor
:
kColorWithRGB
(
86
,
142
,
252
)
forState
:
UIControlStateNormal
];
[
self
.
tongYButton
.
titleLabel
setFont
:[
UIFont
systemFontOfSize
:
KFont
(
13
)]];
[
self
.
tongYButton
.
titleLabel
setFont
:[
UIFont
systemFontOfSize
:
KFont
(
13
)]];
self
.
tongYButton
.
titleLabel
.
adjustsFontSizeToFitWidth
=
YES
;
self
.
tongYButton
.
titleLabel
.
adjustsFontSizeToFitWidth
=
YES
;
[
self
.
beiJingView
addSubview
:
self
.
tongYButton
];
[
self
.
beiJingView
addSubview
:
self
.
tongYButton
];
[
self
.
tongYButton
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
self
.
tongYButton
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
equalTo
(
self
.
xuanZheButoon
.
mas_right
).
mas_offset
(
KScaleWidth
(
5
));
make
.
left
.
equalTo
(
lab
.
mas_right
).
mas_offset
(
KScaleWidth
(
0
));
make
.
centerY
.
equalTo
(
self
.
xuanZheButoon
).
mas_offset
(
KScaleWidth
(
0
));
make
.
centerY
.
equalTo
(
self
.
xuanZheButoon
).
mas_offset
(
KScaleWidth
(
0
));
make
.
size
.
mas_offset
(
CGSizeMake
(
KScaleWidth
(
3
00
),
KScaleWidth
(
12
.
5
)));
make
.
size
.
mas_offset
(
CGSizeMake
(
KScaleWidth
(
2
00
),
KScaleWidth
(
12
.
5
)));
}];
}];
// [self.tongYButton addTarget:self action:@selector(tongYButtonClick) forControlEvents:UIControlEventTouchUpInside];
[
self
.
tongYButton
addTarget
:
self
action
:
@selector
(
protocolButoonClick
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
}
}
-
(
void
)
fanHuiButtonClick
{
-
(
void
)
fanHuiButtonClick
{
...
@@ -383,10 +395,22 @@
...
@@ -383,10 +395,22 @@
}
}
}
}
-
(
void
)
protocolTextGesTap
{
[
self
xuanZheButoonClick
:
nil
];
}
-
(
void
)
xuanZheButoonClick
:
(
UIButton
*
)
btn
{
-
(
void
)
xuanZheButoonClick
:
(
UIButton
*
)
btn
{
btn
=
self
.
xuanZheButoon
;
btn
.
selected
=
!
btn
.
selected
;
btn
.
selected
=
!
btn
.
selected
;
}
}
-
(
void
)
protocolButoonClick
:
(
UIButton
*
)
btn
{
NSDictionary
*
dic
=
[
ZJUserInfoManager
shared
].
h5_url
;
BaseWebViewController
*
web
=
[[
BaseWebViewController
alloc
]
init
];
web
.
url
=
[
dic
objectForKey
:
@"pay"
];
[
self
.
navigationController
pushViewController
:
web
animated
:
YES
];
}
-
(
void
)
getIpaList
{
-
(
void
)
getIpaList
{
__weak
typeof
(
self
)
weakSelf
=
self
;
__weak
typeof
(
self
)
weakSelf
=
self
;
[[
TQNetworkTools
shared
]
getWithAction
:
PaymentConfiguration
parameters
:@{}
success
:^
(
id
_Nonnull
response
)
{
[[
TQNetworkTools
shared
]
getWithAction
:
PaymentConfiguration
parameters
:@{}
success
:^
(
id
_Nonnull
response
)
{
...
...
Dolphins/Classes/Guard/Controller/ZJGuardViewController.m
View file @
f2c8f2cc
...
@@ -135,17 +135,6 @@
...
@@ -135,17 +135,6 @@
// return;
// return;
// }
// }
if
(
!
[
ZJUserInfoManager
shared
].
userInfoModel
.
isMember
){
[[
ZJGoodsMagager
shared
]
goodsWithVC
:
self
callBack
:
^
(
id
_Nonnull
s
)
{
[[
ZJUserInfoManager
shared
]
updataUserInfo
:
^
(
ZJMineUserInfoModel
*
_Nonnull
model
)
{
}
failure
:
^
(
id
_Nonnull
error
)
{
}];
}];
return
;
}
switch
(
sender
.
tag
-
0x64
)
{
switch
(
sender
.
tag
-
0x64
)
{
case
0
:{
case
0
:{
[
MobClick
event
:
@"friends_location_card_click"
];
[
MobClick
event
:
@"friends_location_card_click"
];
...
@@ -158,12 +147,36 @@
...
@@ -158,12 +147,36 @@
}
}
break
;
break
;
case
1
:{
case
1
:{
if
(
!
[
ZJUserInfoManager
shared
].
userInfoModel
.
isMember
){
[[
ZJGoodsMagager
shared
]
goodsWithVC
:
self
callBack
:
^
(
id
_Nonnull
s
)
{
[[
ZJUserInfoManager
shared
]
updataUserInfo
:
^
(
ZJMineUserInfoModel
*
_Nonnull
model
)
{
}
failure
:
^
(
id
_Nonnull
error
)
{
}];
}];
return
;
}
[
MobClick
event
:
@"place_remind_card_click"
];
[
MobClick
event
:
@"place_remind_card_click"
];
ZJLocationAttentionVC
*
vc
=
[
ZJLocationAttentionVC
new
];
ZJLocationAttentionVC
*
vc
=
[
ZJLocationAttentionVC
new
];
[
self
.
navigationController
pushViewController
:
vc
animated
:
YES
];
[
self
.
navigationController
pushViewController
:
vc
animated
:
YES
];
}
}
break
;
break
;
case
2
:{
case
2
:{
if
(
!
[
ZJUserInfoManager
shared
].
userInfoModel
.
isMember
){
[[
ZJGoodsMagager
shared
]
goodsWithVC
:
self
callBack
:
^
(
id
_Nonnull
s
)
{
[[
ZJUserInfoManager
shared
]
updataUserInfo
:
^
(
ZJMineUserInfoModel
*
_Nonnull
model
)
{
}
failure
:
^
(
id
_Nonnull
error
)
{
}];
}];
return
;
}
[
MobClick
event
:
@"low_power_card_click"
];
[
MobClick
event
:
@"low_power_card_click"
];
ZJElectricalRemindVC
*
remind
=
[[
UIStoryboard
storyboardWithName
:
@"Guard"
bundle
:
nil
]
instantiateViewControllerWithIdentifier
:
@"ZJElectricalRemindVC"
];
ZJElectricalRemindVC
*
remind
=
[[
UIStoryboard
storyboardWithName
:
@"Guard"
bundle
:
nil
]
instantiateViewControllerWithIdentifier
:
@"ZJElectricalRemindVC"
];
[
self
.
navigationController
pushViewController
:
remind
animated
:
YES
];
[
self
.
navigationController
pushViewController
:
remind
animated
:
YES
];
...
...
Dolphins/Classes/Tools/GoodsManager/ZJGoodsMagager.m
View file @
f2c8f2cc
...
@@ -80,7 +80,7 @@ static ZJGoodsMagager * manager;
...
@@ -80,7 +80,7 @@ static ZJGoodsMagager * manager;
-
(
void
)
goodsWithVC
:
(
UIViewController
*
)
currentVC
callBack
:
(
resultCallBack
)
callBack
{
-
(
void
)
goodsWithVC
:
(
UIViewController
*
)
currentVC
callBack
:
(
resultCallBack
)
callBack
{
//
if ([self ckeak]){
if
([
self
ckeak
]){
[
MobClick
event
:
@"go_member_with_Apple"
];
[
MobClick
event
:
@"go_member_with_Apple"
];
ZJGoodsViewController
*
goods
=
[[
ZJGoodsViewController
alloc
]
init
];
ZJGoodsViewController
*
goods
=
[[
ZJGoodsViewController
alloc
]
init
];
...
@@ -93,18 +93,18 @@ static ZJGoodsMagager * manager;
...
@@ -93,18 +93,18 @@ static ZJGoodsMagager * manager;
[
weak
.
navigationController
popViewControllerAnimated
:
YES
];
[
weak
.
navigationController
popViewControllerAnimated
:
YES
];
};
};
//
}else{
}
else
{
//
[MobClick event:@"go_member_with_H5"];
[
MobClick
event
:
@"go_member_with_H5"
];
//
_tradeNoCount = 0;
_tradeNoCount
=
0
;
//
_goodsCount = 0;
_goodsCount
=
0
;
//
_callBack = callBack;
_callBack
=
callBack
;
//
_currentVC = currentVC;
_currentVC
=
currentVC
;
//
if ([self.products firstObject]) {
if
([
self
.
products
firstObject
])
{
//
[self getUrl_new:0];
[
self
getUrl_new
:
0
];
//
}else{
}
else
{
//
[self getGoods];
[
self
getGoods
];
//
}
}
//
}
}
}
}
-
(
void
)
getGoods
{
-
(
void
)
getGoods
{
...
...
Dolphins/Classes/Tools/PCH/ResourceHeader.pch
View file @
f2c8f2cc
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#define AppLs @"ed32f8b2bd3e7e58"
#define AppLs @"ed32f8b2bd3e7e58"
#define ShanYanAppID @"
CiuaRN4D
" //创蓝appid
#define ShanYanAppID @"
DVcuQ8Or
" //创蓝appid
#define WXAppId @"wxe24b15232c28e77c"
#define WXAppId @"wxe24b15232c28e77c"
#define WXUniversalLink @"https://www.wayaya.info/dolphins/"
#define WXUniversalLink @"https://www.wayaya.info/dolphins/"
...
@@ -37,14 +37,14 @@
...
@@ -37,14 +37,14 @@
//#if DEBUG
//#if DEBUG
//
//
#define ServerReport @"http://report.zhangxinhulian.com"
//
#define ServerReport @"http://report.zhangxinhulian.com"
#define ServerHost @"https://feedapitest.zhangxinhulian.com"
//
#define ServerHost @"https://feedapitest.zhangxinhulian.com"
#define ServerHostFeed @"https://feedapitest.zhangxinhulian.com"
//
#define ServerHostFeed @"https://feedapitest.zhangxinhulian.com"
//#else
//#else
//
#define ServerReport @"http://report.zhangxinhulian.com"
#define ServerReport @"http://report.zhangxinhulian.com"
//
#define ServerHost @"https://feedapi.zhangxinhulian.com"
#define ServerHost @"https://feedapi.zhangxinhulian.com"
//
#define ServerHostFeed @"https://feedapi.zhangxinhulian.com"
#define ServerHostFeed @"https://feedapi.zhangxinhulian.com"
//#endif
//#endif
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