Commit c2c94b42 authored by Sandy's avatar Sandy

侧边栏bug fix

parent 32fe82f8
...@@ -948,6 +948,7 @@ ...@@ -948,6 +948,7 @@
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 = W54V2VB863;
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";
INFOPLIST_FILE = Car/Info.plist; INFOPLIST_FILE = Car/Info.plist;
...@@ -966,6 +967,7 @@ ...@@ -966,6 +967,7 @@
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 = W54V2VB863;
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";
INFOPLIST_FILE = Car/Info.plist; INFOPLIST_FILE = Car/Info.plist;
......
...@@ -713,7 +713,7 @@ ...@@ -713,7 +713,7 @@
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="OrderListTableViewCell" rowHeight="166" id="tpV-M9-l1S" customClass="OrderListTableViewCell"> <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="OrderListTableViewCell" rowHeight="166" id="tpV-M9-l1S" customClass="OrderListTableViewCell">
<rect key="frame" x="0.0" y="28" width="375" height="166"/> <rect key="frame" x="0.0" y="28" width="375" height="166"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="tpV-M9-l1S" id="hzT-UH-DPk"> <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" tag="11112222" contentMode="center" tableViewCell="tpV-M9-l1S" id="hzT-UH-DPk">
<rect key="frame" x="0.0" y="0.0" width="375" height="166"/> <rect key="frame" x="0.0" y="0.0" width="375" height="166"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<subviews> <subviews>
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
[self findCard]; [self findCard];
self.cardView.model = self.card; self.cardView.model = self.card;
if ([self.card.state isEqualToString:@"used"]) { if ([self.card.state isEqualToString:@"used"]) {
self.btnConfirm.enabled = NO; // self.btnConfirm.enabled = NO;
} }
} }
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
self.labelStation.text = [NSString stringWithFormat:@"%@ - %@",model.stationName, model.stationUserName]; self.labelStation.text = [NSString stringWithFormat:@"%@ - %@",model.stationName, model.stationUserName];
self.labelOil.text = [NSString stringWithFormat:@"%@ - %@",model.gasItemName, model.oilGunName]; self.labelOil.text = [NSString stringWithFormat:@"%@ - %@",model.gasItemName, model.oilGunName];
self.labelBillNumber.text = model.billNumber; self.labelBillNumber.text = model.billNumber;
self.labelPrice.text = [model.deduct stringValue]; self.labelPrice.text = [CalculateHelper getMoneyStringFrom:model.deduct];
} }
- (void)setSelected:(BOOL)selected animated:(BOOL)animated { - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
self.labelCustomer.text = kStrPrefix(self.model.memberName, @"顾客:"); self.labelCustomer.text = kStrPrefix(self.model.memberName, @"顾客:");
self.labelPayment.text = kStrPrefix(self.model.paymentString, @"支付方式:"); self.labelPayment.text = kStrPrefix(self.model.paymentString, @"支付方式:");
self.labelPayTime.text = kStrPrefix(self.model.payTime, @"支付时间:"); self.labelPayTime.text = kStrPrefix(self.model.payTime, @"支付时间:");
self.labelPrice.text = kStrPrefix(self.model.total, @"¥"); self.labelPrice.text = kStrPrefix([CalculateHelper getMoneyStringFrom:self.model.total], @"¥");
self.labelVoucher.text = kStrPrefix([self.model.deduct stringValue], @"¥"); self.labelVoucher.text = kStrPrefix([self.model.deduct stringValue], @"¥");
self.labelRealPrice.text = kStrPrefix([self.model.realPayTotal stringValue], @"¥"); self.labelRealPrice.text = kStrPrefix([self.model.realPayTotal stringValue], @"¥");
self.labelIsInvoice.text = kStrPrefix(self.model.invoiceString, @"是否开票:"); self.labelIsInvoice.text = kStrPrefix(self.model.invoiceString, @"是否开票:");
......
...@@ -89,7 +89,8 @@ ...@@ -89,7 +89,8 @@
if (scalef > 140 * speedf) { if (scalef > 140 * speedf) {
[self showLeftView]; [self showLeftView];
} else if (scalef < -140 * speedf) { } else if (scalef < -140 * speedf) {
[self showRighView]; // [self showRighView];
[self showMainView];
} else { } else {
[self showMainView]; [self showMainView];
scalef = 0; scalef = 0;
...@@ -126,7 +127,8 @@ ...@@ -126,7 +127,8 @@
if (scalef > 140 * speedf) { if (scalef > 140 * speedf) {
[self showLeftView]; [self showLeftView];
} else if (scalef < -140 * speedf) { } else if (scalef < -140 * speedf) {
[self showRighView]; // [self showRighView];
[self showMainView];
} else { } else {
[self showMainView]; [self showMainView];
scalef = 0; scalef = 0;
...@@ -147,7 +149,7 @@ ...@@ -147,7 +149,7 @@
// 输出点击的view的类名 // 输出点击的view的类名
CLog(@"%@", NSStringFromClass([touch.view class])); CLog(@"%@", NSStringFromClass([touch.view class]));
// 若为UITableViewCellContentView(即点击了tableViewCell),则不截获Touch事件 // 若为UITableViewCellContentView(即点击了tableViewCell),则不截获Touch事件
if (touch.view.tag == 11112222) { if (self.isShowLeft) {
return YES; return YES;
} }
return NO; return NO;
...@@ -157,7 +159,7 @@ ...@@ -157,7 +159,7 @@
//恢复位置 //恢复位置
- (void)showMainView { - (void)showMainView {
self.isShowLeft = NO; self.isShowLeft = NO;
[kGlobal.mainVC hideShadow]; // [kGlobal.mainVC hideShadow];
[UIView beginAnimations:nil context:nil]; [UIView beginAnimations:nil context:nil];
mainControl.view.transform = mainControl.view.transform =
CGAffineTransformScale(CGAffineTransformIdentity, 1.0, 1.0); CGAffineTransformScale(CGAffineTransformIdentity, 1.0, 1.0);
...@@ -170,7 +172,7 @@ ...@@ -170,7 +172,7 @@
//显示左视图 //显示左视图
- (void)showLeftView { - (void)showLeftView {
self.isShowLeft = YES; self.isShowLeft = YES;
[kGlobal.mainVC showShadow]; // [kGlobal.mainVC showShadow];
leftControl.view.hidden = NO; leftControl.view.hidden = NO;
[UIView beginAnimations:nil context:nil]; [UIView beginAnimations:nil context:nil];
mainControl.view.transform = mainControl.view.transform =
......
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