Commit 0fed7605 authored by Sandy's avatar Sandy

添加商品界面调用接口完成

parent 874bfd49
......@@ -7,11 +7,17 @@
objects = {
/* Begin PBXBuildFile section */
1900A33C1CB602D500B2B7C4 /* StoreNameViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1900A33A1CB602D500B2B7C4 /* StoreNameViewController.m */; };
1900A33D1CB602D500B2B7C4 /* StoreNameViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1900A33B1CB602D500B2B7C4 /* StoreNameViewController.xib */; };
1900A3411CB6059000B2B7C4 /* introductionViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1900A33F1CB6059000B2B7C4 /* introductionViewController.m */; };
1900A3421CB6059000B2B7C4 /* introductionViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1900A3401CB6059000B2B7C4 /* introductionViewController.xib */; };
1900A34A1CB6306600B2B7C4 /* HotBrandModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 1900A3491CB6306600B2B7C4 /* HotBrandModel.m */; };
191383351CAB95F5005F6440 /* NoPaymentTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 191383341CAB95F5005F6440 /* NoPaymentTableViewController.m */; };
1913833A1CAB96D4005F6440 /* OrderTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 191383381CAB96D4005F6440 /* OrderTableViewCell.m */; };
1913833B1CAB96D4005F6440 /* OrderTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 191383391CAB96D4005F6440 /* OrderTableViewCell.xib */; };
1913833D1CAB9DC2005F6440 /* OrderCellView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1913833C1CAB9DC2005F6440 /* OrderCellView.xib */; };
191383401CAB9DD4005F6440 /* OrderCellView.m in Sources */ = {isa = PBXBuildFile; fileRef = 1913833F1CAB9DD4005F6440 /* OrderCellView.m */; };
191AEDE21CBB561700F5E535 /* RequstBodyCommodityListModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 191AEDE11CBB561700F5E535 /* RequstBodyCommodityListModel.m */; };
1929F16D1C9FCB62000E9B26 /* NSDictionary+Category.m in Sources */ = {isa = PBXBuildFile; fileRef = 1929F16C1C9FCB62000E9B26 /* NSDictionary+Category.m */; };
1929F16F1C9FCFA6000E9B26 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1929F16E1C9FCFA6000E9B26 /* Assets.xcassets */; };
1929F17C1CA0DD77000E9B26 /* HomeTopView.m in Sources */ = {isa = PBXBuildFile; fileRef = 1929F17B1CA0DD77000E9B26 /* HomeTopView.m */; };
......@@ -28,6 +34,7 @@
1940D30A1C9A56730080678C /* ALandUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 1940D3091C9A56730080678C /* ALandUITests.m */; };
1940D31D1C9A57640080678C /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1940D31C1C9A57640080678C /* AppDelegate.m */; };
1940D3281C9A58150080678C /* BaseViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1940D3271C9A58150080678C /* BaseViewController.m */; };
1946DC9A1CB7542D00AC6557 /* CatgoryModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 1946DC991CB7542D00AC6557 /* CatgoryModel.m */; };
195EB1DB1CA516CE00E298BB /* HotCommodityCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 195EB1D91CA516CE00E298BB /* HotCommodityCell.m */; };
195EB1DC1CA516CE00E298BB /* HotCommodityCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 195EB1DA1CA516CE00E298BB /* HotCommodityCell.xib */; };
195EB1E01CA5292600E298BB /* AddCommodityFooterCollectionReusableView.m in Sources */ = {isa = PBXBuildFile; fileRef = 195EB1DE1CA5292600E298BB /* AddCommodityFooterCollectionReusableView.m */; };
......@@ -189,6 +196,14 @@
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
1900A3391CB602D500B2B7C4 /* StoreNameViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StoreNameViewController.h; sourceTree = "<group>"; };
1900A33A1CB602D500B2B7C4 /* StoreNameViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = StoreNameViewController.m; sourceTree = "<group>"; };
1900A33B1CB602D500B2B7C4 /* StoreNameViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = StoreNameViewController.xib; sourceTree = "<group>"; };
1900A33E1CB6059000B2B7C4 /* introductionViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = introductionViewController.h; sourceTree = "<group>"; };
1900A33F1CB6059000B2B7C4 /* introductionViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = introductionViewController.m; sourceTree = "<group>"; };
1900A3401CB6059000B2B7C4 /* introductionViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = introductionViewController.xib; sourceTree = "<group>"; };
1900A3481CB6306600B2B7C4 /* HotBrandModel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HotBrandModel.h; sourceTree = "<group>"; };
1900A3491CB6306600B2B7C4 /* HotBrandModel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HotBrandModel.m; sourceTree = "<group>"; };
191383331CAB95F5005F6440 /* NoPaymentTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NoPaymentTableViewController.h; path = ../NoPaymentTableViewController.h; sourceTree = "<group>"; };
191383341CAB95F5005F6440 /* NoPaymentTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NoPaymentTableViewController.m; path = ../NoPaymentTableViewController.m; sourceTree = "<group>"; };
191383371CAB96D4005F6440 /* OrderTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OrderTableViewCell.h; sourceTree = "<group>"; };
......@@ -197,6 +212,8 @@
1913833C1CAB9DC2005F6440 /* OrderCellView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = OrderCellView.xib; sourceTree = "<group>"; };
1913833E1CAB9DD4005F6440 /* OrderCellView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OrderCellView.h; sourceTree = "<group>"; };
1913833F1CAB9DD4005F6440 /* OrderCellView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OrderCellView.m; sourceTree = "<group>"; };
191AEDE01CBB561700F5E535 /* RequstBodyCommodityListModel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RequstBodyCommodityListModel.h; sourceTree = "<group>"; };
191AEDE11CBB561700F5E535 /* RequstBodyCommodityListModel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RequstBodyCommodityListModel.m; sourceTree = "<group>"; };
1929F16B1C9FCB62000E9B26 /* NSDictionary+Category.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSDictionary+Category.h"; sourceTree = "<group>"; };
1929F16C1C9FCB62000E9B26 /* NSDictionary+Category.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSDictionary+Category.m"; sourceTree = "<group>"; };
1929F16E1C9FCFA6000E9B26 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
......@@ -227,6 +244,8 @@
1940D31C1C9A57640080678C /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
1940D3261C9A58150080678C /* BaseViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BaseViewController.h; sourceTree = "<group>"; };
1940D3271C9A58150080678C /* BaseViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BaseViewController.m; sourceTree = "<group>"; };
1946DC981CB7542D00AC6557 /* CatgoryModel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CatgoryModel.h; sourceTree = "<group>"; };
1946DC991CB7542D00AC6557 /* CatgoryModel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CatgoryModel.m; sourceTree = "<group>"; };
195EB1D81CA516CE00E298BB /* HotCommodityCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HotCommodityCell.h; sourceTree = "<group>"; };
195EB1D91CA516CE00E298BB /* HotCommodityCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HotCommodityCell.m; sourceTree = "<group>"; };
195EB1DA1CA516CE00E298BB /* HotCommodityCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = HotCommodityCell.xib; sourceTree = "<group>"; };
......@@ -240,9 +259,9 @@
19632DA71CB356050024A8A1 /* UIImage+QRCode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIImage+QRCode.m"; sourceTree = "<group>"; };
19632DAC1CB38FFC0024A8A1 /* HTTPCilent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HTTPCilent.h; sourceTree = "<group>"; };
19632DAD1CB38FFC0024A8A1 /* HTTPCilent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HTTPCilent.m; sourceTree = "<group>"; };
19632DAF1CB39B190024A8A1 /* SelectPhotoView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SelectPhotoView.h; sourceTree = "<group>"; };
19632DB01CB39B190024A8A1 /* SelectPhotoView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SelectPhotoView.m; sourceTree = "<group>"; };
19632DB21CB39B250024A8A1 /* SelectPhotoView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SelectPhotoView.xib; sourceTree = "<group>"; };
19632DAF1CB39B190024A8A1 /* SelectPhotoView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SelectPhotoView.h; path = ../SelectPhotoView.h; sourceTree = "<group>"; };
19632DB01CB39B190024A8A1 /* SelectPhotoView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SelectPhotoView.m; path = ../SelectPhotoView.m; sourceTree = "<group>"; };
19632DB21CB39B250024A8A1 /* SelectPhotoView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = SelectPhotoView.xib; path = ../SelectPhotoView.xib; sourceTree = "<group>"; };
1979751B1CA8CDF300407E3F /* CommodityDetailBottomView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = CommodityDetailBottomView.xib; sourceTree = "<group>"; };
1979751D1CA8D51700407E3F /* CommodityDetailBottomView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CommodityDetailBottomView.h; sourceTree = "<group>"; };
1979751E1CA8D51700407E3F /* CommodityDetailBottomView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CommodityDetailBottomView.m; sourceTree = "<group>"; };
......@@ -535,6 +554,50 @@
name = Pods;
sourceTree = "<group>";
};
1900A3431CB6156F00B2B7C4 /* StoreManagerment */ = {
isa = PBXGroup;
children = (
19632DAF1CB39B190024A8A1 /* SelectPhotoView.h */,
19632DB01CB39B190024A8A1 /* SelectPhotoView.m */,
19632DB21CB39B250024A8A1 /* SelectPhotoView.xib */,
);
path = StoreManagerment;
sourceTree = "<group>";
};
1900A3441CB6305100B2B7C4 /* Commodity */ = {
isa = PBXGroup;
children = (
1900A3481CB6306600B2B7C4 /* HotBrandModel.h */,
1900A3491CB6306600B2B7C4 /* HotBrandModel.m */,
1946DC981CB7542D00AC6557 /* CatgoryModel.h */,
1946DC991CB7542D00AC6557 /* CatgoryModel.m */,
191AEDE01CBB561700F5E535 /* RequstBodyCommodityListModel.h */,
191AEDE11CBB561700F5E535 /* RequstBodyCommodityListModel.m */,
);
path = Commodity;
sourceTree = "<group>";
};
1900A3451CB6305100B2B7C4 /* CommodityManagement */ = {
isa = PBXGroup;
children = (
);
path = CommodityManagement;
sourceTree = "<group>";
};
1900A3461CB6305100B2B7C4 /* Order */ = {
isa = PBXGroup;
children = (
);
path = Order;
sourceTree = "<group>";
};
1900A3471CB6305100B2B7C4 /* Storemanagement */ = {
isa = PBXGroup;
children = (
);
path = Storemanagement;
sourceTree = "<group>";
};
191383361CAB961B005F6440 /* Order */ = {
isa = PBXGroup;
children = (
......@@ -690,9 +753,6 @@
197975461CAA4DAD00407E3F /* CommodityMutipleSelectBottomView.h */,
197975471CAA4DAD00407E3F /* CommodityMutipleSelectBottomView.m */,
197975491CAA4DB900407E3F /* CommodityMutipleSelectBottomView.xib */,
19632DAF1CB39B190024A8A1 /* SelectPhotoView.h */,
19632DB01CB39B190024A8A1 /* SelectPhotoView.m */,
19632DB21CB39B250024A8A1 /* SelectPhotoView.xib */,
);
name = CommodityManagement;
sourceTree = "<group>";
......@@ -727,6 +787,12 @@
19632DA11CB350F80024A8A1 /* StoreQRCodeViewController.h */,
19632DA21CB350F80024A8A1 /* StoreQRCodeViewController.m */,
19632DA31CB350F80024A8A1 /* StoreQRCodeViewController.xib */,
1900A3391CB602D500B2B7C4 /* StoreNameViewController.h */,
1900A33A1CB602D500B2B7C4 /* StoreNameViewController.m */,
1900A33B1CB602D500B2B7C4 /* StoreNameViewController.xib */,
1900A33E1CB6059000B2B7C4 /* introductionViewController.h */,
1900A33F1CB6059000B2B7C4 /* introductionViewController.m */,
1900A3401CB6059000B2B7C4 /* introductionViewController.xib */,
);
path = StoreManagerment;
sourceTree = "<group>";
......@@ -935,6 +1001,10 @@
19DCCA861C9A95E70072C3BF /* Model */ = {
isa = PBXGroup;
children = (
1900A3441CB6305100B2B7C4 /* Commodity */,
1900A3451CB6305100B2B7C4 /* CommodityManagement */,
1900A3461CB6305100B2B7C4 /* Order */,
1900A3471CB6305100B2B7C4 /* Storemanagement */,
);
path = Model;
sourceTree = "<group>";
......@@ -942,6 +1012,7 @@
19DCCA871C9A95E70072C3BF /* View */ = {
isa = PBXGroup;
children = (
1900A3431CB6156F00B2B7C4 /* StoreManagerment */,
191383361CAB961B005F6440 /* Order */,
1979752F1CA90D8600407E3F /* CommodityManagement */,
19ADD3781CA4D38B00EE6E5A /* Commodity */,
......@@ -1410,6 +1481,7 @@
199BC7CD1C9BA5BA00E4E0B8 /* NextResetPasswordViewController.xib in Resources */,
1929F1861CA0EA74000E9B26 /* MoneyView.xib in Resources */,
1913833D1CAB9DC2005F6440 /* OrderCellView.xib in Resources */,
1900A3421CB6059000B2B7C4 /* introductionViewController.xib in Resources */,
199B4D6A1CABBEF400451E0E /* OrderDetailTopView.xib in Resources */,
199BC7B81C9ADD5500E4E0B8 /* ToLoginViewController.xib in Resources */,
1913833B1CAB96D4005F6440 /* OrderTableViewCell.xib in Resources */,
......@@ -1431,6 +1503,7 @@
1979754A1CAA4DB900407E3F /* CommodityMutipleSelectBottomView.xib in Resources */,
1929F16F1C9FCFA6000E9B26 /* Assets.xcassets in Resources */,
1929F17E1CA0DE32000E9B26 /* HomeTopView.xib in Resources */,
1900A33D1CB602D500B2B7C4 /* StoreNameViewController.xib in Resources */,
19ADD37F1CA4D38B00EE6E5A /* CommodityListCollectionViewCell.xib in Resources */,
1979753F1CAA15C700407E3F /* CommodityTableViewCell.xib in Resources */,
);
......@@ -1507,6 +1580,7 @@
files = (
19DCCBC91C9AA0450072C3BF /* NSNull+OVNatural.m in Sources */,
195EB1E01CA5292600E298BB /* AddCommodityFooterCollectionReusableView.m in Sources */,
191AEDE21CBB561700F5E535 /* RequstBodyCommodityListModel.m in Sources */,
19DCCB791C9A9EB30072C3BF /* IBTWebViewController.m in Sources */,
19ADD3671CA3A16C00EE6E5A /* CoverShadowView.m in Sources */,
199BC7BE1C9B045B00E4E0B8 /* RigistViewController.m in Sources */,
......@@ -1525,6 +1599,7 @@
197975481CAA4DAD00407E3F /* CommodityMutipleSelectBottomView.m in Sources */,
199B4D741CABE4B300451E0E /* NSString+Category.m in Sources */,
19DCCBE31C9AA0450072C3BF /* ICRFunctionBaseView.m in Sources */,
1900A34A1CB6306600B2B7C4 /* HotBrandModel.m in Sources */,
19DCCB6A1C9A9EB30072C3BF /* IBTSegmentContainer.m in Sources */,
19DCCB5F1C9A9EB30072C3BF /* IBTRefreshTableView.m in Sources */,
1979751F1CA8D51700407E3F /* CommodityDetailBottomView.m in Sources */,
......@@ -1553,6 +1628,7 @@
19DCCB761C9A9EB30072C3BF /* IBTUIView.m in Sources */,
19DCCB691C9A9EB30072C3BF /* IBTObject.m in Sources */,
19DCCBDD1C9AA0450072C3BF /* IBTFileManager.m in Sources */,
1900A3411CB6059000B2B7C4 /* introductionViewController.m in Sources */,
19ADD3771CA4D19F00EE6E5A /* AddCommodityViewController.m in Sources */,
199B4D6D1CABBF0800451E0E /* OrderDetailTopView.m in Sources */,
19DCCBC71C9AA0450072C3BF /* NSDate+FormatterAdditions.m in Sources */,
......@@ -1620,8 +1696,10 @@
19ADD3841CA4D3C400EE6E5A /* AddCommodityCollectionViewCell.m in Sources */,
199BC7D31C9BBE0100E4E0B8 /* StoreViewController.m in Sources */,
19DCCBD71C9AA0450072C3BF /* UIView+ViewFrameGeometry.m in Sources */,
1946DC9A1CB7542D00AC6557 /* CatgoryModel.m in Sources */,
197975511CAB6F5D00407E3F /* OrderViewController.m in Sources */,
19DCCBDF1C9AA0450072C3BF /* ICRPlaceholderTextView.m in Sources */,
1900A33C1CB602D500B2B7C4 /* StoreNameViewController.m in Sources */,
19DCCBCD1C9AA0450072C3BF /* UIFont+Custom.m in Sources */,
19DCCBE41C9AA0450072C3BF /* ICRFunctionEntity.m in Sources */,
19632DA81CB356050024A8A1 /* UIImage+QRCode.m in Sources */,
......
//
// CatgoryModel.h
// ALand
//
// Created by Z on 16/4/8.
// Copyright © 2016年 Z. All rights reserved.
//
#import <Foundation/Foundation.h>
@class Upper,Createinfo,Operator,Lastmodifyinfo,Operator;
@interface CatgoryModel : NSObject
@property (nonatomic, copy) NSString *uuid;
@property (nonatomic, copy) NSString *state;
@property (nonatomic, copy) NSString *adescription;
@property (nonatomic, assign) NSInteger version;
@property (nonatomic, strong) Upper *upper;
@property (nonatomic, copy) NSString *domain;
@property (nonatomic, copy) NSString *path;
@property (nonatomic, strong) Lastmodifyinfo *lastModifyInfo;
@property (nonatomic, copy) NSString *code;
@property (nonatomic, assign) NSInteger level;
@property (nonatomic, copy) NSString *pictures;
@property (nonatomic, assign) NSInteger order;
@property (nonatomic, strong) Createinfo *createInfo;
@property (nonatomic, copy) NSString *name;
@end
@interface Upper : NSObject
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *uuid;
@property (nonatomic, copy) NSString *code;
@end
//
// CatgoryModel.m
// ALand
//
// Created by Z on 16/4/8.
// Copyright © 2016年 Z. All rights reserved.
//
#import "CatgoryModel.h"
@implementation CatgoryModel
@end
@implementation Upper
@end
//
// HotBrandModel.h
// ALand
//
// Created by Z on 16/4/7.
// Copyright © 2016年 Z. All rights reserved.
//
#import <Foundation/Foundation.h>
@class Createinfo,Operator,Lastmodifyinfo,Operator;
@interface HotBrandModel : NSObject
@property (nonatomic, copy) NSString *uuid;
@property (nonatomic, copy) NSString *state;
@property (nonatomic, copy) NSString *adescription;
@property (nonatomic, assign) NSInteger version;
@property (nonatomic, copy) NSString *domain;
@property (nonatomic, strong) Lastmodifyinfo *lastModifyInfo;
@property (nonatomic, copy) NSString *code;
@property (nonatomic, assign) NSInteger order;
@property (nonatomic, copy) NSString *logo;
@property (nonatomic, copy) NSString *location;
@property (nonatomic, strong) Createinfo *createInfo;
@property (nonatomic, copy) NSString *website;
@property (nonatomic, copy) NSString *name;
@end
//
// HotBrandModel.m
// ALand
//
// Created by Z on 16/4/7.
// Copyright © 2016年 Z. All rights reserved.
//
#import "HotBrandModel.h"
@implementation HotBrandModel
@end
//
// RequstBodyCommodityListModel.h
// ALand
//
// Created by Z on 16/4/11.
// Copyright © 2016年 Z. All rights reserved.
//
#import <Foundation/Foundation.h>
@class Defintion,Orders,Conditions,Parameter,Parameters;
@interface RequstBodyCommodityListModel : NSObject
@property (nonatomic, strong) Defintion *defintion;
@property (nonatomic, strong) NSArray<NSString *> *fetchParts;
@end
@interface Defintion : NSObject
@property (nonatomic, assign) NSInteger probePages;
@property (nonatomic, strong) NSArray<Orders *> *orders;
@property (nonatomic, strong) NSArray<Conditions *> *conditions;
@property (nonatomic, assign) NSInteger pageSize;
@property (nonatomic, assign) NSInteger page;
@end
@interface Orders : NSObject
@property (nonatomic, copy) NSString *field;
@property (nonatomic, copy) NSString *direction;
@end
@interface Conditions : NSObject
@property (nonatomic, strong) NSArray<Parameters *> *parameters;
@property (nonatomic, copy) NSString *operation;
@property (nonatomic, strong) Parameter *parameter;
@end
@interface Parameter : NSObject
@end
@interface Parameters : NSObject
@end
//
// RequstBodyCommodityListModel.m
// ALand
//
// Created by Z on 16/4/11.
// Copyright © 2016年 Z. All rights reserved.
//
#import "RequstBodyCommodityListModel.h"
@implementation RequstBodyCommodityListModel
- (Defintion *)defintion {
if (!_defintion) {
_defintion = [[Defintion alloc] init];
}
return _defintion;
}
@end
@implementation Defintion
+ (NSDictionary *)objectClassInArray{
return @{@"orders" : [Orders class], @"conditions" : [Conditions class]};
}
- (NSArray<Conditions *> *)conditions {
if (!_conditions) {
Conditions *condition = [[Conditions alloc] init];
_conditions = @[condition];
}
return _conditions;
}
@end
@implementation Orders
@end
@implementation Conditions
+ (NSDictionary *)objectClassInArray{
return @{@"parameters" : [Parameters class]};
}
@end
@implementation Parameter
@end
@implementation Parameters
@end
......@@ -7,9 +7,10 @@
//
#import <UIKit/UIKit.h>
#import "CatgoryModel.h"
@interface AddCommodityCollectionViewCell : UICollectionViewCell
- (void)cellWithModel:(CatgoryModel *)model indexPath:(NSIndexPath *)indexPath;
- (void)hideTopLine;
- (void)showTopLine;
......
......@@ -13,10 +13,33 @@
@property (weak, nonatomic) IBOutlet UIView *viewLeftLine;
@property (weak, nonatomic) IBOutlet UIView *viewRightLine;
@property (weak, nonatomic) IBOutlet UIImageView *imgView;
@property (weak, nonatomic) IBOutlet UILabel *labelTItle;
@property (weak, nonatomic) IBOutlet UILabel *labelDsc;
@end
@implementation AddCommodityCollectionViewCell
- (void)cellWithModel:(CatgoryModel *)model indexPath:(NSIndexPath *)indexPath {
[self.imgView sd_setImageWithURL:[NSURL URLWithString:model.pictures] placeholderImage:nil];
self.labelDsc.text = model.adescription;
self.labelTItle.text = model.name;
if ((int)indexPath.row / 4 == 0) {
[self showTopLine];
}else{
[self hideTopLine];
}
if ((int)indexPath.row % 4 == 0) {
[self showLeftLine];
}else{
[self hideLeftLine];
}
}
- (void)hideTopLine {
self.viewTopLine.hidden = YES;
}
......
......@@ -22,7 +22,7 @@
<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" misplaced="YES" text="简单说明文字" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="JTo-s2-j2V">
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="简单说明文字" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="JTo-s2-j2V">
<rect key="frame" x="71" y="226" width="84" height="17"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="textColor" red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="calibratedRGB"/>
......@@ -94,11 +94,14 @@
</mask>
</variation>
<connections>
<outlet property="imgView" destination="VbO-vM-Oi6" id="c46-Su-F7z"/>
<outlet property="labelDsc" destination="JTo-s2-j2V" id="IdG-eU-H9d"/>
<outlet property="labelTItle" destination="iW3-33-j9z" id="IOU-xT-CpD"/>
<outlet property="viewLeftLine" destination="hqW-Bi-eFK" id="Jzf-jU-90j"/>
<outlet property="viewRightLine" destination="Bnp-YW-t2r" id="xNo-A8-H0t"/>
<outlet property="viewTopLine" destination="J9w-w0-0Ry" id="jWz-4K-zES"/>
</connections>
<point key="canvasLocation" x="187" y="361"/>
<point key="canvasLocation" x="336" y="302"/>
</collectionViewCell>
</objects>
<resources>
......
......@@ -7,9 +7,12 @@
//
#import <UIKit/UIKit.h>
#import "HotBrandModel.h"
@interface HotCommodityCell : UICollectionViewCell
@property (weak, nonatomic) IBOutlet UIImageView *imageViewPic;
- (void)cellWithModel:(HotBrandModel *)model indexPath:(NSIndexPath *)indexPath;
- (void)hideRight;
- (void)showRight;
......
......@@ -15,6 +15,17 @@
@end
@implementation HotCommodityCell
- (void)cellWithModel:(HotBrandModel *)model indexPath:(NSIndexPath *)indexPath {
if ((int)indexPath.row % 3 == 2) {
[self showRight];
}else{
[self hideRight];
}
[self.imageViewPic sd_setImageWithURL:[NSURL URLWithString:model.logo] placeholderImage:nil];
}
- (void)hideRight {
self.viewRight.hidden = YES;
......
......@@ -16,20 +16,6 @@
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleAspectFit" misplaced="YES" image="hotIcon" translatesAutoresizingMaskIntoConstraints="NO" id="JCd-BI-c3c">
<rect key="frame" x="74" y="56" width="142" height="110"/>
</imageView>
<view contentMode="scaleToFill" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="wkg-ww-hVo">
<rect key="frame" x="8" y="56" width="37" height="118"/>
<color key="backgroundColor" red="0.86666666670000003" green="0.86666666670000003" blue="0.86666666670000003" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" constant="1" id="OFH-0O-7Hg"/>
</constraints>
</view>
<view contentMode="scaleToFill" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="0uc-Vm-6A8">
<rect key="frame" x="258" y="61" width="37" height="118"/>
<color key="backgroundColor" red="0.86666666670000003" green="0.86666666670000003" blue="0.86666666670000003" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" constant="1" id="R0Y-1m-QUt"/>
</constraints>
</view>
<view contentMode="scaleToFill" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="S8b-kg-0m9" customClass="HotCommodityCell">
<rect key="frame" x="95" y="189" width="98" height="23"/>
<color key="backgroundColor" red="0.86666666670000003" green="0.86666666670000003" blue="0.86666666670000003" alpha="1" colorSpace="calibratedRGB"/>
......@@ -44,31 +30,36 @@
<constraint firstAttribute="height" constant="1" id="Qhj-QZ-2YV"/>
</constraints>
</view>
<view contentMode="scaleToFill" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="f0P-VR-27O">
<rect key="frame" x="256" y="46" width="37" height="118"/>
<color key="backgroundColor" red="0.86666666670000003" green="0.86666666670000003" blue="0.86666666670000003" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="1" id="cAO-73-Oaw"/>
<constraint firstAttribute="width" constant="1" id="zhB-Jc-ZCJ"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</view>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="JCd-BI-c3c" secondAttribute="bottom" id="3s0-9D-J5B"/>
<constraint firstAttribute="trailing" secondItem="0uc-Vm-6A8" secondAttribute="trailing" id="7Uy-0p-BcR"/>
<constraint firstAttribute="bottom" secondItem="0uc-Vm-6A8" secondAttribute="bottom" id="HLh-LE-pjI"/>
<constraint firstItem="wkg-ww-hVo" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="HiI-vW-u5f"/>
<constraint firstAttribute="trailing" secondItem="f0P-VR-27O" secondAttribute="trailing" id="HfF-qc-Pjl"/>
<constraint firstItem="bSo-Z3-jeB" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" id="Lt7-ZX-UZB"/>
<constraint firstAttribute="trailing" secondItem="JCd-BI-c3c" secondAttribute="trailing" constant="10" id="Oc6-Od-4dP"/>
<constraint firstAttribute="bottom" secondItem="wkg-ww-hVo" secondAttribute="bottom" id="Tbl-mU-NcN"/>
<constraint firstAttribute="trailing" secondItem="S8b-kg-0m9" secondAttribute="trailing" id="a9t-ju-DFw"/>
<constraint firstItem="bSo-Z3-jeB" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="aTz-VG-Mb0"/>
<constraint firstAttribute="bottom" secondItem="f0P-VR-27O" secondAttribute="bottom" id="cEk-j5-lYW"/>
<constraint firstItem="f0P-VR-27O" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" id="g59-St-POd"/>
<constraint firstItem="JCd-BI-c3c" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" id="jU1-gS-GOs"/>
<constraint firstItem="S8b-kg-0m9" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="l1o-tz-FMI"/>
<constraint firstItem="0uc-Vm-6A8" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" id="mFN-Em-JNo"/>
<constraint firstAttribute="trailing" secondItem="bSo-Z3-jeB" secondAttribute="trailing" id="nz2-uM-vfo"/>
<constraint firstAttribute="bottom" secondItem="S8b-kg-0m9" secondAttribute="bottom" id="u3v-ET-XDG"/>
<constraint firstItem="JCd-BI-c3c" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" constant="10" id="wtm-8M-atL"/>
<constraint firstItem="wkg-ww-hVo" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" id="xVX-jx-Bpq"/>
</constraints>
<size key="customSize" width="315" height="220"/>
<connections>
<outlet property="viewRight" destination="0uc-Vm-6A8" id="JG4-kH-v8Y"/>
<outlet property="imageViewPic" destination="JCd-BI-c3c" id="0PG-L7-j4I"/>
</connections>
<point key="canvasLocation" x="392.5" y="285"/>
</collectionViewCell>
......
......@@ -28,6 +28,7 @@
ManagementViewController *manageVC = [[ManagementViewController alloc] init];
[self hideSortView];
manageVC.isShowNavigationBar = YES;
[[self viewController] PushViewController:manageVC animated:YES];
CLog(@"m");
......
......@@ -11,7 +11,7 @@
<rect key="frame" x="0.0" y="0.0" width="320" height="95"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="kJF-jD-kCU">
<button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="kJF-jD-kCU">
<rect key="frame" x="8" y="0.0" width="67" height="95"/>
<constraints>
<constraint firstAttribute="height" constant="35" id="T70-gy-1Ql"/>
......@@ -28,14 +28,14 @@
</mask>
</variation>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="k9d-7S-PR5">
<button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="k9d-7S-PR5">
<rect key="frame" x="173" y="26" width="66" height="44"/>
<fontDescription key="fontDescription" type="system" pointSize="21"/>
<state key="normal" title="下架" backgroundImage="greenbtn_bg">
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</state>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="QZW-mi-oUQ">
<button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="QZW-mi-oUQ">
<rect key="frame" x="100" y="26" width="65" height="44"/>
<constraints>
<constraint firstAttribute="height" constant="44" id="aLI-tT-ELQ"/>
......@@ -45,7 +45,7 @@
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</state>
</button>
<button opaque="NO" contentMode="scaleToFill" horizontalCompressionResistancePriority="749" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="5Md-Ga-YFh">
<button opaque="NO" contentMode="scaleToFill" horizontalCompressionResistancePriority="749" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="5Md-Ga-YFh">
<rect key="frame" x="247" y="26" width="65" height="44"/>
<fontDescription key="fontDescription" type="system" pointSize="21"/>
<state key="normal" title="上架" backgroundImage="greenbtn_bg">
......
......@@ -30,7 +30,7 @@
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Bloem天然草本更年期综合营养 胶囊100粒 " textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="sKb-Ty-VZw">
<rect key="frame" x="114" y="13" width="192" height="41"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<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="¥279" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="exC-Ji-hHu">
......@@ -48,7 +48,7 @@
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="¥9.8" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="eSJ-Pe-NgQ">
<rect key="frame" x="218" y="69" width="50" height="24"/>
<fontDescription key="fontDescription" type="system" pointSize="20"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<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="销量:19" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WH8-2u-i8A">
......
......@@ -37,6 +37,9 @@
self.takePhotoBlock();
}
- (IBAction)galleryAction:(id)sender {
self.galleryBlock();
}
/*
// Only override drawRect: if you perform custom drawing.
......
......@@ -57,6 +57,9 @@
<constraint firstAttribute="width" constant="60" id="rFa-e3-zhR"/>
</constraints>
<state key="normal" image="Gallery"/>
<connections>
<action selector="galleryAction:" destination="iN0-l3-epB" eventType="touchUpInside" id="eWf-VB-rGm"/>
</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="CfC-ay-xMf">
<rect key="frame" x="62" y="76" width="34" height="21"/>
......
......@@ -13,6 +13,8 @@
#import "HotCommodityCell.h"
#import "AddCommodityFooterCollectionReusableView.h"
#import "CommodityListViewController.h"
#import "HotBrandModel.h"
#import "CatgoryModel.h"
#define kHotCellId @"addCommodityCellHot"
#define kCellId @"addCommodityCell"
......@@ -20,7 +22,7 @@
#define kFooterId @"footerId"
#define kMargin 0
@interface AddCommodityViewController ()<UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout>
@property (nonatomic, strong) NSMutableArray *arrData;
@property (nonatomic, strong) UICollectionView *collectionView;
@end
......@@ -31,11 +33,49 @@
self.navigationItem.title = @"添加商品";
[self setUpCollectionView];
[self updateStatueBarAppearance];
[self setUpdata];
// Do any additional setup after loading the view.
}
- (NSMutableArray *)arrData {
if (!_arrData) {
_arrData = [NSMutableArray array];
}
return _arrData;
}
- (void)setUpdata {
WS(weakSelf)
[[HTTPCilent shareCilent] GET:[NSString stringWithFormat:@"app/getGoodsFilter/%@", @"0001"] parameters:nil success:^(NSURLSessionDataTask *task, id responseObject) {
NSMutableArray *arrHotBrand = [NSMutableArray array];
for (NSDictionary *dic in responseObject[@"hotBrands"]) {
[HotBrandModel mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
return @{@"aid":@"id",
@"adescription":@"description",
@"aoperator":@"operator"};
}];
HotBrandModel *model = [HotBrandModel mj_objectWithKeyValues:dic];
[arrHotBrand addObject:model];
CLog(@"d");
}
[weakSelf.arrData addObject:arrHotBrand];
NSMutableArray *arrCategory = [NSMutableArray array];
for (NSDictionary *dic in responseObject[@"categories"]) {
[CatgoryModel mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
return @{@"aid":@"id",
@"adescription":@"description",
@"aoperator":@"operator"};
}];
CatgoryModel *model = [CatgoryModel mj_objectWithKeyValues:dic];
[arrCategory addObject:model];
}
[weakSelf.arrData addObject:arrCategory];
- (void)setUpdate {
[self.collectionView reloadData];
} failure:^(NSURLSessionDataTask *task, NSError *error) {
}];
}
//设置navigationbar颜色
......@@ -131,52 +171,39 @@
}
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView {
return 5;
return self.arrData.count;
}
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
if (section == 0) {
return 3;
}else{
return 6;
}
return [self.arrData[section] count];
}
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
//热门品牌
if (indexPath.section == 0) {
HotCommodityCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:kHotCellId forIndexPath:indexPath];
[cell cellWithModel:self.arrData[indexPath.section][indexPath.row] indexPath:indexPath];
//
if ((int)indexPath.row % 3 == 2) {
[cell showRight];
}else{
[cell hideRight];
}
return cell;
}else{
AddCommodityCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:kCellId forIndexPath:indexPath];
//分类
}else if(indexPath.section == 1){
AddCommodityCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:kCellId forIndexPath:indexPath];
if ((int)indexPath.row / 4 == 0) {
[cell showTopLine];
}else{
[cell hideTopLine];
}
[cell cellWithModel:self.arrData[indexPath.section][indexPath.row] indexPath:indexPath];
if ((int)indexPath.row % 4 == 0) {
[cell showLeftLine];
}else{
[cell hideLeftLine];
}
return cell;
}
return nil;
}
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
CommodityListViewController *commodityVC = [[CommodityListViewController alloc] init];
commodityVC.hidesBottomBarWhenPushed = YES;
commodityVC.model = self.arrData[indexPath.section][indexPath.row];
[self.navigationController pushViewController:commodityVC animated:YES];
}
......
......@@ -9,5 +9,5 @@
#import "IBTUIViewController.h"
@interface CommodityListViewController : IBTUIViewController
@property (nonatomic, strong) id model;
@end
......@@ -10,6 +10,9 @@
#import "CommodityListCollectionViewCell.h"
#import "SortView.h"
#import "CommodityDetailViewController.h"
#import "RequstBodyCommodityListModel.h"
#import "HotBrandModel.h"
#define kCellID @"commodityCell"
@interface CommodityListViewController ()<UICollectionViewDataSource, UICollectionViewDelegate>
@property (nonatomic, strong) UICollectionView *collectionView;
......@@ -24,9 +27,39 @@
self.view.backgroundColor = kBacroundColor;
[self setUpSortView];
[self setUpCollectionView];
[self setUpData];
// Do any additional setup after loading the view.
}
- (void)setUpData {
RequstBodyCommodityListModel *requstBody = [[RequstBodyCommodityListModel alloc] init];
if ([self.model isKindOfClass:[HotBrandModel class]]) {
HotBrandModel *model = self.model;
requstBody.defintion.conditions[0].operation = [NSString stringWithFormat:@"goodsData brand %@ equals", model.uuid];
requstBody.defintion.conditions[0].parameters = @[model.uuid];
//requstBody.defintion.orders = @[@"10",@"1",@"1"];
requstBody.defintion.pageSize = 10;
requstBody.defintion.page = 0;
requstBody.defintion.probePages = 0;
NSDictionary *params = requstBody.mj_keyValues;
[[HTTPCilent shareCilent] POST:@"goods/query2" parameters:params success:^(NSURLSessionDataTask *task, id responseObject) {
CLog(@"d");
} failure:^(NSURLSessionDataTask *task, NSError *error) {
}];
}
}
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self.navigationController setNavigationBarHidden:NO];
......
......@@ -95,7 +95,7 @@
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self.navigationController setNavigationBarHidden:NO];
//[self.navigationController setNavigationBarHidden:NO];
}
- (void)didReceiveMemoryWarning {
......
......@@ -121,6 +121,7 @@
{
CommodityManagementViewController *managementVC = [[CommodityManagementViewController alloc] init];
managementVC.hidesBottomBarWhenPushed = YES;
managementVC.isShowNavigationBar = YES;
[self.navigationController pushViewController:managementVC animated:YES];
}
......@@ -129,6 +130,7 @@
{
OrderViewController *orderVC = [[OrderViewController alloc] init];
orderVC.hidesBottomBarWhenPushed = YES;
orderVC.isShowNavigationBar = YES;
[self.navigationController pushViewController:orderVC animated:YES];
}
......
......@@ -50,11 +50,6 @@
}
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self.navigationController setNavigationBarHidden:NO];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
......
......@@ -10,6 +10,8 @@
#import "StoreQRCodeViewController.h"
#import "SelectPhotoView.h"
#import "CoverShadowView.h"
#import "StoreNameViewController.h"
#import "introductionViewController.h"
@interface StoreManagermentViewController ()<UINavigationControllerDelegate, UIImagePickerControllerDelegate>
@property (nonatomic, strong) SelectPhotoView *photoView;
@property (nonatomic, strong) CoverShadowView *shadowView;
......@@ -44,7 +46,7 @@
//相册
_photoView.galleryBlock = ^{
[weakSelf gallery];
};
//阴影点击事件
......@@ -58,6 +60,7 @@
}
- (void)takePhotoAction {
[self hide];
if (![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:@"找不到相机" delegate:nil cancelButtonTitle:nil otherButtonTitles:@"确定", nil];
[alert show];
......@@ -71,6 +74,20 @@
}
}
- (void)gallery {
[self hide];
if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary]) {
UIImagePickerController * picker = [[UIImagePickerController alloc]init];
picker.delegate = self;
picker.allowsEditing = YES;//是否可以编辑
//打开相册选择照片
picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
// 模态进入相册
[self presentViewController:picker animated:YES completion:nil];
}
}
/**
* 显示阴影和底部的弹框
*/
......@@ -84,6 +101,9 @@
[self.shadowView hide];
}
- (IBAction)actionBack:(id)sender {
[self PopViewControllerAnimated:YES];
}
- (IBAction)headSculpture:(id)sender {
CLog(@"头像");
......@@ -91,13 +111,21 @@
}
- (IBAction)shopName:(id)sender {
StoreNameViewController *nameVC = [[StoreNameViewController alloc] initWithNibName:@"StoreNameViewController" bundle:nil];
nameVC.isShowNavigationBar = YES;
[self.navigationController pushViewController:nameVC animated:YES];
}
- (IBAction)shopIntroduction:(id)sender {
introductionViewController *introVC = [[introductionViewController alloc] initWithNibName:@"introductionViewController" bundle:nil];
introVC.isShowNavigationBar = YES;
[self.navigationController pushViewController:introVC animated:YES];
}
- (IBAction)shopLV:(id)sender {
}
- (IBAction)QRCodeAction:(id)sender {
StoreQRCodeViewController *QRCodeVC = [[StoreQRCodeViewController alloc] initWithNibName:@"StoreQRCodeViewController" bundle:nil];
[self.navigationController pushViewController:QRCodeVC animated:YES];
}
......
......@@ -76,6 +76,9 @@
<constraint firstAttribute="width" constant="12" id="CPa-fC-cp8"/>
</constraints>
<state key="normal" image="bac"/>
<connections>
<action selector="actionBack:" destination="-1" eventType="touchUpInside" id="ByM-CS-SM8"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" red="0.34509803921568627" green="0.75686274509803919" blue="0.050980392156862744" alpha="1" colorSpace="calibratedRGB"/>
......
//
// StoreNameViewController.h
// ALand
//
// Created by Z on 16/4/7.
// Copyright © 2016年 Z. All rights reserved.
//
#import "IBTUIViewController.h"
@interface StoreNameViewController : IBTUIViewController
@end
//
// StoreNameViewController.m
// ALand
//
// Created by Z on 16/4/7.
// Copyright © 2016年 Z. All rights reserved.
//
#import "StoreNameViewController.h"
@interface StoreNameViewController ()
@end
@implementation StoreNameViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.navigationItem.title = @"店铺名称";
// 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="StoreNameViewController">
<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="ALc-34-26d">
<rect key="frame" x="0.0" y="20" width="375" height="49"/>
<subviews>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="deL-BR-euJ">
<rect key="frame" x="16" y="10" width="343" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="bF5-mo-edx"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="deL-BR-euJ" secondAttribute="trailing" constant="16" id="ZS3-uO-3OY"/>
<constraint firstAttribute="bottom" secondItem="deL-BR-euJ" secondAttribute="bottom" constant="9" id="jJm-Y2-OBh"/>
<constraint firstItem="deL-BR-euJ" firstAttribute="top" secondItem="ALc-34-26d" secondAttribute="top" constant="10" id="qon-9U-QRF"/>
<constraint firstItem="deL-BR-euJ" firstAttribute="leading" secondItem="ALc-34-26d" secondAttribute="leading" constant="16" id="z8k-SZ-X0T"/>
</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="TXP-n0-MIE">
<rect key="frame" x="16" y="77" width="210" height="18"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<color key="textColor" red="0.50823958329999996" green="0.50823958329999996" blue="0.50823958329999996" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="6bk-SN-0aE">
<rect key="frame" x="16" y="140" width="343" height="44"/>
<constraints>
<constraint firstAttribute="width" constant="300" id="t3f-bF-Bfe"/>
<constraint firstAttribute="height" constant="44" id="yxw-16-mEI"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="20"/>
<state key="normal" title="保 存" backgroundImage="rigist_btn_bg">
<color key="titleColor" red="0.97254901959999995" green="0.97254901959999995" blue="0.97254901959999995" alpha="1" colorSpace="calibratedRGB"/>
</state>
<variation key="default">
<mask key="constraints">
<exclude reference="t3f-bF-Bfe"/>
</mask>
</variation>
</button>
</subviews>
<color key="backgroundColor" red="0.94901960784313721" green="0.94901960784313721" blue="0.94901960784313721" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="deL-BR-euJ" firstAttribute="leading" secondItem="TXP-n0-MIE" secondAttribute="leading" id="2n1-Ra-iso"/>
<constraint firstItem="6bk-SN-0aE" firstAttribute="trailing" secondItem="deL-BR-euJ" secondAttribute="trailing" id="HZL-NY-d7n"/>
<constraint firstItem="ALc-34-26d" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="20" id="Z0V-XA-xLP"/>
<constraint firstItem="6bk-SN-0aE" firstAttribute="top" secondItem="TXP-n0-MIE" secondAttribute="bottom" constant="45" id="Zsv-M4-qFy"/>
<constraint firstItem="TXP-n0-MIE" firstAttribute="top" secondItem="ALc-34-26d" secondAttribute="bottom" constant="8" id="lZv-Ne-Q7E"/>
<constraint firstItem="6bk-SN-0aE" firstAttribute="leading" secondItem="deL-BR-euJ" secondAttribute="leading" id="oWS-mx-phF"/>
<constraint firstItem="ALc-34-26d" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="wgI-Ic-BoN"/>
<constraint firstAttribute="trailing" secondItem="ALc-34-26d" secondAttribute="trailing" id="xvX-LV-hC9"/>
</constraints>
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina47"/>
<point key="canvasLocation" x="249.5" y="353.5"/>
</view>
</objects>
<resources>
<image name="rigist_btn_bg" width="490" height="65"/>
</resources>
</document>
......@@ -18,7 +18,7 @@
- (void)viewDidLoad {
[super viewDidLoad];
UIImage *qrcode = [UIImage createNonInterpolatedUIImageFormCIImage:[UIImage createQRForString:@"http://blog.yourtion.com"] withSize:250.0f];
UIImage *qrcode = [UIImage createNonInterpolatedUIImageFormCIImage:[UIImage createQRForString:@"http://list.jd.hk/list.html?cat=1319%2C1527%2C1556&gjz=0&go=0"] withSize:250.0f];
UIImage *customQrcode = [UIImage imageBlackToTransparent:qrcode withRed:60.0f andGreen:74.0f andBlue:89.0f];
self.imageViewQRCode.image = customQrcode;
// set shadow
......
//
// introductionViewController.h
// ALand
//
// Created by Z on 16/4/7.
// Copyright © 2016年 Z. All rights reserved.
//
#import "IBTUIViewController.h"
@interface introductionViewController : IBTUIViewController
@end
//
// introductionViewController.m
// ALand
//
// Created by Z on 16/4/7.
// Copyright © 2016年 Z. All rights reserved.
//
#import "introductionViewController.h"
@interface introductionViewController ()
@end
@implementation introductionViewController
- (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="introductionViewController">
<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="E6i-A0-uZ0">
<rect key="frame" x="0.0" y="20" width="375" height="195"/>
<subviews>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="JdS-U6-Nfk">
<rect key="frame" x="16" y="0.0" width="343" height="195"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
</textView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="JdS-U6-Nfk" firstAttribute="top" secondItem="E6i-A0-uZ0" secondAttribute="top" id="Bxh-yi-rqa"/>
<constraint firstAttribute="trailing" secondItem="JdS-U6-Nfk" secondAttribute="trailing" constant="16" id="jy8-hg-V93"/>
<constraint firstAttribute="bottom" secondItem="JdS-U6-Nfk" secondAttribute="bottom" id="m29-lX-kSO"/>
<constraint firstItem="JdS-U6-Nfk" firstAttribute="leading" secondItem="E6i-A0-uZ0" secondAttribute="leading" constant="16" id="tbs-Tb-Ses"/>
</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="Ggl-qk-VWW">
<rect key="frame" x="16" y="223" width="180" height="18"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<color key="textColor" red="0.50823958329999996" green="0.50823958329999996" blue="0.50823958329999996" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="4nz-BE-3OY">
<rect key="frame" x="16" y="286" width="343" height="44"/>
<constraints>
<constraint firstAttribute="height" constant="44" id="IpR-h4-oq5"/>
<constraint firstAttribute="width" constant="300" id="PUr-Us-CDz"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="20"/>
<state key="normal" title="保 存" backgroundImage="rigist_btn_bg">
<color key="titleColor" red="0.97254901959999995" green="0.97254901959999995" blue="0.97254901959999995" alpha="1" colorSpace="calibratedRGB"/>
</state>
<variation key="default">
<mask key="constraints">
<exclude reference="PUr-Us-CDz"/>
</mask>
</variation>
</button>
</subviews>
<color key="backgroundColor" red="0.94901960780000005" green="0.94901960780000005" blue="0.94901960780000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="Ggl-qk-VWW" firstAttribute="top" secondItem="E6i-A0-uZ0" secondAttribute="bottom" constant="8" id="4rA-Ka-kGe"/>
<constraint firstItem="4nz-BE-3OY" firstAttribute="top" secondItem="Ggl-qk-VWW" secondAttribute="bottom" constant="45" id="7R1-LT-i6e"/>
<constraint firstItem="JdS-U6-Nfk" firstAttribute="leading" secondItem="Ggl-qk-VWW" secondAttribute="leading" id="8xL-9J-afi"/>
<constraint firstItem="JdS-U6-Nfk" firstAttribute="leading" secondItem="4nz-BE-3OY" secondAttribute="leading" id="A0c-qU-XsT"/>
<constraint firstItem="E6i-A0-uZ0" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="HL0-2m-QxH"/>
<constraint firstAttribute="trailing" secondItem="E6i-A0-uZ0" secondAttribute="trailing" id="dVb-8y-jj0"/>
<constraint firstItem="JdS-U6-Nfk" firstAttribute="trailing" secondItem="4nz-BE-3OY" secondAttribute="trailing" id="m4N-LC-Dry"/>
<constraint firstItem="E6i-A0-uZ0" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="20" id="oGx-fb-PYR"/>
<constraint firstAttribute="bottom" secondItem="E6i-A0-uZ0" secondAttribute="bottom" constant="452" id="ovE-Bw-nu3"/>
</constraints>
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina47"/>
<point key="canvasLocation" x="325.5" y="414.5"/>
</view>
</objects>
<resources>
<image name="rigist_btn_bg" width="490" height="65"/>
</resources>
</document>
......@@ -60,12 +60,12 @@
<constraint firstAttribute="height" constant="30" id="bqM-pK-6q9"/>
</constraints>
</imageView>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入手机号码" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="5eD-la-0j7">
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="1" placeholder="请输入手机号码" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="5eD-la-0j7">
<rect key="frame" x="70" y="10" width="273" height="30"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<textInputTraits key="textInputTraits"/>
</textField>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入密码" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="mu2-3E-jKv">
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="1" placeholder="请输入密码" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="mu2-3E-jKv">
<rect key="frame" x="70" y="65" width="273" height="22"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<textInputTraits key="textInputTraits"/>
......
......@@ -10,13 +10,20 @@
#import "ToLoginViewController.h"
#import "RigistViewController.h"
@interface LoginViewController ()
@property (weak, nonatomic) IBOutlet UIButton *buttonQQ;
@property (weak, nonatomic) IBOutlet UIButton *buttonWX;
@property (weak, nonatomic) IBOutlet UIButton *buttonWeibo;
@end
@implementation LoginViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.buttonQQ.imageView.contentMode = UIViewContentModeScaleAspectFit;
self.buttonWX.imageView.contentMode = UIViewContentModeScaleAspectFit;
self.buttonWeibo.imageView.contentMode = UIViewContentModeScaleAspectFit;
// Do any additional setup after loading the view.
}
......@@ -43,6 +50,7 @@
- (IBAction)toTencentLogin:(UIButton *)sender {
}
- (IBAction)toWeiChatLogin:(id)sender {
......
......@@ -7,6 +7,9 @@
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="LoginViewController">
<connections>
<outlet property="buttonQQ" destination="z3d-I1-xgq" id="5yb-hV-Q8v"/>
<outlet property="buttonWX" destination="MLu-aw-fed" id="vDv-aG-Vge"/>
<outlet property="buttonWeibo" destination="GKk-w1-UAd" id="Is7-a9-E6b"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
......@@ -97,7 +100,7 @@
<color key="textColor" red="0.60000002379999995" green="0.60000002379999995" blue="0.60000002379999995" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleAspectFit" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="z3d-I1-xgq">
<button opaque="NO" contentMode="scaleAspectFit" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="z3d-I1-xgq">
<rect key="frame" x="56" y="569" width="46" height="44"/>
<constraints>
<constraint firstAttribute="height" constant="44" id="KxF-6a-zN9"/>
......@@ -105,7 +108,7 @@
<constraint firstAttribute="height" constant="44" id="dAV-9a-8ez"/>
<constraint firstAttribute="width" constant="46" id="fDN-v7-yl4"/>
</constraints>
<state key="normal" backgroundImage="qq"/>
<state key="normal" image="qq"/>
<variation key="default">
<mask key="constraints">
<exclude reference="dAV-9a-8ez"/>
......@@ -116,18 +119,18 @@
<action selector="toTencentLogin:" destination="-1" eventType="touchUpInside" id="rUM-wZ-v0N"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleAspectFit" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="MLu-aw-fed">
<rect key="frame" x="164" y="569" width="46" height="44"/>
<button opaque="NO" contentMode="scaleAspectFit" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="MLu-aw-fed">
<rect key="frame" x="165" y="569" width="46" height="44"/>
<constraints>
<constraint firstAttribute="height" constant="44" id="8gK-Qk-xIj"/>
<constraint firstAttribute="width" constant="46" id="WUh-lF-P0E"/>
</constraints>
<state key="normal" backgroundImage="weichat"/>
<state key="normal" image="weichat"/>
<connections>
<action selector="toWeiChatLogin:" destination="-1" eventType="touchUpInside" id="1Pg-O6-y4K"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleAspectFit" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="GKk-w1-UAd">
<button opaque="NO" contentMode="scaleAspectFit" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="GKk-w1-UAd">
<rect key="frame" x="272" y="569" width="46" height="44"/>
<constraints>
<constraint firstAttribute="height" constant="44" id="83t-5K-vGR"/>
......@@ -135,7 +138,7 @@
<constraint firstAttribute="width" constant="46" id="EXs-9P-oSU"/>
<constraint firstAttribute="width" constant="46" id="XqQ-p4-qLl"/>
</constraints>
<state key="normal" backgroundImage="weibo"/>
<state key="normal" image="weibo"/>
<variation key="default">
<mask key="constraints">
<exclude reference="83t-5K-vGR"/>
......
......@@ -33,6 +33,9 @@
[MBProgressHUD showHUDAddedTo:self.view animated:YES];
[[HTTPCilent shareCilent] POST:@"app/resellerLogin" parameters:paramers success:^(NSURLSessionDataTask *task, id responseObject) {
UserInfo *info = [UserInfo shareInstance];
[UserInfo mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
return @{@"description":@"adescription"};
}];
info = [UserInfo mj_objectWithKeyValues:responseObject[@"reseller"]];
[MBProgressHUD hideHUDForView:self.view animated:YES];
......
......@@ -8,7 +8,7 @@
#import <Foundation/Foundation.h>
@class Certificate,Lastmodifyinfo,Passwordcontrol,Shop,Createinfo,Ownerorg,Logincontrol;
@class Certificate,Lastmodifyinfo,Passwordcontrol,Shop,Createinfo,Ownerorg,Logincontrol,Operator;
@interface UserInfo : NSObject
@property (nonatomic, copy) NSString *birthday;
......@@ -61,9 +61,11 @@
@property (nonatomic, strong) Logincontrol *loginControl;
@property (nonatomic, copy) NSString *adescription;
+ (UserInfo *)shareInstance;
@end
@interface Certificate : NSObject
@property (nonatomic, strong) NSArray *bankCards;
......@@ -84,16 +86,18 @@
@interface Lastmodifyinfo : NSObject
@property (nonatomic, copy) NSString *operator;
@property (nonatomic, assign) long long time;
@property (nonatomic, strong) Operator *aoperator;
@end
@interface Passwordcontrol : NSObject
@property (nonatomic, assign) long long created;
@property (nonatomic, copy) NSString *ainitPassword; //initPassword
@property (nonatomic, assign) long long expiry;
@end
......@@ -110,7 +114,7 @@
@interface Createinfo : NSObject
@property (nonatomic, copy) NSString *operator;
@property (nonatomic, strong) Operator *aoperator;
@property (nonatomic, assign) long long time;
......@@ -136,3 +140,10 @@
@end
@interface Operator : NSObject
@property (nonatomic, copy) NSString *aid;
@property (nonatomic, copy) NSString *fullName;
@end
......@@ -56,6 +56,6 @@
@end
@implementation Operator
@end
......@@ -13,6 +13,7 @@
@property (assign, nonatomic) NSUInteger *m_uiVcType;
@property (strong, nonatomic) IBTLoadingView *loadingViewX;
@property (nonatomic, assign) BOOL isShowNavigationBar;
@property (assign, nonatomic) BOOL bNotAutoAddCancelButton;
@property (strong, nonatomic) NSString *cancelButtonName; // 为当前设置 ModuleView Left Close button
......
......@@ -53,6 +53,13 @@
}
[self addLeftBarBtnItemWithName:_cancelButtonName action:@selector(disMissSelf)];
}
if (self.isShowNavigationBar == YES) {
[self.navigationController setNavigationBarHidden:NO animated:YES];
}else if (self.isShowNavigationBar == NO){
[self.navigationController setNavigationBarHidden:YES animated:YES];
}
}
- (void)viewDidAppear:(BOOL)animated {
......
......@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<string>zh_CN</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
......
......@@ -9,7 +9,7 @@
#ifndef UrlHeader_h
#define UrlHeader_h
#define REST_BASE_URL @"http://service.bloem.cn/aland-server/rest"
#define REST_BASE_URL @"http://service.bloem.cn:8080/aland-server/rest"
#define kDomain @"0001" //组织代码
......
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