Skip to content

Commit

Permalink
添加会员管理
Browse files Browse the repository at this point in the history
  • Loading branch information
锦超 committed Sep 5, 2015
1 parent 1ca611f commit c36c29d
Show file tree
Hide file tree
Showing 18 changed files with 344 additions and 48 deletions.
Binary file added YHB_Prj/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions YHB_Prj/YHB_Prj.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@
FF5CC7101B9420E000F55713 /* JCCXCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = FF5CC70E1B9420E000F55713 /* JCCXCell.xib */; };
FF5CC7131B94262F00F55713 /* JCCXManager.m in Sources */ = {isa = PBXBuildFile; fileRef = FF5CC7121B94262F00F55713 /* JCCXManager.m */; };
FF5CC7161B94264D00F55713 /* JCCXMode.m in Sources */ = {isa = PBXBuildFile; fileRef = FF5CC7151B94264D00F55713 /* JCCXMode.m */; };
FF5CC71D1B99A45400F55713 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = FF5CC71C1B99A45400F55713 /* [email protected] */; };
FF5CC7241B9A8D8C00F55713 /* JCCXSXViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = FF5CC7221B9A8D8C00F55713 /* JCCXSXViewController.m */; };
FF5CC7251B9A8D8C00F55713 /* JCCXSXViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = FF5CC7231B9A8D8C00F55713 /* JCCXSXViewController.xib */; };
FFD26CCE1B86D0D50003F491 /* FirstMode.m in Sources */ = {isa = PBXBuildFile; fileRef = FFD26CCD1B86D0D50003F491 /* FirstMode.m */; };
FFD26CDE1B8B0B4E0003F491 /* KCYJManager.m in Sources */ = {isa = PBXBuildFile; fileRef = FFD26CDD1B8B0B4E0003F491 /* KCYJManager.m */; };
FFD26CE11B8B10970003F491 /* KCYJMode.m in Sources */ = {isa = PBXBuildFile; fileRef = FFD26CE01B8B10970003F491 /* KCYJMode.m */; };
Expand Down Expand Up @@ -590,6 +593,10 @@
FF5CC7121B94262F00F55713 /* JCCXManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JCCXManager.m; sourceTree = "<group>"; };
FF5CC7141B94264D00F55713 /* JCCXMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JCCXMode.h; sourceTree = "<group>"; };
FF5CC7151B94264D00F55713 /* JCCXMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JCCXMode.m; sourceTree = "<group>"; };
FF5CC71C1B99A45400F55713 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
FF5CC7211B9A8D8C00F55713 /* JCCXSXViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JCCXSXViewController.h; sourceTree = "<group>"; };
FF5CC7221B9A8D8C00F55713 /* JCCXSXViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JCCXSXViewController.m; sourceTree = "<group>"; };
FF5CC7231B9A8D8C00F55713 /* JCCXSXViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = JCCXSXViewController.xib; sourceTree = "<group>"; };
FFD26CCC1B86D0D50003F491 /* FirstMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FirstMode.h; sourceTree = "<group>"; };
FFD26CCD1B86D0D50003F491 /* FirstMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FirstMode.m; sourceTree = "<group>"; };
FFD26CDC1B8B0B4E0003F491 /* KCYJManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KCYJManager.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1017,6 +1024,7 @@
FF2A6BD11A0F3780001607AC = {
isa = PBXGroup;
children = (
FF5CC71C1B99A45400F55713 /* [email protected] */,
5BA5AA321B98299D00329677 /* AVFoundation.framework */,
FF5C87281B8318C500F79EC1 /* libsqlite3.dylib */,
FF2A6BDC1A0F3780001607AC /* YHB_Prj */,
Expand Down Expand Up @@ -1511,6 +1519,9 @@
FF5CC7071B93FA0B00F55713 /* JCCXViewController.h */,
FF5CC7081B93FA0B00F55713 /* JCCXViewController.m */,
FF5CC7091B93FA0B00F55713 /* JCCXViewController.xib */,
FF5CC7211B9A8D8C00F55713 /* JCCXSXViewController.h */,
FF5CC7221B9A8D8C00F55713 /* JCCXSXViewController.m */,
FF5CC7231B9A8D8C00F55713 /* JCCXSXViewController.xib */,
FF5CC7111B94262F00F55713 /* JCCXManager.h */,
FF5CC7121B94262F00F55713 /* JCCXManager.m */,
FF5CC70C1B9420E000F55713 /* JCCXCell.h */,
Expand Down Expand Up @@ -1701,6 +1712,7 @@
AB42ACD11B8B4140001FB93A /* FourthTableViewCell.xib in Resources */,
FF4DFD041B85A5DF00617660 /* DateSelectVC.xib in Resources */,
AB42ACDA1B8BE303001FB93A /* GateTableViewCell.xib in Resources */,
FF5CC71D1B99A45400F55713 /* [email protected] in Resources */,
FF5C871A1B83024C00F79EC1 /* LICENSE.txt in Resources */,
AB3877AB1B97D7F700DD7468 /* YDCXCell.xib in Resources */,
FF5CC7031B93EE5300F55713 /* RuKushenpinVC.xib in Resources */,
Expand All @@ -1715,6 +1727,7 @@
AB40EAC61B8C021800DE5ED7 /* SupplierTableViewCell.xib in Resources */,
AB2579411B8F02010015039A /* IQKeyboardManager.bundle in Resources */,
FF5CC7051B93EE5300F55713 /* SXViewController.xib in Resources */,
FF5CC7251B9A8D8C00F55713 /* JCCXSXViewController.xib in Resources */,
AB40EABD1B8BFA0100DE5ED7 /* ClerkTableViewCell.xib in Resources */,
FF2A6BE51A0F3780001607AC /* Images.xcassets in Resources */,
FF2A6C431A0F3B6D001607AC /* SVProgressHUD.bundle in Resources */,
Expand Down Expand Up @@ -1823,6 +1836,7 @@
FF2A6C6C1A0F3B7B001607AC /* NSData+ImageContentType.m in Sources */,
FF2A6C701A0F3B7B001607AC /* SDWebImageDownloader.m in Sources */,
FF2A6C481A0F3B72001607AC /* JSONKit.m in Sources */,
FF5CC7241B9A8D8C00F55713 /* JCCXSXViewController.m in Sources */,
AB3877AE1B97DF8200DD7468 /* YDCXManager.m in Sources */,
FF2A6C781A0F3B7B001607AC /* UIImageView+HighlightedWebCache.m in Sources */,
FFD26CE11B8B10970003F491 /* KCYJMode.m in Sources */,
Expand Down
2 changes: 2 additions & 0 deletions YHB_Prj/YHB_Prj/FirstViewController/FirstVCManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@
//3、 首页预警数字查询
- (void)getHomePageInfoApp:(NSString *)aStoreId
finishBlock:(void(^)(FirstMode *mode))aFinishBlock;

