Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
Z
ZhiJi-Overseas
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
ZhiJi-Overseas
Commits
e4c3d2a4
Commit
e4c3d2a4
authored
Jul 08, 2020
by
lmj_521aiau@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.calculation
2.unlock
parent
65896314
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
68 additions
and
33 deletions
+68
-33
.DS_Store
.DS_Store
+0
-0
ZJBaseCareViewController.m
ZhiJi/Classes/Care/Controller/ZJBaseCareViewController.m
+3
-0
ZJCareStyle2ViewController.m
ZhiJi/Classes/Care/Controller/ZJCareStyle2ViewController.m
+6
-1
ZJMemberPayViewController.m
ZhiJi/Classes/Goods/Controller/ZJMemberPayViewController.m
+1
-0
ZJPhoneLoginViewController.m
ZhiJi/Classes/Login/Controller/ZJPhoneLoginViewController.m
+3
-1
ZJBaseMapViewController.m
ZhiJi/Classes/Map/Controller/ZJBaseMapViewController.m
+10
-16
ZJFriendTrackMapViewController.m
...i/Classes/Map/Controller/ZJFriendTrackMapViewController.m
+7
-0
ZJMapStyle2ViewController.m
ZhiJi/Classes/Map/Controller/ZJMapStyle2ViewController.m
+1
-1
ZJEmergencyContactViewController.m
...lasses/Mine/Controller/ZJEmergencyContactViewController.m
+2
-1
ZJMineViewController.m
ZhiJi/Classes/Mine/Controller/ZJMineViewController.m
+22
-4
ZJSettingViewController.m
ZhiJi/Classes/Mine/Controller/ZJSettingViewController.m
+4
-1
ZJMineHeaderView.m
ZhiJi/Classes/Mine/View/ZJMineHeaderView.m
+5
-4
ResourceHeader.pch
ZhiJi/Classes/Tools/PCH/ResourceHeader.pch
+2
-2
Localizable.strings
ZhiJi/en.lproj/Localizable.strings
+1
-1
Localizable.strings
ZhiJi/zh-Hans.lproj/Localizable.strings
+1
-1
No files found.
.DS_Store
View file @
e4c3d2a4
No preview for this file type
ZhiJi/Classes/Care/Controller/ZJBaseCareViewController.m
View file @
e4c3d2a4
...
@@ -294,6 +294,7 @@
...
@@ -294,6 +294,7 @@
};
};
friend
.
confirmCallBack
=
^
(
ZJFriendModel
*
model
)
{
friend
.
confirmCallBack
=
^
(
ZJFriendModel
*
model
)
{
[
MobClick
event
:
@"home_friendcard_setting_store"
];
//改昵称
//改昵称
[
weakSelf
editFriendNickName
:
model
];
[
weakSelf
editFriendNickName
:
model
];
};
};
...
@@ -314,6 +315,7 @@
...
@@ -314,6 +315,7 @@
}];
}];
return
;
return
;
}
}
[
MobClick
event
:
@"home_message_click"
];
ZJXiaoXiViewController
*
vc
=
[[
ZJXiaoXiViewController
alloc
]
init
];
ZJXiaoXiViewController
*
vc
=
[[
ZJXiaoXiViewController
alloc
]
init
];
[
self
.
navigationController
pushViewController
:
vc
animated
:
YES
];
[
self
.
navigationController
pushViewController
:
vc
animated
:
YES
];
}
}
...
@@ -321,6 +323,7 @@
...
@@ -321,6 +323,7 @@
//紧急按钮点击
//紧急按钮点击
-
(
void
)
jinJiButtonClick
{
-
(
void
)
jinJiButtonClick
{
NSLog
(
@"紧急按钮"
);
NSLog
(
@"紧急按钮"
);
[
MobClick
event
:
@"home_alert_click"
];
ZJJinJiViewController
*
jinJiVC
=
[[
ZJJinJiViewController
alloc
]
init
];
ZJJinJiViewController
*
jinJiVC
=
[[
ZJJinJiViewController
alloc
]
init
];
jinJiVC
.
navigationItem
.
title
=
kLocalizedString
(
@"care_Emergency_alarm"
);
jinJiVC
.
navigationItem
.
title
=
kLocalizedString
(
@"care_Emergency_alarm"
);
[
self
.
navigationController
pushViewController
:
jinJiVC
animated
:
YES
];
[
self
.
navigationController
pushViewController
:
jinJiVC
animated
:
YES
];
...
...
ZhiJi/Classes/Care/Controller/ZJCareStyle2ViewController.m
View file @
e4c3d2a4
...
@@ -317,6 +317,7 @@
...
@@ -317,6 +317,7 @@
return
;
return
;
}
}
[
MobClick
event
:
@"addfriend_phonenumber_input"
];
[[
TQNetworkTools
shared
]
getWithAction
:
userFind
parameters
:@{
@"phone"
:
[
NSString
stringWithFormat
:
@"%@%@"
,
currentCountryCode
,
phone
],
/*@"phoneCode":currentCountryCode*/
}
success
:^
(
id
_Nonnull
response
)
{
[[
TQNetworkTools
shared
]
getWithAction
:
userFind
parameters
:@{
@"phone"
:
[
NSString
stringWithFormat
:
@"%@%@"
,
currentCountryCode
,
phone
],
/*@"phoneCode":currentCountryCode*/
}
success
:^
(
id
_Nonnull
response
)
{
if
([[
response
objectForKey
:
@"status"
]
integerValue
]
==
200
){
if
([[
response
objectForKey
:
@"status"
]
integerValue
]
==
200
){
...
@@ -432,6 +433,7 @@
...
@@ -432,6 +433,7 @@
}
}
if
([
ZJUserInfoManager
shared
].
userInfoModel
.
isMember
&&
[
ZJUserInfoManager
shared
].
userInfoModel
.
phoneNo
)
{
if
([
ZJUserInfoManager
shared
].
userInfoModel
.
isMember
&&
[
ZJUserInfoManager
shared
].
userInfoModel
.
phoneNo
)
{
[
MobClick
event
:
@"addfriend_fb_friend_add"
];
[
self
shareWX
];
[
self
shareWX
];
}
}
}
}
...
@@ -453,7 +455,7 @@
...
@@ -453,7 +455,7 @@
}
}
-
(
void
)
addFriendWithPhone
:
(
NSString
*
)
phone
{
-
(
void
)
addFriendWithPhone
:
(
NSString
*
)
phone
{
[
MobClick
event
:
@"home_addfriend_click"
];
[
MobClick
event
:
@"add_person"
];
[
MobClick
event
:
@"add_person"
];
[[
TQNetworkTools
shared
]
postWithAction
:
friendPhoneNoInvite
parameters
:@{
@"phoneNo"
:
[
NSString
stringWithFormat
:
@"%@%@"
,
currentCountryCode
,
phone
],
/*@"phoneCode":currentCountryCode*/
}
success
:^
(
id
_Nonnull
response
)
{
[[
TQNetworkTools
shared
]
postWithAction
:
friendPhoneNoInvite
parameters
:@{
@"phoneNo"
:
[
NSString
stringWithFormat
:
@"%@%@"
,
currentCountryCode
,
phone
],
/*@"phoneCode":currentCountryCode*/
}
success
:^
(
id
_Nonnull
response
)
{
...
@@ -473,6 +475,7 @@
...
@@ -473,6 +475,7 @@
}
}
-
(
void
)
myTrack
{
-
(
void
)
myTrack
{
[
MobClick
event
:
@"home_my_location_history_click"
];
ZJFriendTrackMapViewController
*
trackMapVc
=
[[
ZJFriendTrackMapViewController
alloc
]
init
];
ZJFriendTrackMapViewController
*
trackMapVc
=
[[
ZJFriendTrackMapViewController
alloc
]
init
];
trackMapVc
.
isMyTrack
=
YES
;
trackMapVc
.
isMyTrack
=
YES
;
[
self
.
navigationController
showViewController
:
trackMapVc
sender
:
nil
];
[
self
.
navigationController
showViewController
:
trackMapVc
sender
:
nil
];
...
@@ -554,6 +557,8 @@
...
@@ -554,6 +557,8 @@
-
(
void
)
tableView
:
(
UITableView
*
)
tableView
didSelectRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
-
(
void
)
tableView
:
(
UITableView
*
)
tableView
didSelectRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
[
MobClick
event
:
@"home_friend_click"
];
if
([
ZJUserInfoManager
shared
].
userInfoModel
.
isMember
||
indexPath
.
row
==
0
)
{
if
([
ZJUserInfoManager
shared
].
userInfoModel
.
isMember
||
indexPath
.
row
==
0
)
{
ZJFriendTrackMapViewController
*
trackMapVc
=
[[
ZJFriendTrackMapViewController
alloc
]
init
];
ZJFriendTrackMapViewController
*
trackMapVc
=
[[
ZJFriendTrackMapViewController
alloc
]
init
];
trackMapVc
.
model
=
self
.
friendDataSource
[
indexPath
.
row
];
trackMapVc
.
model
=
self
.
friendDataSource
[
indexPath
.
row
];
...
...
ZhiJi/Classes/Goods/Controller/ZJMemberPayViewController.m
View file @
e4c3d2a4
...
@@ -150,6 +150,7 @@
...
@@ -150,6 +150,7 @@
}
}
[
MobClick
event
:
@"goto_pay"
];
[
MobClick
event
:
@"goto_pay"
];
[
MobClick
event
:
@"pay_button_click"
];
[
ZTPurchaseManager
purchaseWithProductIdWithProductId
:
productId
inView
:
self
.
view
success
:^
{
[
ZTPurchaseManager
purchaseWithProductIdWithProductId
:
productId
inView
:
self
.
view
success
:^
{
...
...
ZhiJi/Classes/Login/Controller/ZJPhoneLoginViewController.m
View file @
e4c3d2a4
...
@@ -306,7 +306,7 @@
...
@@ -306,7 +306,7 @@
NSLog
(
@"---------------loginWithPhone %@"
,
response
);
NSLog
(
@"---------------loginWithPhone %@"
,
response
);
if
([[
response
objectForKey
:
@"status"
]
integerValue
]
==
200
){
if
([[
response
objectForKey
:
@"status"
]
integerValue
]
==
200
){
[
MobClick
event
:
@"login_suc"
];
NSString
*
token
=
[[[
response
objectForKey
:
@"result"
]
objectForKey
:
@"data"
]
objectForKey
:
@"token"
];
NSString
*
token
=
[[[
response
objectForKey
:
@"result"
]
objectForKey
:
@"data"
]
objectForKey
:
@"token"
];
if
(
token
)
{
if
(
token
)
{
...
@@ -323,10 +323,12 @@
...
@@ -323,10 +323,12 @@
}
}
}
else
if
([[
response
objectForKey
:
@"status"
]
integerValue
]
==
105
)
{
}
else
if
([[
response
objectForKey
:
@"status"
]
integerValue
]
==
105
)
{
[
MobClick
event
:
@"login_fail"
];
[
MBProgressHUD
showError
:[
response
objectForKey
:
@"msg"
]
toView
:
self
.
view
];
[
MBProgressHUD
showError
:[
response
objectForKey
:
@"msg"
]
toView
:
self
.
view
];
}
}
}
failure
:^
(
NSError
*
_Nonnull
error
)
{
}
failure
:^
(
NSError
*
_Nonnull
error
)
{
[
MobClick
event
:
@"login_fail"
];
NSLog
(
@"loginWithPhone error %@"
,
error
);
NSLog
(
@"loginWithPhone error %@"
,
error
);
}];
}];
}
}
...
...
ZhiJi/Classes/Map/Controller/ZJBaseMapViewController.m
View file @
e4c3d2a4
...
@@ -40,27 +40,11 @@
...
@@ -40,27 +40,11 @@
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
2
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
2
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
[
self
getFriendList
];
[
self
getFriendList
];
});
});
if
([
ZJUserInfoManager
CNLanguage
])
{
self
.
mapView
.
mapLanguage
=
@0
;
[
self
.
mapView
performSelector
:
NSSelectorFromString
(
@"setMapLanguage:"
)
withObject
:
@
(
0
)];
}
else
{
self
.
mapView
.
mapLanguage
=
@1
;
[
self
.
mapView
performSelector
:
NSSelectorFromString
(
@"setMapLanguage:"
)
withObject
:
@
(
1
)];
}
}
}
-
(
void
)
viewWillAppear
:
(
BOOL
)
animated
{
-
(
void
)
viewWillAppear
:
(
BOOL
)
animated
{
[
super
viewWillAppear
:
animated
];
[
super
viewWillAppear
:
animated
];
[
self
.
navigationController
setNavigationBarHidden
:
true
animated
:
true
];
[
self
.
navigationController
setNavigationBarHidden
:
true
animated
:
true
];
if
([
ZJUserInfoManager
CNLanguage
])
{
self
.
mapView
.
mapLanguage
=
@0
;
[
self
.
mapView
performSelector
:
NSSelectorFromString
(
@"setMapLanguage:"
)
withObject
:
@
(
0
)];
}
else
{
self
.
mapView
.
mapLanguage
=
@1
;
[
self
.
mapView
performSelector
:
NSSelectorFromString
(
@"setMapLanguage:"
)
withObject
:
@
(
1
)];
}
}
}
-
(
void
)
setupUI
{
-
(
void
)
setupUI
{
...
@@ -73,6 +57,14 @@
...
@@ -73,6 +57,14 @@
///把地图添加至view
///把地图添加至view
[
self
.
view
addSubview
:
_mapView
];
[
self
.
view
addSubview
:
_mapView
];
if
([
ZJUserInfoManager
CNLanguage
])
{
self
.
mapView
.
mapLanguage
=
@0
;
[
self
.
mapView
performSelector
:
NSSelectorFromString
(
@"setMapLanguage:"
)
withObject
:
@
(
0
)];
}
else
{
self
.
mapView
.
mapLanguage
=
@1
;
[
self
.
mapView
performSelector
:
NSSelectorFromString
(
@"setMapLanguage:"
)
withObject
:
@
(
1
)];
}
_mapView
.
delegate
=
self
;
_mapView
.
delegate
=
self
;
_mapView
.
zoomLevel
=
14
;
_mapView
.
zoomLevel
=
14
;
_mapView
.
showsScale
=
false
;
_mapView
.
showsScale
=
false
;
...
@@ -108,6 +100,8 @@
...
@@ -108,6 +100,8 @@
};
};
// };
// };
}
else
{
}
else
{
[
MobClick
event
:
@"map_friendtrack_view"
];
ZJFriendTrackMapViewController
*
trackMapVc
=
[[
ZJFriendTrackMapViewController
alloc
]
init
];
ZJFriendTrackMapViewController
*
trackMapVc
=
[[
ZJFriendTrackMapViewController
alloc
]
init
];
trackMapVc
.
model
=
self
.
selectFriendModel
;
trackMapVc
.
model
=
self
.
selectFriendModel
;
trackMapVc
.
autoTrack
=
true
;
trackMapVc
.
autoTrack
=
true
;
...
...
ZhiJi/Classes/Map/Controller/ZJFriendTrackMapViewController.m
View file @
e4c3d2a4
...
@@ -183,6 +183,13 @@
...
@@ -183,6 +183,13 @@
}
}
-
(
void
)
drawLineAction
{
-
(
void
)
drawLineAction
{
if
(
self
.
isMyTrack
)
{
[
MobClick
event
:
@"mytrack_querybutton_click"
];
}
else
{
[
MobClick
event
:
@"friendtrack_querybutton_click"
];
}
[
self
.
trackTimeView
.
trackButton
setSelected
:
true
];
[
self
.
trackTimeView
.
trackButton
setSelected
:
true
];
[
self
.
trackTimeView
.
trackButton
setEnabled
:
false
];
[
self
.
trackTimeView
.
trackButton
setEnabled
:
false
];
//移除
//移除
...
...
ZhiJi/Classes/Map/Controller/ZJMapStyle2ViewController.m
View file @
e4c3d2a4
...
@@ -169,7 +169,7 @@
...
@@ -169,7 +169,7 @@
self
.
addBtn
.
selected
=
NO
;
self
.
addBtn
.
selected
=
NO
;
return
;
return
;
}
}
[
MobClick
event
:
@"map_phonenumber_input"
];
[[
TQNetworkTools
shared
]
getWithAction
:
userFind
parameters
:@{
@"phone"
:
phone
}
success
:^
(
id
_Nonnull
response
)
{
[[
TQNetworkTools
shared
]
getWithAction
:
userFind
parameters
:@{
@"phone"
:
phone
}
success
:^
(
id
_Nonnull
response
)
{
if
([[
response
objectForKey
:
@"status"
]
integerValue
]
==
200
){
if
([[
response
objectForKey
:
@"status"
]
integerValue
]
==
200
){
...
...
ZhiJi/Classes/Mine/Controller/ZJEmergencyContactViewController.m
View file @
e4c3d2a4
...
@@ -250,6 +250,7 @@
...
@@ -250,6 +250,7 @@
return
;
return
;
}
}
[
MobClick
event
:
@"me_emergencycontact_add"
];
[[
TQNetworkTools
shared
]
postWithAction
:
addFriendContactByPhoneNo
parameters
:@{
@"phoneNo"
:
[
NSString
stringWithFormat
:
@"%@%@"
,
code
,
phone
],
/*@"phoneCode":code*/
}
success
:^
(
id
_Nonnull
response
)
{
[[
TQNetworkTools
shared
]
postWithAction
:
addFriendContactByPhoneNo
parameters
:@{
@"phoneNo"
:
[
NSString
stringWithFormat
:
@"%@%@"
,
code
,
phone
],
/*@"phoneCode":code*/
}
success
:^
(
id
_Nonnull
response
)
{
if
([[
response
objectForKey
:
@"status"
]
integerValue
]
==
200
){
if
([[
response
objectForKey
:
@"status"
]
integerValue
]
==
200
){
...
@@ -265,7 +266,7 @@
...
@@ -265,7 +266,7 @@
#pragma mark 移除紧急联系人
#pragma mark 移除紧急联系人
-
(
void
)
removeEmergencyContact
:
(
ZJEmergencyContactModel
*
)
model
{
-
(
void
)
removeEmergencyContact
:
(
ZJEmergencyContactModel
*
)
model
{
[
MobClick
event
:
@"me_emergencycontact_delete"
];
[[
TQNetworkTools
shared
]
postWithAction
:
friendContactRemove
parameters
:@{
@"lfId"
:
model
.
id
}
success
:^
(
id
_Nonnull
response
)
{
[[
TQNetworkTools
shared
]
postWithAction
:
friendContactRemove
parameters
:@{
@"lfId"
:
model
.
id
}
success
:^
(
id
_Nonnull
response
)
{
if
([[
response
objectForKey
:
@"status"
]
integerValue
]
==
200
){
if
([[
response
objectForKey
:
@"status"
]
integerValue
]
==
200
){
...
...
ZhiJi/Classes/Mine/Controller/ZJMineViewController.m
View file @
e4c3d2a4
...
@@ -57,7 +57,6 @@ static NSString *ID = @"mineID";
...
@@ -57,7 +57,6 @@ static NSString *ID = @"mineID";
-
(
void
)
viewDidLoad
{
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
super
viewDidLoad
];
[
self
setUI
];
[
self
setUI
];
self
.
headerView
.
xuFeiButton
.
hidden
=
YES
;
}
}
-
(
void
)
setUI
{
-
(
void
)
setUI
{
...
@@ -92,7 +91,7 @@ static NSString *ID = @"mineID";
...
@@ -92,7 +91,7 @@ static NSString *ID = @"mineID";
}
}
-
(
void
)
settingBtnClick
{
-
(
void
)
settingBtnClick
{
[
MobClick
event
:
@"me_setting_click"
];
ZJSettingViewController
*
setting
=
[[
ZJSettingViewController
alloc
]
init
];
ZJSettingViewController
*
setting
=
[[
ZJSettingViewController
alloc
]
init
];
[
self
.
navigationController
pushViewController
:
setting
animated
:
YES
];
[
self
.
navigationController
pushViewController
:
setting
animated
:
YES
];
setting
.
quitCallBack
=
^
{
setting
.
quitCallBack
=
^
{
...
@@ -110,10 +109,12 @@ static NSString *ID = @"mineID";
...
@@ -110,10 +109,12 @@ static NSString *ID = @"mineID";
__weak
typeof
(
self
)
weakSelf
=
self
;
__weak
typeof
(
self
)
weakSelf
=
self
;
update
.
modifyNicknameSuccessClosure
=
^
{
update
.
modifyNicknameSuccessClosure
=
^
{
[
weakSelf
getUserInfo
];
[
weakSelf
getUserInfo
];
[
MobClick
event
:
@"me_nickname_store"
];
};
};
}
}
-
(
void
)
MyTrack
{
-
(
void
)
MyTrack
{
[
MobClick
event
:
@"me_mytrack_click"
];
ZJFriendTrackMapViewController
*
trackMapVc
=
[[
ZJFriendTrackMapViewController
alloc
]
init
];
\
ZJFriendTrackMapViewController
*
trackMapVc
=
[[
ZJFriendTrackMapViewController
alloc
]
init
];
\
trackMapVc
.
isMyTrack
=
true
;
trackMapVc
.
isMyTrack
=
true
;
trackMapVc
.
autoTrack
=
true
;
trackMapVc
.
autoTrack
=
true
;
...
@@ -121,6 +122,7 @@ static NSString *ID = @"mineID";
...
@@ -121,6 +122,7 @@ static NSString *ID = @"mineID";
}
}
-
(
void
)
urgencyPerson
{
-
(
void
)
urgencyPerson
{
[
MobClick
event
:
@"me_emergencycontact_click"
];
ZJEmergencyContactViewController
*
vc
=
[[
ZJEmergencyContactViewController
alloc
]
init
];
ZJEmergencyContactViewController
*
vc
=
[[
ZJEmergencyContactViewController
alloc
]
init
];
[
self
.
navigationController
pushViewController
:
vc
animated
:
YES
];
[
self
.
navigationController
pushViewController
:
vc
animated
:
YES
];
}
}
...
@@ -135,12 +137,13 @@ static NSString *ID = @"mineID";
...
@@ -135,12 +137,13 @@ static NSString *ID = @"mineID";
}
}
-
(
void
)
share
{
-
(
void
)
share
{
[
MobClick
event
:
@"me_share"
];
// [ZJShareManager shareWithType:Share_share currentVC:self];
// [ZJShareManager shareWithType:Share_share currentVC:self];
[
ZJShareManager
shareWithType
:
Share_share
item
:
nil
target
:
self
success
:
nil
];
[
ZJShareManager
shareWithType
:
Share_share
item
:
nil
target
:
self
success
:
nil
];
}
}
-
(
void
)
locationSet
{
-
(
void
)
locationSet
{
[
MobClick
event
:
@"me_location_setting"
];
NSURL
*
url
=
[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
];
NSURL
*
url
=
[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
];
if
([[
UIApplication
sharedApplication
]
canOpenURL
:
url
])
{
if
([[
UIApplication
sharedApplication
]
canOpenURL
:
url
])
{
...
@@ -255,7 +258,21 @@ static NSString *ID = @"mineID";
...
@@ -255,7 +258,21 @@ static NSString *ID = @"mineID";
break
;
break
;
case
HeaderTapTypeRennewal
:
case
HeaderTapTypeRennewal
:
{
{
[
MobClick
event
:
@"me_unlock_click"
];
if
(
!
[
ZJUserInfoManager
shared
].
isLogin
)
{
ZJOauthLoginConfig
*
config
=
[[
ZJOauthLoginConfig
alloc
]
initWithCurrentVC
:
self
];
[
config
loginVerify
:
^
(
id
_Nonnull
model
)
{
if
([
model
isKindOfClass
:[
ZJMineUserInfoModel
class
]]
)
{
NSLog
(
@"success"
);
self
.
isVip
=
((
ZJMineUserInfoModel
*
)
model
).
isMember
;
[
self
.
mineTableView
reloadData
];
[
self
.
headerView
updateHeaderForLogin
:
true
Member
:((
ZJMineUserInfoModel
*
)
model
).
isMember
UserInfo
:
model
];
}
}];
return
;
}
if
(
!
[
ZJUserInfoManager
shared
].
userInfoModel
.
isMember
)
{
if
(
!
[
ZJUserInfoManager
shared
].
userInfoModel
.
isMember
)
{
// ZJMemberPayViewController *zhiFuVC = [[ZJMemberPayViewController alloc] init];
// ZJMemberPayViewController *zhiFuVC = [[ZJMemberPayViewController alloc] init];
...
@@ -369,6 +386,7 @@ static NSString *ID = @"mineID";
...
@@ -369,6 +386,7 @@ static NSString *ID = @"mineID";
if
([
ZJUserInfoManager
shared
].
isTourist
){
if
([
ZJUserInfoManager
shared
].
isTourist
){
[
MobClick
event
:
@"me_unlock_click"
];
ZJOauthLoginConfig
*
config
=
[[
ZJOauthLoginConfig
alloc
]
initWithCurrentVC
:
self
];
ZJOauthLoginConfig
*
config
=
[[
ZJOauthLoginConfig
alloc
]
initWithCurrentVC
:
self
];
[
config
loginVerify
:
^
(
id
_Nonnull
model
)
{
[
config
loginVerify
:
^
(
id
_Nonnull
model
)
{
if
([
model
isKindOfClass
:[
ZJMineUserInfoModel
class
]]
)
{
if
([
model
isKindOfClass
:[
ZJMineUserInfoModel
class
]]
)
{
...
...
ZhiJi/Classes/Mine/Controller/ZJSettingViewController.m
View file @
e4c3d2a4
...
@@ -72,6 +72,8 @@
...
@@ -72,6 +72,8 @@
-
(
void
)
logoutBtnClick
{
-
(
void
)
logoutBtnClick
{
[
MobClick
event
:
@"setting_logout"
];
[[
ZJUserInfoManager
shared
]
clean
];
[[
ZJUserInfoManager
shared
]
clean
];
BaseTabBarViewController
*
tabbar
=
[
BaseTabBarViewController
new
];
BaseTabBarViewController
*
tabbar
=
[
BaseTabBarViewController
new
];
...
@@ -192,6 +194,7 @@
...
@@ -192,6 +194,7 @@
-
(
void
)
userClause
:
(
NSInteger
)
index
{
-
(
void
)
userClause
:
(
NSInteger
)
index
{
[
MobClick
event
:
@"setting_terms"
];
NSDictionary
*
dic
=
[
ZJUserInfoManager
shared
].
h5_url
;
NSDictionary
*
dic
=
[
ZJUserInfoManager
shared
].
h5_url
;
NSString
*
path
;
NSString
*
path
;
switch
(
index
)
{
switch
(
index
)
{
...
@@ -217,7 +220,7 @@
...
@@ -217,7 +220,7 @@
#pragma userLogout
#pragma userLogout
-
(
void
)
userCancellation
{
-
(
void
)
userCancellation
{
[
MobClick
event
:
@"setting_del_account"
];
[[
TQNetworkTools
shared
]
getWithAction
:
friendContactList
parameters
:@{}
success
:^
(
id
_Nonnull
response
)
{
[[
TQNetworkTools
shared
]
getWithAction
:
friendContactList
parameters
:@{}
success
:^
(
id
_Nonnull
response
)
{
if
([[
response
objectForKey
:
@"status"
]
integerValue
]
==
200
){
if
([[
response
objectForKey
:
@"status"
]
integerValue
]
==
200
){
...
...
ZhiJi/Classes/Mine/View/ZJMineHeaderView.m
View file @
e4c3d2a4
...
@@ -118,7 +118,7 @@
...
@@ -118,7 +118,7 @@
//xufeiButton
//xufeiButton
self
.
xuFeiButton
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
self
.
xuFeiButton
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
[
self
.
xuFeiButton
setBackgroundImage
:[
UIImage
imageNamed
:
@"xuFei_Btn"
]
forState
:
UIControlStateNormal
];
[
self
.
xuFeiButton
setBackgroundImage
:[
UIImage
imageNamed
:
@"xuFei_Btn"
]
forState
:
UIControlStateNormal
];
[
self
.
xuFeiButton
setTitle
:
kLocalizedString
(
@"mine_
renewal
"
)
forState
:
0
];
[
self
.
xuFeiButton
setTitle
:
kLocalizedString
(
@"mine_
unlock
"
)
forState
:
0
];
[
self
.
xuFeiButton
setTitleColor
:[
UIColor
colorWithHex
:
0x38180D
]
forState
:
0
];
[
self
.
xuFeiButton
setTitleColor
:[
UIColor
colorWithHex
:
0x38180D
]
forState
:
0
];
[
self
.
xuFeiButton
.
titleLabel
setFont
:[
UIFont
systemFontOfSize
:
KFont
(
14
)]];
[
self
.
xuFeiButton
.
titleLabel
setFont
:[
UIFont
systemFontOfSize
:
KFont
(
14
)]];
[
self
.
xuFeiButton
setBackgroundColor
:[
UIColor
colorWithHex
:
0xEBC6B4
]];
[
self
.
xuFeiButton
setBackgroundColor
:[
UIColor
colorWithHex
:
0xEBC6B4
]];
...
@@ -181,10 +181,11 @@
...
@@ -181,10 +181,11 @@
-
(
void
)
updateHeaderForLogin
:
(
BOOL
)
isLogin
Member
:
(
BOOL
)
Member
UserInfo
:
(
ZJMineUserInfoModel
*
)
userInfo
{
-
(
void
)
updateHeaderForLogin
:
(
BOOL
)
isLogin
Member
:
(
BOOL
)
Member
UserInfo
:
(
ZJMineUserInfoModel
*
)
userInfo
{
_dengJiImageView
.
hidden
=
!
(
isLogin
&&
Member
);
_dengJiImageView
.
hidden
=
!
(
isLogin
&&
Member
);
_xuFeiButton
.
hidden
=
!
_dengJiImageView
.
hidden
;
_xuFeiButton
.
hidden
=
!
_dengJiImageView
.
hidden
;
_xuFeiButton
.
hidden
=
false
;
if
(
isLogin
)
{
if
(
isLogin
)
{
if
(
Member
)
{
if
(
Member
)
{
_gongNengLabel
.
text
=
kLocalizedString
(
@"mine_unlocked"
);
_gongNengLabel
.
text
=
kLocalizedString
(
@"mine_unlocked"
);
_timeLabel
.
text
=
kLocalizedString
(
@"mine_free_used"
)
;
_timeLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@%@"
,
kLocalizedString
(
@"mine_free_used"
),
userInfo
.
memberEndTime
]
;
_xuFeiButton
.
hidden
=
YES
;
_xuFeiButton
.
hidden
=
YES
;
}
else
{
}
else
{
_gongNengLabel
.
text
=
kLocalizedString
(
@"mine_premium_services_locked"
);
_gongNengLabel
.
text
=
kLocalizedString
(
@"mine_premium_services_locked"
);
...
@@ -199,14 +200,13 @@
...
@@ -199,14 +200,13 @@
}
else
{
}
else
{
if
(
Member
)
{
if
(
Member
)
{
_gongNengLabel
.
text
=
kLocalizedString
(
@"mine_unlocked"
);
_gongNengLabel
.
text
=
kLocalizedString
(
@"mine_unlocked"
);
_timeLabel
.
text
=
kLocalizedString
(
@"mine_free_used"
)
;
_timeLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@%@"
,
kLocalizedString
(
@"mine_free_used"
),
userInfo
.
memberEndTime
]
;
_nicknameLabel
.
text
=
kLocalizedString
(
@"mine_sign"
);
// [[data Read] objectForKey:@"NickName"];
_nicknameLabel
.
text
=
kLocalizedString
(
@"mine_sign"
);
// [[data Read] objectForKey:@"NickName"];
_xuFeiButton
.
hidden
=
true
;
_xuFeiButton
.
hidden
=
true
;
}
else
{
}
else
{
_gongNengLabel
.
text
=
kLocalizedString
(
@"mine_premium_services_locked"
);
_gongNengLabel
.
text
=
kLocalizedString
(
@"mine_premium_services_locked"
);
_timeLabel
.
text
=
kLocalizedString
(
@"mine_unlock_more_services"
);
_timeLabel
.
text
=
kLocalizedString
(
@"mine_unlock_more_services"
);
[
_xuFeiButton
setTitle
:
kLocalizedString
(
@"mine_unlock"
)
forState
:(
UIControlStateNormal
)];
[
_xuFeiButton
setTitle
:
kLocalizedString
(
@"mine_unlock"
)
forState
:(
UIControlStateNormal
)];
_xuFeiButton
.
hidden
=
false
;
}
}
// _gongNengLabel.text = kLocalizedString(@"mine_premium_services_locked");
// _gongNengLabel.text = kLocalizedString(@"mine_premium_services_locked");
// _timeLabel.text = kLocalizedString(@"mine_unlock_more_services");
// _timeLabel.text = kLocalizedString(@"mine_unlock_more_services");
...
@@ -239,6 +239,7 @@
...
@@ -239,6 +239,7 @@
_gongNengLabel
.
text
=
kLocalizedString
(
@"mine_premium_services_locked"
);
_gongNengLabel
.
text
=
kLocalizedString
(
@"mine_premium_services_locked"
);
_timeLabel
.
text
=
kLocalizedString
(
@"mine_unlock_more_services"
);
_timeLabel
.
text
=
kLocalizedString
(
@"mine_unlock_more_services"
);
[
_xuFeiButton
setTitle
:
kLocalizedString
(
@"mine_unlock"
)
forState
:(
UIControlStateNormal
)];
[
_xuFeiButton
setTitle
:
kLocalizedString
(
@"mine_unlock"
)
forState
:(
UIControlStateNormal
)];
_xuFeiButton
.
hidden
=
false
;
}
}
@end
@end
ZhiJi/Classes/Tools/PCH/ResourceHeader.pch
View file @
e4c3d2a4
...
@@ -22,13 +22,13 @@
...
@@ -22,13 +22,13 @@
//#if DEBUG
//#if DEBUG
//
//
//#define ServerReport @"http
s://report.linking100.com
"
//#define ServerReport @"http
://report.linking100.com/ping
"
//#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
s
://report.linking100.com"
#define ServerReport @"http://report.linking100.com"
#define ServerHost @"https://feedapi.linking100.com"
#define ServerHost @"https://feedapi.linking100.com"
#define ServerHostFeed @"https://feedapi.linking100.com"
#define ServerHostFeed @"https://feedapi.linking100.com"
...
...
ZhiJi/en.lproj/Localizable.strings
View file @
e4c3d2a4
...
@@ -175,7 +175,7 @@ appName = "Family Mapp";
...
@@ -175,7 +175,7 @@ appName = "Family Mapp";
"myself"="Me";
"myself"="Me";
"myself_style2"="Myself";
"myself_style2"="Myself";
"mine_free_used"="
Free for life
";
"mine_free_used"="
Valid until:
";
//setting
//setting
"setting"="Settings";
"setting"="Settings";
...
...
ZhiJi/zh-Hans.lproj/Localizable.strings
View file @
e4c3d2a4
...
@@ -172,7 +172,7 @@ appName = "Family Mapp";
...
@@ -172,7 +172,7 @@ appName = "Family Mapp";
"myself"="自己";
"myself"="自己";
"myself_style2"="我自己";
"myself_style2"="我自己";
"mine_free_used"="
终身免费使用
";
"mine_free_used"="
有效期:
";
//setting
//setting
"setting"="设置";
"setting"="设置";
...
...
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