Commit cd2eb4ae authored by Sandy's avatar Sandy

对账

parent ee92fd8c
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.0.2</string> <string>1.0.4</string>
<key>CFBundleURLTypes</key> <key>CFBundleURLTypes</key>
<array> <array>
<dict> <dict>
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</dict> </dict>
</array> </array>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1.0.2</string> <string>1.0.4</string>
<key>LSApplicationQueriesSchemes</key> <key>LSApplicationQueriesSchemes</key>
<array> <array>
<string>wechat</string> <string>wechat</string>
......
...@@ -812,7 +812,7 @@ ...@@ -812,7 +812,7 @@
TargetAttributes = { TargetAttributes = {
8F97C2B71E0CC4BE00D8A57D = { 8F97C2B71E0CC4BE00D8A57D = {
CreatedOnToolsVersion = 8.1; CreatedOnToolsVersion = 8.1;
DevelopmentTeam = W54V2VB863; DevelopmentTeam = 3KJ9G3LC6T;
ProvisioningStyle = Automatic; ProvisioningStyle = Automatic;
SystemCapabilities = { SystemCapabilities = {
com.apple.BackgroundModes = { com.apple.BackgroundModes = {
...@@ -836,7 +836,7 @@ ...@@ -836,7 +836,7 @@
TestTargetID = 8F97C2B71E0CC4BE00D8A57D; TestTargetID = 8F97C2B71E0CC4BE00D8A57D;
}; };
8FFE3DDA1E14AC6700BEB6A6 = { 8FFE3DDA1E14AC6700BEB6A6 = {
DevelopmentTeam = W54V2VB863; DevelopmentTeam = 3KJ9G3LC6T;
}; };
}; };
}; };
...@@ -1264,7 +1264,7 @@ ...@@ -1264,7 +1264,7 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = Car/Car.entitlements; CODE_SIGN_ENTITLEMENTS = Car/Car.entitlements;
DEVELOPMENT_TEAM = W54V2VB863; DEVELOPMENT_TEAM = 3KJ9G3LC6T;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "$(SRCROOT)/Car/PrefixHeader.pch"; GCC_PREFIX_HEADER = "$(SRCROOT)/Car/PrefixHeader.pch";
...@@ -1276,7 +1276,7 @@ ...@@ -1276,7 +1276,7 @@
INFOPLIST_FILE = Car/Info.plist; INFOPLIST_FILE = Car/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0; IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.gomore.car; PRODUCT_BUNDLE_IDENTIFIER = com.czt.car;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/**"; USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/**";
}; };
...@@ -1288,7 +1288,7 @@ ...@@ -1288,7 +1288,7 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = Car/Car.entitlements; CODE_SIGN_ENTITLEMENTS = Car/Car.entitlements;
DEVELOPMENT_TEAM = W54V2VB863; DEVELOPMENT_TEAM = 3KJ9G3LC6T;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "$(SRCROOT)/Car/PrefixHeader.pch"; GCC_PREFIX_HEADER = "$(SRCROOT)/Car/PrefixHeader.pch";
...@@ -1300,7 +1300,7 @@ ...@@ -1300,7 +1300,7 @@
INFOPLIST_FILE = Car/Info.plist; INFOPLIST_FILE = Car/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0; IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.gomore.car; PRODUCT_BUNDLE_IDENTIFIER = com.czt.car;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/**"; USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/**";
}; };
...@@ -1376,7 +1376,7 @@ ...@@ -1376,7 +1376,7 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = Car/Car.entitlements; CODE_SIGN_ENTITLEMENTS = Car/Car.entitlements;
DEVELOPMENT_TEAM = W54V2VB863; DEVELOPMENT_TEAM = 3KJ9G3LC6T;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "$(SRCROOT)/Car/PrefixHeader.pch"; GCC_PREFIX_HEADER = "$(SRCROOT)/Car/PrefixHeader.pch";
...@@ -1387,7 +1387,7 @@ ...@@ -1387,7 +1387,7 @@
INFOPLIST_FILE = "$(SRCROOT)/Car Release.plist"; INFOPLIST_FILE = "$(SRCROOT)/Car Release.plist";
IPHONEOS_DEPLOYMENT_TARGET = 8.0; IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.gomore.car; PRODUCT_BUNDLE_IDENTIFIER = com.czt.car;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/**"; USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/**";
}; };
...@@ -1399,7 +1399,7 @@ ...@@ -1399,7 +1399,7 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = Car/Car.entitlements; CODE_SIGN_ENTITLEMENTS = Car/Car.entitlements;
DEVELOPMENT_TEAM = W54V2VB863; DEVELOPMENT_TEAM = 3KJ9G3LC6T;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "$(SRCROOT)/Car/PrefixHeader.pch"; GCC_PREFIX_HEADER = "$(SRCROOT)/Car/PrefixHeader.pch";
...@@ -1410,7 +1410,7 @@ ...@@ -1410,7 +1410,7 @@
INFOPLIST_FILE = "$(SRCROOT)/Car Release.plist"; INFOPLIST_FILE = "$(SRCROOT)/Car Release.plist";
IPHONEOS_DEPLOYMENT_TARGET = 8.0; IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.gomore.car; PRODUCT_BUNDLE_IDENTIFIER = com.czt.car;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/**"; USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/**";
}; };
......
{
"images" : [
{
"idiom" : "universal",
"filename" : "radious_select.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "radious_select@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "radious_select@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "radious_unselect.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "radious_unselect@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "radious_unselect@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
This diff is collapsed.
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
- (void)httpRequest { - (void)httpRequest {
WS(weakSelf); WS(weakSelf);
[MBProgressHUD j_loading]; [MBProgressHUD j_loading];
[kHttp POST:kUserCashRecord parameters:[self.param toDictionary] complete:^(id _Nullable response, NSError * _Nullable error) { [kHttp POST:kUserCashRecord parameters:[self.param toDictionary] complete:^(id _Nullable response, NSError * _Nullable error) {
[MBProgressHUD j_hideLoadingView]; [MBProgressHUD j_hideLoadingView];
if (kRsSuccess(response)) { if (kRsSuccess(response)) {
...@@ -59,7 +60,9 @@ ...@@ -59,7 +60,9 @@
order.direction = @"desc"; order.direction = @"desc";
_param.orders = (NSArray<QueryOrder> *)@[order]; _param.orders = (NSArray<QueryOrder> *)@[order];
_param.userId = kUser.fid; _param.userId = kUser.fid;
_param.pageSize = self.pageSize;
} }
_param.pageNumber = self.page;
return _param; return _param;
} }
......
...@@ -122,6 +122,12 @@ ...@@ -122,6 +122,12 @@
} break; } break;
case AccountViewControllerTypeBinding: { case AccountViewControllerTypeBinding: {
WS(weakSelf); WS(weakSelf);
kCanNotBeNil(self.textFieldScore.text, @"请输入提现工分!");
if ([self.textFieldScore.text doubleValue] > [self.labelValidScore.text doubleValue]) {
[MBProgressHUD j_error:@"可用工分不足!" complete:nil];
break;
}
[self alertTitle:@"确认提交?" [self alertTitle:@"确认提交?"
msg:nil msg:nil
okAction:^(UIAlertAction *_Nullable action) { okAction:^(UIAlertAction *_Nullable action) {
...@@ -176,9 +182,10 @@ ...@@ -176,9 +182,10 @@
@"unionId":uid}; @"unionId":uid};
WS(weakSelf); WS(weakSelf);
[kHttp POST:kModifyUserWxUid parameters:param complete:^(id _Nullable response, NSError * _Nullable error) { [kHttp POST:kModifyUserWxUid parameters:param complete:^(id _Nullable response, NSError * _Nullable error) {
if (kRsMsg(response)) { if (kRsSuccess(response)) {
[MBProgressHUD j_success:@"绑定成功!" complete:^{ [MBProgressHUD j_success:@"绑定成功!" complete:^{
kUser.wxOpenId = response[@"data"]; kUser.wxOpenId = response[@"data"];
weakSelf.type = AccountViewControllerTypeBinding;
[weakSelf isBinding]; [weakSelf isBinding];
}]; }];
}else{ }else{
...@@ -190,7 +197,6 @@ ...@@ -190,7 +197,6 @@
- (void)httpSubmit { - (void)httpSubmit {
[MBProgressHUD j_loading]; [MBProgressHUD j_loading];
WS(weakSelf); WS(weakSelf);
kCanNotBeNil(self.textFieldScore.text, @"请输入要兑换的工分数!");
[kHttp POST:kCashApply [kHttp POST:kCashApply
parameters:[self.param toDictionary] parameters:[self.param toDictionary]
complete:^(id _Nullable response, NSError *_Nullable error) { complete:^(id _Nullable response, NSError *_Nullable error) {
...@@ -214,7 +220,7 @@ ...@@ -214,7 +220,7 @@
if (kRsSuccess(response)) { if (kRsSuccess(response)) {
StationUserAcctEntity *acc = [[StationUserAcctEntity alloc] initWithDictionary:response[@"data"] error:nil]; StationUserAcctEntity *acc = [[StationUserAcctEntity alloc] initWithDictionary:response[@"data"] error:nil];
weakSelf.labelTotalScore.text = [NSString stringWithFormat:@"%@", acc.balance]; weakSelf.labelTotalScore.text = [NSString stringWithFormat:@"%@", acc.balance];
weakSelf.labelValidScore.text = [NSString stringWithFormat:@"%@", acc.drawBalance]; weakSelf.labelValidScore.text = [NSString stringWithFormat:@"%@", acc.drawBalance ? acc.drawBalance : @"0"];
} }
}]; }];
} }
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
@property (weak, nonatomic) IBOutlet UILabel *labelOil; @property (weak, nonatomic) IBOutlet UILabel *labelOil;
@property (weak, nonatomic) IBOutlet UILabel *labelBillNumber; @property (weak, nonatomic) IBOutlet UILabel *labelBillNumber;
@property (weak, nonatomic) IBOutlet UILabel *labelPrice; @property (weak, nonatomic) IBOutlet UILabel *labelPrice;
@property (weak, nonatomic) IBOutlet UIButton *btnIsChecked;
- (void)configCellArray:(NSMutableArray *)array indexPath:(NSIndexPath *)indexPath; - (void)configCellArray:(NSMutableArray *)array indexPath:(NSIndexPath *)indexPath isShow:(BOOL)isShow isAll:(BOOL)isAll;
@end @end
...@@ -8,20 +8,42 @@ ...@@ -8,20 +8,42 @@
#import "OrderListTableViewCell.h" #import "OrderListTableViewCell.h"
#import "OrderListModel.h" #import "OrderListModel.h"
@interface OrderListTableViewCell ()
@property (strong, nonatomic) OrderListModel *model;
@end
@implementation OrderListTableViewCell @implementation OrderListTableViewCell
- (void)awakeFromNib { - (void)awakeFromNib {
[super awakeFromNib]; [super awakeFromNib];
[self.btnIsChecked setBackgroundImage:[UIImage imageNamed:@"radious_select"] forState:UIControlStateDisabled | UIControlStateSelected];
// Initialization code // Initialization code
} }
- (void)configCellArray:(NSMutableArray *)array indexPath:(NSIndexPath *)indexPath { - (void)configCellArray:(NSMutableArray *)array indexPath:(NSIndexPath *)indexPath isShow:(BOOL)isShow isAll:(BOOL)isAll{
OrderListModel *model = array[indexPath.row]; OrderListModel *model = array[indexPath.row];
self.labelTime.text = model.payTime; self.model = model;
self.labelStation.text = [NSString stringWithFormat:@"%@ - %@",model.stationName, model.stationUserName]; self.labelTime.text = model.payTime;
self.labelOil.text = [NSString stringWithFormat:@"%@ - %@",model.gasItemName, model.oilGunName]; self.labelStation.text = [NSString stringWithFormat:@"%@ - %@", model.stationName, model.stationUserName];
self.labelBillNumber.text = model.billNumber; self.labelOil.text = [NSString stringWithFormat:@"%@ - %@", model.gasItemName, model.oilGunName];
self.labelPrice.text = [CalculateHelper getMoneyStringFrom:model.realPayTotal]; self.labelBillNumber.text = model.billNumber;
self.labelPrice.text = [CalculateHelper getMoneyStringFrom:model.realPayTotal];
self.btnIsChecked.selected = model.isSelected;
if ([model.checkState isEqualToString:@"checked"]) {
self.btnIsChecked.enabled = NO;
} else {
self.btnIsChecked.enabled = YES;
}
self.btnIsChecked.hidden = !isShow;
}
- (IBAction)actionCheck:(UIButton *)sender {
sender.selected = !sender.isSelected;
self.model.isSelected = sender.isSelected;
[[NSNotificationCenter defaultCenter] postNotificationName:kNotiSelectBill object:self.model];
} }
- (void)setSelected:(BOOL)selected animated:(BOOL)animated { - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
......
...@@ -27,4 +27,6 @@ ...@@ -27,4 +27,6 @@
@property (strong, nonatomic) NSString *printStateString; @property (strong, nonatomic) NSString *printStateString;
@property (nonatomic, assign) BOOL isSelected;
@end @end
...@@ -11,6 +11,18 @@ ...@@ -11,6 +11,18 @@
@implementation OrderListModel @implementation OrderListModel
- (instancetype)initWithDictionary:(NSDictionary *)dict error:(NSError *__autoreleasing *)err {
self = [super initWithDictionary:dict error:err];
if (self) {
if ([self.checkState isEqualToString:@"checked"]) {
self.isSelected = YES;
}else{
self.isSelected = NO;
}
}
return self;
}
- (NSString *)paymentString { - (NSString *)paymentString {
if (!_paymentString) { if (!_paymentString) {
if ([self.payMethod isEqualToString:@"weixin_pub"]) { if ([self.payMethod isEqualToString:@"weixin_pub"]) {
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#import "OrderListFilterViewController.h" #import "OrderListFilterViewController.h"
@interface OrderListFilterViewController () @interface OrderListFilterViewController ()
@property(weak, nonatomic) IBOutlet NSLayoutConstraint *constraintHeight; @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintHeight;
/** /**
阴影 阴影
...@@ -27,36 +27,37 @@ ...@@ -27,36 +27,37 @@
@property (weak, nonatomic) IBOutlet UITextField *textFieldBillNumber; @property (weak, nonatomic) IBOutlet UITextField *textFieldBillNumber;
/** /**
日期 日期开始时间
*/ */
@property (weak, nonatomic) IBOutlet DateTextField *textFieldDate; @property (weak, nonatomic) IBOutlet DateTextField *textFieldDate;
@property (weak, nonatomic) IBOutlet DateTextField *textFieldEndDate;
/** /**
加油员 加油员
*/ */
@property (weak, nonatomic) IBOutlet UITextField *textFieldStationUser; @property (weak, nonatomic) IBOutlet UITextField *textFieldStationUser;
@end @end
@implementation OrderListFilterViewController @implementation OrderListFilterViewController
- (void)viewDidLoad { - (void)viewDidLoad {
[super viewDidLoad]; [super viewDidLoad];
self.view.backgroundColor = [UIColor clearColor]; self.view.backgroundColor = [UIColor clearColor];
// Do any additional setup after loading the view. // Do any additional setup after loading the view.
self.textFieldDate.type = DateTextFieldYearMonthDay; self.textFieldDate.type = DateTextFieldYearMonthDay;
self.textFieldEndDate.type = DateTextFieldYearMonthDay;
} }
- (IBAction)actionBac:(id)sender { - (IBAction)actionBac:(id)sender {
[self hideFilterView]; [self hideFilterView];
} }
- (void)configParam { - (void)configParam {
self.param.billNumberLike = self.textFieldBillNumber.text; self.param.billNumberLike = self.textFieldBillNumber.text;
self.param.userNameLike = self.textFieldStationUser.text; self.param.userNameLike = self.textFieldStationUser.text;
self.param.endDate = kIf(self.textFieldDate.text.length > 0, [self.textFieldDate.text stringByAppendingString:@" 23:59:59"], nil); self.param.beginDate = kIf(self.textFieldDate.text.length > 0, [self.textFieldDate.text stringByAppendingString:@" 00:00:00"], nil);
self.param.endDate = kIf(self.textFieldEndDate.text.length > 0, [self.textFieldEndDate.text stringByAppendingString:@" 23:59:59"], nil);
} }
#pragma mark - actions #pragma mark - actions
...@@ -65,61 +66,95 @@ ...@@ -65,61 +66,95 @@
重置 重置
*/ */
- (IBAction)actionReset:(id)sender { - (IBAction)actionReset:(id)sender {
self.param.billNumberLike = nil; self.param.billNumberLike = nil;
self.param.userNameLike = nil; self.param.userNameLike = nil;
self.param.endDate = nil; self.param.endDate = nil;
self.textFieldDate.text = nil; self.textFieldDate.text = nil;
self.textFieldStationUser.text = nil; self.textFieldStationUser.text = nil;
self.textFieldBillNumber.text = nil; self.textFieldBillNumber.text = nil;
} }
/** /**
提交 提交
*/ */
- (IBAction)actionSubmit:(id)sender { - (IBAction)actionSubmit:(id)sender {
[self configParam]; [self configParam];
[self hideFilterView]; [self hideFilterView];
if (self.blockSubmit) { if (self.blockSubmit) {
self.blockSubmit(); self.blockSubmit();
} }
}
- (IBAction)actionChooseIsChecked:(UIButton *)sender {
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"请选择" message:nil preferredStyle:UIAlertControllerStyleAlert];
WS(weakSelf);
UIAlertAction *actionAll = [UIAlertAction actionWithTitle:@"全部"
style:(UIAlertActionStyleDefault)
handler:^(UIAlertAction *_Nonnull action) {
[sender setTitle:@"全部" forState:UIControlStateNormal];
weakSelf.param.checkState = nil;
}];
[alert addAction:actionAll];
UIAlertAction *actionChecked = [UIAlertAction actionWithTitle:@"已对账"
style:(UIAlertActionStyleDefault)
handler:^(UIAlertAction *_Nonnull action) {
[sender setTitle:@"已对账" forState:UIControlStateNormal];
weakSelf.param.checkState = @"checked";
}];
[alert addAction:actionChecked];
UIAlertAction *actionUnchecked = [UIAlertAction actionWithTitle:@"未对账"
style:(UIAlertActionStyleDefault)
handler:^(UIAlertAction *_Nonnull action) {
[sender setTitle:@"未对账" forState:UIControlStateNormal];
weakSelf.param.checkState = @"unchecked";
}];
[alert addAction:actionUnchecked];
UIAlertAction *actionCancel = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleDestructive handler:nil];
[alert addAction:actionCancel];
[self presentViewController:alert animated:YES completion:nil];
} }
- (void)hideFilterView { - (void)hideFilterView {
HIDE_KEYBOARD; HIDE_KEYBOARD;
self.isOpen = NO; self.isOpen = NO;
self.constraintHeight.constant = 0; self.constraintHeight.constant = 0;
[UIView animateWithDuration:0.7 [UIView animateWithDuration:0.7
delay:0 delay:0
usingSpringWithDamping:0.9 usingSpringWithDamping:0.9
initialSpringVelocity:1.0 initialSpringVelocity:1.0
options:UIViewAnimationOptionCurveLinear options:UIViewAnimationOptionCurveLinear
animations:^{ animations:^{
self.shadow.backgroundColor = [UIColor clearColor]; self.shadow.backgroundColor = [UIColor clearColor];
[self.view layoutIfNeeded]; [self.view layoutIfNeeded];
} }
completion:^(BOOL finished) { completion:^(BOOL finished) {
[self.view removeFromSuperview]; [self.view removeFromSuperview];
}]; }];
} }
- (void)showFilterView { - (void)showFilterView {
self.isOpen = YES; self.isOpen = YES;
self.constraintHeight.constant = 220; self.constraintHeight.constant = 320;
[UIView animateWithDuration:0.7 [UIView animateWithDuration:0.7
delay:0 delay:0
usingSpringWithDamping:0.9 usingSpringWithDamping:0.9
initialSpringVelocity:1.0 initialSpringVelocity:1.0
options:UIViewAnimationOptionCurveLinear options:UIViewAnimationOptionCurveLinear
animations:^{ animations:^{
self.shadow.backgroundColor = [UIColor colorWithWhite:0.3 alpha:0.3]; self.shadow.backgroundColor = [UIColor colorWithWhite:0.3 alpha:0.3];
[self.view layoutIfNeeded]; [self.view layoutIfNeeded];
} }
completion:nil]; completion:nil];
} }
- (void)didReceiveMemoryWarning { - (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning]; [super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated. // Dispose of any resources that can be recreated.
} }
/* /*
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.0.0</string> <string>1.0.3</string>
<key>CFBundleURLTypes</key> <key>CFBundleURLTypes</key>
<array> <array>
<dict> <dict>
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</dict> </dict>
</array> </array>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1.0.0</string> <string>1.0.3</string>
<key>LSApplicationQueriesSchemes</key> <key>LSApplicationQueriesSchemes</key>
<array> <array>
<string>wechat</string> <string>wechat</string>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
//主题色 //主题色
#define kMainColor kMainOrangeColor #define kMainColor kMainOrangeColor
static NSString *const kNotiSelectBill = @"kNotiSelectBill";
#ifdef DEBUG #ifdef DEBUG
#define CLog(format, ...) \ #define CLog(format, ...) \
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#ifdef test #ifdef test
static NSString *const VersionName = @"车族通测试版"; static NSString *const VersionName = @"车族通测试版";
static NSString *const BASE_IP = @"http://test.gomoretech.com"; static NSString *const BASE_IP = @"http://cartest.gomoretech.com";
#else #else
static NSString *const VersionName = @"车族通正式版"; static NSString *const VersionName = @"车族通正式版";
static NSString *const BASE_IP = @"http://whcar.gomoretech.com"; static NSString *const BASE_IP = @"http://whcar.gomoretech.com";
...@@ -42,5 +42,6 @@ static NSString *const kUserCashRecord = @"cash/query"; ...@@ -42,5 +42,6 @@ static NSString *const kUserCashRecord = @"cash/query";
static NSString *const kCashApply = @"cash/apply"; static NSString *const kCashApply = @"cash/apply";
//绑定用户微信unionId //绑定用户微信unionId
static NSString *const kModifyUserWxUid = @"stationUser/save/openId"; static NSString *const kModifyUserWxUid = @"stationUser/save/openId";
static NSString *const kUrlCheck = @"order/check";
#endif /* URL_h */ #endif /* URL_h */
This diff is collapsed.
...@@ -92,6 +92,18 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc"; ...@@ -92,6 +92,18 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
} }
@end
@implementation CheckOrderRequest
@synthesize userId;
@synthesize orderIds;
+(BOOL)propertyIsOptional:(NSString*)propertyName
{
return YES;
}
@end @end
@implementation ResetPasswordRequest @implementation ResetPasswordRequest
...@@ -239,6 +251,44 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc"; ...@@ -239,6 +251,44 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
} }
@end
@implementation CouponStockEntity
@synthesize fid;
@synthesize createName;
@synthesize createBy;
@synthesize createDate;
@synthesize updateName;
@synthesize updateBy;
@synthesize updateDate;
@synthesize sysOrgCode;
@synthesize sysCompanyCode;
@synthesize couponNumber;
@synthesize name;
@synthesize type;
@synthesize total;
@synthesize realToal;
@synthesize state;
@synthesize memberId;
@synthesize memberName;
@synthesize orderNumber;
@synthesize validBeginDate;
@synthesize validEndDate;
+(BOOL)propertyIsOptional:(NSString*)propertyName
{
return YES;
}
+(JSONKeyMapper*)keyMapper
{
return [[JSONKeyMapper alloc] initWithDictionary:@{
@"id": @"fid",
}];
}
@end @end
@implementation GasItemEntity @implementation GasItemEntity
...@@ -386,6 +436,7 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc"; ...@@ -386,6 +436,7 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
@synthesize invoiceId; @synthesize invoiceId;
@synthesize alipayBuyerId; @synthesize alipayBuyerId;
@synthesize alipaybuyerLogonId; @synthesize alipaybuyerLogonId;
@synthesize checkState;
+(BOOL)propertyIsOptional:(NSString*)propertyName +(BOOL)propertyIsOptional:(NSString*)propertyName
{ {
...@@ -791,10 +842,10 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc"; ...@@ -791,10 +842,10 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
@end @end
@implementation AjaxJson @implementation AjaxJson
@synthesize msg;
@synthesize attributes; @synthesize attributes;
@synthesize obj;
@synthesize success; @synthesize success;
@synthesize msg; @synthesize obj;
+(BOOL)propertyIsOptional:(NSString*)propertyName +(BOOL)propertyIsOptional:(NSString*)propertyName
{ {
...@@ -1049,6 +1100,40 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc"; ...@@ -1049,6 +1100,40 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
} }
@end
@implementation CouponEntity
@synthesize fid;
@synthesize createName;
@synthesize createBy;
@synthesize createDate;
@synthesize updateName;
@synthesize updateBy;
@synthesize updateDate;
@synthesize sysOrgCode;
@synthesize sysCompanyCode;
@synthesize name;
@synthesize type;
@synthesize total;
@synthesize realTotal;
@synthesize state;
@synthesize probability;
@synthesize validateDays;
+(BOOL)propertyIsOptional:(NSString*)propertyName
{
return YES;
}
+(JSONKeyMapper*)keyMapper
{
return [[JSONKeyMapper alloc] initWithDictionary:@{
@"id": @"fid",
}];
}
@end @end
@implementation DrawCashBillEntity @implementation DrawCashBillEntity
...@@ -1144,6 +1229,18 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc"; ...@@ -1144,6 +1229,18 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
} }
@end
@implementation TradeStatisticsResult
@synthesize orderCount;
@synthesize totalAmount;
+(BOOL)propertyIsOptional:(NSString*)propertyName
{
return YES;
}
@end @end
@implementation LoginResult @implementation LoginResult
...@@ -1224,17 +1321,7 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc"; ...@@ -1224,17 +1321,7 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
@implementation OrderQueryResult @implementation OrderQueryResult
@synthesize records; @synthesize records;
@synthesize total;
+(BOOL)propertyIsOptional:(NSString*)propertyName
{
return YES;
}
@end
@implementation WithdrawQueryResult
@synthesize records;
+(BOOL)propertyIsOptional:(NSString*)propertyName +(BOOL)propertyIsOptional:(NSString*)propertyName
{ {
...@@ -1264,6 +1351,29 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc"; ...@@ -1264,6 +1351,29 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
} }
@end
@implementation TSBaseUser
@synthesize userType;
@synthesize departid;
@synthesize signature;
@synthesize browser;
@synthesize userKey;
@synthesize status;
@synthesize activitiSync;
@synthesize password;
@synthesize userName;
@synthesize realName;
@synthesize currentDepart;
@synthesize userOrgList;
@synthesize deleteFlag;
+(BOOL)propertyIsOptional:(NSString*)propertyName
{
return YES;
}
@end @end
@implementation TSDepart @implementation TSDepart
...@@ -1293,20 +1403,8 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc"; ...@@ -1293,20 +1403,8 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
@end @end
@implementation TSBaseUser @implementation WithdrawQueryResult
@synthesize userType; @synthesize records;
@synthesize departid;
@synthesize signature;
@synthesize browser;
@synthesize userKey;
@synthesize status;
@synthesize activitiSync;
@synthesize password;
@synthesize userName;
@synthesize realName;
@synthesize currentDepart;
@synthesize userOrgList;
@synthesize deleteFlag;
+(BOOL)propertyIsOptional:(NSString*)propertyName +(BOOL)propertyIsOptional:(NSString*)propertyName
{ {
...@@ -1326,21 +1424,6 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc"; ...@@ -1326,21 +1424,6 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
} }
@end
@implementation OrderQueryDefintion
@synthesize userId;
@synthesize userNameLike;
@synthesize billNumberLike;
@synthesize endDate;
@synthesize state;
+(BOOL)propertyIsOptional:(NSString*)propertyName
{
return YES;
}
@end @end
@implementation WxMassBillEntity @implementation WxMassBillEntity
...@@ -1382,6 +1465,23 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc"; ...@@ -1382,6 +1465,23 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
} }
@end
@implementation OrderQueryDefintion
@synthesize userId;
@synthesize userNameLike;
@synthesize billNumberLike;
@synthesize endDate;
@synthesize state;
@synthesize beginDate;
@synthesize checkState;
+(BOOL)propertyIsOptional:(NSString*)propertyName
{
return YES;
}
@end @end
@implementation WithdrawQueryDefintion @implementation WithdrawQueryDefintion
......
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