- (void)uploadImg;
@end
13 changes: 13 additions & 0 deletions YHB_Prj/YHB_Prj/FirstViewController/FirstVCManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,17 @@ - (void)getHomePageInfoApp:(NSString *)aStoreId
aFinishBlock(nil);
}];
}

- (void)uploadImg
{
NSString *resourcePath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"[email protected]"];
//JFB_First_Close@2x
[NetManager uploadImg:[UIImage imageNamed:@"clerk_1"] imgFilePath:resourcePath parameters:nil apiName:@"uploadUserFacePic" uploadUrl:nil uploadimgName:@"image" progressBlock:^(NSUInteger bytesWritten, long long totalBytesWritten, long long totalBytesExpectedToWrite) {

} succ:^(NSDictionary *successDict) {

} failure:^(NSDictionary *failDict, NSError *error) {

}];
}
@end
1 change: 1 addition & 0 deletions YHB_Prj/YHB_Prj/FirstViewController/FirstViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ - (void)requestHomeData
#pragma mark Head 部分 日期按钮的事件及页面操作回调
- (void)head_rbtItem:(UIButton *)abt
{
// [self.manager uploadImg];
self.dateVC = (DateSelectVC *)[self pushXIBName:@"DateSelectVC" animated:YES selector:nil param:nil];
[self obserDateVCValue];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ - (void)imagePickerController:(UIImagePickerController *)picker didFinishPicking
[[SDImageCache sharedImageCache] storeImage:image
forKey:userFace
toDisk:YES];
[NetManager uploadImg:image parameters:nil apiName:@"uploadUserFacePic" uploadUrl:nil uploadimgName:nil progressBlock:^(NSUInteger bytesWritten, long long totalBytesWritten, long long totalBytesExpectedToWrite) {
[NetManager uploadImg:image imgFilePath:nil parameters:nil apiName:@"uploadUserFacePic" uploadUrl:nil uploadimgName:nil progressBlock:^(NSUInteger bytesWritten, long long totalBytesWritten, long long totalBytesExpectedToWrite) {
MLOG(@"%f", (float)totalBytesExpectedToWrite/totalBytesWritten);
} succ:^(NSDictionary *successDict) {
MLOG(@"1");
Expand Down
4 changes: 4 additions & 0 deletions YHB_Prj/YHB_Prj/HuiyuanGuanli/HYCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ - (void)setCellData:(VipInfoMode *)aMode isSelect:(BOOL)aIsSelect indexpath:(int
{
[self.selectButton setImage:[UIImage imageNamed:@"hyList_icon_nor"] forState:UIControlStateNormal];
}
if(aIndex < 0)
{
self.selectButton.hidden = YES;
}
}

- (void)selectButtomItem
Expand Down
1 change: 1 addition & 0 deletions YHB_Prj/YHB_Prj/HuiyuanGuanli/HYGLViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@

@interface HYGLViewController : BaseViewController< UITableViewDelegate, UISearchDisplayDelegate, UISearchBarDelegate,UITableViewDataSource>

@property (nonatomic, assign)BOOL isNOPushDetail;
- (void)getUserSelectList:(void(^)(NSMutableArray *selectList))aSelectBlock;
@end
5 changes: 4 additions & 1 deletion YHB_Prj/YHB_Prj/HuiyuanGuanli/HYGLViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,10 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
{
mode = [self.vipInfoArry objectAtIndex:indexPath.row];
}
[self pushXIBName:@"HYDetailViewController" animated:YES selector:@"setDetailData:" param:mode,nil];
if(self.isNOPushDetail == NO)
{
[self pushXIBName:@"HYDetailViewController" animated:YES selector:@"setDetailData:" param:mode,nil];
}
}

#pragma mark scrollview delegate
Expand Down
4 changes: 2 additions & 2 deletions YHB_Prj/YHB_Prj/Jicunchaxun/JCCXCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ - (void)setCellData:(JCCXMode *)aMode

- (void)resetview
{
self.vipNumLabel.text = @"";
self.vipNameLabel.text = @"";
self.vipNumLabel.text = @" ";
self.vipNameLabel.text = @" ";
self.pinmingLabel.text = @"";
self.dianmingLabel.text = @"";
self.dqkcCountLabel.text = @"";
Expand Down
40 changes: 5 additions & 35 deletions YHB_Prj/YHB_Prj/Jicunchaxun/JCCXCell.xib
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="1" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Jvw-FM-SeZ">
<rect key="frame" x="89" y="106" width="83" height="21"/>
<rect key="frame" x="89" y="106" width="63" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
Expand All @@ -71,19 +71,19 @@
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="f7h-mK-gsW">
<rect key="frame" x="0.0" y="0.0" width="320" height="31"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="0001" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fmx-Sn-Tyw">
<rect key="frame" x="41" y="5" width="69" height="21"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fmx-Sn-Tyw">
<rect key="frame" x="41" y="5" width="133" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<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" fixedFrame="YES" text="NO." lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="O3B-lO-cuz">
<rect key="frame" x="14" y="5" width="42" height="21"/>
<rect key="frame" x="14" y="5" width="28" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<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" fixedFrame="YES" text="" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="55E-hf-e6d">
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="55E-hf-e6d">
<rect key="frame" x="230" y="5" width="100" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
Expand All @@ -98,36 +98,6 @@
</subviews>
<color key="backgroundColor" red="0.84967425490000004" green="0.86634011239999997" blue="0.83464072469999995" alpha="1" colorSpace="calibratedRGB"/>
</view>
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="2bR-LK-QN2">
<rect key="frame" x="0.0" y="170" width="320" height="1"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="0001" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="acT-7f-8g9">
<rect key="frame" x="41" y="5" width="69" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<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" fixedFrame="YES" text="NO." lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ikf-7l-Yxa">
<rect key="frame" x="14" y="5" width="42" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<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" fixedFrame="YES" text="" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dYa-wh-boA">
<rect key="frame" x="230" y="5" width="100" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<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" fixedFrame="YES" text="会员:" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="M0R-jo-X9h">
<rect key="frame" x="193" y="5" width="42" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.60000002379999995" green="0.60000002379999995" blue="0.60000002379999995" alpha="1" colorSpace="calibratedRGB"/>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="1" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7MB-29-0iE">
<rect key="frame" x="233" y="106" width="65" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
Expand Down
13 changes: 13 additions & 0 deletions YHB_Prj/YHB_Prj/Jicunchaxun/JCCXSXViewController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// JCCXSXViewController.h
// YHB_Prj
//
// Created by striveliu on 15/9/5.
// Copyright (c) 2015年 striveliu. All rights reserved.
//

#import "BaseViewController.h"

@interface JCCXSXViewController : BaseViewController<UITableViewDelegate,UITableViewDataSource>

@end
Loading

0 comments on commit c36c29d

Please sign in to comment.