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
77063e1c
Commit
77063e1c
authored
Dec 22, 2016
by
Sandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新模型等
parent
f4ff7823
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
173 additions
and
193 deletions
+173
-193
project.pbxproj
ALand.xcodeproj/project.pbxproj
+1
-1
CommotityListModel.m
...e/Model/Commodity/CommodityListModel/CommotityListModel.m
+34
-44
CommodityTableViewCell.xib
ALand/CodeClass/Home/View/CommodityTableViewCell.xib
+3
-3
OrderDetailTopView.m
ALand/CodeClass/Home/View/Order/OrderDetailTopView.m
+4
-4
OrderDetailTopView.xib
ALand/CodeClass/Home/View/Order/OrderDetailTopView.xib
+11
-0
HomeCollectionViewController.m
...eClass/Home/ViewController/HomeCollectionViewController.m
+67
-76
LogisticsLineViewController.m
...s/Home/ViewController/Order/LogisticsLineViewController.m
+1
-1
OrderWebViewController.m
...eClass/Home/ViewController/Order/OrderWebViewController.m
+1
-1
AboutViewController.xib
ALand/CodeClass/MIne/ViewController/AboutViewController.xib
+2
-2
ChangePasswordViewController.xib
...lass/MIne/ViewController/ChangePasswordViewController.xib
+2
-2
FeedBackViewController.xib
.../CodeClass/MIne/ViewController/FeedBackViewController.xib
+2
-2
MyAcountViewController.xib
.../CodeClass/MIne/ViewController/MyAcountViewController.xib
+6
-6
JavenGoods.m
ALand/Global/ModelsFiles/JavenGoods.m
+4
-1
ShareInstance.m
ALand/Global/ShareView/ShareInstance.m
+31
-46
Info.plist
ALand/Info.plist
+2
-2
UrlHeader.h
ALand/Macro/UrlHeader.h
+2
-2
No files found.
ALand.xcodeproj/project.pbxproj
View file @
77063e1c
...
@@ -2994,7 +2994,7 @@
...
@@ -2994,7 +2994,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/Model/Commodity/CommodityListModel/CommotityListModel.m
View file @
77063e1c
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
//
//
#import "CommotityListModel.h"
#import "CommotityListModel.h"
#import "NSString+Category.h"
NSString
*
const
kCommotityListModelUuid
=
@"uuid"
;
NSString
*
const
kCommotityListModelUuid
=
@"uuid"
;
NSString
*
const
kCommotityListModelCategory
=
@"category"
;
NSString
*
const
kCommotityListModelCategory
=
@"category"
;
...
@@ -26,7 +26,6 @@ NSString *const kCommotityListModelInv = @"inv";
...
@@ -26,7 +26,6 @@ NSString *const kCommotityListModelInv = @"inv";
NSString
*
const
kCommotityListModelName
=
@"name"
;
NSString
*
const
kCommotityListModelName
=
@"name"
;
NSString
*
const
kCommotityListModelScore
=
@"score"
;
NSString
*
const
kCommotityListModelScore
=
@"score"
;
@interface
CommotityListModel
()
@interface
CommotityListModel
()
-
(
id
)
objectOrNilForKey
:
(
id
)
aKey
fromDictionary
:
(
NSDictionary
*
)
dict
;
-
(
id
)
objectOrNilForKey
:
(
id
)
aKey
fromDictionary
:
(
NSDictionary
*
)
dict
;
...
@@ -53,19 +52,16 @@ NSString *const kCommotityListModelScore = @"score";
...
@@ -53,19 +52,16 @@ NSString *const kCommotityListModelScore = @"score";
@synthesize
name
=
_name
;
@synthesize
name
=
_name
;
@synthesize
score
=
_score
;
@synthesize
score
=
_score
;
+
(
instancetype
)
modelObjectWithDictionary
:(
NSDictionary
*
)
dict
{
+
(
instancetype
)
modelObjectWithDictionary
:(
NSDictionary
*
)
dict
{
return
[[
self
alloc
]
initWithDictionary
:
dict
];
return
[[
self
alloc
]
initWithDictionary
:
dict
];
}
}
-
(
instancetype
)
initWithDictionary
:(
NSDictionary
*
)
dict
-
(
instancetype
)
initWithDictionary
:(
NSDictionary
*
)
dict
{
{
self
=
[
super
init
];
self
=
[
super
init
];
// This check serves to make sure that a non-NSDictionary object
// This check serves to make sure that a non-NSDictionary object
// passed into the model class doesn't break the parsing.
// passed into the model class doesn't break the parsing.
if
(
self
&&
[
dict
isKindOfClass
:[
NSDictionary
class
]])
{
if
(
self
&&
[
dict
isKindOfClass
:[
NSDictionary
class
]])
{
self
.
uuid
=
[
self
objectOrNilForKey
:
kCommotityListModelUuid
fromDictionary
:
dict
];
self
.
uuid
=
[
self
objectOrNilForKey
:
kCommotityListModelUuid
fromDictionary
:
dict
];
self
.
category
=
[
CommotityListCategory
modelObjectWithDictionary
:[
dict
objectForKey
:
kCommotityListModelCategory
]];
self
.
category
=
[
CommotityListCategory
modelObjectWithDictionary
:[
dict
objectForKey
:
kCommotityListModelCategory
]];
self
.
salesVolume
=
[[
self
objectOrNilForKey
:
kCommotityListModelSalesVolume
fromDictionary
:
dict
]
doubleValue
];
self
.
salesVolume
=
[[
self
objectOrNilForKey
:
kCommotityListModelSalesVolume
fromDictionary
:
dict
]
doubleValue
];
...
@@ -83,15 +79,16 @@ NSString *const kCommotityListModelScore = @"score";
...
@@ -83,15 +79,16 @@ NSString *const kCommotityListModelScore = @"score";
self
.
inv
=
[[
self
objectOrNilForKey
:
kCommotityListModelInv
fromDictionary
:
dict
]
doubleValue
];
self
.
inv
=
[[
self
objectOrNilForKey
:
kCommotityListModelInv
fromDictionary
:
dict
]
doubleValue
];
self
.
name
=
[
self
objectOrNilForKey
:
kCommotityListModelName
fromDictionary
:
dict
];
self
.
name
=
[
self
objectOrNilForKey
:
kCommotityListModelName
fromDictionary
:
dict
];
self
.
score
=
[[
self
objectOrNilForKey
:
kCommotityListModelScore
fromDictionary
:
dict
]
doubleValue
];
self
.
score
=
[[
self
objectOrNilForKey
:
kCommotityListModelScore
fromDictionary
:
dict
]
doubleValue
];
}
if
([
self
.
cover
isHasChinese
])
{
self
.
cover
=
[
self
.
cover
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
];
}
}
return
self
;
return
self
;
}
}
-
(
NSDictionary
*
)
dictionaryRepresentation
-
(
NSDictionary
*
)
dictionaryRepresentation
{
{
NSMutableDictionary
*
mutableDict
=
[
NSMutableDictionary
dictionary
];
NSMutableDictionary
*
mutableDict
=
[
NSMutableDictionary
dictionary
];
[
mutableDict
setValue
:
self
.
uuid
forKey
:
kCommotityListModelUuid
];
[
mutableDict
setValue
:
self
.
uuid
forKey
:
kCommotityListModelUuid
];
[
mutableDict
setValue
:[
self
.
category
dictionaryRepresentation
]
forKey
:
kCommotityListModelCategory
];
[
mutableDict
setValue
:[
self
.
category
dictionaryRepresentation
]
forKey
:
kCommotityListModelCategory
];
...
@@ -114,23 +111,19 @@ NSString *const kCommotityListModelScore = @"score";
...
@@ -114,23 +111,19 @@ NSString *const kCommotityListModelScore = @"score";
return
[
NSDictionary
dictionaryWithDictionary
:
mutableDict
];
return
[
NSDictionary
dictionaryWithDictionary
:
mutableDict
];
}
}
-
(
NSString
*
)
description
-
(
NSString
*
)
description
{
{
return
[
NSString
stringWithFormat
:
@"%@"
,
[
self
dictionaryRepresentation
]];
return
[
NSString
stringWithFormat
:
@"%@"
,
[
self
dictionaryRepresentation
]];
}
}
#pragma mark - Helper Method
#pragma mark - Helper Method
-
(
id
)
objectOrNilForKey
:
(
id
)
aKey
fromDictionary
:
(
NSDictionary
*
)
dict
-
(
id
)
objectOrNilForKey
:
(
id
)
aKey
fromDictionary
:
(
NSDictionary
*
)
dict
{
{
id
object
=
[
dict
objectForKey
:
aKey
];
id
object
=
[
dict
objectForKey
:
aKey
];
return
[
object
isEqual
:[
NSNull
null
]]
?
nil
:
object
;
return
[
object
isEqual
:[
NSNull
null
]]
?
nil
:
object
;
}
}
#pragma mark - NSCoding Methods
#pragma mark - NSCoding Methods
-
(
id
)
initWithCoder
:
(
NSCoder
*
)
aDecoder
-
(
id
)
initWithCoder
:
(
NSCoder
*
)
aDecoder
{
{
self
=
[
super
init
];
self
=
[
super
init
];
self
.
uuid
=
[
aDecoder
decodeObjectForKey
:
kCommotityListModelUuid
];
self
.
uuid
=
[
aDecoder
decodeObjectForKey
:
kCommotityListModelUuid
];
...
@@ -153,8 +146,7 @@ NSString *const kCommotityListModelScore = @"score";
...
@@ -153,8 +146,7 @@ NSString *const kCommotityListModelScore = @"score";
return
self
;
return
self
;
}
}
-
(
void
)
encodeWithCoder
:
(
NSCoder
*
)
aCoder
-
(
void
)
encodeWithCoder
:
(
NSCoder
*
)
aCoder
{
{
[
aCoder
encodeObject
:
_uuid
forKey
:
kCommotityListModelUuid
];
[
aCoder
encodeObject
:
_uuid
forKey
:
kCommotityListModelUuid
];
[
aCoder
encodeObject
:
_category
forKey
:
kCommotityListModelCategory
];
[
aCoder
encodeObject
:
_category
forKey
:
kCommotityListModelCategory
];
...
@@ -175,8 +167,7 @@ NSString *const kCommotityListModelScore = @"score";
...
@@ -175,8 +167,7 @@ NSString *const kCommotityListModelScore = @"score";
[
aCoder
encodeDouble
:
_score
forKey
:
kCommotityListModelScore
];
[
aCoder
encodeDouble
:
_score
forKey
:
kCommotityListModelScore
];
}
}
-
(
id
)
copyWithZone
:
(
NSZone
*
)
zone
-
(
id
)
copyWithZone
:
(
NSZone
*
)
zone
{
{
CommotityListModel
*
copy
=
[[
CommotityListModel
alloc
]
init
];
CommotityListModel
*
copy
=
[[
CommotityListModel
alloc
]
init
];
if
(
copy
)
{
if
(
copy
)
{
...
@@ -203,5 +194,4 @@ NSString *const kCommotityListModelScore = @"score";
...
@@ -203,5 +194,4 @@ NSString *const kCommotityListModelScore = @"score";
return
copy
;
return
copy
;
}
}
@end
@end
ALand/CodeClass/Home/View/CommodityTableViewCell.xib
View file @
77063e1c
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"953
2"
systemVersion=
"15D21
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"953
1"
systemVersion=
"15E65
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
>
<dependencies>
<dependencies>
<deployment
identifier=
"iOS"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"95
30
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"95
29
"
/>
<capability
name=
"Constraints to layout margins"
minToolsVersion=
"6.0"
/>
<capability
name=
"Constraints to layout margins"
minToolsVersion=
"6.0"
/>
</dependencies>
</dependencies>
<objects>
<objects>
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"320"
height=
"130"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"320"
height=
"130"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"KGk-i7-Jjw"
id=
"H2p-sc-9uM"
>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"KGk-i7-Jjw"
id=
"H2p-sc-9uM"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"320"
height=
"129"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"320"
height=
"129
.5
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"commodityManagementImage"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"f2b-xv-2mY"
>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"commodityManagementImage"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"f2b-xv-2mY"
>
...
...
ALand/CodeClass/Home/View/Order/OrderDetailTopView.m
View file @
77063e1c
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
@end
@end
@implementation
OrderDetailTopView
@implementation
OrderDetailTopView
-
(
void
)
awakeFromNib
{
-
(
void
)
awakeFromNib
{
self
.
viewExpress
.
userInteractionEnabled
=
YES
;
}
}
-
(
void
)
updateByOrderType
{
-
(
void
)
updateByOrderType
{
...
@@ -62,13 +62,13 @@
...
@@ -62,13 +62,13 @@
}];
}];
}
}
-
(
IBAction
)
tapGoLogistics
:
(
id
)
sender
{
self
.
tapBlcok
();
}
-
(
void
)
getLogistics
{
-
(
void
)
getLogistics
{
}
}
-
(
void
)
touchesBegan
:
(
NSSet
<
UITouch
*>
*
)
touches
withEvent
:
(
UIEvent
*
)
event
{
self
.
tapBlcok
();
}
-
(
IBAction
)
actionCall
:
(
id
)
sender
{
-
(
IBAction
)
actionCall
:
(
id
)
sender
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:[
NSString
stringWithFormat
:
@"tel://%@"
,
self
.
labelPhoneNumber
.
text
]]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:[
NSString
stringWithFormat
:
@"tel://%@"
,
self
.
labelPhoneNumber
.
text
]]];
...
...
ALand/CodeClass/Home/View/Order/OrderDetailTopView.xib
View file @
77063e1c
...
@@ -143,16 +143,27 @@
...
@@ -143,16 +143,27 @@
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"GY3-mx-DLT"
/>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"GY3-mx-DLT"
/>
</constraints>
</constraints>
</view>
</view>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"spD-FF-Z8i"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"320"
height=
"57"
/>
<connections>
<action
selector=
"tapGoLogistics:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"Sde-FJ-pWX"
/>
</connections>
</button>
</subviews>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<gestureRecognizers/>
<constraints>
<constraints>
<constraint
firstAttribute=
"trailing"
secondItem=
"spD-FF-Z8i"
secondAttribute=
"trailing"
id=
"1uI-Dz-USw"
/>
<constraint
firstItem=
"CPN-ej-33q"
firstAttribute=
"leading"
secondItem=
"9bs-ar-XXb"
secondAttribute=
"leading"
constant=
"8"
id=
"FwH-Ac-q0O"
/>
<constraint
firstItem=
"CPN-ej-33q"
firstAttribute=
"leading"
secondItem=
"9bs-ar-XXb"
secondAttribute=
"leading"
constant=
"8"
id=
"FwH-Ac-q0O"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"qgd-cT-Y2S"
secondAttribute=
"bottom"
constant=
"30"
id=
"G2a-P7-ZXe"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"qgd-cT-Y2S"
secondAttribute=
"bottom"
constant=
"30"
id=
"G2a-P7-ZXe"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"KAE-q5-yVI"
secondAttribute=
"bottom"
constant=
"1"
id=
"Inb-Dq-E8r"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"KAE-q5-yVI"
secondAttribute=
"bottom"
constant=
"1"
id=
"Inb-Dq-E8r"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"qgd-cT-Y2S"
secondAttribute=
"trailing"
constant=
"43"
id=
"Mih-Bb-w1w"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"qgd-cT-Y2S"
secondAttribute=
"trailing"
constant=
"43"
id=
"Mih-Bb-w1w"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"CPN-ej-33q"
secondAttribute=
"trailing"
constant=
"8"
id=
"OgA-J2-wKm"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"CPN-ej-33q"
secondAttribute=
"trailing"
constant=
"8"
id=
"OgA-J2-wKm"
/>
<constraint
firstItem=
"spD-FF-Z8i"
firstAttribute=
"top"
secondItem=
"9bs-ar-XXb"
secondAttribute=
"top"
id=
"Uan-bv-PgG"
/>
<constraint
firstItem=
"CPN-ej-33q"
firstAttribute=
"top"
secondItem=
"spD-FF-Z8i"
secondAttribute=
"bottom"
id=
"Vpw-gt-taw"
/>
<constraint
firstItem=
"KAE-q5-yVI"
firstAttribute=
"leading"
secondItem=
"qgd-cT-Y2S"
secondAttribute=
"leading"
id=
"XzQ-kl-eZr"
/>
<constraint
firstItem=
"KAE-q5-yVI"
firstAttribute=
"leading"
secondItem=
"qgd-cT-Y2S"
secondAttribute=
"leading"
id=
"XzQ-kl-eZr"
/>
<constraint
firstItem=
"qgd-cT-Y2S"
firstAttribute=
"top"
secondItem=
"9bs-ar-XXb"
secondAttribute=
"top"
constant=
"8"
id=
"abQ-5X-Zqz"
/>
<constraint
firstItem=
"qgd-cT-Y2S"
firstAttribute=
"top"
secondItem=
"9bs-ar-XXb"
secondAttribute=
"top"
constant=
"8"
id=
"abQ-5X-Zqz"
/>
<constraint
firstItem=
"spD-FF-Z8i"
firstAttribute=
"leading"
secondItem=
"9bs-ar-XXb"
secondAttribute=
"leading"
id=
"afU-9d-Ks0"
/>
<constraint
firstItem=
"KAE-q5-yVI"
firstAttribute=
"top"
secondItem=
"qgd-cT-Y2S"
secondAttribute=
"bottom"
constant=
"8"
id=
"dyt-fZ-XDs"
/>
<constraint
firstItem=
"KAE-q5-yVI"
firstAttribute=
"top"
secondItem=
"qgd-cT-Y2S"
secondAttribute=
"bottom"
constant=
"8"
id=
"dyt-fZ-XDs"
/>
<constraint
firstAttribute=
"height"
constant=
"70"
id=
"hCW-5v-Qgf"
/>
<constraint
firstAttribute=
"height"
constant=
"70"
id=
"hCW-5v-Qgf"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"CPN-ej-33q"
secondAttribute=
"bottom"
id=
"qrP-cj-lCB"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"CPN-ej-33q"
secondAttribute=
"bottom"
id=
"qrP-cj-lCB"
/>
...
...
ALand/CodeClass/Home/ViewController/HomeCollectionViewController.m
View file @
77063e1c
...
@@ -6,27 +6,27 @@
...
@@ -6,27 +6,27 @@
// Copyright © 2016年 Z. All rights reserved.
// Copyright © 2016年 Z. All rights reserved.
//
//
#import "HomeCollectionViewController.h"
#import "MoneyView.h"
#import "HomeCollectionViewCell.h"
#import "CommodityListViewController.h"
#import "AddCommodityViewController.h"
#import "AddCommodityViewController.h"
#import "
SDCycleScrollView
.h"
#import "
CommodityListViewController
.h"
#import "CommodityManagementViewController.h"
#import "CommodityManagementViewController.h"
#import "OrderViewController.h"
#import "StoreManagermentViewController.h"
#import "MyTeamViewController.h"
#import "CustomerManagementViewController.h"
#import "CustomerManagementViewController.h"
#import "HomeCollectionFooterReusableView.h"
#import "HomeCollectionViewCell.h"
#import "HomeCollectionViewController.h"
#import "InvitePartnerViewController.h"
#import "InvitePartnerViewController.h"
#import "JavenDetailReseller.h"
#import "JavenDetailReseller.h"
#import "JavencommissionAccountModel.h"
#import "JavencommissionAccountModel.h"
#import "MoneyView.h"
#import "MyAcountViewController.h"
#import "MyAcountViewController.h"
#import "HomeCollectionFooterReusableView.h"
#import "MyTeamViewController.h"
#import "OrderViewController.h"
#import "SDCycleScrollView.h"
#import "StoreManagermentViewController.h"
#import "WebViewController.h"
#import "WebViewController.h"
#define kHomeCollectionViewID @"HomeCollectionViewID"
#define kHomeCollectionViewID @"HomeCollectionViewID"
#define kCollectionViewHeadHeight 230
#define kCollectionViewHeadHeight 230
@interface
HomeCollectionViewController
()
<
UICollectionViewDataSource
,
UICollectionViewDelegate
,
SDCycleScrollViewDelegate
>
@interface
HomeCollectionViewController
()
<
UICollectionViewDataSource
,
UICollectionViewDelegate
,
SDCycleScrollViewDelegate
>
@property
(
nonatomic
,
strong
)
UICollectionView
*
collectionView
;
@property
(
nonatomic
,
strong
)
UICollectionView
*
collectionView
;
@property
(
nonatomic
,
strong
)
MoneyView
*
viewMoney
;
@property
(
nonatomic
,
strong
)
MoneyView
*
viewMoney
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
arrImages
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
arrImages
;
...
@@ -44,11 +44,11 @@
...
@@ -44,11 +44,11 @@
_arrImages
=
[
NSMutableArray
array
];
_arrImages
=
[
NSMutableArray
array
];
for
(
int
i
=
0
;
i
<
8
;
i
++
)
{
for
(
int
i
=
0
;
i
<
8
;
i
++
)
{
NSString
*
imageName
=
[
NSString
stringWithFormat
:
@"homeCollection%d"
,
i
];
NSString
*
imageName
=
[
NSString
stringWithFormat
:
@"homeCollection%d"
,
i
];
[
_arrImages
addObject
:
imageName
];
[
_arrImages
addObject
:
imageName
];
}
}
self
.
arrTitles
=
@[
@"商品管理"
,
@"订单管理"
,
@"客户管理"
,
@"我的团队"
,
@"店铺设置"
,
@"邀请合伙人"
,
@"代客下单"
,
@"个人中心"
];
self
.
arrTitles
=
@[
@"商品管理"
,
@"订单管理"
,
@"客户管理"
,
@"我的团队"
,
@"店铺设置"
,
@"邀请合伙人"
,
@"代客下单"
,
@"个人中心"
];
//添加collectionview
//添加collectionview
UICollectionViewFlowLayout
*
layout
=
[[
UICollectionViewFlowLayout
alloc
]
init
];
UICollectionViewFlowLayout
*
layout
=
[[
UICollectionViewFlowLayout
alloc
]
init
];
...
@@ -72,7 +72,6 @@
...
@@ -72,7 +72,6 @@
_collectionView
.
sd_layout
.
topEqualToView
(
self
.
view
).
leftEqualToView
(
self
.
view
).
rightEqualToView
(
self
.
view
).
bottomSpaceToView
(
self
.
view
,
49
);
_collectionView
.
sd_layout
.
topEqualToView
(
self
.
view
).
leftEqualToView
(
self
.
view
).
rightEqualToView
(
self
.
view
).
bottomSpaceToView
(
self
.
view
,
49
);
[
_collectionView
updateLayout
];
[
_collectionView
updateLayout
];
//中间的收入
//中间的收入
MoneyView
*
viewMoney
=
[
MoneyView
viewWithNibName
:
@"MoneyView"
];
MoneyView
*
viewMoney
=
[
MoneyView
viewWithNibName
:
@"MoneyView"
];
self
.
viewMoney
=
viewMoney
;
self
.
viewMoney
=
viewMoney
;
...
@@ -95,18 +94,16 @@
...
@@ -95,18 +94,16 @@
//轮播图
//轮播图
//轮播网络图片
//轮播网络图片
// SDCycleScrollView *scrollView = [SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(0, 0, 0, 0) delegate:self placeholderImage:[UIImage imageNamed:@"cyclescrollplaceholder"]];
// SDCycleScrollView *scrollView = [SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(0, 0, 0, 0) delegate:self placeholderImage:[UIImage imageNamed:@"cyclescrollplaceholder"]];
// scrollView.imageURLStringsGroup = @[@"0",@"0"];
// scrollView.imageURLStringsGroup = @[@"0",@"0"];
//轮播本地图片
//轮播本地图片
// SDCycleScrollView *scrollView = [SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(0, self.collectionView.height - 315, kWidth, 120) imageNamesGroup:@[@"cyclescrollplaceholder",@"cyclescrollplaceholder"]];
// SDCycleScrollView *scrollView = [SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(0, self.collectionView.height - 315, kWidth, 120) imageNamesGroup:@[@"cyclescrollplaceholder",@"cyclescrollplaceholder"]];
//
//
//
//
// scrollView.bannerImageViewContentMode = UIViewContentModeScaleAspectFill;
// scrollView.bannerImageViewContentMode = UIViewContentModeScaleAspectFill;
// scrollView.autoScrollTimeInterval = 3;
// scrollView.autoScrollTimeInterval = 3;
// [self.collectionView addSubview:scrollView];
// [self.collectionView addSubview:scrollView];
// Do any additional setup after loading the view.
// Do any additional setup after loading the view.
}
}
...
@@ -115,7 +112,6 @@
...
@@ -115,7 +112,6 @@
HomeCollectionFooterReusableView
*
footer
=
[
collectionView
dequeueReusableSupplementaryViewOfKind
:
UICollectionElementKindSectionFooter
withReuseIdentifier
:
@"footer"
forIndexPath
:
indexPath
];
HomeCollectionFooterReusableView
*
footer
=
[
collectionView
dequeueReusableSupplementaryViewOfKind
:
UICollectionElementKindSectionFooter
withReuseIdentifier
:
@"footer"
forIndexPath
:
indexPath
];
return
footer
;
return
footer
;
}
}
-
(
void
)
viewWillAppear
:
(
BOOL
)
animated
{
-
(
void
)
viewWillAppear
:
(
BOOL
)
animated
{
...
@@ -131,13 +127,13 @@
...
@@ -131,13 +127,13 @@
}
}
CLog
(
@"d"
);
CLog
(
@"d"
);
}
failure
:^
(
NSURLSessionDataTask
*
task
,
NSError
*
error
)
{
}
failure
:^
(
NSURLSessionDataTask
*
task
,
NSError
*
error
){
}];
}];
}
}
-
(
void
)
setMoneyView
{
-
(
void
)
setMoneyView
{
}
}
#pragma mark - action
#pragma mark - action
...
@@ -148,10 +144,8 @@
...
@@ -148,10 +144,8 @@
addVC
.
hidesBottomBarWhenPushed
=
YES
;
addVC
.
hidesBottomBarWhenPushed
=
YES
;
addVC
.
isShowNavigationBar
=
YES
;
addVC
.
isShowNavigationBar
=
YES
;
[
self
.
navigationController
pushViewController
:
addVC
animated
:
YES
];
[
self
.
navigationController
pushViewController
:
addVC
animated
:
YES
];
}
}
-
(
void
)
actionGoAcount
{
-
(
void
)
actionGoAcount
{
MyAcountViewController
*
acountVC
=
[[
MyAcountViewController
alloc
]
init
];
MyAcountViewController
*
acountVC
=
[[
MyAcountViewController
alloc
]
init
];
acountVC
.
isShowNavigationBar
=
NO
;
acountVC
.
isShowNavigationBar
=
NO
;
...
@@ -159,7 +153,6 @@
...
@@ -159,7 +153,6 @@
[
self
.
navigationController
pushViewController
:
acountVC
animated
:
YES
];
[
self
.
navigationController
pushViewController
:
acountVC
animated
:
YES
];
}
}
-
(
NSInteger
)
numberOfSectionsInCollectionView
:
(
UICollectionView
*
)
collectionView
{
-
(
NSInteger
)
numberOfSectionsInCollectionView
:
(
UICollectionView
*
)
collectionView
{
return
1
;
return
1
;
}
}
...
@@ -178,16 +171,15 @@
...
@@ -178,16 +171,15 @@
-
(
void
)
collectionView
:
(
UICollectionView
*
)
collectionView
didSelectItemAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
-
(
void
)
collectionView
:
(
UICollectionView
*
)
collectionView
didSelectItemAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
switch
(
indexPath
.
row
)
{
switch
(
indexPath
.
row
)
{
case
0
:
//商品管理
case
0
:
//商品管理
{
{
CommodityManagementViewController
*
managementVC
=
[[
CommodityManagementViewController
alloc
]
init
];
CommodityManagementViewController
*
managementVC
=
[[
CommodityManagementViewController
alloc
]
init
];
managementVC
.
hidesBottomBarWhenPushed
=
YES
;
managementVC
.
hidesBottomBarWhenPushed
=
YES
;
managementVC
.
isShowNavigationBar
=
YES
;
managementVC
.
isShowNavigationBar
=
YES
;
[
self
.
navigationController
pushViewController
:
managementVC
animated
:
YES
];
[
self
.
navigationController
pushViewController
:
managementVC
animated
:
YES
];
}
}
break
;
break
;
case
1
:
//订单管理
case
1
:
//订单管理
{
{
OrderViewController
*
orderVC
=
[[
OrderViewController
alloc
]
init
];
OrderViewController
*
orderVC
=
[[
OrderViewController
alloc
]
init
];
orderVC
.
hidesBottomBarWhenPushed
=
YES
;
orderVC
.
hidesBottomBarWhenPushed
=
YES
;
...
@@ -196,7 +188,7 @@
...
@@ -196,7 +188,7 @@
}
}
break
;
break
;
case
2
:
//客户管理
case
2
:
//客户管理
{
{
CustomerManagementViewController
*
customerVC
=
[[
CustomerManagementViewController
alloc
]
init
];
CustomerManagementViewController
*
customerVC
=
[[
CustomerManagementViewController
alloc
]
init
];
customerVC
.
isShowNavigationBar
=
YES
;
customerVC
.
isShowNavigationBar
=
YES
;
...
@@ -205,16 +197,15 @@
...
@@ -205,16 +197,15 @@
}
}
break
;
break
;
case
3
:
//我的团队
case
3
:
//我的团队
{
{
MyTeamViewController
*
myTeamVC
=
[[
MyTeamViewController
alloc
]
init
];
MyTeamViewController
*
myTeamVC
=
[[
MyTeamViewController
alloc
]
init
];
myTeamVC
.
isShowNavigationBar
=
YES
;
myTeamVC
.
isShowNavigationBar
=
YES
;
myTeamVC
.
hidesBottomBarWhenPushed
=
YES
;
myTeamVC
.
hidesBottomBarWhenPushed
=
YES
;
[
self
.
navigationController
pushViewController
:
myTeamVC
animated
:
YES
];
[
self
.
navigationController
pushViewController
:
myTeamVC
animated
:
YES
];
}
}
break
;
break
;
case
4
:
//店铺设置
case
4
:
//店铺设置
{
{
StoreManagermentViewController
*
storeVC
=
[[
StoreManagermentViewController
alloc
]
initWithNibName
:
@"StoreManagermentViewController"
bundle
:[
NSBundle
mainBundle
]];
StoreManagermentViewController
*
storeVC
=
[[
StoreManagermentViewController
alloc
]
initWithNibName
:
@"StoreManagermentViewController"
bundle
:[
NSBundle
mainBundle
]];
storeVC
.
hidesBottomBarWhenPushed
=
YES
;
storeVC
.
hidesBottomBarWhenPushed
=
YES
;
...
@@ -223,7 +214,7 @@
...
@@ -223,7 +214,7 @@
}
}
break
;
break
;
case
5
:
//邀请合伙人
case
5
:
//邀请合伙人
{
{
InvitePartnerViewController
*
inviteVC
=
[[
InvitePartnerViewController
alloc
]
init
];
InvitePartnerViewController
*
inviteVC
=
[[
InvitePartnerViewController
alloc
]
init
];
inviteVC
.
isShowNavigationBar
=
YES
;
inviteVC
.
isShowNavigationBar
=
YES
;
...
@@ -233,7 +224,7 @@
...
@@ -233,7 +224,7 @@
}
}
break
;
break
;
case
6
:
//课堂
case
6
:
//课堂
{
{
WebViewController
*
shopVC
=
[[
WebViewController
alloc
]
init
];
WebViewController
*
shopVC
=
[[
WebViewController
alloc
]
init
];
UserInfo
*
userInfo
=
[
UserInfo
shareInstance
];
UserInfo
*
userInfo
=
[
UserInfo
shareInstance
];
...
@@ -246,7 +237,7 @@
...
@@ -246,7 +237,7 @@
}
}
break
;
break
;
case
7
:
//榜
case
7
:
//榜
{
{
[
self
.
tabBarController
setSelectedIndex
:
self
.
tabBarController
.
viewControllers
.
count
-
1
];
[
self
.
tabBarController
setSelectedIndex
:
self
.
tabBarController
.
viewControllers
.
count
-
1
];
...
...
ALand/CodeClass/Home/ViewController/Order/LogisticsLineViewController.m
View file @
77063e1c
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
-
(
void
)
viewDidLoad
{
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
super
viewDidLoad
];
self
.
title
=
@"物流详情"
;
self
.
title
=
@"物流详情"
;
self
.
logisticsNumber
.
text
=
[
NSString
stringWithFormat
:
@"运单号:%@"
,
self
.
shipTrackingNumber
];
self
.
logisticsNumber
.
text
=
[
NSString
stringWithFormat
:
@"运单号:%@"
,
SAFE_STRING
(
self
.
shipTrackingNumber
)
];
self
.
tableView
.
estimatedRowHeight
=
50
;
self
.
tableView
.
estimatedRowHeight
=
50
;
self
.
tableView
.
rowHeight
=
UITableViewAutomaticDimension
;
self
.
tableView
.
rowHeight
=
UITableViewAutomaticDimension
;
}
}
...
...
ALand/CodeClass/Home/ViewController/Order/OrderWebViewController.m
View file @
77063e1c
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
info
=
@"支付失败"
;
info
=
@"支付失败"
;
}
}
UIAlertController
*
alert
=
[
UIAlertController
alertControllerWithTitle
:
info
message
:
@"订单可在订单管理中查看"
preferredStyle
:
UIAlertControllerStyleAlert
];
UIAlertController
*
alert
=
[
UIAlertController
alertControllerWithTitle
:
info
message
:
nil
preferredStyle
:
UIAlertControllerStyleAlert
];
UIAlertAction
*
toOrders
=
[
UIAlertAction
actionWithTitle
:
@"查看订单"
style
:
UIAlertActionStyleDefault
handler
:^
(
UIAlertAction
*
_Nonnull
action
)
{
UIAlertAction
*
toOrders
=
[
UIAlertAction
actionWithTitle
:
@"查看订单"
style
:
UIAlertActionStyleDefault
handler
:^
(
UIAlertAction
*
_Nonnull
action
)
{
for
(
id
vc
in
weakSelf
.
navigationController
.
viewControllers
)
{
for
(
id
vc
in
weakSelf
.
navigationController
.
viewControllers
)
{
if
([
vc
isKindOfClass
:[
OrderViewController
class
]])
{
if
([
vc
isKindOfClass
:[
OrderViewController
class
]])
{
...
...
ALand/CodeClass/MIne/ViewController/AboutViewController.xib
View file @
77063e1c
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"953
2"
systemVersion=
"15D21
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"953
1"
systemVersion=
"15E65
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
>
<dependencies>
<dependencies>
<deployment
identifier=
"iOS"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"95
30
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"95
29
"
/>
</dependencies>
</dependencies>
<objects>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"AboutViewController"
>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"AboutViewController"
>
...
...
ALand/CodeClass/MIne/ViewController/ChangePasswordViewController.xib
View file @
77063e1c
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"953
2"
systemVersion=
"15D21
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"953
1"
systemVersion=
"15E65
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
>
<dependencies>
<dependencies>
<deployment
identifier=
"iOS"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"95
30
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"95
29
"
/>
</dependencies>
</dependencies>
<objects>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"ChangePasswordViewController"
>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"ChangePasswordViewController"
>
...
...
ALand/CodeClass/MIne/ViewController/FeedBackViewController.xib
View file @
77063e1c
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"953
2"
systemVersion=
"15D21
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"953
1"
systemVersion=
"15E65
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
>
<dependencies>
<dependencies>
<deployment
identifier=
"iOS"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"95
30
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"95
29
"
/>
</dependencies>
</dependencies>
<objects>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"FeedBackViewController"
>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"FeedBackViewController"
>
...
...
ALand/CodeClass/MIne/ViewController/MyAcountViewController.xib
View file @
77063e1c
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"953
2"
systemVersion=
"15D21
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"953
1"
systemVersion=
"15E65
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
>
<dependencies>
<dependencies>
<deployment
identifier=
"iOS"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"95
30
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"95
29
"
/>
</dependencies>
</dependencies>
<objects>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"MyAcountViewController"
>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"MyAcountViewController"
>
...
@@ -181,10 +181,10 @@
...
@@ -181,10 +181,10 @@
<constraint
firstItem=
"ood-f0-M59"
firstAttribute=
"top"
secondItem=
"BED-54-Ug2"
secondAttribute=
"top"
constant=
"20"
id=
"qOW-w6-jxc"
/>
<constraint
firstItem=
"ood-f0-M59"
firstAttribute=
"top"
secondItem=
"BED-54-Ug2"
secondAttribute=
"top"
constant=
"20"
id=
"qOW-w6-jxc"
/>
</constraints>
</constraints>
</view>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"WQc-WT-07y"
>
<view
contentMode=
"scaleToFill"
misplaced=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"WQc-WT-07y"
>
<rect
key=
"frame"
x=
"126"
y=
"1"
width=
"123"
height=
"96"
/>
<rect
key=
"frame"
x=
"126"
y=
"1"
width=
"123"
height=
"96"
/>
<subviews>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"可提现(元)"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"RM0-K2-Byh"
>
<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=
"RM0-K2-Byh"
>
<rect
key=
"frame"
x=
"19"
y=
"20"
width=
"85"
height=
"22"
/>
<rect
key=
"frame"
x=
"19"
y=
"20"
width=
"85"
height=
"22"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"medium"
pointSize=
"18"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"medium"
pointSize=
"18"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
...
@@ -253,10 +253,10 @@
...
@@ -253,10 +253,10 @@
<constraint
firstItem=
"W2X-n7-lfz"
firstAttribute=
"top"
secondItem=
"oQD-Zl-iyP"
secondAttribute=
"bottom"
constant=
"10"
id=
"vfh-DB-4Q1"
/>
<constraint
firstItem=
"W2X-n7-lfz"
firstAttribute=
"top"
secondItem=
"oQD-Zl-iyP"
secondAttribute=
"bottom"
constant=
"10"
id=
"vfh-DB-4Q1"
/>
</constraints>
</constraints>
</view>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Qp9-8T-7dh"
>
<view
contentMode=
"scaleToFill"
misplaced=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Qp9-8T-7dh"
>
<rect
key=
"frame"
x=
"126"
y=
"98"
width=
"123"
height=
"96"
/>
<rect
key=
"frame"
x=
"126"
y=
"98"
width=
"123"
height=
"96"
/>
<subviews>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"团队收入(元)"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"rgG-EF-dXc"
>
<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=
"rgG-EF-dXc"
>
<rect
key=
"frame"
x=
"10"
y=
"20"
width=
"103"
height=
"22"
/>
<rect
key=
"frame"
x=
"10"
y=
"20"
width=
"103"
height=
"22"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"medium"
pointSize=
"18"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"medium"
pointSize=
"18"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
...
...
ALand/Global/ModelsFiles/JavenGoods.m
View file @
77063e1c
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
#import "JavenGoods.h"
#import "JavenGoods.h"
#import "JavenCategory.h"
#import "JavenCategory.h"
#import "JavenBrand.h"
#import "JavenBrand.h"
#import "NSString+Category.h"
NSString
*
const
kJavenGoodsUuid
=
@"uuid"
;
NSString
*
const
kJavenGoodsUuid
=
@"uuid"
;
NSString
*
const
kJavenGoodsCategory
=
@"category"
;
NSString
*
const
kJavenGoodsCategory
=
@"category"
;
...
@@ -87,6 +87,9 @@ NSString *const kJavenGoodsScore = @"score";
...
@@ -87,6 +87,9 @@ NSString *const kJavenGoodsScore = @"score";
self
.
score
=
[[
self
objectOrNilForKey
:
kJavenGoodsScore
fromDictionary
:
dict
]
doubleValue
];
self
.
score
=
[[
self
objectOrNilForKey
:
kJavenGoodsScore
fromDictionary
:
dict
]
doubleValue
];
}
}
if
([
self
.
cover
isHasChinese
])
{
self
.
cover
=
[
self
.
cover
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
];
}
return
self
;
return
self
;
...
...
ALand/Global/ShareView/ShareInstance.m
View file @
77063e1c
...
@@ -6,10 +6,10 @@
...
@@ -6,10 +6,10 @@
// Copyright © 2016年 Z. All rights reserved.
// Copyright © 2016年 Z. All rights reserved.
//
//
#import "
ShareInstance
.h"
#import "
CommotityListBrand
.h"
#import "CoverShadowView.h"
#import "CoverShadowView.h"
#import "ShareContentView.h"
#import "ShareContentView.h"
#import "
CommotityListBrand
.h"
#import "
ShareInstance
.h"
#define kWindow [UIApplication sharedApplication].keyWindow
#define kWindow [UIApplication sharedApplication].keyWindow
@interface
ShareInstance
()
@interface
ShareInstance
()
@property
(
nonatomic
,
strong
)
CoverShadowView
*
cover
;
@property
(
nonatomic
,
strong
)
CoverShadowView
*
cover
;
...
@@ -17,8 +17,7 @@
...
@@ -17,8 +17,7 @@
@end
@end
@implementation
ShareInstance
@implementation
ShareInstance
+
(
ShareInstance
*
)
shareInstace
+
(
ShareInstance
*
)
shareInstace
{
{
static
ShareInstance
*
instance
;
static
ShareInstance
*
instance
;
static
dispatch_once_t
onceToken
;
static
dispatch_once_t
onceToken
;
dispatch_once
(
&
onceToken
,
^
{
dispatch_once
(
&
onceToken
,
^
{
...
@@ -28,8 +27,7 @@
...
@@ -28,8 +27,7 @@
return
instance
;
return
instance
;
}
}
-
(
void
)
showWithTitle
:
(
NSString
*
)
title
content
:
(
NSString
*
)
content
url
:
(
NSString
*
)
url
image
:
(
UIImage
*
)
image
-
(
void
)
showWithTitle
:
(
NSString
*
)
title
content
:
(
NSString
*
)
content
url
:
(
NSString
*
)
url
image
:
(
UIImage
*
)
image
{
{
[
self
.
cover
show
];
[
self
.
cover
show
];
...
@@ -46,20 +44,16 @@
...
@@ -46,20 +44,16 @@
self
.
shareContentView
.
url
=
url
;
self
.
shareContentView
.
url
=
url
;
self
.
shareContentView
.
image
=
image
;
self
.
shareContentView
.
image
=
image
;
[
MyTools
animateFromBottomDuration
:
0
.
5
view
:
self
.
shareContentView
viewHeight
:
140
];
[
MyTools
animateFromBottomDuration
:
0
.
5
view
:
self
.
shareContentView
viewHeight
:
140
];
}
}
-
(
void
)
hide
-
(
void
)
hide
{
{
[
self
.
cover
hide
];
[
self
.
cover
hide
];
[
UIView
animateWithDuration
:
0
.
3
animations
:
^
{
[
UIView
animateWithDuration
:
0
.
3
animations
:
^
{
self
.
shareContentView
.
frame
=
CGRectMake
(
0
,
kHeight
,
kWidth
,
140
);
self
.
shareContentView
.
frame
=
CGRectMake
(
0
,
kHeight
,
kWidth
,
140
);
}];
}];
}
}
-
(
CoverShadowView
*
)
cover
-
(
CoverShadowView
*
)
cover
{
{
if
(
!
_cover
)
{
if
(
!
_cover
)
{
_cover
=
[[
CoverShadowView
alloc
]
initOnTopWithHeight
:
kHeight
];
_cover
=
[[
CoverShadowView
alloc
]
initOnTopWithHeight
:
kHeight
];
[
kWindow
addSubview
:
_cover
];
[
kWindow
addSubview
:
_cover
];
...
@@ -67,19 +61,16 @@
...
@@ -67,19 +61,16 @@
return
_cover
;
return
_cover
;
}
}
-
(
ShareContentView
*
)
shareContentView
-
(
ShareContentView
*
)
shareContentView
{
{
if
(
!
_shareContentView
)
{
if
(
!
_shareContentView
)
{
_shareContentView
=
[
ShareContentView
viewWithNibName
:
@"ShareContentView"
];
_shareContentView
=
[
ShareContentView
viewWithNibName
:
@"ShareContentView"
];
_shareContentView
.
frame
=
CGRectMake
(
0
,
kHeight
,
kWidth
,
140
);
_shareContentView
.
frame
=
CGRectMake
(
0
,
kHeight
,
kWidth
,
140
);
[
kWindow
addSubview
:
_shareContentView
];
[
kWindow
addSubview
:
_shareContentView
];
}
}
return
_shareContentView
;
return
_shareContentView
;
}
}
/**
/**
* 分享店铺
* 分享店铺
*
*
...
@@ -89,32 +80,29 @@
...
@@ -89,32 +80,29 @@
* @param image 图片
* @param image 图片
* @param imageUrl 图片链接(现在暂时没有用处,可用于判断用户是否上传头像)
* @param imageUrl 图片链接(现在暂时没有用处,可用于判断用户是否上传头像)
*/
*/
-
(
void
)
shareShopWithTitle
:
(
NSString
*
)
title
shopDescription
:
(
NSString
*
)
shopDescription
url
:
(
NSString
*
)
url
image
:
(
UIImage
*
)
image
imageUrl
:
(
NSString
*
)
imageUrl
-
(
void
)
shareShopWithTitle
:
(
NSString
*
)
title
shopDescription
:
(
NSString
*
)
shopDescription
url
:
(
NSString
*
)
url
image
:
(
UIImage
*
)
image
imageUrl
:
(
NSString
*
)
imageUrl
{
{
if
(
!
title
||
title
.
length
==
0
)
{
if
(
!
title
||
title
.
length
==
0
)
{
[
MBProgressHUD
Javen_showError
:
@"请填写店铺名!"
onView
:
kWindow
delay
:
0
.
7
complete
:
nil
];
[
MBProgressHUD
Javen_showError
:
@"请填写店铺名!"
onView
:
kWindow
delay
:
0
.
7
complete
:
nil
];
}
else
if
(
!
shopDescription
||
shopDescription
.
length
==
0
)
{
}
else
if
(
!
shopDescription
||
shopDescription
.
length
==
0
)
{
[
MBProgressHUD
Javen_showError
:
@"请填写店铺简介!"
onView
:
kWindow
delay
:
0
.
7
complete
:
nil
];
[
MBProgressHUD
Javen_showError
:
@"请填写店铺简介!"
onView
:
kWindow
delay
:
0
.
7
complete
:
nil
];
}
}
// else if (!imageUrl || imageUrl.length < 5) {
// else if (!imageUrl || imageUrl.length < 5) {
// [MBProgressHUD Javen_showError:@"请上传店铺头像!" onView:kWindow delay:0.7 complete:nil];
// [MBProgressHUD Javen_showError:@"请上传店铺头像!" onView:kWindow delay:0.7 complete:nil];
// }
// }
else
{
else
{
[
self
showWithTitle
:
title
content
:
shopDescription
url
:
url
image
:
image
];
[
self
showWithTitle
:
title
content
:
shopDescription
url
:
url
image
:
image
];
}
}
}
}
/** 邀请合伙人 */
/** 邀请合伙人 */
-
(
void
)
invitePartner
-
(
void
)
invitePartner
{
{
NSString
*
urlStr
=
[
NSString
stringWithFormat
:
@"%@ShopUser/gpregister/invitationCode/%@.html"
,
[
UserInfo
shareInstance
].
appConfig
.
webShopBaseUrl
,
[
UserInfo
shareInstance
].
reseller
.
invitationCode
];
NSString
*
urlStr
=
[
NSString
stringWithFormat
:
@"%@ShopUser/gpregister/invitationCode/%@.html"
,
[
UserInfo
shareInstance
].
appConfig
.
webShopBaseUrl
,
[
UserInfo
shareInstance
].
reseller
.
invitationCode
];
[
self
showWithTitle
:
@"欢迎加入新营养部落,一起共创健康未来。"
content
:
@"在新营养部落开店,享受自由健康生活,免费游览欧洲北美。"
url
:
urlStr
image
:
[
UIImage
appIcon
]];
[
self
showWithTitle
:
@"欢迎加入新营养部落,一起共创健康未来。"
content
:
@"在新营养部落开店,享受自由健康生活,免费游览欧洲北美。"
url
:
urlStr
image
:
[
UIImage
appIcon
]];
}
}
/** 分享商品 */
/** 分享商品 */
-
(
void
)
shareGoodsWithGoodsModel
:
(
CommotityListModel
*
)
model
image
:
(
UIImage
*
)
image
-
(
void
)
shareGoodsWithGoodsModel
:
(
CommotityListModel
*
)
model
image
:
(
UIImage
*
)
image
{
{
[
MBProgressHUD
showHUDAddedTo
:
kWindow
animated
:
YES
];
[
MBProgressHUD
showHUDAddedTo
:
kWindow
animated
:
YES
];
[[
HTTPCilent
shareCilent
]
GET
:[
NSString
stringWithFormat
:
@"goods/brand/get/%@"
,
model
.
brand
.
uuid
]
parameters
:
nil
success
:^
(
NSURLSessionDataTask
*
task
,
id
responseObject
)
{
[[
HTTPCilent
shareCilent
]
GET
:[
NSString
stringWithFormat
:
@"goods/brand/get/%@"
,
model
.
brand
.
uuid
]
parameters
:
nil
success
:^
(
NSURLSessionDataTask
*
task
,
id
responseObject
)
{
...
@@ -125,19 +113,16 @@
...
@@ -125,19 +113,16 @@
NSString
*
description
=
responseObject
[
@"goodsBrand"
][
@"description"
];
NSString
*
description
=
responseObject
[
@"goodsBrand"
][
@"description"
];
NSString
*
url
=
[
NSString
stringWithFormat
:
@"%@Wap/detail/shop_id/%@/id/%@/hastbar/0/.html"
,
[
UserInfo
shareInstance
].
appConfig
.
webShopBaseUrl
,
[
UserInfo
shareInstance
].
reseller
.
shop
.
uuid
,
model
.
uuid
];
NSString
*
url
=
[
NSString
stringWithFormat
:
@"%@Wap/detail/shop_id/%@/id/%@/hastbar/0/.html"
,
[
UserInfo
shareInstance
].
appConfig
.
webShopBaseUrl
,
[
UserInfo
shareInstance
].
reseller
.
shop
.
uuid
,
model
.
uuid
];
if
(
description
&&
description
.
length
>
0
&&
model
.
name
.
length
>
0
)
if
(
description
&&
description
.
length
>
0
&&
model
.
name
.
length
>
0
)
{
{
[
self
showWithTitle
:
model
.
name
content
:
description
url
:
url
image
:
image
];
[
self
showWithTitle
:
model
.
name
content
:
description
url
:
url
image
:
image
];
}
else
}
else
{
{
[
MBProgressHUD
Javen_showError
:
@"该商品暂不支持分享"
onView
:
kWindow
delay
:
0
.
5
complete
:
nil
];
[
MBProgressHUD
Javen_showError
:
@"该商品暂不支持分享"
onView
:
kWindow
delay
:
0
.
5
complete
:
nil
];
}
}
}
}
}
failure
:^
(
NSURLSessionDataTask
*
task
,
NSError
*
error
)
{
}
failure
:^
(
NSURLSessionDataTask
*
task
,
NSError
*
error
){
}];
}];
}
}
@end
@end
ALand/Info.plist
View file @
77063e1c
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.
0.4
<
/string
>
<
string
>
1.
1.1
<
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleURLTypes
<
/k
e
y
>
<
k
e
y
>
CFBundleURLTypes
<
/k
e
y
>
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
0
<
/string
>
<
string
>
1
<
/string
>
<
k
e
y
>
LSApplicationQueriesSchemes
<
/k
e
y
>
<
k
e
y
>
LSApplicationQueriesSchemes
<
/k
e
y
>
<
a
rr
a
y
>
<
a
rr
a
y
>
<
string
>
wechat
<
/string
>
<
string
>
wechat
<
/string
>
...
...
ALand/Macro/UrlHeader.h
View file @
77063e1c
...
@@ -10,9 +10,9 @@
...
@@ -10,9 +10,9 @@
#define UrlHeader_h
#define UrlHeader_h
#import <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
static
NSString
*
const
REST_BASE_URL
=
@"http://139.196.173.244:8080/aland-server/rest"
;
//正式环境
//
static NSString *const REST_BASE_URL = @"http://139.196.173.244:8080/aland-server/rest"; //正式环境
//
static NSString *const REST_BASE_URL = @"http://139.196.195.30:9090/aland-server/rest"; //测试环境
static
NSString
*
const
REST_BASE_URL
=
@"http://139.196.195.30:9090/aland-server/rest"
;
//测试环境
static
NSString
*
const
kDomain
=
@"0001"
;
//组织代码
static
NSString
*
const
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