Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
total
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
张杰
total
Commits
2c9621f9
Commit
2c9621f9
authored
8 years ago
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项说明:修复油价显示问题、建仓申请切换接口增加时间控制
parent
07989fcf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
860 additions
and
663 deletions
+860
-663
project.pbxproj
total.xcodeproj/project.pbxproj
+11
-6
BusinessStoryBoard.storyboard
total/GTOApp/Business/BusinessStoryBoard.storyboard
+47
-26
NewRequestViewController.m
total/GTOApp/Business/NewRequestViewController.m
+37
-17
SeePriceDetailsTableViewCell.h
total/GTOApp/Business/SeePriceDetailsTableViewCell.h
+4
-0
SeePriceDetailsTableViewCell.m
total/GTOApp/Business/SeePriceDetailsTableViewCell.m
+13
-4
SeePriceViewController.m
total/GTOApp/Business/SeePriceViewController.m
+110
-72
PromptTableViewController.m
total/GTOApp/UserUtil/PromptTableViewController.m
+4
-3
total_objc_json_client.h
total/GTOApp/UserUtil/total_objc_json_client.h
+484
-410
total_objc_json_client.m
total/GTOApp/UserUtil/total_objc_json_client.m
+141
-120
GTOAppMacro.h
total/Macro/GTOAppMacro.h
+4
-4
Total-Prefix.pch
total/Total-Prefix.pch
+5
-1
No files found.
total.xcodeproj/project.pbxproj
View file @
2c9621f9
...
@@ -2592,6 +2592,7 @@
...
@@ -2592,6 +2592,7 @@
3506ECBD1BA00E3400897EBE
=
{
3506ECBD1BA00E3400897EBE
=
{
CreatedOnToolsVersion
=
6.4
;
CreatedOnToolsVersion
=
6.4
;
DevelopmentTeam
=
W54V2VB863
;
DevelopmentTeam
=
W54V2VB863
;
ProvisioningStyle
=
Automatic
;
SystemCapabilities
=
{
SystemCapabilities
=
{
com.apple.BackgroundModes
=
{
com.apple.BackgroundModes
=
{
enabled
=
1
;
enabled
=
1
;
...
@@ -3123,8 +3124,9 @@
...
@@ -3123,8 +3124,9 @@
buildSettings
=
{
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CLANG_ENABLE_MODULES
=
YES
;
CLANG_ENABLE_MODULES
=
YES
;
CODE_SIGN_IDENTITY
=
"iPhone Distribution: Shanghai Gomore Information Technology Co.,Ltd"
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Distribution: Shanghai Gomore Information Technology Co.,Ltd"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
DEVELOPMENT_TEAM
=
""
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
"$(inherited)"
,
...
@@ -3140,7 +3142,8 @@
...
@@ -3140,7 +3142,8 @@
);
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomoe.total
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomoe.total
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
"f96494cb-c220-43ce-8034-75e000c2193f"
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
SWIFT_OBJC_BRIDGING_HEADER
=
"total/total-Bridging-Header.h"
;
SWIFT_OBJC_BRIDGING_HEADER
=
"total/total-Bridging-Header.h"
;
SWIFT_OPTIMIZATION_LEVEL
=
"-Onone"
;
SWIFT_OPTIMIZATION_LEVEL
=
"-Onone"
;
TARGETED_DEVICE_FAMILY
=
1
;
TARGETED_DEVICE_FAMILY
=
1
;
...
@@ -3154,8 +3157,9 @@
...
@@ -3154,8 +3157,9 @@
buildSettings
=
{
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CLANG_ENABLE_MODULES
=
YES
;
CLANG_ENABLE_MODULES
=
YES
;
CODE_SIGN_IDENTITY
=
"iPhone Distribution: Shanghai Gomore Information Technology Co.,Ltd"
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Distribution: Shanghai Gomore Information Technology Co.,Ltd"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
DEVELOPMENT_TEAM
=
""
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
"$(inherited)"
,
...
@@ -3171,7 +3175,8 @@
...
@@ -3171,7 +3175,8 @@
);
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomoe.total
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomoe.total
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
"f96494cb-c220-43ce-8034-75e000c2193f"
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
SWIFT_OBJC_BRIDGING_HEADER
=
"total/total-Bridging-Header.h"
;
SWIFT_OBJC_BRIDGING_HEADER
=
"total/total-Bridging-Header.h"
;
TARGETED_DEVICE_FAMILY
=
1
;
TARGETED_DEVICE_FAMILY
=
1
;
USER_HEADER_SEARCH_PATHS
=
"$(PODS_ROOT)/**"
;
USER_HEADER_SEARCH_PATHS
=
"$(PODS_ROOT)/**"
;
...
...
This diff is collapsed.
Click to expand it.
total/GTOApp/Business/BusinessStoryBoard.storyboard
View file @
2c9621f9
This diff is collapsed.
Click to expand it.
total/GTOApp/Business/NewRequestViewController.m
View file @
2c9621f9
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
/**
/**
* 配送区域数据源
* 配送区域数据源
*/
*/
@property
(
nonatomic
,
strong
)
NSArray
*
distributionArray
;
@property
(
nonatomic
,
strong
)
NS
Mutable
Array
*
distributionArray
;
/**
/**
* 油品列表信息
* 油品列表信息
...
@@ -88,20 +88,28 @@
...
@@ -88,20 +88,28 @@
dispatch_queue_t
queue
=
dispatch_queue_create
(
"顺序执行"
,
DISPATCH_QUEUE_SERIAL
);
dispatch_queue_t
queue
=
dispatch_queue_create
(
"顺序执行"
,
DISPATCH_QUEUE_SERIAL
);
dispatch_group_t
group
=
dispatch_group_create
();
dispatch_group_t
group
=
dispatch_group_create
();
//任务1->获取配送区域
//任务1->获取配送区域
dispatch_group_async
(
group
,
queue
,
^
{
if
(
!
[[
ICRUserUtil
sharedInstance
].
position
isEqualToString
:
@"storer"
])
{
dispatch_suspend
(
queue
);
dispatch_group_async
(
group
,
queue
,
^
{
[
HttpRequestManager
requestNetworkwithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
HTTP_REST_API_BASE_URL
,
DISTRIBUTION
]
withRequestType
:
ONE
withParameter
:
nil
withSuccess
:^
(
id
returnValue
)
{
dispatch_suspend
(
queue
);
if
([
returnValue
[
@"success"
]
isEqualToNumber
:
@1
])
{
[
HttpRequestManager
requestNetworkwithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
HTTP_REST_API_BASE_URL
,
DISTRIBUTION
]
withRequestType
:
ONE
withParameter
:
nil
withSuccess
:^
(
id
returnValue
)
{
weakSelf
.
distributionArray
=
returnValue
[
@"data"
];
if
([
returnValue
[
@"success"
]
isEqualToNumber
:
@1
])
{
}
else
{
weakSelf
.
distributionArray
=
returnValue
[
@"data"
];
[
IBTLoadingView
showTextOnly
:
returnValue
[
@"message"
]];
}
else
{
}
[
IBTLoadingView
showTextOnly
:
returnValue
[
@"message"
]];
dispatch_resume
(
queue
);
}
}
withFailed
:^
(
NSError
*
failed
)
{
dispatch_resume
(
queue
);
dispatch_resume
(
queue
);
}
withFailed
:^
(
NSError
*
failed
)
{
[
IBTLoadingView
showTextOnly
:
failed
.
localizedDescription
];
dispatch_resume
(
queue
);
}];
[
IBTLoadingView
showTextOnly
:
failed
.
localizedDescription
];
});
}];
});
}
else
{
self
.
distributionArray
=
[
NSMutableArray
array
];
for
(
NSDictionary
*
dict
in
[
ICRUserUtil
sharedInstance
].
storeArray
)
{
[
self
.
distributionArray
addObject
:
dict
[
@"deliveryArea"
]];
}
}
//任务二->获得油品信息
//任务二->获得油品信息
dispatch_group_async
(
group
,
queue
,
^
{
dispatch_group_async
(
group
,
queue
,
^
{
[
HttpRequestManager
requestNetworkwithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
HTTP_REST_API_BASE_URL
,
OILTYPE
]
withRequestType
:
ONE
withParameter
:
nil
withSuccess
:^
(
id
returnValue
)
{
[
HttpRequestManager
requestNetworkwithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
HTTP_REST_API_BASE_URL
,
OILTYPE
]
withRequestType
:
ONE
withParameter
:
nil
withSuccess
:^
(
id
returnValue
)
{
...
@@ -146,8 +154,20 @@
...
@@ -146,8 +154,20 @@
QueryCondition
*
priceCategory
=
[[
QueryCondition
alloc
]
init
];
QueryCondition
*
priceCategory
=
[[
QueryCondition
alloc
]
init
];
priceCategory
.
operation
=
@"categoryEquals"
;
priceCategory
.
operation
=
@"categoryEquals"
;
priceCategory
.
parameters
=
@[
@"generalTradePrice"
];
priceCategory
.
parameters
=
@[
@"generalTradePrice"
];
query
.
conditions
=
(
NSArray
<
QueryCondition
>
*
)@[
condition
,
oilType
,
priceCategory
];
[
HttpRequestManager
requestNetworkwithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
HTTP_REST_API_BASE_URL
,
OILPRICE
]
withRequestType
:
ZERO
withParameter
:
[
query
toDictionary
]
withSuccess
:^
(
id
returnValue
)
{
TimeSelectTableViewCell
*
timeCell
=
[
self
.
createWarehouseTableView
cellForRowAtIndexPath
:[
NSIndexPath
indexPathForRow
:
2
inSection
:
0
]];
//开始时间
QueryCondition
*
beginDate
=
[[
QueryCondition
alloc
]
init
];
beginDate
.
operation
=
@"effectiveStartTimeLess"
;
beginDate
.
parameters
=
@[[
NSString
stringWithFormat
:
@"%@ 00:00:00"
,
timeCell
.
beginTimeButton
.
currentTitle
]];
//结束时间
QueryCondition
*
endDate
=
[[
QueryCondition
alloc
]
init
];
endDate
.
operation
=
@"effectiveEndTimeMore"
;
endDate
.
parameters
=
@[[
NSString
stringWithFormat
:
@"%@ 23:59:59"
,
timeCell
.
endTimeButton
.
currentTitle
]];
query
.
conditions
=
(
NSArray
<
QueryCondition
>
*
)@[
condition
,
oilType
,
priceCategory
,
beginDate
,
endDate
];
NSLog
(
@"%@"
,[
query
toDictionary
]);
[
HttpRequestManager
requestNetworkwithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
HTTP_REST_API_BASE_URL
,
DEPOTREQUEST
]
withRequestType
:
ZERO
withParameter
:
[
query
toDictionary
]
withSuccess
:^
(
id
returnValue
)
{
if
([
returnValue
[
@"success"
]
isEqualToNumber
:
@1
])
{
if
([
returnValue
[
@"success"
]
isEqualToNumber
:
@1
])
{
weakSelf
.
oilPrice
=
[[
QueryResult
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
weakSelf
.
oilPrice
=
[[
QueryResult
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
...
...
This diff is collapsed.
Click to expand it.
total/GTOApp/Business/SeePriceDetailsTableViewCell.h
View file @
2c9621f9
...
@@ -38,4 +38,8 @@
...
@@ -38,4 +38,8 @@
*/
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIImageView
*
storeImageView
;
@property
(
weak
,
nonatomic
)
IBOutlet
UIImageView
*
storeImageView
;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
oilLabel
;
@end
@end
This diff is collapsed.
Click to expand it.
total/GTOApp/Business/SeePriceDetailsTableViewCell.m
View file @
2c9621f9
...
@@ -34,9 +34,19 @@
...
@@ -34,9 +34,19 @@
NSArray
*
array
=
_datasResult
.
records
;
NSArray
*
array
=
_datasResult
.
records
;
[
self
.
datasArray
removeAllObjects
];
[
self
.
datasArray
removeAllObjects
];
for
(
NSDictionary
*
dict
in
array
)
{
for
(
NSDictionary
*
dict
in
array
)
{
[
self
.
datasArray
addObject
:[[
dict
objectForKey
:
@"item"
]
objectForKey
:
@"name"
]];
for
(
NSDictionary
*
dict2
in
array
)
{
[
self
.
datasArray
addObject
:[[
dict
objectForKey
:
@"guidancePrice"
]
stringValue
]];
if
([
dict
[
@"item"
][
@"name"
]
isEqualToString
:
dict2
[
@"item"
][
@"name"
]])
{
[
self
.
datasArray
addObject
:[[
dict
objectForKey
:
@"salePrice"
]
stringValue
]];
if
(([
dict
[
@"category"
]
isEqualToString
:
@"salePrice"
]
&&
[
dict2
[
@"category"
]
isEqualToString
:
@"generalTradePrice"
])
||
([
dict2
[
@"category"
]
isEqualToString
:
@"salePrice"
]
&&
[
dict
[
@"category"
]
isEqualToString
:
@"generalTradePrice"
]))
{
NSString
*
name
=
[[
dict
objectForKey
:
@"item"
]
objectForKey
:
@"name"
];
if
([
self
.
datasArray
containsObject
:
name
])
{
break
;
}
[
self
.
datasArray
addObject
:
name
];
[
self
.
datasArray
addObject
:[[
dict
objectForKey
:
@"guidancePrice"
]
stringValue
]];
[
self
.
datasArray
addObject
:[[
dict2
objectForKey
:
@"salePrice"
]
stringValue
]];
break
;
}
}
}
}
}
[
self
.
priceDetailsCollectionView
reloadData
];
[
self
.
priceDetailsCollectionView
reloadData
];
}
}
...
@@ -65,7 +75,6 @@
...
@@ -65,7 +75,6 @@
}
}
#pragma mark -友好界面
#pragma mark -友好界面
-
(
UIImage
*
)
imageForEmptyDataSet
:
(
UIScrollView
*
)
scrollView
-
(
UIImage
*
)
imageForEmptyDataSet
:
(
UIScrollView
*
)
scrollView
{
{
...
...
This diff is collapsed.
Click to expand it.
total/GTOApp/Business/SeePriceViewController.m
View file @
2c9621f9
This diff is collapsed.
Click to expand it.
total/GTOApp/UserUtil/PromptTableViewController.m
View file @
2c9621f9
...
@@ -93,13 +93,14 @@
...
@@ -93,13 +93,14 @@
#pragma mark -确定
#pragma mark -确定
-
(
void
)
completeButtonClick
:
(
UIBarButtonItem
*
)
item
-
(
void
)
completeButtonClick
:
(
UIBarButtonItem
*
)
item
{
{
if
(
self
.
selectCellTitle
)
{
if
(
self
.
selectTitle
||
self
.
currentTitle
)
{
self
.
selectCellTitle
(
self
.
selectTitle
?
self
.
selectTitle
:
self
.
currentTitle
,
self
.
indexpathSelect
.
row
);
if
(
self
.
selectCellTitle
)
{
self
.
selectCellTitle
(
self
.
selectTitle
?
self
.
selectTitle
:
self
.
currentTitle
,
self
.
indexpathSelect
.
row
);
}
}
}
}
}
#pragma mark -友好界面
#pragma mark -友好界面
-
(
UIImage
*
)
imageForEmptyDataSet
:
(
UIScrollView
*
)
scrollView
-
(
UIImage
*
)
imageForEmptyDataSet
:
(
UIScrollView
*
)
scrollView
{
{
...
...
This diff is collapsed.
Click to expand it.
total/GTOApp/UserUtil/total_objc_json_client.h
View file @
2c9621f9
This diff is collapsed.
Click to expand it.
total/GTOApp/UserUtil/total_objc_json_client.m
View file @
2c9621f9
This diff is collapsed.
Click to expand it.
total/Macro/GTOAppMacro.h
View file @
2c9621f9
...
@@ -83,16 +83,16 @@
...
@@ -83,16 +83,16 @@
//#define HTTP_LOCAL_BASE_URL @"http://139.196.39.77:7080"
//#define HTTP_LOCAL_BASE_URL @"http://139.196.39.77:7080"
//
//
//测试环境
//测试环境
#define HTTP_REST_API_BASE_URL @"http://139.196.39.77:8180/total-server/rest"
//
#define HTTP_REST_API_BASE_URL @"http://139.196.39.77:8180/total-server/rest"
#define HTTP_LOCAL_BASE_URL @"http://139.196.39.77:8180"
//
#define HTTP_LOCAL_BASE_URL @"http://139.196.39.77:8180"
//
//
//测试环境
//测试环境
//#define HTTP_REST_API_BASE_URL @"http://139.196.39.77:8080/total-server/rest"
//#define HTTP_REST_API_BASE_URL @"http://139.196.39.77:8080/total-server/rest"
//开发环境
//开发环境
//
#define HTTP_LOCAL_BASE_URL @"http://139.196.195.30:8093"
#define HTTP_LOCAL_BASE_URL @"http://139.196.195.30:8093"
//
#define HTTP_REST_API_BASE_URL @"http://139.196.195.30:8093/total-server/rest"
#define HTTP_REST_API_BASE_URL @"http://139.196.195.30:8093/total-server/rest"
#define HTTP_WEATHER_URL @"http://apis.baidu.com/heweather/weather/free"
#define HTTP_WEATHER_URL @"http://apis.baidu.com/heweather/weather/free"
...
...
This diff is collapsed.
Click to expand it.
total/Total-Prefix.pch
View file @
2c9621f9
...
@@ -65,10 +65,14 @@
...
@@ -65,10 +65,14 @@
#define DISTRIBUTION @"/mdata/deliveryArea/query"
#define DISTRIBUTION @"/mdata/deliveryArea/query"
/**
/**
* 油价
*
默认
油价
*/
*/
#define OILPRICE @"/fuelPrice/filterQuery"
#define OILPRICE @"/fuelPrice/filterQuery"
/**
* 建仓申请有价
*/
#define DEPOTREQUEST @"/fuelPrice/depotQuery"
/**
/**
* 行政区域
* 行政区域
*/
*/
...
...
This diff is collapsed.
Click to expand it.
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