Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
ALand
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
ALand
Commits
8127f5f0
Commit
8127f5f0
authored
May 25, 2016
by
Sandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
db21ec7f
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
93 additions
and
61 deletions
+93
-61
project.pbxproj
ALand.xcodeproj/project.pbxproj
+1
-1
OrderDetailBottomView.m
ALand/CodeClass/Home/View/Order/OrderDetailBottomView.m
+4
-0
OrderDetailBottomView.xib
ALand/CodeClass/Home/View/Order/OrderDetailBottomView.xib
+9
-9
NoPaymentTableViewController.h
.../Home/ViewController/Order/NoPaymentTableViewController.h
+2
-1
NoPaymentTableViewController.m
.../Home/ViewController/Order/NoPaymentTableViewController.m
+9
-5
OrderDetailViewController.m
...ass/Home/ViewController/Order/OrderDetailViewController.m
+1
-0
OrderViewController.m
...CodeClass/Home/ViewController/Order/OrderViewController.m
+6
-1
StoreManagermentViewController.m
...troller/StoreManagerment/StoreManagermentViewController.m
+1
-0
NextResetPasswordViewController.m
ALand/CodeClass/Login/NextResetPasswordViewController.m
+8
-2
ResetPasswordViewController.m
ALand/CodeClass/Login/ResetPasswordViewController.m
+2
-0
RigistViewController.m
ALand/CodeClass/Login/RigistViewController.m
+1
-1
ChangePasswordViewController.m
...eClass/MIne/ViewController/ChangePasswordViewController.m
+6
-0
MBProgressHUD+Javen.m
ALand/General/Categories/MBProgressHUD+Javen.m
+1
-0
JavenMultipleViewWithHeader.h
ALand/General/JavenMultipleViewWithHeader.h
+3
-1
JavenMultipleViewWithHeader.m
ALand/General/JavenMultipleViewWithHeader.m
+38
-39
UrlHeader.h
ALand/Macro/UrlHeader.h
+1
-1
No files found.
ALand.xcodeproj/project.pbxproj
View file @
8127f5f0
...
@@ -2920,7 +2920,7 @@
...
@@ -2920,7 +2920,7 @@
baseConfigurationReference
=
AAF51B5D53AE9938C03065C3
/* Pods.release.xcconfig */
;
baseConfigurationReference
=
AAF51B5D53AE9938C03065C3
/* Pods.release.xcconfig */
;
buildSettings
=
{
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CODE_SIGN_IDENTITY
=
"iPhone D
eveloper
"
;
CODE_SIGN_IDENTITY
=
"iPhone D
istribution: Shanghai Gomore Information Technology Co.,Ltd
"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Distribution: Shanghai Gomore Information Technology Co.,Ltd"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Distribution: Shanghai Gomore Information Technology Co.,Ltd"
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
GCC_PREFIX_HEADER
=
Aland/PrefixHeader.pch
;
GCC_PREFIX_HEADER
=
Aland/PrefixHeader.pch
;
...
...
ALand/CodeClass/Home/View/Order/OrderDetailBottomView.m
View file @
8127f5f0
...
@@ -40,6 +40,10 @@
...
@@ -40,6 +40,10 @@
self
.
height
=
self
.
viewRemark
.
bottom
+
163
;
self
.
height
=
self
.
viewRemark
.
bottom
+
163
;
}
}
-
(
void
)
layoutSubviews
{
}
/*
/*
// Only override drawRect: if you perform custom drawing.
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
// An empty implementation adversely affects performance during animation.
...
...
ALand/CodeClass/Home/View/Order/OrderDetailBottomView.xib
View file @
8127f5f0
...
@@ -11,8 +11,8 @@
...
@@ -11,8 +11,8 @@
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"320"
height=
"337"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"320"
height=
"337"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<subviews>
<view
contentMode=
"scaleToFill"
misplaced=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"RJv-jW-sXA"
>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"RJv-jW-sXA"
>
<rect
key=
"frame"
x=
"0.0"
y=
"164"
width=
"320"
height=
"1
95
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"164"
width=
"320"
height=
"1
73
"
/>
<subviews>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"FNl-YE-JKf"
>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"FNl-YE-JKf"
>
<rect
key=
"frame"
x=
"0.0"
y=
"8"
width=
"320"
height=
"30"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"8"
width=
"320"
height=
"30"
/>
...
@@ -131,8 +131,8 @@
...
@@ -131,8 +131,8 @@
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"4Ej-sj-xdJ"
>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"4Ej-sj-xdJ"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"320"
height=
"30"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"320"
height=
"30"
/>
<subviews>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"商品金额:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"N4g-xA-5Vq"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"商品金额:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"N4g-xA-5Vq"
>
<rect
key=
"frame"
x=
"20"
y=
"5"
width=
"8
5"
height=
"21
"
/>
<rect
key=
"frame"
x=
"20"
y=
"5"
width=
"8
0"
height=
"20
"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
...
@@ -156,8 +156,8 @@
...
@@ -156,8 +156,8 @@
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"03T-0h-Ufa"
>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"03T-0h-Ufa"
>
<rect
key=
"frame"
x=
"0.0"
y=
"30"
width=
"320"
height=
"30"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"30"
width=
"320"
height=
"30"
/>
<subviews>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"运费:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"upY-P3-t4v"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"运费:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"upY-P3-t4v"
>
<rect
key=
"frame"
x=
"20"
y=
"5"
width=
"
85"
height=
"21
"
/>
<rect
key=
"frame"
x=
"20"
y=
"5"
width=
"
48"
height=
"20
"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
...
@@ -187,8 +187,8 @@
...
@@ -187,8 +187,8 @@
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"¥827"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"wye-4u-nVq"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"¥827"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"wye-4u-nVq"
>
<rect
key=
"frame"
x=
"25
3"
y=
"5"
width=
"47"
height=
"21
"
/>
<rect
key=
"frame"
x=
"25
5"
y=
"5"
width=
"45"
height=
"20
"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
...
@@ -297,7 +297,7 @@
...
@@ -297,7 +297,7 @@
<outlet
property=
"labelTotal"
destination=
"VEX-fb-el0"
id=
"AbW-N5-hm8"
/>
<outlet
property=
"labelTotal"
destination=
"VEX-fb-el0"
id=
"AbW-N5-hm8"
/>
<outlet
property=
"viewRemark"
destination=
"CoV-Us-WDw"
id=
"JZe-Oc-FgW"
/>
<outlet
property=
"viewRemark"
destination=
"CoV-Us-WDw"
id=
"JZe-Oc-FgW"
/>
</connections>
</connections>
<point
key=
"canvasLocation"
x=
"
236"
y=
"-72
.5"
/>
<point
key=
"canvasLocation"
x=
"
44"
y=
"-89
.5"
/>
</view>
</view>
</objects>
</objects>
</document>
</document>
ALand/CodeClass/Home/ViewController/Order/NoPaymentTableViewController.h
View file @
8127f5f0
...
@@ -7,8 +7,9 @@
...
@@ -7,8 +7,9 @@
//
//
#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>
@interface
NoPaymentTableViewController
:
UITableViewController
@interface
NoPaymentTableViewController
:
UITableViewController
@property
(
nonatomic
,
copy
)
NSString
*
orderTag
;
@property
(
nonatomic
,
copy
)
NSString
*
orderTag
;
@property
(
nonatomic
,
assign
)
BOOL
isFirstLoaded
;
-
(
void
)
setUpData
;
@end
@end
ALand/CodeClass/Home/ViewController/Order/NoPaymentTableViewController.m
View file @
8127f5f0
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
-
(
void
)
viewDidLoad
{
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
super
viewDidLoad
];
self
.
isFirstLoaded
=
YES
;
[
self
.
tableView
registerNib
:[
UINib
nibWithNibName
:
@"OrderDetailTableViewCell"
bundle
:[
NSBundle
mainBundle
]]
forCellReuseIdentifier
:
kCellId
];
[
self
.
tableView
registerNib
:[
UINib
nibWithNibName
:
@"OrderDetailTableViewCell"
bundle
:[
NSBundle
mainBundle
]]
forCellReuseIdentifier
:
kCellId
];
[
self
.
tableView
registerNib
:[
UINib
nibWithNibName
:
@"OrderListHeaderView"
bundle
:
nil
]
forHeaderFooterViewReuseIdentifier
:
kHeaderID
];
[
self
.
tableView
registerNib
:[
UINib
nibWithNibName
:
@"OrderListHeaderView"
bundle
:
nil
]
forHeaderFooterViewReuseIdentifier
:
kHeaderID
];
[
self
.
tableView
registerNib
:[
UINib
nibWithNibName
:
@"OrderListFooterView"
bundle
:
nil
]
forHeaderFooterViewReuseIdentifier
:
kFooterID
];
[
self
.
tableView
registerNib
:[
UINib
nibWithNibName
:
@"OrderListFooterView"
bundle
:
nil
]
forHeaderFooterViewReuseIdentifier
:
kFooterID
];
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
WS
(
weakSelf
)
WS
(
weakSelf
)
self
.
tableView
.
mj_header
=
[
MJRefreshNormalHeader
headerWithRefreshingBlock
:
^
{
self
.
tableView
.
mj_header
=
[
MJRefreshNormalHeader
headerWithRefreshingBlock
:
^
{
weakSelf
.
page
=
0
;
weakSelf
.
page
=
0
;
[
MBProgressHUD
showHUDAddedTo
:
kWindow
animated
:
YES
];
[
weakSelf
.
arrDatas
removeAllObjects
];
[
weakSelf
.
arrDatas
removeAllObjects
];
[
weakSelf
setUpData
];
[
weakSelf
setUpData
];
}];
}];
...
@@ -48,7 +49,7 @@
...
@@ -48,7 +49,7 @@
self
.
page
+=
1
;
self
.
page
+=
1
;
[
weakSelf
setUpData
];
[
weakSelf
setUpData
];
}];
}];
[
self
setUpData
];
//
[self setUpData];
}
}
-
(
NSMutableArray
*
)
arrDatas
{
-
(
NSMutableArray
*
)
arrDatas
{
...
@@ -59,8 +60,11 @@
...
@@ -59,8 +60,11 @@
}
}
-
(
void
)
setUpData
{
-
(
void
)
setUpData
{
self
.
isFirstLoaded
=
NO
;
WS
(
weakSelf
)
WS
(
weakSelf
)
[[
HTTPCilent
shareCilent
]
POST
:
@"order/query"
parameters
:[
self
getParams
]
success
:^
(
NSURLSessionDataTask
*
task
,
id
responseObject
)
{
[[
HTTPCilent
shareCilent
]
POST
:
@"order/query"
parameters
:[
self
getParams
]
success
:^
(
NSURLSessionDataTask
*
task
,
id
responseObject
)
{
[
MBProgressHUD
hideHUDForView
:
kWindow
];
for
(
NSDictionary
*
dic
in
responseObject
[
@"queryResult"
])
{
for
(
NSDictionary
*
dic
in
responseObject
[
@"queryResult"
])
{
JavenOrderModel
*
model
=
[
JavenOrderModel
modelObjectWithDictionary
:
dic
];
JavenOrderModel
*
model
=
[
JavenOrderModel
modelObjectWithDictionary
:
dic
];
[
weakSelf
.
arrDatas
addObject
:
model
];
[
weakSelf
.
arrDatas
addObject
:
model
];
...
@@ -79,7 +83,8 @@
...
@@ -79,7 +83,8 @@
}
}
}
failure
:^
(
NSURLSessionDataTask
*
task
,
NSError
*
error
)
{
}
failure
:^
(
NSURLSessionDataTask
*
task
,
NSError
*
error
)
{
[
weakSelf
.
tableView
.
mj_header
endRefreshing
];
[
weakSelf
.
tableView
.
mj_footer
endRefreshing
];
}];
}];
...
@@ -161,7 +166,6 @@
...
@@ -161,7 +166,6 @@
}
}
-
(
void
)
tableView
:
(
UITableView
*
)
tableView
didSelectRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
-
(
void
)
tableView
:
(
UITableView
*
)
tableView
didSelectRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
OrderDetailViewController
*
orderDetailVC
=
[[
OrderDetailViewController
alloc
]
init
];
OrderDetailViewController
*
orderDetailVC
=
[[
OrderDetailViewController
alloc
]
init
];
if
([
self
.
title
isEqualToString
:
@"代支付"
])
{
if
([
self
.
title
isEqualToString
:
@"代支付"
])
{
...
@@ -177,7 +181,7 @@
...
@@ -177,7 +181,7 @@
}
}
orderDetailVC
.
isShowNavigationBar
=
YES
;
orderDetailVC
.
isShowNavigationBar
=
YES
;
orderDetailVC
.
model
=
self
.
arrDatas
[
indexPath
.
row
];
orderDetailVC
.
model
=
self
.
arrDatas
[
indexPath
.
section
];
[
self
.
navigationController
pushViewController
:
orderDetailVC
animated
:
YES
];
[
self
.
navigationController
pushViewController
:
orderDetailVC
animated
:
YES
];
}
}
...
...
ALand/CodeClass/Home/ViewController/Order/OrderDetailViewController.m
View file @
8127f5f0
...
@@ -112,6 +112,7 @@
...
@@ -112,6 +112,7 @@
OrderDetailTableViewCell
*
cell
=
(
OrderDetailTableViewCell
*
)[
tableView
cellForRowAtIndexPath
:
indexPath
];
OrderDetailTableViewCell
*
cell
=
(
OrderDetailTableViewCell
*
)[
tableView
cellForRowAtIndexPath
:
indexPath
];
detailVC
.
image
=
cell
.
imgCommdity
.
image
;
detailVC
.
image
=
cell
.
imgCommdity
.
image
;
detailVC
.
model
=
model
;
detailVC
.
model
=
model
;
detailVC
.
isShowNavigationBar
=
NO
;
[
self
.
navigationController
pushViewController
:
detailVC
animated
:
YES
];
[
self
.
navigationController
pushViewController
:
detailVC
animated
:
YES
];
}
}
...
...
ALand/CodeClass/Home/ViewController/Order/OrderViewController.m
View file @
8127f5f0
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
#import "OrderViewController.h"
#import "OrderViewController.h"
#import "JavenMultipleViewWithHeader.h"
#import "JavenMultipleViewWithHeader.h"
#import "NoPaymentTableViewController.h"
#import "NoPaymentTableViewController.h"
#import "MJRefresh.h"
@interface
OrderViewController
()
@interface
OrderViewController
()
@property
(
nonatomic
,
strong
)
JavenMultipleViewWithHeader
*
viewMutiple
;
@property
(
nonatomic
,
strong
)
JavenMultipleViewWithHeader
*
viewMutiple
;
@end
@end
...
@@ -55,9 +56,9 @@
...
@@ -55,9 +56,9 @@
NoPaymentTableViewController
*
noPayMentVC
=
[[
NoPaymentTableViewController
alloc
]
initWithStyle
:
UITableViewStyleGrouped
];
NoPaymentTableViewController
*
noPayMentVC
=
[[
NoPaymentTableViewController
alloc
]
initWithStyle
:
UITableViewStyleGrouped
];
noPayMentVC
.
orderTag
=
arrTitle
[
i
];
noPayMentVC
.
orderTag
=
arrTitle
[
i
];
[
arrVC
addObject
:
noPayMentVC
];
[
arrVC
addObject
:
noPayMentVC
];
if
(
i
==
0
)
[
noPayMentVC
.
tableView
.
mj_header
beginRefreshing
];
}
}
_viewMutiple
=
[[
JavenMultipleViewWithHeader
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
kWidth
,
kHeight
)
_viewMutiple
=
[[
JavenMultipleViewWithHeader
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
kWidth
,
kHeight
)
views
:
arrVC
views
:
arrVC
titles
:
arrTitle
titles
:
arrTitle
...
@@ -68,6 +69,10 @@
...
@@ -68,6 +69,10 @@
backgroundColor
:
kBacroundColor
backgroundColor
:
kBacroundColor
titleHeight
:
40
titleHeight
:
40
titleBtnWidth
:
kWidth
/
arrTitle
.
count
];
titleBtnWidth
:
kWidth
/
arrTitle
.
count
];
_viewMutiple
.
getCurrentBlock
=
^
(
NoPaymentTableViewController
*
vc
){
[
vc
.
tableView
.
mj_header
beginRefreshing
];
};
[
self
.
view
addSubview
:
_viewMutiple
];
[
self
.
view
addSubview
:
_viewMutiple
];
}
}
...
...
ALand/CodeClass/Home/ViewController/StoreManagerment/StoreManagermentViewController.m
View file @
8127f5f0
...
@@ -264,6 +264,7 @@
...
@@ -264,6 +264,7 @@
-
(
IBAction
)
shopIntroduction
:
(
id
)
sender
{
-
(
IBAction
)
shopIntroduction
:
(
id
)
sender
{
introductionViewController
*
introVC
=
[[
introductionViewController
alloc
]
initWithNibName
:
@"introductionViewController"
bundle
:
nil
];
introductionViewController
*
introVC
=
[[
introductionViewController
alloc
]
initWithNibName
:
@"introductionViewController"
bundle
:
nil
];
introVC
.
isShowNavigationBar
=
YES
;
introVC
.
isShowNavigationBar
=
YES
;
introVC
.
title
=
@"店铺简介"
;
introVC
.
shopModel
=
self
.
shopModel
;
introVC
.
shopModel
=
self
.
shopModel
;
[
self
.
navigationController
pushViewController
:
introVC
animated
:
YES
];
[
self
.
navigationController
pushViewController
:
introVC
animated
:
YES
];
}
}
...
...
ALand/CodeClass/Login/NextResetPasswordViewController.m
View file @
8127f5f0
...
@@ -22,17 +22,23 @@
...
@@ -22,17 +22,23 @@
[
super
viewDidLoad
];
[
super
viewDidLoad
];
self
.
isPasswordVisible
=
NO
;
self
.
isPasswordVisible
=
NO
;
self
.
navigationItem
.
title
=
@"重置密码"
;
self
.
navigationItem
.
title
=
@"重置密码"
;
[
self
.
sendCode
startWithTime
:
60
title
:
@"重新发送"
countDownTitle
:
@"
s
"
mainColor
:
nil
countColor
:
nil
mainTitleColor
:
[
UIColor
colorWithHexString
:
@"51B2F6"
]
countTitleColor
:
[
UIColor
colorWithHexString
:
@"888888"
]];
[
self
.
sendCode
startWithTime
:
60
title
:
@"重新发送"
countDownTitle
:
@"
秒
"
mainColor
:
nil
countColor
:
nil
mainTitleColor
:
[
UIColor
colorWithHexString
:
@"51B2F6"
]
countTitleColor
:
[
UIColor
colorWithHexString
:
@"888888"
]];
// Do any additional setup after loading the view from its nib.
// Do any additional setup after loading the view from its nib.
}
}
-
(
IBAction
)
sendCodeAction
:
(
UIButton
*
)
sender
{
-
(
IBAction
)
sendCodeAction
:
(
UIButton
*
)
sender
{
[
self
.
sendCode
startWithTime
:
60
title
:
@"重新发送"
countDownTitle
:
@"
s
"
mainColor
:
nil
countColor
:
nil
mainTitleColor
:
[
UIColor
colorWithHexString
:
@"51B2F6"
]
countTitleColor
:
[
UIColor
colorWithHexString
:
@"888888"
]];
[
self
.
sendCode
startWithTime
:
60
title
:
@"重新发送"
countDownTitle
:
@"
秒
"
mainColor
:
nil
countColor
:
nil
mainTitleColor
:
[
UIColor
colorWithHexString
:
@"51B2F6"
]
countTitleColor
:
[
UIColor
colorWithHexString
:
@"888888"
]];
}
}
//确定
//确定
-
(
IBAction
)
confirmAction
:
(
UIButton
*
)
sender
{
-
(
IBAction
)
confirmAction
:
(
UIButton
*
)
sender
{
if
(
self
.
password
.
text
.
length
<
6
||
self
.
password
.
text
.
length
>
12
)
{
[
MBProgressHUD
Javen_showError
:
@"密码长度6~12位"
onView
:
kWindow
delay
:
0
.
5
complete
:
nil
];
return
;
}
NSDictionary
*
params
=
@{
@"domain"
:
kDomain
,
NSDictionary
*
params
=
@{
@"domain"
:
kDomain
,
@"mobilephone"
:
self
.
mobilePhone
,
@"mobilephone"
:
self
.
mobilePhone
,
@"smsCode"
:
self
.
labelCode
.
text
,
@"smsCode"
:
self
.
labelCode
.
text
,
...
...
ALand/CodeClass/Login/ResetPasswordViewController.m
View file @
8127f5f0
...
@@ -49,6 +49,8 @@
...
@@ -49,6 +49,8 @@
nextVC
.
isShowNavigationBar
=
YES
;
nextVC
.
isShowNavigationBar
=
YES
;
nextVC
.
mobilePhone
=
weakSelf
.
phoneNumber
.
text
;
nextVC
.
mobilePhone
=
weakSelf
.
phoneNumber
.
text
;
[
weakSelf
.
navigationController
pushViewController
:
nextVC
animated
:
YES
];
[
weakSelf
.
navigationController
pushViewController
:
nextVC
animated
:
YES
];
}
else
{
[
MBProgressHUD
Javen_showError
:
responseObject
[
@"message"
]
onView
:
kWindow
delay
:
2
complete
:
nil
];
}
}
}
failure
:^
(
NSURLSessionDataTask
*
task
,
NSError
*
error
)
{
}
failure
:^
(
NSURLSessionDataTask
*
task
,
NSError
*
error
)
{
...
...
ALand/CodeClass/Login/RigistViewController.m
View file @
8127f5f0
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
[[
HTTPCilent
shareCilent
]
GET
:
@"app/sendSms"
parameters
:
parameters
success
:^
(
NSURLSessionDataTask
*
task
,
id
responseObject
)
{
[[
HTTPCilent
shareCilent
]
GET
:
@"app/sendSms"
parameters
:
parameters
success
:^
(
NSURLSessionDataTask
*
task
,
id
responseObject
)
{
CLog
(
@"------->发送验证码"
);
CLog
(
@"------->发送验证码"
);
[
weakSelf
.
sendCodeBtn
startWithTime
:
60
title
:
@"发送验证码"
countDownTitle
:
@"
s
"
mainColor
:
nil
countColor
:
nil
mainTitleColor
:
[
UIColor
colorWithHexString
:
@"51B2F6"
]
countTitleColor
:
[
UIColor
colorWithHexString
:
@"888888"
]];
[
weakSelf
.
sendCodeBtn
startWithTime
:
60
title
:
@"发送验证码"
countDownTitle
:
@"
秒
"
mainColor
:
nil
countColor
:
nil
mainTitleColor
:
[
UIColor
colorWithHexString
:
@"51B2F6"
]
countTitleColor
:
[
UIColor
colorWithHexString
:
@"888888"
]];
}
failure
:^
(
NSURLSessionDataTask
*
task
,
NSError
*
error
)
{
}
failure
:^
(
NSURLSessionDataTask
*
task
,
NSError
*
error
)
{
}];
}];
...
...
ALand/CodeClass/MIne/ViewController/ChangePasswordViewController.m
View file @
8127f5f0
...
@@ -31,6 +31,12 @@
...
@@ -31,6 +31,12 @@
}
}
-
(
IBAction
)
actionChangePassword
:
(
id
)
sender
{
-
(
IBAction
)
actionChangePassword
:
(
id
)
sender
{
if
(
self
.
labelNewPassword
.
text
.
length
<
6
||
self
.
labelNewPassword
.
text
.
length
>
12
)
{
[
MBProgressHUD
Javen_showError
:
@"密码长度6~12位"
onView
:
kWindow
delay
:
0
.
5
complete
:
nil
];
return
;
}
UserInfo
*
info
=
[
UserInfo
shareInstance
];
UserInfo
*
info
=
[
UserInfo
shareInstance
];
[
MBProgressHUD
Javen_showMessage
:
@"修改中"
onView
:
self
.
view
];
[
MBProgressHUD
Javen_showMessage
:
@"修改中"
onView
:
self
.
view
];
NSDictionary
*
params
=
@{
@"operCtx"
:
[
info
getOperCtx
],
NSDictionary
*
params
=
@{
@"operCtx"
:
[
info
getOperCtx
],
...
...
ALand/General/Categories/MBProgressHUD+Javen.m
View file @
8127f5f0
...
@@ -138,6 +138,7 @@
...
@@ -138,6 +138,7 @@
+
(
MBProgressHUD
*
)
Javen_showSuccess
:
(
NSString
*
)
success
onView
:
(
UIView
*
)
view
delay
:
(
NSTimeInterval
)
time
complete
:
(
void
(
^
)(
void
))
complete
+
(
MBProgressHUD
*
)
Javen_showSuccess
:
(
NSString
*
)
success
onView
:
(
UIView
*
)
view
delay
:
(
NSTimeInterval
)
time
complete
:
(
void
(
^
)(
void
))
complete
{
{
[
kWindow
endEditing
:
YES
];
MBProgressHUD
*
hud
=
[[
MBProgressHUD
alloc
]
initWithView
:
view
];
MBProgressHUD
*
hud
=
[[
MBProgressHUD
alloc
]
initWithView
:
view
];
[
view
addSubview
:
hud
];
[
view
addSubview
:
hud
];
...
...
ALand/General/JavenMultipleViewWithHeader.h
View file @
8127f5f0
...
@@ -7,8 +7,10 @@
...
@@ -7,8 +7,10 @@
//
//
#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>
#import "NoPaymentTableViewController.h"
typedef
void
(
^
currentVCBlock
)(
NoPaymentTableViewController
*
);
@interface
JavenMultipleViewWithHeader
:
UIView
<
UIScrollViewDelegate
>
@interface
JavenMultipleViewWithHeader
:
UIView
<
UIScrollViewDelegate
>
@property
(
nonatomic
,
copy
)
currentVCBlock
getCurrentBlock
;
-
(
instancetype
)
initWithFrame
:(
CGRect
)
frame
views
:(
NSArray
*
)
views
titles
:(
NSArray
*
)
titles
target
:(
id
)
target
selectTextColor
:(
UIColor
*
)
selectTextColor
selectBackgroundColor
:(
UIColor
*
)
selectBackgroundColor
textColor
:(
UIColor
*
)
textColor
backgroundColor
:(
UIColor
*
)
abackgroundColor
titleHeight
:(
CGFloat
)
height
titleBtnWidth
:(
CGFloat
)
width
;
-
(
instancetype
)
initWithFrame
:(
CGRect
)
frame
views
:(
NSArray
*
)
views
titles
:(
NSArray
*
)
titles
target
:(
id
)
target
selectTextColor
:(
UIColor
*
)
selectTextColor
selectBackgroundColor
:(
UIColor
*
)
selectBackgroundColor
textColor
:(
UIColor
*
)
textColor
backgroundColor
:(
UIColor
*
)
abackgroundColor
titleHeight
:(
CGFloat
)
height
titleBtnWidth
:(
CGFloat
)
width
;
...
...
ALand/General/JavenMultipleViewWithHeader.m
View file @
8127f5f0
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
//
//
#import "JavenMultipleViewWithHeader.h"
#import "JavenMultipleViewWithHeader.h"
#import "MJRefresh.h"
@interface
JavenMultipleViewWithHeader
()
@interface
JavenMultipleViewWithHeader
()
...
@@ -25,10 +25,10 @@
...
@@ -25,10 +25,10 @@
@property
(
nonatomic
,
strong
)
UIColor
*
normalColor
;
@property
(
nonatomic
,
strong
)
UIColor
*
normalColor
;
@property
(
nonatomic
,
assign
)
CGFloat
titleButtonWith
;
@property
(
nonatomic
,
assign
)
CGFloat
titleButtonWith
;
@property
(
nonatomic
,
assign
)
CGFloat
titleScrollViewHeight
;
@property
(
nonatomic
,
assign
)
CGFloat
titleScrollViewHeight
;
@property
(
nonatomic
,
strong
)
UIView
*
bottomFlowView
;
@property
(
nonatomic
,
strong
)
UIView
*
bottomFlowView
;
@end
@end
...
@@ -65,10 +65,6 @@
...
@@ -65,10 +65,6 @@
viewLineBottom
.
backgroundColor
=
kCutLineColorLiteGray
;
viewLineBottom
.
backgroundColor
=
kCutLineColorLiteGray
;
[
self
addSubview
:
viewLineBottom
];
[
self
addSubview
:
viewLineBottom
];
viewLineBottom
.
sd_layout
.
leftEqualToView
(
self
).
rightEqualToView
(
self
).
bottomEqualToView
(
titleScrollView
).
heightIs
(
1
);
viewLineBottom
.
sd_layout
.
leftEqualToView
(
self
).
rightEqualToView
(
self
).
bottomEqualToView
(
titleScrollView
).
heightIs
(
1
);
_buttonArr
=
[
NSMutableArray
array
];
_buttonArr
=
[
NSMutableArray
array
];
for
(
int
i
=
0
;
i
<
titles
.
count
;
i
++
)
{
for
(
int
i
=
0
;
i
<
titles
.
count
;
i
++
)
{
...
@@ -122,54 +118,57 @@
...
@@ -122,54 +118,57 @@
-
(
void
)
scrollViewDidEndDecelerating
:(
UIScrollView
*
)
scrollView
{
-
(
void
)
scrollViewDidEndDecelerating
:(
UIScrollView
*
)
scrollView
{
if
(
scrollView
.
tag
==
111001
)
{
if
(
scrollView
.
tag
==
111001
)
{
NSLog
(
@"%f"
,
scrollView
.
contentOffset
.
y
);
NSInteger
currentIndex
=
[[
NSNumber
numberWithFloat
:
scrollView
.
contentOffset
.
x
/
self
.
frame
.
size
.
width
]
integerValue
];
CLog
(
@"%ld"
,(
long
)
currentIndex
);
for
(
UIButton
*
btn
in
_buttonArr
)
{
[
self
animateWithIndex
:
currentIndex
];
if
(
btn
.
tag
==
scrollView
.
contentOffset
.
x
/
self
.
frame
.
size
.
width
+
11100
)
{
[
btn
setTitleColor
:
_selectTextColor
forState
:
UIControlStateNormal
];
btn
.
backgroundColor
=
_selectBackgroundColor
;
WS
(
weakSelf
)
[
UIView
animateWithDuration
:
0
.
3
animations
:
^
{
weakSelf
.
bottomFlowView
.
centerX
=
btn
.
centerX
;
}];
}
else
{
[
btn
setTitleColor
:
_textColor
forState
:
UIControlStateNormal
];
btn
.
backgroundColor
=
_abackgroundColor
;
}
}
}
}
}
}
-
(
void
)
changeToSelectedView
:(
UIButton
*
)
btn
{
-
(
void
)
changeToSelectedView
:(
UIButton
*
)
btn
{
for
(
UIButton
*
button
in
_buttonArr
)
{
button
.
backgroundColor
=
_abackgroundColor
;
[
button
setTitleColor
:
_textColor
forState
:
UIControlStateNormal
];
}
WS
(
weakSelf
)
WS
(
weakSelf
)
[
UIView
animateWithDuration
:
0
.
3
animations
:
^
{
[
UIView
animateWithDuration
:
0
.
3
animations
:
^
{
weakSelf
.
bottomFlowView
.
centerX
=
btn
.
centerX
;
weakSelf
.
bottomFlowView
.
centerX
=
btn
.
centerX
;
}];
}];
[
btn
setBackgroundColor
:
_selectBackgroundColor
];
[
btn
setTitleColor
:
_selectTextColor
forState
:
UIControlStateNormal
];
NSInteger
currentIndex
=
btn
.
tag
-
11100
;
NSInteger
currentIndex
=
btn
.
tag
-
11100
;
//_viewScrollView.contentOffset = CGPointMake(currentIndex * self.frame.size.width, 0);
[
_viewScrollView
setContentOffset
:
CGPointMake
(
currentIndex
*
self
.
frame
.
size
.
width
,
0
)
animated
:
YES
];
[
_viewScrollView
setContentOffset
:
CGPointMake
(
currentIndex
*
self
.
frame
.
size
.
width
,
0
)
animated
:
YES
];
[
self
animateWithIndex
:
currentIndex
];
}
}
-
(
void
)
animateWithIndex
:(
NSInteger
)
index
{
NoPaymentTableViewController
*
noVC
=
self
.
viewArr
[
index
];
if
(
noVC
.
isFirstLoaded
){
[
noVC
.
tableView
.
mj_header
beginRefreshing
];
}
for
(
UIButton
*
btn
in
_buttonArr
)
{
if
(
btn
.
tag
==
index
+
11100
)
{
[
btn
setTitleColor
:
_selectTextColor
forState
:
UIControlStateNormal
];
btn
.
backgroundColor
=
_selectBackgroundColor
;
WS
(
weakSelf
)
[
UIView
animateWithDuration
:
0
.
3
animations
:
^
{
weakSelf
.
bottomFlowView
.
centerX
=
btn
.
centerX
;
}];
}
else
{
[
btn
setTitleColor
:
_textColor
forState
:
UIControlStateNormal
];
btn
.
backgroundColor
=
_abackgroundColor
;
}
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
// Drawing code
}
}
*/
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
// Drawing code
}
*/
@end
@end
ALand/Macro/UrlHeader.h
View file @
8127f5f0
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
#ifndef UrlHeader_h
#ifndef UrlHeader_h
#define UrlHeader_h
#define UrlHeader_h
#define REST_BASE_URL @"http://
service.bloem.cn
/aland-server/rest"
#define REST_BASE_URL @"http://
139.196.195.30:8080
/aland-server/rest"
#define kDomain @"0001" //组织代码
#define kDomain @"0001" //组织代码
...
...
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