Commit d52d86df authored by Sandy's avatar Sandy

bugs fix

parent 6c8072cc
......@@ -54,6 +54,13 @@
192900741CD0B7AE00D226E7 /* ShareContentView.m in Sources */ = {isa = PBXBuildFile; fileRef = 192900731CD0B7AE00D226E7 /* ShareContentView.m */; };
192900761CD0B7C000D226E7 /* ShareContentView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 192900751CD0B7C000D226E7 /* ShareContentView.xib */; };
192900811CD1AECB00D226E7 /* ShareInstance.m in Sources */ = {isa = PBXBuildFile; fileRef = 192900801CD1AECB00D226E7 /* ShareInstance.m */; };
192900861CD1D94400D226E7 /* JavenConsumer.m in Sources */ = {isa = PBXBuildFile; fileRef = 192900831CD1D94400D226E7 /* JavenConsumer.m */; };
192900871CD1D94400D226E7 /* JavenCustomer.m in Sources */ = {isa = PBXBuildFile; fileRef = 192900851CD1D94400D226E7 /* JavenCustomer.m */; };
192900901CD1FFF800D226E7 /* CustomerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1929008E1CD1FFF800D226E7 /* CustomerViewController.m */; };
192900931CD20A3E00D226E7 /* CustomerTopView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 192900921CD20A3E00D226E7 /* CustomerTopView.xib */; };
192900961CD20A5200D226E7 /* CustomerTopView.m in Sources */ = {isa = PBXBuildFile; fileRef = 192900951CD20A5200D226E7 /* CustomerTopView.m */; };
1929009A1CD2129B00D226E7 /* MyAcountViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 192900981CD2129B00D226E7 /* MyAcountViewController.m */; };
1929009B1CD2129B00D226E7 /* MyAcountViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 192900991CD2129B00D226E7 /* MyAcountViewController.xib */; };
1929401F1CC8DA5B00E377EE /* InvitePartnerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1929401D1CC8DA5B00E377EE /* InvitePartnerViewController.m */; };
192940201CC8DA5B00E377EE /* InvitePartnerViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1929401E1CC8DA5B00E377EE /* InvitePartnerViewController.xib */; };
1929F16D1C9FCB62000E9B26 /* NSDictionary+Category.m in Sources */ = {isa = PBXBuildFile; fileRef = 1929F16C1C9FCB62000E9B26 /* NSDictionary+Category.m */; };
......@@ -346,6 +353,18 @@
192900751CD0B7C000D226E7 /* ShareContentView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = ShareContentView.xib; sourceTree = "<group>"; };
1929007F1CD1AECB00D226E7 /* ShareInstance.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ShareInstance.h; sourceTree = "<group>"; };
192900801CD1AECB00D226E7 /* ShareInstance.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ShareInstance.m; sourceTree = "<group>"; };
192900821CD1D94400D226E7 /* JavenConsumer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JavenConsumer.h; sourceTree = "<group>"; };
192900831CD1D94400D226E7 /* JavenConsumer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JavenConsumer.m; sourceTree = "<group>"; };
192900841CD1D94400D226E7 /* JavenCustomer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JavenCustomer.h; sourceTree = "<group>"; };
192900851CD1D94400D226E7 /* JavenCustomer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JavenCustomer.m; sourceTree = "<group>"; };
1929008D1CD1FFF800D226E7 /* CustomerViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CustomerViewController.h; sourceTree = "<group>"; };
1929008E1CD1FFF800D226E7 /* CustomerViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CustomerViewController.m; sourceTree = "<group>"; };
192900921CD20A3E00D226E7 /* CustomerTopView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = CustomerTopView.xib; sourceTree = "<group>"; };
192900941CD20A5200D226E7 /* CustomerTopView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CustomerTopView.h; sourceTree = "<group>"; };
192900951CD20A5200D226E7 /* CustomerTopView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CustomerTopView.m; sourceTree = "<group>"; };
192900971CD2129B00D226E7 /* MyAcountViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MyAcountViewController.h; sourceTree = "<group>"; };
192900981CD2129B00D226E7 /* MyAcountViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MyAcountViewController.m; sourceTree = "<group>"; };
192900991CD2129B00D226E7 /* MyAcountViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MyAcountViewController.xib; sourceTree = "<group>"; };
1929401C1CC8DA5B00E377EE /* InvitePartnerViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InvitePartnerViewController.h; sourceTree = "<group>"; };
1929401D1CC8DA5B00E377EE /* InvitePartnerViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InvitePartnerViewController.m; sourceTree = "<group>"; };
1929401E1CC8DA5B00E377EE /* InvitePartnerViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = InvitePartnerViewController.xib; sourceTree = "<group>"; };
......@@ -957,7 +976,6 @@
19DCCBE71C9AA1D50072C3BF /* UserUtil */,
19DCCB7E1C9AA0450072C3BF /* General */,
19DCCB7A1C9A9F0A0072C3BF /* Macro */,
19DCCB081C9A9EB30072C3BF /* IBTUtilites */,
1940D31A1C9A57400080678C /* Application */,
1940D3181C9A57070080678C /* BaseClass */,
1940D3191C9A57070080678C /* CodeClass */,
......@@ -1167,6 +1185,9 @@
19D906A91CC7898C00CD42DC /* MineViewController.h */,
19D906AA1CC7898C00CD42DC /* MineViewController.m */,
19D906AB1CC7898C00CD42DC /* MineViewController.xib */,
192900971CD2129B00D226E7 /* MyAcountViewController.h */,
192900981CD2129B00D226E7 /* MyAcountViewController.m */,
192900991CD2129B00D226E7 /* MyAcountViewController.xib */,
19D906B31CC86DA300CD42DC /* SettingViewController.h */,
19D906B41CC86DA300CD42DC /* SettingViewController.m */,
19D906B51CC86DA300CD42DC /* SettingViewController.xib */,
......@@ -1379,6 +1400,8 @@
children = (
19DC6B341CC0D5FF0064A9FD /* CustomerManagementViewController.h */,
19DC6B351CC0D5FF0064A9FD /* CustomerManagementViewController.m */,
1929008D1CD1FFF800D226E7 /* CustomerViewController.h */,
1929008E1CD1FFF800D226E7 /* CustomerViewController.m */,
);
path = CustomerManagement;
sourceTree = "<group>";
......@@ -1389,6 +1412,9 @@
19DC6B3A1CC0E06C0064A9FD /* CustomerTableViewCell.h */,
19DC6B3B1CC0E06C0064A9FD /* CustomerTableViewCell.m */,
19DC6B3C1CC0E06C0064A9FD /* CustomerTableViewCell.xib */,
192900941CD20A5200D226E7 /* CustomerTopView.h */,
192900951CD20A5200D226E7 /* CustomerTopView.m */,
192900921CD20A3E00D226E7 /* CustomerTopView.xib */,
);
path = CustomerManagement;
sourceTree = "<group>";
......@@ -1396,6 +1422,10 @@
19DC6B301CC0D5330064A9FD /* CustomerManagement */ = {
isa = PBXGroup;
children = (
192900821CD1D94400D226E7 /* JavenConsumer.h */,
192900831CD1D94400D226E7 /* JavenConsumer.m */,
192900841CD1D94400D226E7 /* JavenCustomer.h */,
192900851CD1D94400D226E7 /* JavenCustomer.m */,
);
path = CustomerManagement;
sourceTree = "<group>";
......@@ -1477,7 +1507,8 @@
19DCCB291C9A9EB30072C3BF /* IBTUIKit */,
19DCCB531C9A9EB30072C3BF /* IBTWebViewController */,
);
path = IBTUtilites;
name = IBTUtilites;
path = ../IBTUtilites;
sourceTree = "<group>";
};
19DCCB091C9A9EB30072C3BF /* IBTMedia */ = {
......@@ -1613,6 +1644,7 @@
19DCCB7A1C9A9F0A0072C3BF /* Macro */ = {
isa = PBXGroup;
children = (
19DCCB081C9A9EB30072C3BF /* IBTUtilites */,
19DCCB7B1C9A9F250072C3BF /* AppHeader.h */,
19DCCB7C1C9A9F300072C3BF /* UrlHeader.h */,
19DCCB7D1C9A9F420072C3BF /* IMPHeader.h */,
......@@ -1925,6 +1957,7 @@
192900761CD0B7C000D226E7 /* ShareContentView.xib in Resources */,
199B4D891CAE67C600451E0E /* SeeLogistics.xib in Resources */,
199BC7B21C9AD4FD00E4E0B8 /* LoginViewController.xib in Resources */,
192900931CD20A3E00D226E7 /* CustomerTopView.xib in Resources */,
19ADD38F1CA4EC1000EE6E5A /* AddCommodityHeaderCollectionReusableView.xib in Resources */,
19D906C31CC8A20F00CD42DC /* OrderDetailBottomView.xib in Resources */,
199B4D981CAE701F00451E0E /* StoreManagermentViewController.xib in Resources */,
......@@ -1939,6 +1972,7 @@
19DC6B151CC0ACF40064A9FD /* MyTeamTopView.xib in Resources */,
19ADD37F1CA4D38B00EE6E5A /* CommodityListCollectionViewCell.xib in Resources */,
1979753F1CAA15C700407E3F /* CommodityTableViewCell.xib in Resources */,
1929009B1CD2129B00D226E7 /* MyAcountViewController.xib in Resources */,
192940201CC8DA5B00E377EE /* InvitePartnerViewController.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
......@@ -2024,6 +2058,7 @@
199BC7BE1C9B045B00E4E0B8 /* RigistViewController.m in Sources */,
199BC7D01C9BAC9600E4E0B8 /* MyTools.m in Sources */,
199B4D681CABBCF600451E0E /* OrderDetailViewController.m in Sources */,
192900861CD1D94400D226E7 /* JavenConsumer.m in Sources */,
1912FCD71CCDC945004CF976 /* JavenReseller.m in Sources */,
199B4D861CAE43F800451E0E /* OrderDetailTableViewCell.m in Sources */,
199BC7B11C9AD4FD00E4E0B8 /* LoginViewController.m in Sources */,
......@@ -2042,6 +2077,7 @@
1900A34A1CB6306600B2B7C4 /* HotBrandModel.m in Sources */,
191AEE811CBCEE6B00F5E535 /* JavenOperator.m in Sources */,
19DCCB6A1C9A9EB30072C3BF /* IBTSegmentContainer.m in Sources */,
192900871CD1D94400D226E7 /* JavenCustomer.m in Sources */,
19DCCB5F1C9A9EB30072C3BF /* IBTRefreshTableView.m in Sources */,
1979751F1CA8D51700407E3F /* CommodityDetailBottomView.m in Sources */,
19DCCBD81C9AA0450072C3BF /* UIViewController+LogicController.m in Sources */,
......@@ -2082,6 +2118,8 @@
19DCCB691C9A9EB30072C3BF /* IBTObject.m in Sources */,
192900811CD1AECB00D226E7 /* ShareInstance.m in Sources */,
19DCCBDD1C9AA0450072C3BF /* IBTFileManager.m in Sources */,
1929009A1CD2129B00D226E7 /* MyAcountViewController.m in Sources */,
192900901CD1FFF800D226E7 /* CustomerViewController.m in Sources */,
1900A3411CB6059000B2B7C4 /* introductionViewController.m in Sources */,
19D906C61CC8A21700CD42DC /* OrderDetailBottomView.m in Sources */,
19ADD3771CA4D19F00EE6E5A /* AddCommodityViewController.m in Sources */,
......@@ -2179,6 +2217,7 @@
19DCCBCD1C9AA0450072C3BF /* UIFont+Custom.m in Sources */,
19DCCBE41C9AA0450072C3BF /* ICRFunctionEntity.m in Sources */,
1929401F1CC8DA5B00E377EE /* InvitePartnerViewController.m in Sources */,
192900961CD20A5200D226E7 /* CustomerTopView.m in Sources */,
19632DA81CB356050024A8A1 /* UIImage+QRCode.m in Sources */,
19DC6B2B1CC0CEDD0064A9FD /* MBTextFieldWithFontAdapter.m in Sources */,
192900741CD0B7AE00D226E7 /* ShareContentView.m in Sources */,
......@@ -2365,7 +2404,7 @@
baseConfigurationReference = AAF51B5D53AE9938C03065C3 /* Pods.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "iPhone Distribution: Shanghai Gomore Information Technology Co.,Ltd";
CODE_SIGN_IDENTITY = "iPhone Distribution";
ENABLE_BITCODE = NO;
GCC_PREFIX_HEADER = Aland/PrefixHeader.pch;
HEADER_SEARCH_PATHS = (
......
{
"images" : [
{
"idiom" : "universal",
"filename" : "commodityManage_Manager.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "commodityManage_Manager@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "commodityManage_add.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "commodityManage_add@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "select_tick.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "select_tick@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "select_warning.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "select_warning@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "icon_bill.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "icon_bill@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
//
// JavenConsumer.h
//
// Created by Z on 16/4/28
// Copyright (c) 2016 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface JavenConsumer : NSObject <NSCoding, NSCopying>
@property (nonatomic, strong) NSString *mobilephone;
@property (nonatomic, strong) NSString *code;
@property (nonatomic, assign) id name;
@property (nonatomic, assign) id portrait;
@property (nonatomic, strong) NSString *uuid;
+ (instancetype)modelObjectWithDictionary:(NSDictionary *)dict;
- (instancetype)initWithDictionary:(NSDictionary *)dict;
- (NSDictionary *)dictionaryRepresentation;
@end
//
// JavenConsumer.m
//
// Created by Z on 16/4/28
// Copyright (c) 2016 __MyCompanyName__. All rights reserved.
//
#import "JavenConsumer.h"
NSString *const kJavenConsumerMobilephone = @"mobilephone";
NSString *const kJavenConsumerCode = @"code";
NSString *const kJavenConsumerName = @"name";
NSString *const kJavenConsumerPortrait = @"portrait";
NSString *const kJavenConsumerUuid = @"uuid";
@interface JavenConsumer ()
- (id)objectOrNilForKey:(id)aKey fromDictionary:(NSDictionary *)dict;
@end
@implementation JavenConsumer
@synthesize mobilephone = _mobilephone;
@synthesize code = _code;
@synthesize name = _name;
@synthesize portrait = _portrait;
@synthesize uuid = _uuid;
+ (instancetype)modelObjectWithDictionary:(NSDictionary *)dict
{
return [[self alloc] initWithDictionary:dict];
}
- (instancetype)initWithDictionary:(NSDictionary *)dict
{
self = [super init];
// This check serves to make sure that a non-NSDictionary object
// passed into the model class doesn't break the parsing.
if(self && [dict isKindOfClass:[NSDictionary class]]) {
self.mobilephone = [self objectOrNilForKey:kJavenConsumerMobilephone fromDictionary:dict];
self.code = [self objectOrNilForKey:kJavenConsumerCode fromDictionary:dict];
self.name = [self objectOrNilForKey:kJavenConsumerName fromDictionary:dict];
self.portrait = [self objectOrNilForKey:kJavenConsumerPortrait fromDictionary:dict];
self.uuid = [self objectOrNilForKey:kJavenConsumerUuid fromDictionary:dict];
}
return self;
}
- (NSDictionary *)dictionaryRepresentation
{
NSMutableDictionary *mutableDict = [NSMutableDictionary dictionary];
[mutableDict setValue:self.mobilephone forKey:kJavenConsumerMobilephone];
[mutableDict setValue:self.code forKey:kJavenConsumerCode];
[mutableDict setValue:self.name forKey:kJavenConsumerName];
[mutableDict setValue:self.portrait forKey:kJavenConsumerPortrait];
[mutableDict setValue:self.uuid forKey:kJavenConsumerUuid];
return [NSDictionary dictionaryWithDictionary:mutableDict];
}
- (NSString *)description
{
return [NSString stringWithFormat:@"%@", [self dictionaryRepresentation]];
}
#pragma mark - Helper Method
- (id)objectOrNilForKey:(id)aKey fromDictionary:(NSDictionary *)dict
{
id object = [dict objectForKey:aKey];
return [object isEqual:[NSNull null]] ? nil : object;
}
#pragma mark - NSCoding Methods
- (id)initWithCoder:(NSCoder *)aDecoder
{
self = [super init];
self.mobilephone = [aDecoder decodeObjectForKey:kJavenConsumerMobilephone];
self.code = [aDecoder decodeObjectForKey:kJavenConsumerCode];
self.name = [aDecoder decodeObjectForKey:kJavenConsumerName];
self.portrait = [aDecoder decodeObjectForKey:kJavenConsumerPortrait];
self.uuid = [aDecoder decodeObjectForKey:kJavenConsumerUuid];
return self;
}
- (void)encodeWithCoder:(NSCoder *)aCoder
{
[aCoder encodeObject:_mobilephone forKey:kJavenConsumerMobilephone];
[aCoder encodeObject:_code forKey:kJavenConsumerCode];
[aCoder encodeObject:_name forKey:kJavenConsumerName];
[aCoder encodeObject:_portrait forKey:kJavenConsumerPortrait];
[aCoder encodeObject:_uuid forKey:kJavenConsumerUuid];
}
- (id)copyWithZone:(NSZone *)zone
{
JavenConsumer *copy = [[JavenConsumer alloc] init];
if (copy) {
copy.mobilephone = [self.mobilephone copyWithZone:zone];
copy.code = [self.code copyWithZone:zone];
copy.name = [self.name copyWithZone:zone];
copy.portrait = [self.portrait copyWithZone:zone];
copy.uuid = [self.uuid copyWithZone:zone];
}
return copy;
}
@end
//
// JavenCustomer.h
//
// Created by Z on 16/4/28
// Copyright (c) 2016 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "JavenConsumer.h"
@interface JavenCustomer : NSObject <NSCoding, NSCopying>
@property (nonatomic, strong) JavenConsumer *consumer;
@property (nonatomic, assign) double orderCount;
@property (nonatomic, assign) double commissionTotal;
+ (instancetype)modelObjectWithDictionary:(NSDictionary *)dict;
- (instancetype)initWithDictionary:(NSDictionary *)dict;
- (NSDictionary *)dictionaryRepresentation;
@end
//
// JavenCustomer.m
//
// Created by Z on 16/4/28
// Copyright (c) 2016 __MyCompanyName__. All rights reserved.
//
#import "JavenCustomer.h"
#import "JavenConsumer.h"
NSString *const kJavenCustomerConsumer = @"consumer";
NSString *const kJavenCustomerOrderCount = @"orderCount";
NSString *const kJavenCustomerCommissionTotal = @"commissionTotal";
@interface JavenCustomer ()
- (id)objectOrNilForKey:(id)aKey fromDictionary:(NSDictionary *)dict;
@end
@implementation JavenCustomer
@synthesize consumer = _consumer;
@synthesize orderCount = _orderCount;
@synthesize commissionTotal = _commissionTotal;
+ (instancetype)modelObjectWithDictionary:(NSDictionary *)dict
{
return [[self alloc] initWithDictionary:dict];
}
- (instancetype)initWithDictionary:(NSDictionary *)dict
{
self = [super init];
// This check serves to make sure that a non-NSDictionary object
// passed into the model class doesn't break the parsing.
if(self && [dict isKindOfClass:[NSDictionary class]]) {
self.consumer = [JavenConsumer modelObjectWithDictionary:[dict objectForKey:kJavenCustomerConsumer]];
self.orderCount = [[self objectOrNilForKey:kJavenCustomerOrderCount fromDictionary:dict] doubleValue];
self.commissionTotal = [[self objectOrNilForKey:kJavenCustomerCommissionTotal fromDictionary:dict] doubleValue];
}
return self;
}
- (NSDictionary *)dictionaryRepresentation
{
NSMutableDictionary *mutableDict = [NSMutableDictionary dictionary];
[mutableDict setValue:[self.consumer dictionaryRepresentation] forKey:kJavenCustomerConsumer];
[mutableDict setValue:[NSNumber numberWithDouble:self.orderCount] forKey:kJavenCustomerOrderCount];
[mutableDict setValue:[NSNumber numberWithDouble:self.commissionTotal] forKey:kJavenCustomerCommissionTotal];
return [NSDictionary dictionaryWithDictionary:mutableDict];
}
- (NSString *)description
{
return [NSString stringWithFormat:@"%@", [self dictionaryRepresentation]];
}
#pragma mark - Helper Method
- (id)objectOrNilForKey:(id)aKey fromDictionary:(NSDictionary *)dict
{
id object = [dict objectForKey:aKey];
return [object isEqual:[NSNull null]] ? nil : object;
}
#pragma mark - NSCoding Methods
- (id)initWithCoder:(NSCoder *)aDecoder
{
self = [super init];
self.consumer = [aDecoder decodeObjectForKey:kJavenCustomerConsumer];
self.orderCount = [aDecoder decodeDoubleForKey:kJavenCustomerOrderCount];
self.commissionTotal = [aDecoder decodeDoubleForKey:kJavenCustomerCommissionTotal];
return self;
}
- (void)encodeWithCoder:(NSCoder *)aCoder
{
[aCoder encodeObject:_consumer forKey:kJavenCustomerConsumer];
[aCoder encodeDouble:_orderCount forKey:kJavenCustomerOrderCount];
[aCoder encodeDouble:_commissionTotal forKey:kJavenCustomerCommissionTotal];
}
- (id)copyWithZone:(NSZone *)zone
{
JavenCustomer *copy = [[JavenCustomer alloc] init];
if (copy) {
copy.consumer = [self.consumer copyWithZone:zone];
copy.orderCount = self.orderCount;
copy.commissionTotal = self.commissionTotal;
}
return copy;
}
@end
......@@ -13,9 +13,9 @@
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
<rect key="frame" x="0.0" y="0.0" width="226" height="75"/>
<subviews>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="热门标签" borderStyle="roundedRect" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="HQp-oR-4tI">
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="热门标签" borderStyle="roundedRect" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="HQp-oR-4tI" customClass="MBTextFieldWithFontAdapter">
<rect key="frame" x="5" y="10" width="216" height="55"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<textInputTraits key="textInputTraits"/>
</textField>
</subviews>
......
......@@ -11,6 +11,8 @@
typedef void (^addSuccessBlock)(void);
@interface CommodityListCollectionViewCell : UICollectionViewCell
@property (weak, nonatomic) IBOutlet UIImageView *imageViewTop;
@property (weak, nonatomic) IBOutlet UILabel *labelRealPrice;
@property (weak, nonatomic) IBOutlet UILabel *labelSalePrice;
@property (nonatomic, copy) addSuccessBlock successBlock;
......
......@@ -11,7 +11,6 @@
#import "addCommodityRequestModel.h"
#import "MBLabelWithFontAdapter.h"
@interface CommodityListCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *imageViewTop;
@property (weak, nonatomic) IBOutlet MBLabelWithFontAdapter *labelTitle;
@property (weak, nonatomic) IBOutlet UILabel *labelPrice;
@property (weak, nonatomic) IBOutlet UILabel *labelOriginalPrice;
......@@ -19,6 +18,7 @@
@property (weak, nonatomic) IBOutlet MBLabelWithFontAdapter *labelBrokerageRate; //佣金
@property (weak, nonatomic) IBOutlet UILabel *labelSalesVolume; //销量
@end
@implementation CommodityListCollectionViewCell
......@@ -33,51 +33,14 @@
self.labelTitle.text = model.name;
self.model = model;
}
- (IBAction)actionAdd:(id)sender {
CLog(@"添加商品");
UserInfo *info = [UserInfo shareInstance];
NSDictionary *param = @{
@"operCtx": @{
@"time": [[NSDate date] timeStampNumber],
@"domain": info.domain,
@"operator": @{
@"id": info.uuid,
@"fullName": info.name
}
},
@"shopUuid": info.shop.uuid,
@"goodsUuid":self.model.uuid
};
WS(weakSelf)
[[HTTPCilent shareCilent] POST:@"shop/addGoods" parameters:param success:^(NSURLSessionDataTask *task, id responseObject) {
if ([responseObject[@"code"] isEqualToNumber: @0]) {
[weakSelf addSUccess];
}
} failure:^(NSURLSessionDataTask *task, NSError *error) {
}];
}
- (void)addSUccess {
//添加成功提示框
MBProgressHUD *hud = [[MBProgressHUD alloc] initWithView:self.window];
[self.window addSubview:hud];
hud.animationType = MBProgressHUDAnimationFade;
hud.removeFromSuperViewOnHide = YES;
hud.labelText = @"添加成功!";
hud.mode = MBProgressHUDModeText;
[hud show:YES];
[hud hide:YES afterDelay:1];
- (IBAction)shareAction:(id)sender {
UserInfo *userInfo = [UserInfo shareInstance];
[[ShareInstance shareInstace] showWithTitle:@"Aland" content:self.model.name url:[NSString stringWithFormat:@"%@Wap/detail/shop_id/%@/id/%@/hastbar/0/.html", userInfo.webShopBaseUrl, userInfo.shop.uuid, self.model.uuid] image:self.imageViewTop.image];
}
- (void)awakeFromNib {
// Initialization code
}
......
......@@ -57,6 +57,9 @@
<constraint firstAttribute="width" constant="22" id="yua-IV-f6J"/>
</constraints>
<state key="normal" image="commodityShare"/>
<connections>
<action selector="shareAction:" destination="gTV-IL-0wX" eventType="touchUpInside" id="uXk-3N-njR"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" 佣金:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="i9h-vh-UNx">
<rect key="frame" x="1" y="12" width="45" height="20"/>
......
......@@ -41,7 +41,7 @@
[self hideSortView];
AddCommodityViewController *addVC = [[AddCommodityViewController alloc] init];
addVC.hidesBottomBarWhenPushed = YES;
addVC.isShowNavigationBar = YES;
[[self viewController].navigationController pushViewController:addVC animated:YES];
......
......@@ -14,7 +14,7 @@
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="y9I-zx-duH">
<rect key="frame" x="0.0" y="10" width="160" height="110"/>
<fontDescription key="fontDescription" type="system" pointSize="19"/>
<state key="normal" title="添加商品" image="blueCycle">
<state key="normal" title="添加商品" image="commodityManage_add">
<color key="titleColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="1" colorSpace="calibratedRGB"/>
</state>
<connections>
......@@ -24,7 +24,7 @@
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="uY6-mf-dlQ">
<rect key="frame" x="160" y="10" width="160" height="110"/>
<fontDescription key="fontDescription" type="system" pointSize="19"/>
<state key="normal" title="商品管理" image="blueCycle">
<state key="normal" title="商品管理" image="commodityManage_Manager">
<color key="titleColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="1" colorSpace="calibratedRGB"/>
</state>
<connections>
......@@ -59,6 +59,7 @@
</button>
</objects>
<resources>
<image name="blueCycle" width="62" height="62"/>
<image name="commodityManage_Manager" width="75" height="75"/>
<image name="commodityManage_add" width="75" height="75"/>
</resources>
</document>
......@@ -7,7 +7,8 @@
//
#import <UIKit/UIKit.h>
#import "JavenCustomer.h"
@interface CustomerTableViewCell : UITableViewCell
- (void)cellwithModel:(JavenCustomer *)model;
@end
......@@ -7,13 +7,25 @@
//
#import "CustomerTableViewCell.h"
#import "MBLabelWithFontAdapter.h"
@interface CustomerTableViewCell ()
@property (weak, nonatomic) IBOutlet MBLabelWithFontAdapter *labelOrderCount;
@property (weak, nonatomic) IBOutlet MBLabelWithFontAdapter *labelCommissionTotal;
@property (weak, nonatomic) IBOutlet UILabel *labelPhoneNumber;
@end
@implementation CustomerTableViewCell
- (void)awakeFromNib {
// Initialization code
}
- (void)cellwithModel:(JavenCustomer *)model {
self.labelOrderCount.text = [NSString stringWithFormat:@"%.0f",model.orderCount];
self.labelCommissionTotal.text = [NSString stringWithFormat:@"%.2f", model.commissionTotal];
self.labelPhoneNumber.text = [NSString stringWithFormat:@"%@", model.consumer.mobilephone];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
......
......@@ -28,26 +28,26 @@
</variation>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="订单总数:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5XS-Sk-n6g" customClass="MBLabelWithFontAdapter">
<rect key="frame" x="91" y="42" width="73" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<rect key="frame" x="91" y="43" width="69" height="20"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="8" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="3bd-RB-h0V" customClass="MBLabelWithFontAdapter">
<rect key="frame" x="164" y="42" width="11" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<rect key="frame" x="160" y="43" width="10" height="20"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="收入总计:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0K4-NW-0GC" customClass="MBLabelWithFontAdapter">
<rect key="frame" x="213" y="42" width="73" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<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="0K4-NW-0GC" customClass="MBLabelWithFontAdapter">
<rect key="frame" x="217" y="43" width="69" height="20"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="32.89" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Cfg-Yj-Odk" customClass="MBLabelWithFontAdapter">
<rect key="frame" x="286" y="42" width="45" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<rect key="frame" x="288" y="43" width="43" height="20"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
......@@ -82,6 +82,11 @@
</mask>
</variation>
</tableViewCellContentView>
<connections>
<outlet property="labelCommissionTotal" destination="Cfg-Yj-Odk" id="VgE-RY-fE8"/>
<outlet property="labelOrderCount" destination="3bd-RB-h0V" id="G5w-h5-ZNv"/>
<outlet property="labelPhoneNumber" destination="pwt-qX-7g4" id="HjI-WH-NYs"/>
</connections>
<point key="canvasLocation" x="289.5" y="326"/>
</tableViewCell>
</objects>
......
//
// CustomerTopView.h
// ALand
//
// Created by Z on 16/4/28.
// Copyright © 2016年 Z. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CustomerTopView : UIView
@end
//
// CustomerTopView.m
// ALand
//
// Created by Z on 16/4/28.
// Copyright © 2016年 Z. All rights reserved.
//
#import "CustomerTopView.h"
@implementation CustomerTopView
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
// Drawing code
}
*/
@end
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="9532" systemVersion="15D21" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9530"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="CustomerTopView">
<rect key="frame" x="0.0" y="0.0" width="375" height="291"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="2nM-za-EA6">
<rect key="frame" x="0.0" y="0.0" width="375" height="291"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="1S4-Kh-itU">
<rect key="frame" x="0.0" y="0.0" width="375" height="170"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="bac" translatesAutoresizingMaskIntoConstraints="NO" id="cqD-Nc-YP4">
<rect key="frame" x="14" y="18" width="12" height="42"/>
<constraints>
<constraint firstAttribute="width" constant="12" id="D3g-yE-AsM"/>
<constraint firstAttribute="height" constant="42" id="VIP-v4-fMH"/>
</constraints>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="e1a-5l-BFu">
<rect key="frame" x="0.0" y="0.0" width="46" height="70"/>
<constraints>
<constraint firstAttribute="height" constant="70" id="0oh-8k-CY5"/>
<constraint firstAttribute="width" constant="46" id="njn-YL-Rxw"/>
</constraints>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="客户详情" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="4Va-P3-krV">
<rect key="frame" x="148" y="27" width="80" height="24"/>
<fontDescription key="fontDescription" type="system" pointSize="20"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="defaultUserIcon" translatesAutoresizingMaskIntoConstraints="NO" id="zh4-M8-ENA">
<rect key="frame" x="150" y="77" width="75" height="75"/>
<constraints>
<constraint firstAttribute="height" constant="75" id="lCj-Ms-0Vz"/>
<constraint firstAttribute="width" constant="75" id="mR9-ON-3sS"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" red="0.48627450979999998" green="0.76470588240000004" blue="0.1450980392" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="e1a-5l-BFu" firstAttribute="leading" secondItem="1S4-Kh-itU" secondAttribute="leading" id="33r-3T-6FL"/>
<constraint firstItem="4Va-P3-krV" firstAttribute="centerX" secondItem="1S4-Kh-itU" secondAttribute="centerX" id="5Qw-Qk-d48"/>
<constraint firstAttribute="height" constant="170" id="86h-Ri-elh"/>
<constraint firstItem="cqD-Nc-YP4" firstAttribute="leading" secondItem="1S4-Kh-itU" secondAttribute="leading" constant="14" id="D4R-AW-q7D"/>
<constraint firstItem="e1a-5l-BFu" firstAttribute="top" secondItem="1S4-Kh-itU" secondAttribute="top" id="GON-cU-VIZ"/>
<constraint firstAttribute="bottom" secondItem="zh4-M8-ENA" secondAttribute="bottom" constant="18" id="HS4-WL-3FO"/>
<constraint firstItem="zh4-M8-ENA" firstAttribute="centerX" secondItem="1S4-Kh-itU" secondAttribute="centerX" id="Jtn-4C-brC"/>
<constraint firstItem="cqD-Nc-YP4" firstAttribute="centerY" secondItem="4Va-P3-krV" secondAttribute="centerY" id="RqG-Ym-h4l"/>
<constraint firstItem="cqD-Nc-YP4" firstAttribute="top" secondItem="1S4-Kh-itU" secondAttribute="top" constant="18" id="yu1-xo-ALg"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="bn8-nl-uMT">
<rect key="frame" x="0.0" y="180" width="375" height="50"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="手机号码" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="q7J-4U-SaK">
<rect key="frame" x="16" y="14" width="68" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="18321155536" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Wtj-HV-1wd">
<rect key="frame" x="92" y="14" width="105" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="4La-WM-6yb">
<rect key="frame" x="327" y="5" width="40" height="40"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="Eus-GH-0Qb"/>
<constraint firstAttribute="width" constant="40" id="eXN-3u-arm"/>
</constraints>
<state key="normal" image="call_icon"/>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="Wtj-HV-1wd" firstAttribute="leading" secondItem="q7J-4U-SaK" secondAttribute="trailing" constant="8" id="5oj-Fm-t00"/>
<constraint firstItem="q7J-4U-SaK" firstAttribute="centerY" secondItem="bn8-nl-uMT" secondAttribute="centerY" id="ARz-Gc-BRo"/>
<constraint firstItem="4La-WM-6yb" firstAttribute="centerY" secondItem="bn8-nl-uMT" secondAttribute="centerY" id="K4K-PT-FZF"/>
<constraint firstAttribute="trailing" secondItem="4La-WM-6yb" secondAttribute="trailing" constant="8" id="aLg-e7-dXk"/>
<constraint firstItem="Wtj-HV-1wd" firstAttribute="centerY" secondItem="bn8-nl-uMT" secondAttribute="centerY" id="ain-BQ-93c"/>
<constraint firstAttribute="height" constant="50" id="gTf-cU-ujD"/>
<constraint firstItem="q7J-4U-SaK" firstAttribute="leading" secondItem="bn8-nl-uMT" secondAttribute="leading" constant="16" id="hPt-sr-T5I"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="qCw-1q-3NL">
<rect key="frame" x="0.0" y="240" width="375" height="50"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="mTh-nT-kM5">
<rect key="frame" x="0.0" y="47" width="375" height="1"/>
<color key="backgroundColor" red="0.91271875000000002" green="0.91271875000000002" blue="0.91271875000000002" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="6IR-ea-cih"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="订单共" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="NO9-0w-Ymn">
<rect key="frame" x="16" y="14" width="51" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="1" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Svt-Uu-aR4">
<rect key="frame" x="71" y="14" width="8" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="笔,总收入" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="4bO-6a-Snm">
<rect key="frame" x="83" y="14" width="85" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="234" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="M4D-XV-xmC">
<rect key="frame" x="172" y="15" width="31" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="元" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="PFs-OD-ZMb">
<rect key="frame" x="207" y="15" width="17" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="PFs-OD-ZMb" firstAttribute="leading" secondItem="M4D-XV-xmC" secondAttribute="trailing" constant="4" id="7py-8J-fqk"/>
<constraint firstAttribute="trailing" secondItem="mTh-nT-kM5" secondAttribute="trailing" id="7rz-7g-84T"/>
<constraint firstItem="M4D-XV-xmC" firstAttribute="centerY" secondItem="qCw-1q-3NL" secondAttribute="centerY" id="922-X3-m82"/>
<constraint firstItem="Svt-Uu-aR4" firstAttribute="centerY" secondItem="qCw-1q-3NL" secondAttribute="centerY" id="E4T-yq-DY1"/>
<constraint firstItem="mTh-nT-kM5" firstAttribute="leading" secondItem="qCw-1q-3NL" secondAttribute="leading" id="HkW-gw-rb2"/>
<constraint firstItem="4bO-6a-Snm" firstAttribute="leading" secondItem="Svt-Uu-aR4" secondAttribute="trailing" constant="4" id="Rhx-ag-cL8"/>
<constraint firstItem="Svt-Uu-aR4" firstAttribute="leading" secondItem="NO9-0w-Ymn" secondAttribute="trailing" constant="4" id="bX4-wa-smf"/>
<constraint firstAttribute="height" constant="50" id="c3D-bd-J5m"/>
<constraint firstItem="4bO-6a-Snm" firstAttribute="centerY" secondItem="qCw-1q-3NL" secondAttribute="centerY" id="cNF-JM-9nf"/>
<constraint firstAttribute="bottom" secondItem="mTh-nT-kM5" secondAttribute="bottom" constant="2" id="iOk-5f-hpy"/>
<constraint firstItem="NO9-0w-Ymn" firstAttribute="centerY" secondItem="qCw-1q-3NL" secondAttribute="centerY" id="iWX-u9-Okc"/>
<constraint firstItem="M4D-XV-xmC" firstAttribute="leading" secondItem="4bO-6a-Snm" secondAttribute="trailing" constant="4" id="lGr-to-QIr"/>
<constraint firstItem="PFs-OD-ZMb" firstAttribute="centerY" secondItem="qCw-1q-3NL" secondAttribute="centerY" id="xds-L1-MPh"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" red="0.91271875000000002" green="0.91271875000000002" blue="0.91271875000000002" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="qCw-1q-3NL" secondAttribute="trailing" id="4FD-Ud-NuS"/>
<constraint firstAttribute="trailing" secondItem="bn8-nl-uMT" secondAttribute="trailing" id="7e3-z2-nJx"/>
<constraint firstItem="1S4-Kh-itU" firstAttribute="top" secondItem="2nM-za-EA6" secondAttribute="top" id="8QV-tr-V42"/>
<constraint firstItem="NO9-0w-Ymn" firstAttribute="leading" secondItem="q7J-4U-SaK" secondAttribute="leading" id="Fic-pK-i5P"/>
<constraint firstItem="bn8-nl-uMT" firstAttribute="top" secondItem="1S4-Kh-itU" secondAttribute="bottom" constant="10" id="I2A-aw-7XR"/>
<constraint firstItem="qCw-1q-3NL" firstAttribute="leading" secondItem="2nM-za-EA6" secondAttribute="leading" id="Thf-QW-GbF"/>
<constraint firstItem="qCw-1q-3NL" firstAttribute="top" secondItem="bn8-nl-uMT" secondAttribute="bottom" constant="10" id="UWe-Sz-jCe"/>
<constraint firstAttribute="trailing" secondItem="1S4-Kh-itU" secondAttribute="trailing" id="pG1-vY-B5U"/>
<constraint firstItem="bn8-nl-uMT" firstAttribute="leading" secondItem="2nM-za-EA6" secondAttribute="leading" id="xRa-1g-OoO"/>
<constraint firstItem="1S4-Kh-itU" firstAttribute="leading" secondItem="2nM-za-EA6" secondAttribute="leading" id="xWG-t3-eCI"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="2nM-za-EA6" secondAttribute="bottom" id="MU9-Lz-38M"/>
<constraint firstItem="2nM-za-EA6" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="XNG-Zw-kmy"/>
<constraint firstAttribute="trailing" secondItem="2nM-za-EA6" secondAttribute="trailing" id="XvO-P6-oK3"/>
<constraint firstItem="2nM-za-EA6" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="Zym-Jt-LUV"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="438.5" y="529.5"/>
</view>
</objects>
<resources>
<image name="bac" width="13" height="24"/>
<image name="call_icon" width="45" height="45"/>
<image name="defaultUserIcon" width="84" height="84"/>
</resources>
</document>
......@@ -27,7 +27,7 @@
- (void)cellWithModel:(JavenResellerModel *)model
{
self.labelPhone.text = model.reseller.name;
self.labelTeamNums.text = [NSString stringWithFormat:@"一级成员(%d)", 2];
//self.labelTeamNums.text = [NSString stringWithFormat:@"一级成员(%d)", 2];
self.labelAmount.text = [NSString stringWithFormat:@"¥%0.2f",model.commission];
}
......
......@@ -13,7 +13,7 @@
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
<rect key="frame" x="0.0" y="0.0" width="168" height="202"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="一级成员(3)" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9UQ-ZX-IV8" customClass="MBLabelWithFontAdapter">
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="一级成员" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9UQ-ZX-IV8" customClass="MBLabelWithFontAdapter">
<rect key="frame" x="0.0" y="16" width="168" height="22"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
......@@ -22,10 +22,11 @@
<fontDescription key="fontDescription" type="system" pointSize="6"/>
</variation>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" verticalCompressionResistancePriority="749" image="team_icon" translatesAutoresizingMaskIntoConstraints="NO" id="Vil-wZ-5TN">
<rect key="frame" x="37" y="48" width="94" height="77"/>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalCompressionResistancePriority="749" image="team_icon" translatesAutoresizingMaskIntoConstraints="NO" id="Vil-wZ-5TN">
<rect key="frame" x="20" y="48" width="128" height="77"/>
<constraints>
<constraint firstAttribute="height" constant="90" id="ag5-Ds-Xru"/>
<constraint firstAttribute="height" relation="lessThanOrEqual" constant="77" id="hkW-5I-rUN"/>
</constraints>
<variation key="default">
<mask key="constraints">
......@@ -50,8 +51,8 @@
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="qvP-Dh-9Iw">
<rect key="frame" x="44" y="170" width="80" height="22"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="¥12.99" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QVd-gK-ILm">
<rect key="frame" x="10" y="0.0" width="60" height="21"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="¥12.99" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QVd-gK-ILm">
<rect key="frame" x="10" y="0.0" width="60" height="22"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
......@@ -72,10 +73,12 @@
</view>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="Vil-wZ-5TN" secondAttribute="trailing" constant="20" id="48t-Lh-Uwb"/>
<constraint firstItem="qvP-Dh-9Iw" firstAttribute="top" secondItem="dAd-yS-LSa" secondAttribute="bottom" constant="5" id="5z2-Rk-xGs"/>
<constraint firstAttribute="trailing" secondItem="dAd-yS-LSa" secondAttribute="trailing" id="6OH-F9-UuD"/>
<constraint firstItem="Vil-wZ-5TN" firstAttribute="top" secondItem="9UQ-ZX-IV8" secondAttribute="bottom" constant="10" id="9IE-NA-PdK"/>
<constraint firstItem="9UQ-ZX-IV8" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="CDy-0B-L5T"/>
<constraint firstItem="Vil-wZ-5TN" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" constant="20" id="DJV-bA-amL"/>
<constraint firstItem="9UQ-ZX-IV8" firstAttribute="centerX" secondItem="gTV-IL-0wX" secondAttribute="centerX" id="DQh-zj-Ftt"/>
<constraint firstAttribute="trailing" secondItem="9UQ-ZX-IV8" secondAttribute="trailing" id="QRa-Bc-d9w"/>
<constraint firstItem="dAd-yS-LSa" firstAttribute="centerX" secondItem="gTV-IL-0wX" secondAttribute="centerX" id="eGV-fi-VMP"/>
......@@ -83,9 +86,9 @@
<constraint firstItem="Vil-wZ-5TN" firstAttribute="centerX" secondItem="gTV-IL-0wX" secondAttribute="centerX" id="hrh-N3-yQ5"/>
<constraint firstItem="qvP-Dh-9Iw" firstAttribute="centerX" secondItem="gTV-IL-0wX" secondAttribute="centerX" id="inO-P9-3ET"/>
<constraint firstItem="dAd-yS-LSa" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="jJ4-Nh-VLs"/>
<constraint firstItem="dAd-yS-LSa" firstAttribute="top" relation="greaterThanOrEqual" secondItem="Vil-wZ-5TN" secondAttribute="bottom" constant="10" id="u2a-Xe-ZIw"/>
<constraint firstAttribute="bottom" secondItem="qvP-Dh-9Iw" secondAttribute="bottom" constant="10" id="uoA-LK-Pp1"/>
<constraint firstItem="9UQ-ZX-IV8" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" constant="16" id="vXA-Uo-Z7y"/>
<constraint firstItem="dAd-yS-LSa" firstAttribute="top" secondItem="Vil-wZ-5TN" secondAttribute="bottom" constant="20" id="xEe-Sr-XXa"/>
</constraints>
<size key="customSize" width="168" height="202"/>
<variation key="default">
......@@ -100,7 +103,7 @@
<outlet property="labelTeamNums" destination="9UQ-ZX-IV8" id="y5y-qh-ZHr"/>
<outlet property="viewAmountBackround" destination="qvP-Dh-9Iw" id="GxS-BJ-U1V"/>
</connections>
<point key="canvasLocation" x="266" y="286"/>
<point key="canvasLocation" x="144" y="276"/>
</collectionViewCell>
</objects>
<resources>
......
......@@ -11,5 +11,5 @@
@interface MyteamTopView : UIView
- (void)setTeamNums:(NSInteger)nums bonus:(CGFloat)bonus;
- (void)setTeamNums:(NSNumber *)nums bonus:(NSNumber *)bonus;
@end
......@@ -16,10 +16,10 @@
@implementation MyteamTopView
- (void)setTeamNums:(NSInteger)nums bonus:(CGFloat)bonus
- (void)setTeamNums:(NSNumber *)nums bonus:(NSNumber *)bonus
{
self.labelTeamNums.text = [NSString stringWithFormat:@"%lu", nums];
self.labelTeamBonus.text = [NSString stringWithFormat:@"¥%0.2f", bonus];
self.labelTeamNums.text = [NSString stringWithFormat:@"%@", nums];
self.labelTeamBonus.text = [NSString stringWithFormat:@"¥%0.2f", [bonus floatValue]];
}
/*
......
......@@ -11,32 +11,32 @@
<rect key="frame" x="0.0" y="0.0" width="320" height="402"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="9kH-LK-wk8">
<view contentMode="scaleToFill" ambiguous="YES" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="9kH-LK-wk8">
<rect key="frame" x="0.0" y="212" width="320" height="138"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="收货人:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Xru-fq-ja3">
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" misplaced="YES" text="收货人:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Xru-fq-ja3">
<rect key="frame" x="45" y="22" width="68" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="谢德彬" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="J01-8B-y5r">
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" misplaced="YES" text="谢德彬" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="J01-8B-y5r">
<rect key="frame" x="115" y="22" width="51" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="手机号:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="6Vh-Et-vJt">
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" misplaced="YES" text="手机号:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="6Vh-Et-vJt">
<rect key="frame" x="45" y="51" width="68" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="18321155536" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="v7R-er-zaD">
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" misplaced="YES" text="18321155536" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="v7R-er-zaD">
<rect key="frame" x="115" y="51" width="105" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Yca-8a-HcF">
<button opaque="NO" contentMode="scaleToFill" ambiguous="YES" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Yca-8a-HcF">
<rect key="frame" x="262" y="22" width="50" height="50"/>
<constraints>
<constraint firstAttribute="width" constant="50" id="2su-RU-ZJh"/>
......@@ -46,14 +46,14 @@
<action selector="actionCall:" destination="-1" eventType="touchUpInside" id="2Q6-do-hGR"/>
</connections>
</button>
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleAspectFit" image="icon_order_address" translatesAutoresizingMaskIntoConstraints="NO" id="OeX-RE-d2m">
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleAspectFit" ambiguous="YES" misplaced="YES" image="icon_order_address" translatesAutoresizingMaskIntoConstraints="NO" id="OeX-RE-d2m">
<rect key="frame" x="4" y="92" width="30" height="23"/>
<constraints>
<constraint firstAttribute="width" constant="30" id="eth-Xe-EGH"/>
<constraint firstAttribute="height" constant="23" id="yMF-z8-J4m"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="上海市 上海市 闵行区 鹤坡南路55弄2号232室上海市 上海市 闵行区 鹤坡南路55弄2号232室" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rM9-W2-1PT">
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" misplaced="YES" text="上海市 上海市 闵行区 鹤坡南路55弄2号232室上海市 上海市 闵行区 鹤坡南路55弄2号232室" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rM9-W2-1PT">
<rect key="frame" x="45" y="76" width="267" height="54"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<nil key="highlightedColor"/>
......@@ -92,10 +92,10 @@
</mask>
</variation>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kMe-iN-q0b">
<view contentMode="scaleToFill" ambiguous="YES" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="kMe-iN-q0b">
<rect key="frame" x="0.0" y="358" width="320" height="29"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="商品信息" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="nUT-vO-b28">
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="商品信息" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="nUT-vO-b28">
<rect key="frame" x="15" y="4" width="68" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
......
......@@ -27,8 +27,8 @@
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<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="J5p-Wx-HPf">
<rect key="frame" x="272" y="18" width="51" height="21"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="待支付" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="J5p-Wx-HPf">
<rect key="frame" x="286" y="18" width="51" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
......@@ -45,22 +45,22 @@
<color key="textColor" red="0.63360416669999997" green="0.63360416669999997" blue="0.63360416669999997" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="14H-w4-6eU">
<rect key="frame" x="8" y="74" width="315" height="1"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="14H-w4-6eU">
<rect key="frame" x="8" y="74" width="329" height="1"/>
<color key="backgroundColor" red="0.94901960780000005" green="0.94901960780000005" blue="0.94901960780000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="yeu-SB-vLO"/>
</constraints>
</view>
<view contentMode="scaleToFill" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="7at-Z4-fCe">
<rect key="frame" x="0.0" y="0.0" width="331" height="10"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="7at-Z4-fCe">
<rect key="frame" x="0.0" y="0.0" width="345" height="10"/>
<color key="backgroundColor" red="0.86666666670000003" green="0.86666666670000003" blue="0.86666666670000003" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="10" id="L0q-yU-oH5"/>
</constraints>
</view>
<view contentMode="scaleToFill" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="NKY-p0-eZH">
<rect key="frame" x="0.0" y="78" width="331" height="44"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="NKY-p0-eZH">
<rect key="frame" x="0.0" y="100" width="345" height="44"/>
<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="NSP-00-fgb">
<rect key="frame" x="105" y="15" width="39" height="21"/>
......@@ -111,8 +111,8 @@
<constraint firstAttribute="bottom" secondItem="iIr-bn-6Cs" secondAttribute="bottom" constant="8" id="zjJ-zV-2cl"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ajs-cQ-mp9">
<rect key="frame" x="158" y="130" width="165" height="39"/>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ajs-cQ-mp9">
<rect key="frame" x="172" y="152" width="165" height="39"/>
<constraints>
<constraint firstAttribute="width" constant="216" id="9Dj-0z-J1R"/>
<constraint firstAttribute="height" constant="39" id="XeW-Ie-n9B"/>
......@@ -125,8 +125,8 @@
</state>
<variation key="default">
<mask key="constraints">
<exclude reference="rfY-Fy-ksn"/>
<exclude reference="9Dj-0z-J1R"/>
<exclude reference="rfY-Fy-ksn"/>
</mask>
</variation>
</button>
......@@ -161,9 +161,9 @@
</constraints>
<variation key="default">
<mask key="constraints">
<exclude reference="VNt-rr-aff"/>
<exclude reference="Nmp-Jf-G7O"/>
<exclude reference="Sn2-4c-1gK"/>
<exclude reference="VNt-rr-aff"/>
<exclude reference="gQj-Wb-5YI"/>
</mask>
</variation>
......
......@@ -10,5 +10,7 @@
#import "CommodityListModel/CommotityListModel.h"
@interface CommodityDetailViewController : IBTUIViewController
@property (nonatomic, strong) CommotityListModel *model;
@property (nonatomic, strong) UIImage *image;
@end
......@@ -42,6 +42,7 @@
[self.view addSubview:self.bottomView];
[self.bottomView.buttonShop addTarget:self action:@selector(addCommodity) forControlEvents:UIControlEventTouchUpInside];
[self.bottomView.buttonShare addTarget:self action:@selector(shareAction) forControlEvents:UIControlEventTouchUpInside];
// Do any additional setup after loading the view.
}
......@@ -100,6 +101,10 @@
}
- (void)shareAction {
UserInfo *userInfo = [UserInfo shareInstance];
[[ShareInstance shareInstace] showWithTitle:@"Aland" content:self.model.name url:[NSString stringWithFormat:@"%@Wap/detail/shop_id/%@/id/%@/hastbar/0/.html", userInfo.webShopBaseUrl, userInfo.shop.uuid, self.model.uuid] image:self.image];
}
//隐藏navigationbar
......
......@@ -216,6 +216,8 @@
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
CommodityDetailViewController *detailVC = [[CommodityDetailViewController alloc] init];
detailVC.model = self.arrItemDatas[indexPath.row];
CommodityListCollectionViewCell *cell = (CommodityListCollectionViewCell *)[collectionView cellForItemAtIndexPath:indexPath];
detailVC.image = cell.imageViewTop.image;
[self.navigationController pushViewController:detailVC animated:YES];
}
......
......@@ -8,7 +8,7 @@
#import "MoreHotBrandViewController.h"
#import "HotCommodityCell.h"
#import "CommodityListViewController.h"
#define kHotCellId @"addCommodityCellHot"
#define kMargin 0
......@@ -57,6 +57,14 @@
return cell;
}
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
CommodityListViewController *commodityVC = [[CommodityListViewController alloc] init];
commodityVC.hidesBottomBarWhenPushed = YES;
commodityVC.isShowNavigationBar = YES;
commodityVC.model = self.arrItems[indexPath.row];
[self.navigationController pushViewController:commodityVC animated:YES];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
......
......@@ -8,7 +8,7 @@
#import "MoreHotTagViewController.h"
#import "AddCommodityCollectionViewCell.h"
#import "CommodityListViewController.h"
#define kCellId @"AddCommodityCollectionViewCell.h"
#define kMargin 0
......@@ -55,6 +55,14 @@
return cell;
}
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
CommodityListViewController *commodityVC = [[CommodityListViewController alloc] init];
commodityVC.hidesBottomBarWhenPushed = YES;
commodityVC.isShowNavigationBar = YES;
commodityVC.model = self.arrItems[indexPath.row];
[self.navigationController pushViewController:commodityVC animated:YES];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
......
......@@ -41,6 +41,7 @@
@implementation CommodityManagementViewController
//跳转添加商品在CommodityManagementTopView里面跳转,注意看一下
- (void)viewDidLoad {
[super viewDidLoad];
self.condition = @"shop online only";
......
......@@ -10,24 +10,79 @@
#import "UITableView+Category.h"
#import "JavenSortView.h"
#import "CustomerTableViewCell.h"
#import "JavenCustomer.h"
#import "CustomerViewController.h"
#define kPageSize @10
#define kCellId @"CustomerTableViewCell.h"
@interface CustomerManagementViewController ()<UISearchBarDelegate, UITableViewDelegate, UITableViewDataSource>
@property (nonatomic, strong) UISearchBar *searchBar;
@property (nonatomic, strong) UITableView *tableView;
@property (nonatomic, strong) JavenSortView *sortView;
@property (nonatomic, strong) NSMutableArray *arrCellData;
@property (nonatomic, copy) NSString *field; //排序的字段
@property (nonatomic, copy) NSString *direction; //排序的顺序 升序或降序
@end
@implementation CustomerManagementViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.field = @"commission";
self.direction = @"desc";
self.view.backgroundColor = kBacroundColor;
[self setUpSearchBar];
[self setUpSortView];
[self setUptableView];
[self setUpData];
// Do any additional setup after loading the view.
}
- (NSMutableArray *)arrCellData {
if (!_arrCellData) {
_arrCellData = [NSMutableArray array];
}
return _arrCellData;
}
- (void)setUpData {
NSDictionary *params = @{@"defintion" : @{@"conditions" : @[@{@"operation" : @"domain equals",
@"parameter" : @{@"operation" : @"string"},
@"parameters" : @[[UserInfo shareInstance].domain]},
@{@"operation" : @"reseller uuid equals",
@"parameter" : @{@"operation" : @"string"},
@"parameters" : @[[UserInfo shareInstance].uuid]}],
@"orders" : @[@{@"field" : self.field,
@"direction" : self.direction}],
@"pageSize" : kPageSize,
@"page" : @0,
@"probePages" : @0},
@"fetchParts" : @[@"string"]};
WS(weakSelf)
[[HTTPCilent shareCilent] POST:@"reseller/customer/query" parameters:params success:^(NSURLSessionDataTask *task, id responseObject) {
if ([responseObject[@"code"] isEqualToNumber:@0]) {
for (NSDictionary *dic in responseObject[@"queryResult"]) {
JavenCustomer *customer = [JavenCustomer modelObjectWithDictionary:dic];
[weakSelf.arrCellData addObject:customer];
}
[weakSelf.tableView reloadData];
}else{
}
} failure:^(NSURLSessionDataTask *task, NSError *error) {
}];
}
- (void)setUpSearchBar {
UIView *titleView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kWidth - 60, 35)];//allocate titleView
UIColor *color = self.navigationController.navigationBar.barTintColor;
......@@ -51,9 +106,88 @@
self.sortView = [JavenSortView sortViewLeftTitles:arrLeftTitles rightTitles:arrRightTitles];
self.sortView.frame = CGRectMake(0, 0, kWidth, 40);
[self.view addSubview:self.sortView];
WS(weakSelf)
_sortView.leftTableSelect = ^(NSInteger row){
[weakSelf leftSortAction:row];
CLog(@"%ld", (long)row);
};
_sortView.rightTableSelect = ^(NSInteger row){
[weakSelf rightSortAction:row];
};
}
- (void)rightSortAction:(NSInteger)row {
switch (row) {
case 0:
{
self.field = @"commission";
self.direction = @"desc";
}
break;
case 1://订单数 高-低
{
self.field = @"order count";
self.direction = @"desc";
}
break;
case 2://收入 高-低
{
self.field = @"commission";
self.direction = @"desc";
}
break;
default:
break;
}
[self resetReloadData];
}
//排序
- (void)leftSortAction:(NSInteger)row {
switch (row) {
case 0:
{
self.field = @"commission";
self.direction = @"desc";
}
break;
case 1://价格 高-低
{
self.field = @"consumer create time";
NSDateFormatter *f = [[NSDateFormatter alloc] init];
[f setDateFormat:@"yyyy-MM-dd"];
NSString *dateStr = [f stringFromDate:[NSDate date]];
NSString *appendStr = [dateStr stringByAppendingString:@" 00:00:00"];
self.direction = appendStr;
}
break;
case 2://价格 低-高
{
self.field = @" spec price";
self.direction = @"asc";
}
break;
default:
break;
}
[self resetReloadData];
}
//改变排序条件之后重新请求数据
- (void)resetReloadData {
[self.arrCellData removeAllObjects];
[self setUpData];
}
- (void)setUptableView {
self.tableView = [UITableView plainTableViewWithTarget:self cellNibName:@"CustomerTableViewCell" cellId:kCellId];
......@@ -64,18 +198,27 @@
#pragma mark =========== tableview delegate ===========
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return 10;
return self.arrCellData.count;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
CustomerTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellId forIndexPath:indexPath];
[cell cellwithModel:self.arrCellData[indexPath.row]];
return cell;
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return kAutoValue(110);
return 110;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[tableView deselectRowAtIndexPath:indexPath animated:YES];
CustomerViewController *customerVC = [[CustomerViewController alloc] init];
customerVC.isShowNavigationBar = NO;
[self.navigationController pushViewController:customerVC animated:YES];
}
#pragma mark =========== searchbar delegate ===========
......
//
// CustomerViewController.h
// ALand
//
// Created by Z on 16/4/28.
// Copyright © 2016年 Z. All rights reserved.
//
#import "IBTUIViewController.h"
@interface CustomerViewController : IBTUIViewController
@end
//
// CustomerViewController.m
// ALand
//
// Created by Z on 16/4/28.
// Copyright © 2016年 Z. All rights reserved.
//
#import "CustomerViewController.h"
#import "CustomerTopView.h"
@interface CustomerViewController ()
@property (nonatomic, strong) CustomerTopView *topView;
@end
@implementation CustomerViewController
- (void)viewDidLoad {
[super viewDidLoad];
[self setUpTopView];
// Do any additional setup after loading the view from its nib.
}
- (void)setUpTopView{
self.topView = [CustomerTopView viewWithNibName:@"CustomerTopView"];
self.topView.frame = CGRectMake(0, 0, kWidth, 291);
[self.view addSubview:self.topView];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end
......@@ -18,6 +18,12 @@
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
}
- (IBAction)invitePartner:(id)sender {
NSString *urlStr = [NSString stringWithFormat:@"%@ShopUser/gpregister/invitationCode/%@.html", [UserInfo shareInstance].webShopBaseUrl, [UserInfo shareInstance].invitationCode];
[[ShareInstance shareInstace] showWithTitle:@"Aland" content:@"大伙加入,共同致富!" url:urlStr image:[UIImage imageNamed:@"Camera"]];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
......
......@@ -32,6 +32,9 @@
<exclude reference="L0k-pB-2Td"/>
</mask>
</variation>
<connections>
<action selector="invitePartner:" destination="-1" eventType="touchUpInside" id="ga3-Mi-vZP"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
......
......@@ -15,6 +15,8 @@
@interface MyTeamViewController ()<UICollectionViewDelegate, UICollectionViewDataSource>
@property (nonatomic, strong) UICollectionView *collectionView;
@property (nonatomic, strong) NSMutableArray *arrData;
@property (nonatomic, strong) MyteamTopView *topView;
@end
@implementation MyTeamViewController
......@@ -24,6 +26,7 @@
self.arrData = [NSMutableArray array];
self.navigationItem.title = @"我的团队";
[self setUpCollectionView];
[self setUpTotalData];
[self setUpData];
// Do any additional setup after loading the view.
}
......@@ -33,7 +36,7 @@
UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
layout.minimumInteritemSpacing = 0;
layout.minimumLineSpacing = 1;
layout.itemSize = CGSizeMake(kWidth / 3, kWidth * 2 / 3);
layout.itemSize = CGSizeMake(kWidth / 3, kAutoValue(200));
self.collectionView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, 0, kWidth, kHeight - 64) collectionViewLayout:layout];
self.collectionView.contentInset = UIEdgeInsetsMake(140, 0, 0, 0);
self.collectionView.backgroundColor = kBacroundColor;
......@@ -45,19 +48,34 @@
[self setUpTopView];
}
- (void)setUpTotalData {
WS(weakSelf)
[[HTTPCilent shareCilent] GET:[NSString stringWithFormat:@"reseller/team/getTeamInfo/%@", [UserInfo shareInstance].uuid] parameters:nil success:^(NSURLSessionDataTask *task, id responseObject) {
NSNumber *teamNums = responseObject[@"memberCount"];
NSNumber *bonus = responseObject[@"commissionTotal"];
[weakSelf.topView setTeamNums:teamNums bonus:bonus];
} failure:^(NSURLSessionDataTask *task, NSError *error) {
}];
}
- (void)setUpData {
NSDictionary *params = @{@"defintion" : @{@"conditions" : @[@{@"operation" : @"reseller uuid equals",
@"parameters" : @[[UserInfo shareInstance].uuid]},
@{@"operation" : @"domain equals",
@"parameters" : @[[UserInfo shareInstance].domain]}],
@"orders" : @[@{@"direction" : @"desc",
@"field" : @""}],
@"page" : @0,
@"pageSize" : @999,
@"probePages" : @0},
@"fetchParts" : [NSNull null]};
@"parameters" : @[[UserInfo shareInstance].uuid]},
@{@"operation" : @"domain equals",
@"parameters" : @[[UserInfo shareInstance].domain]}],
@"orders" : @[@{@"direction" : @"desc",
@"field" : @""}],
@"page" : @0,
@"pageSize" : @999,
@"probePages" : @0},
@"fetchParts" : [NSNull null]};
WS(weakSelf)
[[HTTPCilent shareCilent] POST:@"reseller/team/query" parameters:params success:^(NSURLSessionDataTask *task, id responseObject) {
......@@ -78,6 +96,7 @@
- (void)setUpTopView {
MyteamTopView *topView = [MyteamTopView viewWithNibName:@"MyTeamTopView"];
self.topView = topView;
topView.frame = CGRectMake(0, -140 + 20, kWidth, 100);
[self.collectionView addSubview:topView];
}
......
......@@ -19,8 +19,11 @@
@property (nonatomic, strong) SelectPhotoView *photoView;
@property (nonatomic, strong) CoverShadowView *shadowView;
@property (nonatomic, strong) JavenShopModel *shopModel;
@property (weak, nonatomic) IBOutlet UIButton *buttonBac;
@property (weak, nonatomic) IBOutlet UILabel *labelName;
@property (weak, nonatomic) IBOutlet UILabel *labelDescription;
@property (nonatomic, copy) NSString *urlStr;
@end
......@@ -28,6 +31,9 @@
- (void)viewDidLoad {
[super viewDidLoad];
self.buttonBac.imageView.contentMode = UIViewContentModeScaleAspectFit;
UserInfo *userInfo = [UserInfo shareInstance];
self.urlStr = [NSString stringWithFormat:@"%@Wap/index_shop/shop_id/%@.html", userInfo.webShopBaseUrl, userInfo.shop.uuid];
// Do any additional setup after loading the view from its nib.
}
......@@ -138,14 +144,14 @@
}
- (IBAction)actionShare:(id)sender {
[[ShareInstance shareInstace] showWithTitle:@"" content:@"" url:@""];
[[ShareInstance shareInstace] showWithTitle:@"Aland" content:@"快来看看我的小店吧! " url:self.urlStr image:[UIImage imageNamed:@"btn_share_shop"]];
}
- (IBAction)QRCodeAction:(id)sender {
StoreQRCodeViewController *QRCodeVC = [[StoreQRCodeViewController alloc] initWithNibName:@"StoreQRCodeViewController" bundle:nil];
QRCodeVC.urlStr = self.urlStr;
[self.navigationController pushViewController:QRCodeVC animated:YES];
}
......
......@@ -9,6 +9,7 @@
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="StoreManagermentViewController">
<connections>
<outlet property="buttonBac" destination="Iih-6D-NVq" id="Qaj-ot-Ynu"/>
<outlet property="labelDescription" destination="asy-i8-hFm" id="Zdn-05-Att"/>
<outlet property="labelName" destination="R3l-SJ-mVe" id="N6s-z3-sA1"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
......@@ -76,10 +77,10 @@
</variation>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Iih-6D-NVq">
<rect key="frame" x="12" y="20" width="12" height="40"/>
<rect key="frame" x="12" y="20" width="10" height="40"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="7JS-ak-NAa"/>
<constraint firstAttribute="width" constant="12" id="CPa-fC-cp8"/>
<constraint firstAttribute="width" constant="10" id="CPa-fC-cp8"/>
</constraints>
<state key="normal" image="bac"/>
<connections>
......
......@@ -9,5 +9,6 @@
#import "IBTUIViewController.h"
@interface StoreQRCodeViewController : IBTUIViewController
@property (nonatomic, copy) NSString *urlStr;
@end
......@@ -10,6 +10,7 @@
#import "UIImage+QRCode.h"
@interface StoreQRCodeViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *imageViewQRCode;
@property (weak, nonatomic) IBOutlet UIButton *buttonSave;
@end
......@@ -18,7 +19,7 @@
- (void)viewDidLoad {
[super viewDidLoad];
UIImage *qrcode = [UIImage createNonInterpolatedUIImageFormCIImage:[UIImage createQRForString:@"http://list.jd.hk/list.html?cat=1319%2C1527%2C1556&gjz=0&go=0"] withSize:250.0f];
UIImage *qrcode = [UIImage createNonInterpolatedUIImageFormCIImage:[UIImage createQRForString:self.urlStr] withSize:250.0f];
UIImage *customQrcode = [UIImage imageBlackToTransparent:qrcode withRed:60.0f andGreen:74.0f andBlue:89.0f];
self.imageViewQRCode.image = customQrcode;
// set shadow
......@@ -33,26 +34,41 @@
[super viewWillAppear:animated];
[self.navigationController setNavigationBarHidden:NO animated:YES];
}
#pragma mark =========== actions ===========
//保存到相册
- (IBAction)actionSafeToAlbum:(id)sender {
UIImageWriteToSavedPhotosAlbum( self.imageViewQRCode.image, self, @selector(image:didFinishSavingWithError:contextInfo:) , nil ) ;
self.buttonSave.userInteractionEnabled = NO; //防止多次点击
UIImageWriteToSavedPhotosAlbum( self.imageViewQRCode.image, self, @selector(image:didFinishSavingWithError:contextInfo:) , nil ) ;
}
//分享
- (IBAction)actionShare:(id)sender {
[[ShareInstance shareInstace] showWithTitle:@"Aland" content:@"快来看看我的小店吧! " url:self.urlStr image:[UIImage imageNamed:@"btn_share_shop"]];
}
- (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error
contextInfo:(void *)contextInfo
{
// Was there an error?
if (error != NULL)
{
// Show error message…
WS(weakSelf);
[MBProgressHUD Javen_showError:@"保存失败!" onView:self.view delay:0.4 complete:^{
weakSelf.buttonSave.userInteractionEnabled = YES;
}];
}
else // No errors
{
[MBProgressHUD Javen_showSuccess:@"保存成功!" onView:self.view delay:0.4 complete:nil];
WS(weakSelf)
[MBProgressHUD Javen_showSuccess:@"保存成功!" onView:self.view delay:0.4 complete:^{
weakSelf.buttonSave.userInteractionEnabled = YES;
}];
// Show message image successfully saved
}
}
......
......@@ -7,6 +7,7 @@
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="StoreQRCodeViewController">
<connections>
<outlet property="buttonSave" destination="ViK-KX-ySY" id="i2F-nS-h87"/>
<outlet property="imageViewQRCode" destination="bLf-3W-zks" id="Pe9-9O-ccv"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
......@@ -16,24 +17,24 @@
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="RFH-hd-LUV">
<view contentMode="scaleToFill" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="RFH-hd-LUV">
<rect key="frame" x="0.0" y="0.0" width="375" height="349"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="erweima_结果" translatesAutoresizingMaskIntoConstraints="NO" id="bLf-3W-zks">
<rect key="frame" x="67" y="0.0" width="241" height="349"/>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="erweima_结果" translatesAutoresizingMaskIntoConstraints="NO" id="bLf-3W-zks">
<rect key="frame" x="50" y="50" width="275" height="249"/>
</imageView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="bLf-3W-zks" firstAttribute="top" secondItem="RFH-hd-LUV" secondAttribute="top" id="FAS-oh-mxh"/>
<constraint firstAttribute="trailing" secondItem="bLf-3W-zks" secondAttribute="trailing" constant="67" id="QLR-Uf-j7Q"/>
<constraint firstAttribute="height" constant="349" id="WbD-h8-Yh2"/>
<constraint firstItem="bLf-3W-zks" firstAttribute="leading" secondItem="RFH-hd-LUV" secondAttribute="leading" constant="67" id="cZa-Uc-k0N"/>
<constraint firstAttribute="bottom" secondItem="bLf-3W-zks" secondAttribute="bottom" id="myM-YP-fkq"/>
<constraint firstItem="bLf-3W-zks" firstAttribute="top" secondItem="RFH-hd-LUV" secondAttribute="top" constant="50" id="FAS-oh-mxh"/>
<constraint firstAttribute="trailing" secondItem="bLf-3W-zks" secondAttribute="trailing" constant="50" id="QLR-Uf-j7Q"/>
<constraint firstAttribute="height" relation="lessThanOrEqual" constant="349" id="WbD-h8-Yh2"/>
<constraint firstItem="bLf-3W-zks" firstAttribute="leading" secondItem="RFH-hd-LUV" secondAttribute="leading" constant="50" id="cZa-Uc-k0N"/>
<constraint firstAttribute="bottom" secondItem="bLf-3W-zks" secondAttribute="bottom" constant="50" id="myM-YP-fkq"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ViK-KX-ySY">
<rect key="frame" x="32" y="429" width="311" height="44"/>
<rect key="frame" x="32" y="446" width="311" height="44"/>
<constraints>
<constraint firstAttribute="height" constant="44" id="ANx-UQ-dVE"/>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="44" id="eiq-IS-QP5"/>
......@@ -53,7 +54,7 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="x2U-B2-ts9">
<rect key="frame" x="32" y="506" width="311" height="44"/>
<rect key="frame" x="32" y="523" width="311" height="44"/>
<constraints>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="44" id="7VW-Yx-INi"/>
<constraint firstAttribute="height" constant="44" id="CNC-hG-yQj"/>
......@@ -80,16 +81,17 @@
<constraints>
<constraint firstItem="RFH-hd-LUV" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="1wK-iV-EeW"/>
<constraint firstItem="x2U-B2-ts9" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="32" id="3YA-UD-xaT"/>
<constraint firstItem="ViK-KX-ySY" firstAttribute="top" secondItem="RFH-hd-LUV" secondAttribute="bottom" constant="80" id="9Gq-7S-kA8"/>
<constraint firstAttribute="trailing" secondItem="x2U-B2-ts9" secondAttribute="trailing" constant="32" id="D41-F6-h4Z"/>
<constraint firstAttribute="bottom" secondItem="x2U-B2-ts9" secondAttribute="bottom" constant="100" id="GMU-tK-lNb"/>
<constraint firstItem="RFH-hd-LUV" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="MIA-sU-jn5"/>
<constraint firstItem="ViK-KX-ySY" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="32" id="WS0-mD-3Ht"/>
<constraint firstAttribute="trailing" secondItem="RFH-hd-LUV" secondAttribute="trailing" id="YtN-QY-ief"/>
<constraint firstItem="ViK-KX-ySY" firstAttribute="top" relation="greaterThanOrEqual" secondItem="RFH-hd-LUV" secondAttribute="bottom" constant="10" id="hLf-P3-L8E"/>
<constraint firstItem="x2U-B2-ts9" firstAttribute="top" secondItem="ViK-KX-ySY" secondAttribute="bottom" constant="33" id="qvg-XY-VxV"/>
<constraint firstAttribute="trailing" secondItem="ViK-KX-ySY" secondAttribute="trailing" constant="32" id="u1j-6W-nJr"/>
</constraints>
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina47"/>
<point key="canvasLocation" x="286.5" y="386.5"/>
<point key="canvasLocation" x="68.5" y="460.5"/>
</view>
</objects>
<resources>
......
......@@ -44,20 +44,21 @@
//本地已有密码时登录
- (void)defaultLoginAction {
BaseViewController *baseVC = [[BaseViewController alloc] init];
baseVC.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentViewController:baseVC animated:YES completion:nil];
// BaseViewController *baseVC = [[BaseViewController alloc] init];
// baseVC.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
// [self presentViewController:baseVC animated:YES completion:nil];
if ([[NSUserDefaults standardUserDefaults] objectForKey:@"passWord"]) {
NSDictionary *paramers = @{@"domain":kDomain,
NSDictionary *params = @{@"domain":kDomain,
@"loginName":[[NSUserDefaults standardUserDefaults] objectForKey:@"userName"] ,
@"password":[[NSUserDefaults standardUserDefaults] objectForKey:@"passWord"],
@"rememberMe":@"true"};
[MBProgressHUD showHUDAddedTo:self.view animated:YES];
WS(weakSelf)
[[HTTPCilent shareCilent] POST:@"app/resellerLogin" parameters:paramers success:^(NSURLSessionDataTask *task, id responseObject) {
[[HTTPCilent shareCilent] POST:@"app/resellerLogin" parameters:params success:^(NSURLSessionDataTask *task, id responseObject) {
[MBProgressHUD hideHUDForView:self.view animated:YES];
......@@ -67,11 +68,13 @@
[info UserInfoWithDictionary:responseObject[@"reseller"]];
info.webShopBaseUrl = responseObject[@"appConfig"][@"webShopBaseUrl"];
BaseViewController *baseVC = [[BaseViewController alloc] init];
baseVC.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[weakSelf presentViewController:baseVC animated:YES completion:nil];
}else{
[[NSUserDefaults standardUserDefaults] setObject:nil forKey:@"passWord"];
[MBProgressHUD Javen_showError:responseObject[@"message"] onView:weakSelf.view delay:2 complete:nil];
}
......
......@@ -8,6 +8,7 @@
#import "MineViewController.h"
#import "SettingViewController.h"
#import "MyAcountViewController.h"
@interface MineViewController ()
@end
......@@ -20,10 +21,16 @@
}
- (IBAction)myAcount:(id)sender {
CLog(@"myAcount");
MyAcountViewController *acountVC = [[MyAcountViewController alloc] init];
acountVC.isShowNavigationBar = NO;
[self.navigationController pushViewController:acountVC animated:YES];
}
- (IBAction)actionSetting:(id)sender {
SettingViewController *settingVC = [[SettingViewController alloc] init];
settingVC.isShowNavigationBar = YES;
settingVC.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:settingVC animated:YES];
}
......
//
// MyAcountViewController.h
// ALand
//
// Created by Z on 16/4/28.
// Copyright © 2016年 Z. All rights reserved.
//
#import "IBTUIViewController.h"
@interface MyAcountViewController : IBTUIViewController
@end
//
// MyAcountViewController.m
// ALand
//
// Created by Z on 16/4/28.
// Copyright © 2016年 Z. All rights reserved.
//
#import "MyAcountViewController.h"
@interface MyAcountViewController ()
@end
@implementation MyAcountViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="9532" systemVersion="15D21" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9530"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="MyAcountViewController">
<connections>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="gkv-u3-wLM" customClass="CustomerTopView">
<rect key="frame" x="0.0" y="0.0" width="375" height="186"/>
<subviews>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="xDU-3T-x7X">
<rect key="frame" x="0.0" y="0.0" width="375" height="186"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="GpK-ZS-xDF">
<rect key="frame" x="0.0" y="0.0" width="375" height="186"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="bac" translatesAutoresizingMaskIntoConstraints="NO" id="PPm-Va-bG0">
<rect key="frame" x="14" y="18" width="12" height="42"/>
<constraints>
<constraint firstAttribute="width" constant="12" id="eBg-aX-Qpp"/>
<constraint firstAttribute="height" constant="42" id="jER-xq-8ZB"/>
</constraints>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="qUL-pA-7p5">
<rect key="frame" x="0.0" y="0.0" width="46" height="70"/>
<constraints>
<constraint firstAttribute="height" constant="70" id="O7d-yA-W6S"/>
<constraint firstAttribute="width" constant="46" id="VgO-hY-7xa"/>
</constraints>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="账户" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mCL-jB-CAj">
<rect key="frame" x="168" y="27" width="40" height="24"/>
<fontDescription key="fontDescription" type="system" pointSize="20"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="v0z-xY-O0r">
<rect key="frame" x="320" y="21" width="40" height="36"/>
<fontDescription key="fontDescription" type="system" pointSize="20"/>
<state key="normal" title="帮助">
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</state>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="账户余额(元)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="uKL-7j-fA6">
<rect key="frame" x="14" y="78" width="126" height="22"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0.00" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mvG-Qa-pDy">
<rect key="frame" x="14" y="108" width="122" height="69"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="57"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="账单" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="aQ2-Ra-9g7">
<rect key="frame" x="320" y="77" width="40" height="24"/>
<fontDescription key="fontDescription" type="system" pointSize="20"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_bill" translatesAutoresizingMaskIntoConstraints="NO" id="egs-2O-iKB">
<rect key="frame" x="314" y="116" width="53" height="43"/>
<constraints>
<constraint firstAttribute="height" constant="43" id="MX8-di-oyd"/>
<constraint firstAttribute="width" constant="53" id="opN-wf-o4B"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" red="0.48627450979999998" green="0.76470588240000004" blue="0.1450980392" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="186" id="0BL-lQ-CjQ"/>
<constraint firstItem="v0z-xY-O0r" firstAttribute="centerY" secondItem="mCL-jB-CAj" secondAttribute="centerY" id="A9Q-oc-4Ia"/>
<constraint firstItem="qUL-pA-7p5" firstAttribute="leading" secondItem="GpK-ZS-xDF" secondAttribute="leading" id="DAN-ww-qBR"/>
<constraint firstItem="egs-2O-iKB" firstAttribute="top" secondItem="aQ2-Ra-9g7" secondAttribute="bottom" constant="15" id="F59-hq-a7v"/>
<constraint firstItem="uKL-7j-fA6" firstAttribute="leading" secondItem="GpK-ZS-xDF" secondAttribute="leading" constant="14" id="I4V-JL-QVI"/>
<constraint firstItem="PPm-Va-bG0" firstAttribute="top" secondItem="GpK-ZS-xDF" secondAttribute="top" constant="18" id="PHS-8g-KdE"/>
<constraint firstItem="qUL-pA-7p5" firstAttribute="top" secondItem="GpK-ZS-xDF" secondAttribute="top" id="QvF-5D-Wnt"/>
<constraint firstItem="mvG-Qa-pDy" firstAttribute="top" secondItem="uKL-7j-fA6" secondAttribute="bottom" constant="8" id="WUS-My-6ky"/>
<constraint firstItem="aQ2-Ra-9g7" firstAttribute="centerX" secondItem="v0z-xY-O0r" secondAttribute="centerX" id="XQc-Ey-H97"/>
<constraint firstItem="mCL-jB-CAj" firstAttribute="centerX" secondItem="GpK-ZS-xDF" secondAttribute="centerX" id="Z1L-Yg-zuw"/>
<constraint firstAttribute="trailing" secondItem="v0z-xY-O0r" secondAttribute="trailing" constant="15" id="cic-Ii-Dpg"/>
<constraint firstItem="aQ2-Ra-9g7" firstAttribute="centerY" secondItem="uKL-7j-fA6" secondAttribute="centerY" id="dSg-bE-4PY"/>
<constraint firstItem="uKL-7j-fA6" firstAttribute="top" secondItem="qUL-pA-7p5" secondAttribute="bottom" constant="8" id="kNH-sE-HeN"/>
<constraint firstItem="PPm-Va-bG0" firstAttribute="leading" secondItem="GpK-ZS-xDF" secondAttribute="leading" constant="14" id="rNk-l2-7oN"/>
<constraint firstItem="PPm-Va-bG0" firstAttribute="centerY" secondItem="mCL-jB-CAj" secondAttribute="centerY" id="soo-WA-VwC"/>
<constraint firstItem="egs-2O-iKB" firstAttribute="centerX" secondItem="aQ2-Ra-9g7" secondAttribute="centerX" id="wix-3K-EMf"/>
<constraint firstItem="mvG-Qa-pDy" firstAttribute="leading" secondItem="GpK-ZS-xDF" secondAttribute="leading" constant="14" id="xeD-2O-OCx"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" red="0.91271875000000002" green="0.91271875000000002" blue="0.91271875000000002" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="GpK-ZS-xDF" firstAttribute="leading" secondItem="xDU-3T-x7X" secondAttribute="leading" id="QR4-gJ-cL8"/>
<constraint firstAttribute="trailing" secondItem="GpK-ZS-xDF" secondAttribute="trailing" id="Xac-RW-Wyt"/>
<constraint firstItem="GpK-ZS-xDF" firstAttribute="top" secondItem="xDU-3T-x7X" secondAttribute="top" id="aJB-ha-lvX"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="xDU-3T-x7X" firstAttribute="leading" secondItem="gkv-u3-wLM" secondAttribute="leading" id="B1n-Kr-6fm"/>
<constraint firstAttribute="trailing" secondItem="xDU-3T-x7X" secondAttribute="trailing" id="JFo-Xa-U7n"/>
<constraint firstItem="xDU-3T-x7X" firstAttribute="top" secondItem="gkv-u3-wLM" secondAttribute="top" id="V3n-51-Dbk"/>
<constraint firstAttribute="height" constant="186" id="lLL-7n-9ko"/>
<constraint firstAttribute="bottom" secondItem="xDU-3T-x7X" secondAttribute="bottom" id="tJ1-a2-TNz"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="累计收入(元)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xQn-eZ-aIb">
<rect key="frame" x="17" y="206" width="102" height="22"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0.00" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="3an-w1-jZg">
<rect key="frame" x="17" y="228" width="100" height="58"/>
<fontDescription key="fontDescription" type="system" pointSize="48"/>
<color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="dx8-xo-qld">
<rect key="frame" x="0.0" y="294" width="375" height="195"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="BED-54-Ug2">
<rect key="frame" x="1" y="1" width="124" height="96"/>
<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="ood-f0-M59">
<rect key="frame" x="21" y="20" width="85" height="22"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="18"/>
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="0.00" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="pNx-QB-zi7">
<rect key="frame" x="36" y="52" width="55" height="32"/>
<fontDescription key="fontDescription" type="system" pointSize="26"/>
<color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.94901960780000005" green="0.94901960780000005" blue="0.94901960780000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="pNx-QB-zi7" firstAttribute="centerX" secondItem="BED-54-Ug2" secondAttribute="centerX" id="LAl-lV-RRJ"/>
<constraint firstAttribute="height" constant="96" id="bXe-Uo-QOJ"/>
<constraint firstItem="ood-f0-M59" firstAttribute="centerX" secondItem="BED-54-Ug2" secondAttribute="centerX" id="fuU-jA-xzt"/>
<constraint firstItem="pNx-QB-zi7" firstAttribute="top" secondItem="ood-f0-M59" secondAttribute="bottom" constant="10" id="kTv-rn-r8S"/>
<constraint firstItem="ood-f0-M59" firstAttribute="top" secondItem="BED-54-Ug2" secondAttribute="top" constant="20" id="qOW-w6-jxc"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="WQc-WT-07y">
<rect key="frame" x="126" y="1" width="123" height="96"/>
<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="RM0-K2-Byh">
<rect key="frame" x="21" y="20" width="85" height="22"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="18"/>
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="0.00" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="XdY-4D-m6u">
<rect key="frame" x="36" y="52" width="55" height="32"/>
<fontDescription key="fontDescription" type="system" pointSize="26"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.94901960780000005" green="0.94901960780000005" blue="0.94901960780000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="RM0-K2-Byh" firstAttribute="centerX" secondItem="WQc-WT-07y" secondAttribute="centerX" id="REb-tU-EnZ"/>
<constraint firstAttribute="height" constant="96" id="TUP-CX-aE1"/>
<constraint firstItem="XdY-4D-m6u" firstAttribute="top" secondItem="RM0-K2-Byh" secondAttribute="bottom" constant="10" id="jTa-5v-Npw"/>
<constraint firstItem="XdY-4D-m6u" firstAttribute="centerX" secondItem="WQc-WT-07y" secondAttribute="centerX" id="ouq-Wv-GgI"/>
<constraint firstItem="RM0-K2-Byh" firstAttribute="top" secondItem="WQc-WT-07y" secondAttribute="top" constant="20" id="yni-Pe-Mgj"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Jcu-Lg-bbO">
<rect key="frame" x="250" y="1" width="124" height="96"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="已提现(元)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QAe-SR-n4i">
<rect key="frame" x="20" y="20" width="85" height="22"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="18"/>
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="0.00" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="qei-dV-eu9">
<rect key="frame" x="36" y="52" width="55" height="32"/>
<fontDescription key="fontDescription" type="system" pointSize="26"/>
<color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.94901960780000005" green="0.94901960780000005" blue="0.94901960780000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="96" id="8ZQ-UI-jzU"/>
<constraint firstItem="qei-dV-eu9" firstAttribute="top" secondItem="QAe-SR-n4i" secondAttribute="bottom" constant="10" id="AID-jL-Glh"/>
<constraint firstItem="qei-dV-eu9" firstAttribute="centerX" secondItem="Jcu-Lg-bbO" secondAttribute="centerX" id="NIQ-hs-4BF"/>
<constraint firstItem="QAe-SR-n4i" firstAttribute="centerX" secondItem="Jcu-Lg-bbO" secondAttribute="centerX" id="Uaf-9i-C5Z"/>
<constraint firstItem="QAe-SR-n4i" firstAttribute="top" secondItem="Jcu-Lg-bbO" secondAttribute="top" constant="20" id="dcQ-FM-Giv"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="suN-kC-l9h">
<rect key="frame" x="1" y="98" width="124" height="96"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="自销收入(元)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="oQD-Zl-iyP">
<rect key="frame" x="10" y="20" width="103" height="22"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="18"/>
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="0.00" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="W2X-n7-lfz">
<rect key="frame" x="36" y="52" width="55" height="32"/>
<fontDescription key="fontDescription" type="system" pointSize="26"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.94901960780000005" green="0.94901960780000005" blue="0.94901960780000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="oQD-Zl-iyP" firstAttribute="top" secondItem="suN-kC-l9h" secondAttribute="top" constant="20" id="dMI-xW-sER"/>
<constraint firstItem="oQD-Zl-iyP" firstAttribute="centerX" secondItem="suN-kC-l9h" secondAttribute="centerX" id="ob6-Xx-4gZ"/>
<constraint firstItem="W2X-n7-lfz" firstAttribute="centerX" secondItem="suN-kC-l9h" secondAttribute="centerX" id="rz5-Gq-4s3"/>
<constraint firstItem="W2X-n7-lfz" firstAttribute="top" secondItem="oQD-Zl-iyP" secondAttribute="bottom" constant="10" id="vfh-DB-4Q1"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Qp9-8T-7dh">
<rect key="frame" x="126" y="98" width="123" height="96"/>
<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">
<rect key="frame" x="10" y="20" width="103" height="22"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="18"/>
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="0.00" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="raB-Fb-V7Z">
<rect key="frame" x="36" y="52" width="55" height="32"/>
<fontDescription key="fontDescription" type="system" pointSize="26"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.94901960780000005" green="0.94901960780000005" blue="0.94901960780000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="rgG-EF-dXc" firstAttribute="top" secondItem="Qp9-8T-7dh" secondAttribute="top" constant="20" id="TIZ-fT-LhW"/>
<constraint firstItem="raB-Fb-V7Z" firstAttribute="centerX" secondItem="Qp9-8T-7dh" secondAttribute="centerX" id="bLN-Ih-9SM"/>
<constraint firstItem="raB-Fb-V7Z" firstAttribute="top" secondItem="rgG-EF-dXc" secondAttribute="bottom" constant="10" id="roc-ds-yr7"/>
<constraint firstItem="rgG-EF-dXc" firstAttribute="centerX" secondItem="Qp9-8T-7dh" secondAttribute="centerX" id="ryF-Wp-tOn"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="3AT-uX-tJ0">
<rect key="frame" x="250" y="98" width="124" height="96"/>
<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="jZR-DN-sig">
<rect key="frame" x="106" y="20" width="0.0" height="0.0"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="18"/>
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<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="7Ci-YP-Pic">
<rect key="frame" x="91" y="52" width="0.0" height="0.0"/>
<fontDescription key="fontDescription" type="system" pointSize="26"/>
<color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.94901960780000005" green="0.94901960780000005" blue="0.94901960780000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="jZR-DN-sig" firstAttribute="centerX" secondItem="3AT-uX-tJ0" secondAttribute="centerX" id="7mo-Sf-gf2"/>
<constraint firstItem="7Ci-YP-Pic" firstAttribute="top" secondItem="jZR-DN-sig" secondAttribute="bottom" constant="10" id="8bx-bQ-ryc"/>
<constraint firstItem="jZR-DN-sig" firstAttribute="top" secondItem="3AT-uX-tJ0" secondAttribute="top" constant="20" id="GBj-eB-ypp"/>
<constraint firstItem="7Ci-YP-Pic" firstAttribute="centerX" secondItem="3AT-uX-tJ0" secondAttribute="centerX" id="GXQ-vO-Gx3"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" red="0.91271875000000002" green="0.91271875000000002" blue="0.91271875000000002" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="206" id="1sA-j0-DjE"/>
<constraint firstItem="Qp9-8T-7dh" firstAttribute="height" secondItem="WQc-WT-07y" secondAttribute="height" id="3SI-Tp-o1v"/>
<constraint firstAttribute="bottom" secondItem="Qp9-8T-7dh" secondAttribute="bottom" constant="1" id="7Nc-n9-XDo"/>
<constraint firstItem="WQc-WT-07y" firstAttribute="width" secondItem="BED-54-Ug2" secondAttribute="width" id="7bN-Jy-jfh"/>
<constraint firstItem="WQc-WT-07y" firstAttribute="top" secondItem="dx8-xo-qld" secondAttribute="top" constant="1" id="8Sk-I6-4ye"/>
<constraint firstItem="3AT-uX-tJ0" firstAttribute="top" secondItem="Jcu-Lg-bbO" secondAttribute="bottom" constant="1" id="8Ye-Op-Pah"/>
<constraint firstItem="Jcu-Lg-bbO" firstAttribute="top" secondItem="dx8-xo-qld" secondAttribute="top" constant="1" id="Aya-tG-DL8"/>
<constraint firstItem="3AT-uX-tJ0" firstAttribute="width" secondItem="Jcu-Lg-bbO" secondAttribute="width" id="GRO-Fz-kwZ"/>
<constraint firstItem="Jcu-Lg-bbO" firstAttribute="leading" secondItem="WQc-WT-07y" secondAttribute="trailing" constant="1" id="JUJ-28-xrv"/>
<constraint firstItem="WQc-WT-07y" firstAttribute="leading" secondItem="BED-54-Ug2" secondAttribute="trailing" constant="1" id="KzK-kK-jgZ"/>
<constraint firstItem="3AT-uX-tJ0" firstAttribute="leading" secondItem="Jcu-Lg-bbO" secondAttribute="leading" id="LU0-01-Pjv"/>
<constraint firstItem="BED-54-Ug2" firstAttribute="leading" secondItem="dx8-xo-qld" secondAttribute="leading" constant="1" id="MVa-bp-RSm"/>
<constraint firstItem="suN-kC-l9h" firstAttribute="width" secondItem="BED-54-Ug2" secondAttribute="width" id="Mjh-A7-OKW"/>
<constraint firstItem="Jcu-Lg-bbO" firstAttribute="width" secondItem="BED-54-Ug2" secondAttribute="width" id="X1u-Hu-lUb"/>
<constraint firstItem="Qp9-8T-7dh" firstAttribute="leading" secondItem="WQc-WT-07y" secondAttribute="leading" id="XMa-fd-I77"/>
<constraint firstItem="WQc-WT-07y" firstAttribute="leading" secondItem="BED-54-Ug2" secondAttribute="trailing" constant="1" id="f7l-27-Qkg"/>
<constraint firstItem="Jcu-Lg-bbO" firstAttribute="leading" secondItem="WQc-WT-07y" secondAttribute="trailing" constant="1" id="fIZ-Rt-grP"/>
<constraint firstItem="suN-kC-l9h" firstAttribute="leading" secondItem="BED-54-Ug2" secondAttribute="leading" id="gOR-Zx-pHm"/>
<constraint firstItem="suN-kC-l9h" firstAttribute="height" secondItem="BED-54-Ug2" secondAttribute="height" id="hKQ-pt-lpp"/>
<constraint firstItem="Qp9-8T-7dh" firstAttribute="top" secondItem="WQc-WT-07y" secondAttribute="bottom" constant="1" id="p4U-KB-EQZ"/>
<constraint firstItem="BED-54-Ug2" firstAttribute="top" secondItem="dx8-xo-qld" secondAttribute="top" constant="1" id="qFZ-BU-fNa"/>
<constraint firstItem="Qp9-8T-7dh" firstAttribute="width" secondItem="WQc-WT-07y" secondAttribute="width" id="tl0-al-OCz"/>
<constraint firstItem="suN-kC-l9h" firstAttribute="top" secondItem="BED-54-Ug2" secondAttribute="bottom" constant="1" id="wHb-Pd-XZ7"/>
<constraint firstItem="3AT-uX-tJ0" firstAttribute="height" secondItem="Jcu-Lg-bbO" secondAttribute="height" id="ziV-VM-B9O"/>
<constraint firstAttribute="trailing" secondItem="Jcu-Lg-bbO" secondAttribute="trailing" constant="1" id="zxm-ei-siD"/>
</constraints>
<variation key="default">
<mask key="constraints">
<exclude reference="1sA-j0-DjE"/>
</mask>
</variation>
</view>
</subviews>
<color key="backgroundColor" red="0.94901960780000005" green="0.94901960780000005" blue="0.94901960780000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="dx8-xo-qld" firstAttribute="top" secondItem="3an-w1-jZg" secondAttribute="bottom" constant="8" id="61d-NP-Bl7"/>
<constraint firstAttribute="trailing" secondItem="gkv-u3-wLM" secondAttribute="trailing" id="9PU-4C-AfD"/>
<constraint firstItem="dx8-xo-qld" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="BoC-0l-Dgf"/>
<constraint firstItem="xQn-eZ-aIb" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="17" id="Fx9-Wv-wxK"/>
<constraint firstItem="gkv-u3-wLM" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="GZG-6b-M9l"/>
<constraint firstItem="gkv-u3-wLM" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="NeG-pv-Ri4"/>
<constraint firstItem="gkv-u3-wLM" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="OBb-Sn-S1H"/>
<constraint firstItem="gkv-u3-wLM" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="QJ1-Cg-PwH"/>
<constraint firstItem="3an-w1-jZg" firstAttribute="top" secondItem="xQn-eZ-aIb" secondAttribute="bottom" id="acS-Ol-Neu"/>
<constraint firstItem="gkv-u3-wLM" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="cLf-3K-wkf"/>
<constraint firstItem="gkv-u3-wLM" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="d1W-It-ukO"/>
<constraint firstItem="3an-w1-jZg" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="17" id="fbg-M6-h1E"/>
<constraint firstAttribute="trailing" secondItem="gkv-u3-wLM" secondAttribute="trailing" id="gQ4-NZ-1Nm"/>
<constraint firstItem="xQn-eZ-aIb" firstAttribute="top" secondItem="gkv-u3-wLM" secondAttribute="bottom" constant="20" id="lUh-ei-VKh"/>
<constraint firstAttribute="trailing" secondItem="dx8-xo-qld" secondAttribute="trailing" id="ofd-ee-mwr"/>
<constraint firstAttribute="trailing" secondItem="gkv-u3-wLM" secondAttribute="trailing" id="vWv-V0-6fX"/>
</constraints>
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina47"/>
<variation key="default">
<mask key="constraints">
<exclude reference="NeG-pv-Ri4"/>
<exclude reference="OBb-Sn-S1H"/>
<exclude reference="QJ1-Cg-PwH"/>
<exclude reference="d1W-It-ukO"/>
<exclude reference="gQ4-NZ-1Nm"/>
<exclude reference="vWv-V0-6fX"/>
</mask>
</variation>
</view>
</objects>
<resources>
<image name="bac" width="13" height="24"/>
<image name="icon_bill" width="54" height="57"/>
</resources>
</document>
......@@ -9,6 +9,9 @@
#import "SettingViewController.h"
@interface SettingViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *imageViewIcon;
@property (weak, nonatomic) IBOutlet UILabel *signature;//个性签名
@property (weak, nonatomic) IBOutlet UILabel *phoneNumber;
@end
......@@ -16,6 +19,9 @@
- (void)viewDidLoad {
[super viewDidLoad];
NSString *cutPhoneNumber = [[UserInfo shareInstance].mobilephone substringWithRange:NSMakeRange(7, 4)];
self.phoneNumber.text = [NSString stringWithFormat:@"手机号码(%@)", cutPhoneNumber];
self.title = @"设置";
// Do any additional setup after loading the view from its nib.
}
- (IBAction)loginOut:(id)sender {
......
......@@ -7,6 +7,9 @@
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="SettingViewController">
<connections>
<outlet property="imageViewIcon" destination="WbV-1G-0jI" id="NFQ-0G-BGi"/>
<outlet property="phoneNumber" destination="D9x-be-TSN" id="ilu-jP-QsF"/>
<outlet property="signature" destination="Uld-uw-fRn" id="XNZ-Fz-hkZ"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
......@@ -15,13 +18,367 @@
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="vje-Mg-8RA">
<rect key="frame" x="0.0" y="8" width="375" height="90"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="个人头像" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5VU-rI-onj">
<rect key="frame" x="16" y="34" width="72" height="22"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="rightIcon" translatesAutoresizingMaskIntoConstraints="NO" id="Tr7-KF-NsW">
<rect key="frame" x="357" y="30" width="10" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="10" id="21S-TV-ZBG"/>
</constraints>
</imageView>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="default_commodity_placeholder" translatesAutoresizingMaskIntoConstraints="NO" id="WbV-1G-0jI">
<rect key="frame" x="253" y="7" width="86" height="76"/>
<constraints>
<constraint firstAttribute="width" constant="86" id="LrU-vZ-X4N"/>
<constraint firstAttribute="height" constant="76" id="nTG-Uc-yoC"/>
</constraints>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="WE1-3B-ZBD">
<rect key="frame" x="224" y="0.0" width="151" height="90"/>
<constraints>
<constraint firstAttribute="width" constant="151" id="iW5-sJ-NEr"/>
</constraints>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="Tr7-KF-NsW" firstAttribute="leading" secondItem="WbV-1G-0jI" secondAttribute="trailing" constant="18" id="A5S-uB-m66"/>
<constraint firstItem="WE1-3B-ZBD" firstAttribute="top" secondItem="vje-Mg-8RA" secondAttribute="top" id="Hhf-po-cwf"/>
<constraint firstAttribute="trailing" secondItem="WE1-3B-ZBD" secondAttribute="trailing" id="Hxc-7u-Fv8"/>
<constraint firstItem="5VU-rI-onj" firstAttribute="leading" secondItem="vje-Mg-8RA" secondAttribute="leading" constant="16" id="LOc-bc-C0Y"/>
<constraint firstAttribute="trailing" secondItem="Tr7-KF-NsW" secondAttribute="trailing" constant="8" id="O57-wN-dtG"/>
<constraint firstAttribute="height" constant="90" id="UWC-Gw-qFQ"/>
<constraint firstItem="WbV-1G-0jI" firstAttribute="centerY" secondItem="vje-Mg-8RA" secondAttribute="centerY" id="eQJ-8y-oPP"/>
<constraint firstItem="Tr7-KF-NsW" firstAttribute="centerY" secondItem="vje-Mg-8RA" secondAttribute="centerY" id="jLk-UC-vL0"/>
<constraint firstItem="5VU-rI-onj" firstAttribute="centerY" secondItem="vje-Mg-8RA" secondAttribute="centerY" id="qMv-ru-8s4"/>
<constraint firstAttribute="bottom" secondItem="WE1-3B-ZBD" secondAttribute="bottom" id="smF-rM-dJ3"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Tgc-3e-TQr" userLabel="个性签名">
<rect key="frame" x="0.0" y="98" width="375" height="50"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="rightIcon" translatesAutoresizingMaskIntoConstraints="NO" id="q4e-UX-9Iq">
<rect key="frame" x="357" y="10" width="10" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="10" id="gS6-OO-7Wj"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="个性签名" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="l5j-Dw-2FV">
<rect key="frame" x="16" y="14" width="72" height="22"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="生活如此多娇" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Uld-uw-fRn">
<rect key="frame" x="247" y="15" width="102" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="zMT-Om-CTY">
<rect key="frame" x="0.0" y="0.0" width="375" height="50"/>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="q4e-UX-9Iq" firstAttribute="leading" secondItem="Uld-uw-fRn" secondAttribute="trailing" constant="8" id="DvK-lV-0z2"/>
<constraint firstItem="zMT-Om-CTY" firstAttribute="top" secondItem="Tgc-3e-TQr" secondAttribute="top" id="Gr8-rJ-i8H"/>
<constraint firstItem="q4e-UX-9Iq" firstAttribute="centerY" secondItem="Tgc-3e-TQr" secondAttribute="centerY" id="HmK-5I-g2j"/>
<constraint firstAttribute="trailing" secondItem="q4e-UX-9Iq" secondAttribute="trailing" constant="8" id="MCA-pW-DXl"/>
<constraint firstAttribute="trailing" secondItem="zMT-Om-CTY" secondAttribute="trailing" id="QGl-gg-6O1"/>
<constraint firstAttribute="bottom" secondItem="zMT-Om-CTY" secondAttribute="bottom" id="VGI-bP-8i0"/>
<constraint firstItem="l5j-Dw-2FV" firstAttribute="leading" secondItem="Tgc-3e-TQr" secondAttribute="leading" constant="16" id="b2B-wt-V2a"/>
<constraint firstAttribute="height" constant="50" id="feu-wj-Fnz"/>
<constraint firstItem="l5j-Dw-2FV" firstAttribute="centerY" secondItem="Tgc-3e-TQr" secondAttribute="centerY" id="ipK-LL-juy"/>
<constraint firstItem="zMT-Om-CTY" firstAttribute="leading" secondItem="Tgc-3e-TQr" secondAttribute="leading" id="jXC-gt-omb"/>
<constraint firstItem="Uld-uw-fRn" firstAttribute="centerY" secondItem="Tgc-3e-TQr" secondAttribute="centerY" id="kyk-Jr-dTb"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="g2a-cQ-j4f" userLabel="消息设置">
<rect key="frame" x="0.0" y="156" width="375" height="50"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="rightIcon" translatesAutoresizingMaskIntoConstraints="NO" id="ODV-9G-WcV">
<rect key="frame" x="357" y="10" width="10" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="10" id="CWA-MV-hPn"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="消息设置" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="H1a-8W-X7L">
<rect key="frame" x="16" y="14" width="72" height="22"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="kev-nC-K8e">
<rect key="frame" x="349" y="25" width="0.0" height="0.0"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Pn4-U5-Z7h">
<rect key="frame" x="0.0" y="0.0" width="375" height="50"/>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="Pn4-U5-Z7h" firstAttribute="top" secondItem="g2a-cQ-j4f" secondAttribute="top" id="1yq-yt-aoB"/>
<constraint firstAttribute="trailing" secondItem="ODV-9G-WcV" secondAttribute="trailing" constant="8" id="39J-2Q-gq7"/>
<constraint firstItem="H1a-8W-X7L" firstAttribute="centerY" secondItem="g2a-cQ-j4f" secondAttribute="centerY" id="4Bj-Tj-Ed2"/>
<constraint firstItem="Pn4-U5-Z7h" firstAttribute="leading" secondItem="g2a-cQ-j4f" secondAttribute="leading" id="8jP-K5-LSP"/>
<constraint firstItem="ODV-9G-WcV" firstAttribute="leading" secondItem="kev-nC-K8e" secondAttribute="trailing" constant="8" id="P8c-s0-QLO"/>
<constraint firstItem="H1a-8W-X7L" firstAttribute="leading" secondItem="g2a-cQ-j4f" secondAttribute="leading" constant="16" id="Qe0-08-8bD"/>
<constraint firstItem="kev-nC-K8e" firstAttribute="centerY" secondItem="g2a-cQ-j4f" secondAttribute="centerY" id="RbB-VH-ZQp"/>
<constraint firstAttribute="trailing" secondItem="Pn4-U5-Z7h" secondAttribute="trailing" id="Wmv-L1-ypT"/>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="60" id="YU8-Qv-Ym0"/>
<constraint firstAttribute="height" constant="50" id="ZHQ-bv-Q8t"/>
<constraint firstItem="ODV-9G-WcV" firstAttribute="centerY" secondItem="g2a-cQ-j4f" secondAttribute="centerY" id="aAf-UM-DW6"/>
<constraint firstAttribute="bottom" secondItem="Pn4-U5-Z7h" secondAttribute="bottom" id="niw-UQ-dae"/>
</constraints>
<variation key="default">
<mask key="constraints">
<exclude reference="YU8-Qv-Ym0"/>
</mask>
</variation>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="7De-WQ-TBD" userLabel="登录密码">
<rect key="frame" x="0.0" y="214" width="375" height="50"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="rightIcon" translatesAutoresizingMaskIntoConstraints="NO" id="wt1-KT-vOJ">
<rect key="frame" x="357" y="10" width="10" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="10" id="q7S-WT-utc"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="登录密码" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7y3-yC-H1c">
<rect key="frame" x="42" y="14" width="72" height="22"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="修改" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="wtQ-UU-0Dw">
<rect key="frame" x="315" y="15" width="34" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ATB-BS-Cnx">
<rect key="frame" x="0.0" y="0.0" width="375" height="50"/>
</button>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="select_tick" translatesAutoresizingMaskIntoConstraints="NO" id="3sx-Mg-ZcF">
<rect key="frame" x="8" y="12" width="26" height="26"/>
<constraints>
<constraint firstAttribute="width" constant="26" id="2yx-xR-9KU"/>
<constraint firstAttribute="height" constant="26" id="gtE-gZ-evv"/>
</constraints>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="T89-Dx-pOt">
<rect key="frame" x="16" y="49" width="343" height="1"/>
<color key="backgroundColor" red="0.91271875000000002" green="0.91271875000000002" blue="0.91271875000000002" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="ffs-2m-pdn"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="wtQ-UU-0Dw" firstAttribute="centerY" secondItem="7De-WQ-TBD" secondAttribute="centerY" id="0eq-x7-TDe"/>
<constraint firstItem="T89-Dx-pOt" firstAttribute="leading" secondItem="7De-WQ-TBD" secondAttribute="leading" constant="16" id="5zL-Jt-x1Q"/>
<constraint firstAttribute="trailing" secondItem="T89-Dx-pOt" secondAttribute="trailing" constant="16" id="638-0t-roO"/>
<constraint firstItem="ATB-BS-Cnx" firstAttribute="top" secondItem="7De-WQ-TBD" secondAttribute="top" id="9BA-jR-aUB"/>
<constraint firstAttribute="bottom" secondItem="ATB-BS-Cnx" secondAttribute="bottom" id="9cG-6x-Yso"/>
<constraint firstAttribute="height" constant="50" id="Bdo-rk-ogg"/>
<constraint firstItem="wt1-KT-vOJ" firstAttribute="centerY" secondItem="7De-WQ-TBD" secondAttribute="centerY" id="Oyq-BG-lOb"/>
<constraint firstItem="wt1-KT-vOJ" firstAttribute="leading" secondItem="wtQ-UU-0Dw" secondAttribute="trailing" constant="8" id="PuR-2T-tVU"/>
<constraint firstAttribute="trailing" secondItem="ATB-BS-Cnx" secondAttribute="trailing" id="RhL-Am-K5D"/>
<constraint firstAttribute="bottom" secondItem="T89-Dx-pOt" secondAttribute="bottom" id="V0C-hz-ypy"/>
<constraint firstItem="3sx-Mg-ZcF" firstAttribute="centerY" secondItem="7De-WQ-TBD" secondAttribute="centerY" id="dxy-ge-nqe"/>
<constraint firstItem="ATB-BS-Cnx" firstAttribute="leading" secondItem="7De-WQ-TBD" secondAttribute="leading" id="hKX-bY-Yff"/>
<constraint firstItem="3sx-Mg-ZcF" firstAttribute="leading" secondItem="7De-WQ-TBD" secondAttribute="leading" constant="8" id="lB0-LB-kzw"/>
<constraint firstAttribute="trailing" secondItem="wt1-KT-vOJ" secondAttribute="trailing" constant="8" id="psp-aJ-qJI"/>
<constraint firstItem="7y3-yC-H1c" firstAttribute="centerY" secondItem="7De-WQ-TBD" secondAttribute="centerY" id="yEF-fF-Fa9"/>
<constraint firstItem="7y3-yC-H1c" firstAttribute="leading" secondItem="3sx-Mg-ZcF" secondAttribute="trailing" constant="8" id="zwh-69-hah"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="wea-du-rfh" userLabel="手机号码">
<rect key="frame" x="0.0" y="264" width="375" height="50"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="rightIcon" translatesAutoresizingMaskIntoConstraints="NO" id="i3E-Tf-yvZ">
<rect key="frame" x="357" y="10" width="10" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="10" id="NwH-25-OHc"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="手机号码(0860)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="D9x-be-TSN">
<rect key="frame" x="42" y="14" width="152" height="22"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="换绑" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Rvv-Y7-dFZ">
<rect key="frame" x="315" y="15" width="34" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="HS3-Wo-i5c">
<rect key="frame" x="0.0" y="0.0" width="375" height="50"/>
</button>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="select_tick" translatesAutoresizingMaskIntoConstraints="NO" id="zgu-2b-dUH">
<rect key="frame" x="8" y="12" width="26" height="26"/>
<constraints>
<constraint firstAttribute="height" constant="26" id="8eX-Q1-BkR"/>
<constraint firstAttribute="width" constant="26" id="SRs-VJ-Zta"/>
</constraints>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="soF-Mv-OaY">
<rect key="frame" x="16" y="49" width="343" height="1"/>
<color key="backgroundColor" red="0.91271875000000002" green="0.91271875000000002" blue="0.91271875000000002" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="Vgd-KX-mFf"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="i3E-Tf-yvZ" firstAttribute="centerY" secondItem="wea-du-rfh" secondAttribute="centerY" id="BSm-cx-Uc6"/>
<constraint firstItem="soF-Mv-OaY" firstAttribute="leading" secondItem="wea-du-rfh" secondAttribute="leading" constant="16" id="Geg-4A-cJb"/>
<constraint firstItem="i3E-Tf-yvZ" firstAttribute="leading" secondItem="Rvv-Y7-dFZ" secondAttribute="trailing" constant="8" id="LL5-fr-3kh"/>
<constraint firstItem="zgu-2b-dUH" firstAttribute="leading" secondItem="wea-du-rfh" secondAttribute="leading" constant="8" id="Lbh-Zq-TLs"/>
<constraint firstAttribute="bottom" secondItem="soF-Mv-OaY" secondAttribute="bottom" id="Udx-oh-J1t"/>
<constraint firstAttribute="trailing" secondItem="HS3-Wo-i5c" secondAttribute="trailing" id="VzZ-sf-3bh"/>
<constraint firstItem="Rvv-Y7-dFZ" firstAttribute="centerY" secondItem="wea-du-rfh" secondAttribute="centerY" id="cc9-g9-2BQ"/>
<constraint firstItem="D9x-be-TSN" firstAttribute="centerY" secondItem="wea-du-rfh" secondAttribute="centerY" id="eCi-eq-pJR"/>
<constraint firstItem="HS3-Wo-i5c" firstAttribute="top" secondItem="wea-du-rfh" secondAttribute="top" id="f5r-DR-iDc"/>
<constraint firstAttribute="trailing" secondItem="soF-Mv-OaY" secondAttribute="trailing" constant="16" id="fv9-If-eOL"/>
<constraint firstItem="D9x-be-TSN" firstAttribute="leading" secondItem="zgu-2b-dUH" secondAttribute="trailing" constant="8" id="hg0-bj-XU6"/>
<constraint firstAttribute="height" constant="50" id="hgL-Ru-1nw"/>
<constraint firstItem="HS3-Wo-i5c" firstAttribute="leading" secondItem="wea-du-rfh" secondAttribute="leading" id="nce-jo-v0Y"/>
<constraint firstAttribute="bottom" secondItem="HS3-Wo-i5c" secondAttribute="bottom" id="pO5-Vm-TW5"/>
<constraint firstAttribute="trailing" secondItem="i3E-Tf-yvZ" secondAttribute="trailing" constant="8" id="qxu-Y4-a8F"/>
<constraint firstItem="zgu-2b-dUH" firstAttribute="centerY" secondItem="wea-du-rfh" secondAttribute="centerY" id="vrq-rx-F1Q"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="MiY-le-eXG" userLabel="提现密码">
<rect key="frame" x="0.0" y="314" width="375" height="50"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="rightIcon" translatesAutoresizingMaskIntoConstraints="NO" id="48E-sg-B55">
<rect key="frame" x="357" y="10" width="10" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="10" id="did-6Q-ZDB"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="提现密码" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="MIO-GX-K5n">
<rect key="frame" x="42" y="14" width="72" height="22"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="设置" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Xl0-z0-dFi">
<rect key="frame" x="315" y="15" width="34" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="iXR-8o-gw3">
<rect key="frame" x="0.0" y="0.0" width="375" height="50"/>
</button>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="select_warning" translatesAutoresizingMaskIntoConstraints="NO" id="hkY-zk-zEH">
<rect key="frame" x="8" y="12" width="26" height="26"/>
<constraints>
<constraint firstAttribute="width" constant="26" id="1kF-mi-x55"/>
<constraint firstAttribute="height" constant="26" id="SWd-95-nWp"/>
</constraints>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="5Db-4b-1JM">
<rect key="frame" x="16" y="49" width="343" height="1"/>
<color key="backgroundColor" red="0.91271875000000002" green="0.91271875000000002" blue="0.91271875000000002" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="ar0-Gg-hVe"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="5Db-4b-1JM" secondAttribute="bottom" id="0sw-WH-atD"/>
<constraint firstItem="Xl0-z0-dFi" firstAttribute="centerY" secondItem="MiY-le-eXG" secondAttribute="centerY" id="5Kh-06-Z8k"/>
<constraint firstItem="5Db-4b-1JM" firstAttribute="leading" secondItem="MiY-le-eXG" secondAttribute="leading" constant="16" id="Dy8-jp-FJg"/>
<constraint firstAttribute="bottom" secondItem="iXR-8o-gw3" secondAttribute="bottom" id="F7E-jt-YnP"/>
<constraint firstItem="hkY-zk-zEH" firstAttribute="leading" secondItem="MiY-le-eXG" secondAttribute="leading" constant="8" id="FtU-ck-hRS"/>
<constraint firstAttribute="trailing" secondItem="48E-sg-B55" secondAttribute="trailing" constant="8" id="Gm4-00-ZG5"/>
<constraint firstItem="MIO-GX-K5n" firstAttribute="leading" secondItem="hkY-zk-zEH" secondAttribute="trailing" constant="8" id="HDw-RL-Ede"/>
<constraint firstItem="48E-sg-B55" firstAttribute="leading" secondItem="Xl0-z0-dFi" secondAttribute="trailing" constant="8" id="Tmm-ek-FO9"/>
<constraint firstAttribute="height" constant="50" id="aTz-iQ-dua"/>
<constraint firstAttribute="trailing" secondItem="5Db-4b-1JM" secondAttribute="trailing" constant="16" id="ahv-fv-FAN"/>
<constraint firstItem="iXR-8o-gw3" firstAttribute="leading" secondItem="MiY-le-eXG" secondAttribute="leading" id="cGg-ji-bmm"/>
<constraint firstItem="MIO-GX-K5n" firstAttribute="centerY" secondItem="MiY-le-eXG" secondAttribute="centerY" id="eCW-IR-Bz7"/>
<constraint firstItem="iXR-8o-gw3" firstAttribute="top" secondItem="MiY-le-eXG" secondAttribute="top" id="euP-NF-8cj"/>
<constraint firstItem="hkY-zk-zEH" firstAttribute="centerY" secondItem="MiY-le-eXG" secondAttribute="centerY" id="fq5-gG-Apk"/>
<constraint firstItem="48E-sg-B55" firstAttribute="centerY" secondItem="MiY-le-eXG" secondAttribute="centerY" id="jFe-sm-bXi"/>
<constraint firstAttribute="trailing" secondItem="iXR-8o-gw3" secondAttribute="trailing" id="xPc-M5-pgD"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="3T0-bi-6UQ" userLabel="清空数据缓存">
<rect key="frame" x="0.0" y="372" width="375" height="50"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="rightIcon" translatesAutoresizingMaskIntoConstraints="NO" id="Lsf-Uu-0IB">
<rect key="frame" x="357" y="10" width="10" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="10" id="3TR-ju-sDy"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="清空数据缓存" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="RyD-Hh-zfJ">
<rect key="frame" x="16" y="14" width="108" height="22"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Lbm-6w-I6f">
<rect key="frame" x="349" y="25" width="0.0" height="0.0"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="CmW-vE-VCQ">
<rect key="frame" x="0.0" y="0.0" width="375" height="50"/>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="RyD-Hh-zfJ" firstAttribute="leading" secondItem="3T0-bi-6UQ" secondAttribute="leading" constant="16" id="23t-2h-KVX"/>
<constraint firstItem="Lsf-Uu-0IB" firstAttribute="leading" secondItem="Lbm-6w-I6f" secondAttribute="trailing" constant="8" id="8dL-av-a4f"/>
<constraint firstItem="Lbm-6w-I6f" firstAttribute="centerY" secondItem="3T0-bi-6UQ" secondAttribute="centerY" id="Cew-7j-2ZS"/>
<constraint firstAttribute="trailing" secondItem="Lsf-Uu-0IB" secondAttribute="trailing" constant="8" id="QeK-Vu-z5Z"/>
<constraint firstAttribute="bottom" secondItem="CmW-vE-VCQ" secondAttribute="bottom" id="RMU-vu-bOM"/>
<constraint firstItem="CmW-vE-VCQ" firstAttribute="top" secondItem="3T0-bi-6UQ" secondAttribute="top" id="RR1-9o-R1y"/>
<constraint firstAttribute="height" constant="50" id="Roz-wZ-5Ps"/>
<constraint firstItem="CmW-vE-VCQ" firstAttribute="leading" secondItem="3T0-bi-6UQ" secondAttribute="leading" id="VUP-yn-yfJ"/>
<constraint firstItem="RyD-Hh-zfJ" firstAttribute="centerY" secondItem="3T0-bi-6UQ" secondAttribute="centerY" id="ZCk-io-MwS"/>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="60" id="eJd-XO-fuv"/>
<constraint firstItem="Lsf-Uu-0IB" firstAttribute="centerY" secondItem="3T0-bi-6UQ" secondAttribute="centerY" id="hLO-qR-sNO"/>
<constraint firstAttribute="trailing" secondItem="CmW-vE-VCQ" secondAttribute="trailing" id="hh4-En-GQE"/>
</constraints>
<variation key="default">
<mask key="constraints">
<exclude reference="eJd-XO-fuv"/>
</mask>
</variation>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="eb3-WB-kbh">
<rect key="frame" x="0.0" y="314" width="375" height="55"/>
<rect key="frame" x="0.0" y="438" width="375" height="50"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dl4-5c-CIj">
<rect key="frame" x="0.0" y="0.0" width="375" height="55"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="50"/>
<fontDescription key="fontDescription" type="system" pointSize="20"/>
<state key="normal" title="注销"/>
<state key="normal" title="退出登录">
<color key="titleColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
</state>
<connections>
<action selector="loginOut:" destination="-1" eventType="touchUpInside" id="gdE-lx-MLO"/>
</connections>
......@@ -30,21 +387,48 @@
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="dl4-5c-CIj" firstAttribute="top" secondItem="eb3-WB-kbh" secondAttribute="top" id="5Co-rY-tIi"/>
<constraint firstAttribute="height" constant="55" id="5V9-ef-LcW"/>
<constraint firstAttribute="height" constant="50" id="5V9-ef-LcW"/>
<constraint firstAttribute="bottom" secondItem="dl4-5c-CIj" secondAttribute="bottom" id="DUD-Sa-lWi"/>
<constraint firstAttribute="trailing" secondItem="dl4-5c-CIj" secondAttribute="trailing" id="PoM-gd-DEv"/>
<constraint firstItem="dl4-5c-CIj" firstAttribute="leading" secondItem="eb3-WB-kbh" secondAttribute="leading" id="jJX-WC-mIm"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<color key="backgroundColor" red="0.91271875000000002" green="0.91271875000000002" blue="0.91271875000000002" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="eb3-WB-kbh" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="314" id="egd-LD-njq"/>
<constraint firstItem="7De-WQ-TBD" firstAttribute="top" secondItem="g2a-cQ-j4f" secondAttribute="bottom" constant="8" id="15k-uT-iN6"/>
<constraint firstItem="vje-Mg-8RA" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="3gq-TL-Ujj"/>
<constraint firstItem="Tgc-3e-TQr" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="4Wp-sj-s96"/>
<constraint firstAttribute="trailing" secondItem="7De-WQ-TBD" secondAttribute="trailing" id="5bF-6S-3WO"/>
<constraint firstAttribute="trailing" secondItem="wea-du-rfh" secondAttribute="trailing" id="BDe-jS-QuG"/>
<constraint firstAttribute="trailing" secondItem="MiY-le-eXG" secondAttribute="trailing" id="I6t-cl-hsg"/>
<constraint firstAttribute="trailing" secondItem="3T0-bi-6UQ" secondAttribute="trailing" id="Jb4-jo-u9s"/>
<constraint firstItem="MiY-le-eXG" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="Nyi-DP-Ky2"/>
<constraint firstItem="wea-du-rfh" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="QuG-lV-v8A"/>
<constraint firstItem="3T0-bi-6UQ" firstAttribute="top" secondItem="MiY-le-eXG" secondAttribute="bottom" constant="8" id="X0D-JH-S4I"/>
<constraint firstItem="g2a-cQ-j4f" firstAttribute="top" secondItem="Tgc-3e-TQr" secondAttribute="bottom" constant="8" id="bJy-I4-p8Y"/>
<constraint firstItem="MiY-le-eXG" firstAttribute="top" secondItem="wea-du-rfh" secondAttribute="bottom" id="bUl-Eg-PR1"/>
<constraint firstItem="g2a-cQ-j4f" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="chw-or-qiX"/>
<constraint firstAttribute="trailing" secondItem="vje-Mg-8RA" secondAttribute="trailing" id="dXp-4v-nGg"/>
<constraint firstItem="7De-WQ-TBD" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="feF-Hz-ORZ"/>
<constraint firstItem="vje-Mg-8RA" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="8" id="hE1-pl-rHX"/>
<constraint firstItem="wea-du-rfh" firstAttribute="top" secondItem="7De-WQ-TBD" secondAttribute="bottom" id="k0u-IG-Mbb"/>
<constraint firstAttribute="trailing" secondItem="eb3-WB-kbh" secondAttribute="trailing" id="mop-NU-Hd2"/>
<constraint firstAttribute="trailing" secondItem="Tgc-3e-TQr" secondAttribute="trailing" id="nPo-uR-O1z"/>
<constraint firstItem="eb3-WB-kbh" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="ppU-mO-N1f"/>
<constraint firstItem="3T0-bi-6UQ" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="seN-g4-QTW"/>
<constraint firstAttribute="trailing" secondItem="g2a-cQ-j4f" secondAttribute="trailing" id="t5a-QP-T1k"/>
<constraint firstItem="eb3-WB-kbh" firstAttribute="top" secondItem="3T0-bi-6UQ" secondAttribute="bottom" constant="16" id="uRF-vH-SeY"/>
<constraint firstItem="Tgc-3e-TQr" firstAttribute="top" secondItem="vje-Mg-8RA" secondAttribute="bottom" id="vPI-tT-AjW"/>
</constraints>
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina47"/>
<point key="canvasLocation" x="384.5" y="218.5"/>
</view>
</objects>
<resources>
<image name="default_commodity_placeholder" width="93" height="93"/>
<image name="rightIcon" width="17" height="30"/>
<image name="select_tick" width="35" height="35"/>
<image name="select_warning" width="35" height="35"/>
</resources>
</document>
......@@ -150,6 +150,7 @@
[hud show:YES];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(time * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[self hideHUDForView:view animated:YES];
if (complete) {
......
......@@ -12,6 +12,8 @@
@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *url;
@property (nonatomic, copy) NSString *content;
@property (nonatomic, strong) UIImage *image;
@end
......@@ -15,13 +15,23 @@
- (IBAction)shareToWeiChatSession:(id)sender {
[UMSocialData defaultData].extConfig.wechatSessionData.url = self.url;
[UMSocialData defaultData].extConfig.wechatSessionData.title = self.title;
[[UMSocialDataService defaultDataService] postSNSWithTypes:@[UMShareToWechatSession] content:self.content image:[UIImage imageNamed:@"add_commodityIcon0"] location:nil urlResource:nil presentedController:nil completion:^(UMSocialResponseEntity *response){
[[UMSocialDataService defaultDataService] postSNSWithTypes:@[UMShareToWechatSession] content:self.content image:self.image location:nil urlResource:nil presentedController:nil completion:^(UMSocialResponseEntity *response){
if (response.responseCode == UMSResponseCodeSuccess) {
NSLog(@"分享成功!");
}
}];
}
- (IBAction)shareWxTimeLine:(id)sender {
[UMSocialData defaultData].extConfig.wechatTimelineData.url = self.url;
[UMSocialData defaultData].extConfig.wechatTimelineData.title = self.content;
[[UMSocialDataService defaultDataService] postSNSWithTypes:@[UMShareToWechatTimeline] content:self.content image:self.image location:nil urlResource:nil presentedController:nil completion:^(UMSocialResponseEntity *response){
if (response.responseCode == UMSResponseCodeSuccess) {
NSLog(@"分享成功!");
}
}];
}
- (IBAction)shareToWeiChatTimeLine:(id)sender {
}
......
......@@ -89,6 +89,7 @@
<rect key="frame" x="0.0" y="0.0" width="80" height="140"/>
<connections>
<action selector="shareToWeiChatTimeLine:" destination="iN0-l3-epB" eventType="touchUpInside" id="YUs-vP-14q"/>
<action selector="shareWxTimeLine:" destination="iN0-l3-epB" eventType="touchUpInside" id="i9L-NL-xpZ"/>
</connections>
</button>
</subviews>
......
......@@ -11,5 +11,5 @@
@interface ShareInstance : NSObject
+ (ShareInstance *)shareInstace;
- (void)showWithTitle:(NSString *)title content:(NSString *)content url:(NSString *)url;
- (void)showWithTitle:(NSString *)title content:(NSString *)content url:(NSString *)url image:(UIImage *)image;
@end
......@@ -28,7 +28,7 @@
return instance;
}
- (void)showWithTitle:(NSString *)title content:(NSString *)content url:(NSString *)url {
- (void)showWithTitle:(NSString *)title content:(NSString *)content url:(NSString *)url image:(UIImage *)image{
[self.cover show];
......@@ -44,6 +44,7 @@
self.shareContentView.title = title;
self.shareContentView.content = content;
self.shareContentView.url = url;
self.shareContentView.image = image;
[MyTools animateFromBottomDuration:0.5 view:self.shareContentView viewHeight:140];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment