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
49877d2c
Commit
49877d2c
authored
Jul 08, 2020
by
lmj_521aiau@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
c88ac357
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
56 additions
and
25 deletions
+56
-25
ZJBaseCareViewController.h
ZhiJi/Classes/Care/Controller/ZJBaseCareViewController.h
+2
-0
ZJBaseCareViewController.m
ZhiJi/Classes/Care/Controller/ZJBaseCareViewController.m
+3
-0
ZJCareStyle2ViewController.m
ZhiJi/Classes/Care/Controller/ZJCareStyle2ViewController.m
+5
-2
ZJFriendSettingView.m
ZhiJi/Classes/Care/View/ZJFriendSettingView.m
+1
-1
ZJMemberPayViewController.m
ZhiJi/Classes/Goods/Controller/ZJMemberPayViewController.m
+11
-2
ZTPurchaseManager.swift
ZhiJi/Classes/Goods/Controller/ZTPurchaseManager.swift
+2
-2
ZJLocationAttentionFooter.swift
...Classes/LocationAttention/ZJLocationAttentionFooter.swift
+0
-4
ZJLocationAttentionVC.swift
ZhiJi/Classes/LocationAttention/ZJLocationAttentionVC.swift
+2
-0
ZJLocationRemindSelectController.m
...sses/LocationAttention/ZJLocationRemindSelectController.m
+1
-1
ZJUpdateNickNameView.m
ZhiJi/Classes/Mine/View/ZJUpdateNickNameView.m
+3
-3
ZJGuideConfig.m
ZhiJi/Classes/Tools/Guide/ZJGuideConfig.m
+18
-4
ResourceHeader.pch
ZhiJi/Classes/Tools/PCH/ResourceHeader.pch
+6
-6
Localizable.strings
ZhiJi/en.lproj/Localizable.strings
+1
-0
Localizable.strings
ZhiJi/zh-Hans.lproj/Localizable.strings
+1
-0
No files found.
ZhiJi/Classes/Care/Controller/ZJBaseCareViewController.h
View file @
49877d2c
...
...
@@ -56,6 +56,8 @@ static NSString *ID = @"id";
-
(
void
)
showUpgradeLlert
;
-
(
void
)
getFirendInfoWithPhone
:(
NSString
*
_Nullable
)
phone
;
@end
NS_ASSUME_NONNULL_END
ZhiJi/Classes/Care/Controller/ZJBaseCareViewController.m
View file @
49877d2c
...
...
@@ -338,6 +338,9 @@
[[
ZJUserInfoManager
shared
]
updataUserInfo
:
^
(
ZJMineUserInfoModel
*
_Nonnull
model
)
{
[
self
getHasNewMsg
];
[
self
getFriendList
];
[
self
getFirendInfoWithPhone
:
nil
];
}
failure
:
^
(
id
_Nonnull
error
)
{
}];
...
...
ZhiJi/Classes/Care/Controller/ZJCareStyle2ViewController.m
View file @
49877d2c
...
...
@@ -281,6 +281,9 @@
-
(
void
)
getFirendInfoWithPhone
:
(
NSString
*
)
phone
{
if
(
!
phone
)
{
phone
=
_phoneTF
.
text
;
}
self
.
addBtn
.
userInteractionEnabled
=
YES
;
self
.
addBtn
.
backgroundColor
=
kMassColor
;
...
...
@@ -314,7 +317,7 @@
return
;
}
[[
TQNetworkTools
shared
]
getWithAction
:
userFind
parameters
:@{
@"phone"
:
phone
}
success
:^
(
id
_Nonnull
response
)
{
[[
TQNetworkTools
shared
]
getWithAction
:
userFind
parameters
:@{
@"phone"
:
phone
,
@"phoneCode"
:
currentCountryCode
}
success
:^
(
id
_Nonnull
response
)
{
if
([[
response
objectForKey
:
@"status"
]
integerValue
]
==
200
){
...
...
@@ -456,7 +459,7 @@
if
([[
response
objectForKey
:
@"status"
]
integerValue
]
==
200
){
[
MBProgressHUD
showSuccess
:
kLocalizedString
(
@"location_send_invite"
)
toView
:
self
.
view
];
}
else
if
([[
response
objectForKey
:
@"status"
]
integerValue
]
==
105
)
{
}
else
{
[
MBProgressHUD
showError
:[
response
objectForKey
:
@"msg"
]
toView
:
self
.
view
];
}
}
failure
:^
(
NSError
*
_Nonnull
error
)
{
...
...
ZhiJi/Classes/Care/View/ZJFriendSettingView.m
View file @
49877d2c
...
...
@@ -116,7 +116,7 @@
[
customViewArr
addObject
:
customView
];
[
customView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
mas_equalTo
(
bgview
).
mas_offset
(
start
+
interval
*
count
);
make
.
width
.
mas_equalTo
(
KScaleWidth
(
2
0
0
));
make
.
width
.
mas_equalTo
(
KScaleWidth
(
2
4
0
));
make
.
right
.
mas_equalTo
(
bgview
.
mas_right
).
mas_offset
(
-
KScaleWidth
(
23
));
make
.
height
.
mas_equalTo
(
interval
);
}];
...
...
ZhiJi/Classes/Goods/Controller/ZJMemberPayViewController.m
View file @
49877d2c
...
...
@@ -83,7 +83,7 @@
}
-
(
void
)
setupView
{
self
.
view
.
backgroundColor
=
[
UIColor
whiteColor
]
;
self
.
view
.
backgroundColor
=
kColorFromRGB
(
0x568EFC
)
;
UIImageView
*
maskImV
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
KScreenWidth
,
kNavigationBarHeight
)];
maskImV
.
image
=
[
UIImage
imageNamed
:
@"goods_top_mask"
];
...
...
@@ -157,6 +157,11 @@
self
.
payFinish
();
}
if
(
self
.
presentingViewController
){
[
self
dismissViewControllerAnimated
:
YES
completion
:
nil
];
return
;
}
[
self
.
navigationController
popViewControllerAnimated
:
YES
];
}
faliure
:^
{
...
...
@@ -173,7 +178,11 @@
}
-
(
IBAction
)
restoreBtnClick
:
(
id
)
sender
{
[
ZTPurchaseManager
restorePurchasesWithSuccess
:
^
{
[
ZTPurchaseManager
restorePurchasesWithView
:
self
.
view
success
:
^
{
if
(
self
.
presentingViewController
)
{
[
self
dismissViewControllerAnimated
:
YES
completion
:
nil
];
return
;
}
[
self
.
navigationController
popViewControllerAnimated
:
YES
];
}];
}
...
...
ZhiJi/Classes/Goods/Controller/ZTPurchaseManager.swift
View file @
49877d2c
...
...
@@ -129,8 +129,8 @@ class ZTPurchaseManager: NSObject {
}
// 恢复购买
@objc
class
func
restorePurchases
(
success
:
@escaping(()
->
Void
))
{
let
hud
=
MBProgressHUD
.
showAdded
(
to
:
UIApplication
.
shared
.
delegate
!.
window
!!
,
animated
:
true
)
@objc
class
func
restorePurchases
(
view
:
UIView
,
success
:
@escaping(()
->
Void
))
{
let
hud
=
MBProgressHUD
.
showAdded
(
to
:
view
,
animated
:
true
)
SwiftyStoreKit
.
restorePurchases
(
atomically
:
true
)
{
results
in
hud
.
hide
(
animated
:
true
);
if
results
.
restoreFailedPurchases
.
count
>
0
{
...
...
ZhiJi/Classes/LocationAttention/ZJLocationAttentionFooter.swift
View file @
49877d2c
...
...
@@ -12,8 +12,4 @@ class ZJLocationAttentionFooter: UIView {
@IBOutlet
weak
var
bottom_addBtn
:
UIButton
!
override
func
awakeFromNib
()
{
bottom_addBtn
.
setTitle
(
NSLocalizedString
(
"location_no_address_remind"
,
comment
:
""
),
for
:
.
normal
)
}
}
ZhiJi/Classes/LocationAttention/ZJLocationAttentionVC.swift
View file @
49877d2c
...
...
@@ -336,6 +336,8 @@ extension ZJLocationAttentionVC: UITableViewDelegate, UITableViewDataSource {
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
let
footerView
=
Bundle
.
main
.
loadNibNamed
(
"ZJLocationAttentionFooter"
,
owner
:
self
,
options
:
.
none
)?
.
last
as!
ZJLocationAttentionFooter
footerView
.
bottom_addBtn
.
addTarget
(
self
,
action
:
#selector(
add_address
)
,
for
:
.
touchUpInside
)
footerView
.
bottom_addBtn
.
setTitle
(
NSLocalizedString
(
"location_address_add"
,
comment
:
""
),
for
:
.
normal
)
return
footerView
}
...
...
ZhiJi/Classes/LocationAttention/ZJLocationRemindSelectController.m
View file @
49877d2c
...
...
@@ -245,7 +245,7 @@
}
self
.
addressMainTitleLabel
.
text
=
placemark
.
name
;
self
.
addressSubTitleLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@%@%@"
,
placemark
.
subLocality
,
placemark
.
thoroughfare
,
placemark
.
subThoroughfare
?:
@""
];
self
.
addressSubTitleLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@%@%@"
,
placemark
.
subLocality
?:
@""
,
placemark
.
thoroughfare
?:
@""
,
placemark
.
subThoroughfare
?:
@""
];
// 市
NSLog
(
@"locality,%@"
,
placemark
.
addressDictionary
);
...
...
ZhiJi/Classes/Mine/View/ZJUpdateNickNameView.m
View file @
49877d2c
...
...
@@ -65,7 +65,7 @@
}];
UILabel
*
nickNameLab
=
[[
UILabel
alloc
]
init
];
nickNameLab
.
text
=
kLocalizedString
(
@"
N
ickname"
);
nickNameLab
.
text
=
kLocalizedString
(
@"
friend_n
ickname"
);
nickNameLab
.
textColor
=
kColorWithRGB
(
33
,
33
,
33
);
nickNameLab
.
font
=
[
UIFont
systemFontOfSize
:
KFont
(
17
)];
nickNameLab
.
textAlignment
=
NSTextAlignmentCenter
;
...
...
@@ -73,7 +73,7 @@
[
nickNameLab
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
equalTo
(
titleLabel
.
mas_bottom
).
mas_offset
(
KScaleWidth
(
40
));
make
.
left
.
equalTo
(
bgview
);
make
.
size
.
mas_offset
(
CGSizeMake
(
KScaleWidth
(
74
)
,
KScaleWidth
(
14
)));
make
.
size
.
mas_offset
(
CGSizeMake
(
80
,
KScaleWidth
(
14
)));
}];
nickNameTextField
=
[[
UITextField
alloc
]
init
];
...
...
@@ -86,7 +86,7 @@
[
nickNameTextField
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
equalTo
(
nickNameLab
.
mas_right
).
mas_offset
(
KScaleWidth
(
9
));
make
.
right
.
equalTo
(
bgview
.
mas_right
).
mas_offset
(
-
KScaleWidth
(
23
));
make
.
centerY
.
equalTo
(
nickNameLab
);
make
.
centerY
.
equalTo
(
nickNameLab
)
.
mas_offset
(
KScaleWidth
(
2
))
;
make
.
height
.
mas_equalTo
(
KScaleWidth
(
60
));
}];
//
...
...
ZhiJi/Classes/Tools/Guide/ZJGuideConfig.m
View file @
49877d2c
...
...
@@ -80,18 +80,32 @@
Data
*
data
=
[[
Data
alloc
]
init
];
NSDictionary
*
switchDic
=
[[
data
Read
]
objectForKey
:
@"switch"
];
BOOL
open
=
switchDic
&&
[[
NSString
stringWithFormat
:
@"%@"
,[
switchDic
objectForKey
:
@"first_open_navigate"
]]
isEqualToString
:
@"1"
];
if
(
!
open
)
{
// 切换至tabVc
window
.
rootViewController
=
finishMainVC
;
}
else
{
NSString
*
currentVersion
=
[[
NSBundle
mainBundle
]
objectForInfoDictionaryKey
:(
NSString
*
)
kCFBundleVersionKey
];
//本地保存的版本号
NSUserDefaults
*
userDefault
=
[
NSUserDefaults
standardUserDefaults
];
NSString
*
localVersion
=
[
userDefault
objectForKey
:
kAPP_Version
];
if
(
!
[
currentVersion
isEqualToString
:
localVersion
])
{
[
data
removeDicForKey
:
@"agree"
];
}
if
(
open
&&
!
[[
data
Read
]
objectForKey
:
@"agree"
])
{
window
.
rootViewController
=
self
.
vc
;
self
.
vc
.
clickCallBack
=
^
(
BOOL
agree
)
{
if
(
agree
)
{
[
userDefault
setObject
:
currentVersion
forKey
:
kAPP_Version
];
[
userDefault
synchronize
];
[
data
WirteDic
:
@""
Key
:
@"agree"
];
window
.
rootViewController
=
finishMainVC
;
}
else
{
exit
(
0
);
}
};
}
else
{
// 切换至tabVc
window
.
rootViewController
=
finishMainVC
;
}
// ZJGuideConfig * config = [ZJGuideConfig shared];
// //当前运行的版本
...
...
ZhiJi/Classes/Tools/PCH/ResourceHeader.pch
View file @
49877d2c
...
...
@@ -22,14 +22,14 @@
//#if DEBUG
//
#define ServerReport @"http://report.zhangxinhulian
.com"
#define ServerHost @"https://feedapitest.zhangxinhulian.com"
#define ServerHostFeed @"https://feedapitest.zhangxinhulian.com"
//#define ServerReport @"https://report.linking100
.com"
//
#define ServerHost @"https://feedapitest.zhangxinhulian.com"
//
#define ServerHostFeed @"https://feedapitest.zhangxinhulian.com"
//
//#else
//#define ServerReport @"http://report.zhangxinhulian
.com"
//#define ServerHost @"https://feedapi.zhangxinhulian
.com"
//#define ServerHostFeed @"https://feedapi.zhangxinhulian
.com"
#define ServerReport @"https://report.linking100
.com"
#define ServerHost @"https://feedapi.linking100
.com"
#define ServerHostFeed @"https://feedapi.linking100
.com"
//#endif
ZhiJi/en.lproj/Localizable.strings
View file @
49877d2c
...
...
@@ -150,6 +150,7 @@ appName = "Family Mapp";
"location_address_remind"="Location remind";
"location_address_choose"="Select Location";
"location_address_edit"="Edit location";
"location_address_add"="Add Location";
//mine
"mine_sign"="Sign in";
...
...
ZhiJi/zh-Hans.lproj/Localizable.strings
View file @
49877d2c
...
...
@@ -147,6 +147,7 @@ appName = "Family Mapp";
"location_address_remind"="地点提醒";
"location_address_choose"="选择地点";
"location_address_edit"="编辑地点";
"location_address_add"="添加地点";
//mine
"mine_sign"="点击登录";
...
...
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