Commit 66eb830f authored by Sandy's avatar Sandy

bug fix

parent 0fb284d1
......@@ -1578,6 +1578,7 @@
19D906A91CC7898C00CD42DC /* MineViewController.h */,
19D906AA1CC7898C00CD42DC /* MineViewController.m */,
19D906AB1CC7898C00CD42DC /* MineViewController.xib */,
192900971CD2129B00D226E7 /* MyAcountViewController.h */,
192900981CD2129B00D226E7 /* MyAcountViewController.m */,
192900991CD2129B00D226E7 /* MyAcountViewController.xib */,
19D906B31CC86DA300CD42DC /* SettingViewController.h */,
......@@ -1592,7 +1593,6 @@
194FB0D81CE32EAB0089A3D5 /* ChangePasswordViewController.m */,
194FB0D91CE32EAB0089A3D5 /* ChangePasswordViewController.xib */,
194502F51CE9A307005C0781 /* MyBillViewController.h */,
192900971CD2129B00D226E7 /* MyAcountViewController.h */,
194502F61CE9A307005C0781 /* MyBillViewController.m */,
);
path = ViewController;
......@@ -2310,7 +2310,7 @@
TargetAttributes = {
1940D2E61C9A56730080678C = {
CreatedOnToolsVersion = 7.2.1;
DevelopmentTeam = W54V2VB863;
DevelopmentTeam = 2G3393EZPN;
};
1940D2F91C9A56730080678C = {
CreatedOnToolsVersion = 7.2.1;
......@@ -2887,9 +2887,10 @@
INFOPLIST_FILE = ALand/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.gomore.aland;
PRODUCT_BUNDLE_IDENTIFIER = com.gomore.store.aland2;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
PROVISIONING_PROFILE = "f6b88569-d850-46ef-b723-c4bfe46b907b";
TARGETED_DEVICE_FAMILY = 1;
USER_HEADER_SEARCH_PATHS = "${SRCROOT}/**";
};
name = Debug;
......@@ -2899,8 +2900,8 @@
baseConfigurationReference = AAF51B5D53AE9938C03065C3 /* Pods.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "iPhone Distribution";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution: Shanghai Gomore Information Technology Co.,Ltd";
ENABLE_BITCODE = NO;
GCC_PREFIX_HEADER = Aland/PrefixHeader.pch;
HEADER_SEARCH_PATHS = (
......@@ -2916,9 +2917,10 @@
INFOPLIST_FILE = ALand/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.gomore.aland;
PRODUCT_BUNDLE_IDENTIFIER = com.gomore.store.aland2;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
PROVISIONING_PROFILE = "f6b88569-d850-46ef-b723-c4bfe46b907b";
TARGETED_DEVICE_FAMILY = 1;
USER_HEADER_SEARCH_PATHS = "${SRCROOT}/**";
};
name = Release;
......
......@@ -7,7 +7,6 @@
},
{
"idiom" : "universal",
"filename" : "客服@2x.png",
"scale" : "2x"
},
{
......
......@@ -17,7 +17,7 @@
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleAspectFit" image="launch" translatesAutoresizingMaskIntoConstraints="NO" id="SGe-eP-jF9">
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleAspectFill" image="launch" translatesAutoresizingMaskIntoConstraints="NO" id="SGe-eP-jF9">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
</imageView>
</subviews>
......@@ -27,7 +27,13 @@
<constraint firstItem="SGe-eP-jF9" firstAttribute="top" secondItem="Ze5-6b-2t3" secondAttribute="top" id="F6b-Xb-Gyg"/>
<constraint firstAttribute="trailing" secondItem="SGe-eP-jF9" secondAttribute="trailing" id="T2E-Yc-l4Q"/>
<constraint firstAttribute="bottom" secondItem="SGe-eP-jF9" secondAttribute="bottom" id="cGD-ya-Ccz"/>
<constraint firstItem="xb3-aO-Qok" firstAttribute="top" secondItem="SGe-eP-jF9" secondAttribute="bottom" id="vA5-tN-6Sy"/>
</constraints>
<variation key="default">
<mask key="constraints">
<exclude reference="cGD-ya-Ccz"/>
</mask>
</variation>
</view>
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina47"/>
</viewController>
......@@ -37,6 +43,6 @@
</scene>
</scenes>
<resources>
<image name="launch" width="800" height="1422"/>
<image name="launch" width="1080" height="1920"/>
</resources>
</document>
......@@ -35,7 +35,7 @@
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="defaultUserIcon" translatesAutoresizingMaskIntoConstraints="NO" id="G8W-Xp-4yu">
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="default_commodity_placeholder" translatesAutoresizingMaskIntoConstraints="NO" id="G8W-Xp-4yu">
<rect key="frame" x="18" y="16" width="70" height="70"/>
<constraints>
<constraint firstAttribute="width" constant="70" id="pE8-uA-V23"/>
......@@ -74,7 +74,7 @@
</view>
</objects>
<resources>
<image name="defaultUserIcon" width="84" height="84"/>
<image name="default_commodity_placeholder" width="93" height="93"/>
<image name="imageCover" width="540" height="175"/>
<image name="wallhaven-25411" width="540" height="279"/>
</resources>
......
......@@ -22,6 +22,7 @@
JavenGoods *goods = model.goods;
[self.imgCommdity sd_setImageWithURL:[NSURL URLWithString:goods.cover] placeholderImage:kPlaceHolderImage];
self.labelTitle.text = goods.name;
self.labelSpecName.text = goods.specName;
self.labelPrice.text = [NSString stringWithFormat:@"¥%.2f",goods.price];
self.labelCount.text = [NSString stringWithFormat:@"x%.0f", model.count];
......
......@@ -26,6 +26,7 @@
JavenGoods *goods = model.goods;
[self.imgCommdity sd_setImageWithURL:[NSURL URLWithString:goods.cover] placeholderImage:kPlaceHolderImage];
self.labelTitle.text = goods.name;
self.labelSpecName.text = goods.specName;
self.labelPrice.text = [NSString stringWithFormat:@"¥%.2f",goods.price];
self.labelCount.text = [NSString stringWithFormat:@"x%.0f", model.count];
}
......
......@@ -72,6 +72,8 @@
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[MobClick beginLogPageView:@"commodityManagement"];//("PageOne"为页面名称,可自定义)
[self resetReloadData];
}
......@@ -313,7 +315,7 @@
- (void)viewWillDisappear:(BOOL)animated {
[self.navigationController.navigationBar endEditing:YES];
[MobClick endLogPageView:@"commodityManagement"];
[super viewWillDisappear:animated];
[self.sorView hide];
}
......
......@@ -345,6 +345,18 @@
}
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[MobClick beginLogPageView:@"customerManagerment"];//("PageOne"为页面名称,可自定义)
}
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];
[MobClick endLogPageView:@"customerManagerment"];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
......
......@@ -86,7 +86,7 @@
@"parameters" : @[[UserInfo shareInstance].uuid]},
@{@"operation" : @"consumer uuid equals",
@"parameters" : @[self.customer.consumer.uuid]}],
@"orders" : @[@{@"field" : @"reseller",
@"orders" : @[@{@"field" : @"createInfo.time",
@"direction" : @"desc"}],
@"pageSize" : kPageSize,
@"page" : @0,
......
......@@ -65,6 +65,18 @@
}
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[MobClick beginLogPageView:@"invitePartner"];//("PageOne"为页面名称,可自定义)
}
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];
[MobClick endLogPageView:@"invitePartner"];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
......
......@@ -114,6 +114,18 @@
return cell;
}
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[MobClick beginLogPageView:@"myTeam"];//("PageOne"为页面名称,可自定义)
}
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];
[MobClick endLogPageView:@"myTeam"];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
......
......@@ -72,6 +72,17 @@
}
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[MobClick beginLogPageView:@"orderManagement"];//("PageOne"为页面名称,可自定义)
}
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];
[MobClick endLogPageView:@"orderManagement"];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
......
......@@ -98,6 +98,18 @@
{
}
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[MobClick beginLogPageView:@"helpCustomerOrder"];//("PageOne"为页面名称,可自定义)
}
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];
[MobClick endLogPageView:@"helpCustomerOrder"];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
......
......@@ -42,11 +42,18 @@
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[MobClick beginLogPageView:@"storeSetting"];//("PageOne"为页面名称,可自定义)
[self.navigationController setNavigationBarHidden:YES animated:YES];
[self setUpdata];
}
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];
[MobClick endLogPageView:@"storeSetting"];
}
- (void)setUpdata {
WS(weakSelf)
......
......@@ -338,7 +338,7 @@
<constraint firstAttribute="height" constant="1" id="Fq7-CN-esr"/>
</constraints>
</view>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="rightIcon" translatesAutoresizingMaskIntoConstraints="NO" id="fcE-Ma-jO5">
<imageView hidden="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="rightIcon" translatesAutoresizingMaskIntoConstraints="NO" id="fcE-Ma-jO5">
<rect key="frame" x="347" y="0.0" width="12" height="49"/>
<constraints>
<constraint firstAttribute="width" constant="12" id="v09-NI-Cfv"/>
......@@ -578,7 +578,7 @@
</button>
</objects>
<resources>
<image name="bac" width="13" height="24"/>
<image name="bac" width="11" height="20"/>
<image name="btn_commodity_manager" width="94" height="109"/>
<image name="btn_share_shop" width="95" height="111"/>
<image name="btn_shop_qrcode" width="119" height="106"/>
......
......@@ -18,6 +18,7 @@
- (void)viewDidLoad {
[super viewDidLoad];
self.navigationItem.title = @"店铺名称";
self.textFieldName.text = self.shopModel.name;
// Do any additional setup after loading the view from its nib.
}
......@@ -49,7 +50,7 @@
if ([responseObject[@"code"] isEqualToNumber:@0]) {
[hud hide:YES];
[MBProgressHUD Javen_showSuccess:@"修改成功!" onView:weakSelf.view delay:0.7 complete:^{
[MBProgressHUD Javen_showSuccess:@"保存成功!" onView:weakSelf.view delay:0.7 complete:^{
[weakSelf popAction];
}];
......
......@@ -19,7 +19,7 @@
<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">
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="natural" minimumFontSize="17" clearButtonMode="whileEditing" 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"/>
......
......@@ -17,6 +17,7 @@
- (void)viewDidLoad {
[super viewDidLoad];
self.textViewInstroduction.text = self.shopModel.internalBaseClassDescription;
// Do any additional setup after loading the view from its nib.
}
- (IBAction)safeIntroductionAction:(id)sender {
......@@ -40,7 +41,7 @@
if ([responseObject[@"code"] isEqualToNumber:@0]) {
[hud hide:YES];
[MBProgressHUD Javen_showSuccess:@"修改成功!" onView:weakSelf.view delay:0.7 complete:^{
[MBProgressHUD Javen_showSuccess:@"保存成功!" onView:weakSelf.view delay:0.7 complete:^{
[weakSelf popAction];
}];
......
......@@ -15,20 +15,24 @@
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleAspectFit" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<rect key="frame" x="0.0" y="0.0" width="320" height="480"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="a5g-v2-8Qq" userLabel="bottomBg">
<rect key="frame" x="0.0" y="480" width="320" height="0.0"/>
<color key="backgroundColor" red="0.97254901959999995" green="0.97254901959999995" blue="0.97254901959999995" alpha="1" colorSpace="calibratedRGB"/>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Tdr-oJ-D2D">
<rect key="frame" x="0.0" y="0.0" width="375" height="502"/>
<rect key="frame" x="0.0" y="0.0" width="320" height="480"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="login_top" translatesAutoresizingMaskIntoConstraints="NO" id="gIO-Jz-jhA">
<rect key="frame" x="71" y="94" width="234" height="136"/>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="login_top" translatesAutoresizingMaskIntoConstraints="NO" id="gIO-Jz-jhA">
<rect key="frame" x="44" y="94" width="234" height="114"/>
<constraints>
<constraint firstAttribute="width" constant="234" id="jkq-tN-k4O"/>
</constraints>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Drd-sW-LYv">
<rect key="frame" x="32" y="274" width="311" height="44"/>
<rect key="frame" x="32" y="252" width="256" height="44"/>
<constraints>
<constraint firstAttribute="width" constant="300" id="1bQ-Cb-7AQ"/>
<constraint firstAttribute="height" constant="44" id="YYQ-Ir-pJ1"/>
......@@ -47,7 +51,7 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Te4-Rx-W0K">
<rect key="frame" x="32" y="348" width="311" height="44"/>
<rect key="frame" x="32" y="326" width="256" height="44"/>
<constraints>
<constraint firstAttribute="width" constant="300" id="do6-tj-oIb"/>
<constraint firstAttribute="height" constant="44" id="hO8-nY-x1O"/>
......@@ -73,6 +77,7 @@
<constraint firstItem="gIO-Jz-jhA" firstAttribute="centerX" secondItem="Tdr-oJ-D2D" secondAttribute="centerX" id="4OK-co-9J3"/>
<constraint firstAttribute="bottom" secondItem="gIO-Jz-jhA" secondAttribute="bottom" constant="280" id="G8x-w3-2bW"/>
<constraint firstItem="Te4-Rx-W0K" firstAttribute="top" secondItem="Drd-sW-LYv" secondAttribute="bottom" constant="30" id="KRj-Ju-bKK"/>
<constraint firstAttribute="bottom" secondItem="Te4-Rx-W0K" secondAttribute="bottom" constant="110" id="OBR-np-YSo"/>
<constraint firstAttribute="trailing" secondItem="gIO-Jz-jhA" secondAttribute="trailing" constant="68" id="PFp-AF-Qmc"/>
<constraint firstItem="Drd-sW-LYv" firstAttribute="leading" secondItem="Tdr-oJ-D2D" secondAttribute="leading" constant="32" id="PpC-0t-1OP"/>
<constraint firstItem="Te4-Rx-W0K" firstAttribute="top" secondItem="Drd-sW-LYv" secondAttribute="bottom" constant="30" id="SJ5-Zw-k1A"/>
......@@ -90,12 +95,8 @@
</mask>
</variation>
</view>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="a5g-v2-8Qq" userLabel="bottomBg">
<rect key="frame" x="0.0" y="502" width="375" height="165"/>
<color key="backgroundColor" red="0.97254901959999995" green="0.97254901959999995" blue="0.97254901959999995" alpha="1" colorSpace="calibratedRGB"/>
</view>
<label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="第三方帐号快速登录" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="A0v-gX-51g">
<rect key="frame" x="111" y="515" width="153" height="21"/>
<rect key="frame" x="84" y="493" width="153" height="21"/>
<constraints>
<constraint firstAttribute="height" constant="21" id="58L-Dk-Bgf"/>
<constraint firstAttribute="width" constant="153" id="aBN-Vp-aJ5"/>
......@@ -105,7 +106,7 @@
<nil key="highlightedColor"/>
</label>
<button hidden="YES" 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"/>
<rect key="frame" x="56" y="382" width="46" height="44"/>
<constraints>
<constraint firstAttribute="height" constant="44" id="KxF-6a-zN9"/>
<constraint firstAttribute="width" constant="46" id="S3m-fs-xpt"/>
......@@ -123,8 +124,8 @@
<action selector="toTencentLogin:" destination="-1" eventType="touchUpInside" id="rUM-wZ-v0N"/>
</connections>
</button>
<button hidden="YES" 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"/>
<button hidden="YES" opaque="NO" contentMode="scaleAspectFit" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="MLu-aw-fed">
<rect key="frame" x="138" y="382" width="46" height="44"/>
<constraints>
<constraint firstAttribute="height" constant="44" id="8gK-Qk-xIj"/>
<constraint firstAttribute="width" constant="46" id="WUh-lF-P0E"/>
......@@ -135,7 +136,7 @@
</connections>
</button>
<button hidden="YES" 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"/>
<rect key="frame" x="217" y="382" width="46" height="44"/>
<constraints>
<constraint firstAttribute="height" constant="44" id="83t-5K-vGR"/>
<constraint firstAttribute="height" constant="44" id="CcX-Ep-lCe"/>
......@@ -154,7 +155,7 @@
</connections>
</button>
<label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="QQ" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="E1p-ul-InX">
<rect key="frame" x="66" y="622" width="26" height="21"/>
<rect key="frame" x="66" y="435" width="26" height="21"/>
<constraints>
<constraint firstAttribute="width" constant="26" id="1vr-DA-7x5"/>
<constraint firstAttribute="height" constant="21" id="Jor-e5-QXe"/>
......@@ -171,8 +172,8 @@
</mask>
</variation>
</label>
<label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="微信" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vxe-nV-WAB">
<rect key="frame" x="170" y="622" width="34" height="21"/>
<label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="微信" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vxe-nV-WAB">
<rect key="frame" x="144" y="435" width="34" height="21"/>
<constraints>
<constraint firstAttribute="width" constant="34" id="828-gq-N0J"/>
<constraint firstAttribute="height" constant="21" id="bhl-bY-2Y6"/>
......@@ -190,7 +191,7 @@
</variation>
</label>
<label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="微博" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="EFc-h1-o5h">
<rect key="frame" x="278" y="622" width="34" height="21"/>
<rect key="frame" x="223" y="435" width="34" height="21"/>
<constraints>
<constraint firstAttribute="width" constant="34" id="MyB-Bb-qUt"/>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="34" id="bV1-Mq-qDM"/>
......@@ -239,7 +240,6 @@
<constraint firstItem="a5g-v2-8Qq" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="g9l-Fi-3ZN"/>
<constraint firstAttribute="trailing" secondItem="MLu-aw-fed" secondAttribute="trailing" constant="165" id="gQE-g2-4Qi"/>
<constraint firstAttribute="bottom" secondItem="MLu-aw-fed" secondAttribute="bottom" constant="54" id="jWy-jW-3T4"/>
<constraint firstAttribute="bottom" secondItem="Tdr-oJ-D2D" secondAttribute="bottom" constant="165" id="jeE-NK-LAe"/>
<constraint firstItem="A0v-gX-51g" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="111" id="n7u-3l-exd"/>
<constraint firstItem="GKk-w1-UAd" firstAttribute="top" secondItem="Tdr-oJ-D2D" secondAttribute="bottom" constant="67" id="neD-3Z-NAl"/>
<constraint firstItem="vxe-nV-WAB" firstAttribute="top" secondItem="MLu-aw-fed" secondAttribute="bottom" constant="9" id="p4C-h9-Fps"/>
......@@ -252,7 +252,7 @@
<constraint firstItem="MLu-aw-fed" firstAttribute="centerY" secondItem="z3d-I1-xgq" secondAttribute="centerY" id="xD4-pN-cGr"/>
<constraint firstItem="E1p-ul-InX" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="66" id="xjb-qf-305"/>
</constraints>
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina47"/>
<simulatedScreenMetrics key="simulatedDestinationMetrics"/>
<variation key="default">
<mask key="constraints">
<exclude reference="n7u-3l-exd"/>
......@@ -282,7 +282,7 @@
<exclude reference="ZOA-Fp-P5j"/>
</mask>
</variation>
<point key="canvasLocation" x="-274.5" y="263.5"/>
<point key="canvasLocation" x="-300" y="-93"/>
</view>
</objects>
<resources>
......
......@@ -40,22 +40,7 @@
@"template":[NSNull null]};
WS(weakSelf)
#ifdef DEBUG
[[HTTPCilent shareCilent] GET:@"app/sendSms" parameters:parameters success:^(NSURLSessionDataTask *task, id responseObject) {
[MBProgressHUD hideHUDForView:weakSelf.view];
if (kIsResponseSuccess(responseObject)) {
NextResetPasswordViewController *nextVC = [[NextResetPasswordViewController alloc] initWithNibName:@"NextResetPasswordViewController" bundle:[NSBundle mainBundle]];
nextVC.isShowNavigationBar = YES;
nextVC.mobilePhone = weakSelf.phoneNumber.text;
[weakSelf.navigationController pushViewController:nextVC animated:YES];
}
} failure:^(NSURLSessionDataTask *task, NSError *error) {
[MBProgressHUD hideHUDForView:weakSelf.view];
}];
#else
if ([self.phoneNumber.text isMobileNumber]) {
[[HTTPCilent shareCilent] GET:@"app/sendSms" parameters:parameters success:^(NSURLSessionDataTask *task, id responseObject) {
[MBProgressHUD hideHUDForView:weakSelf.view];
......@@ -68,13 +53,7 @@
} failure:^(NSURLSessionDataTask *task, NSError *error) {
}];
}else{
[MBProgressHUD hideHUDForView:weakSelf.view];
[MBProgressHUD Javen_showError:@"号码格式不正确" onView:self.view delay:0.7 complete:nil];
}
#endif
}
......
......@@ -9,6 +9,7 @@
#import "AddDetailInfoViewController.h"
#import "MyBankClass.h"
#import "JavenBankCards.h"
#import "MyBandCardViewController.h"
@interface AddDetailInfoViewController ()<UITextFieldDelegate>
@property (weak, nonatomic) IBOutlet UILabel *labelBankName;
@property (weak, nonatomic) IBOutlet UILabel *labelBankCardID;
......@@ -86,8 +87,15 @@
[MBProgressHUD hideHUDForView:weakSelf.view];
if ([responseObject[@"code"] isEqualToNumber:@0]) {
[MBProgressHUD Javen_showSuccess:@"设置成功!" onView:weakSelf.view delay:0.7 complete:^{
}];
[MBProgressHUD Javen_showSuccess:@"设置成功!" onView:weakSelf.view delay:0.7 complete:nil];
for (UIViewController *vc in weakSelf.navigationController.viewControllers) {
if ([vc isKindOfClass:[MyBandCardViewController class]]) {
[weakSelf.navigationController popToViewController:vc animated:YES];
}
}
}else{
[MBProgressHUD Javen_showSuccess:responseObject[@"message"] onView:weakSelf.view delay:0.7 complete:^{
}];
......
......@@ -103,7 +103,7 @@
if ([responseObject[@"code"] isEqualToNumber:@0]) {
weakSelf.reseller = [JavenResellerBigModel modelObjectWithDictionary:responseObject[@"reseller"]];
[weakSelf.tableView reloadData];
weakSelf.bottomView.btnAdd.selected = self.reseller.certificate.bankCards.count == 1;
weakSelf.bottomView.btnAdd.selected = self.reseller.certificate.bankCards.count > 0;
}
......
......@@ -25,7 +25,7 @@
@property (nonatomic, strong) NSMutableArray *arrSortedData;
@property (nonatomic, strong) NSMutableArray *arrSortedMonths;
@property (nonatomic, strong) NoBillHistoryView *noBillHistoryView;
@property (nonatomic, strong) JavenSingleSortView *sortView;
......@@ -40,6 +40,7 @@
self.state = [NSNull null];
self.confirmed = [NSNull null];
JavenSingleSortView *sortView = [JavenSingleSortView sortViewTitles:@[@"全部账单",@"进账单",@"出账单",@"待确认账单"]];
self.sortView = sortView;
sortView.frame = CGRectMake(0, 0, 150, 35);
self.navigationItem.titleView = sortView;
......@@ -55,6 +56,11 @@
// Do any additional setup after loading the view from its nib.
}
- (void)popAction {
[super popAction];
[self.sortView hide];
}
- (void)viewWillLayoutSubviews {
self.noBillHistoryView.frame = CGRectMake(0, 0, kWidth, kHeight);
}
......@@ -134,7 +140,7 @@
case 3://
{
self.state = @[@"income"];
self.confirmed = @"action equals";
self.confirmed = @"unconfirmed only";
}
break;
......
......@@ -53,10 +53,10 @@
CLog(@"POST请求失败!----->%@", [error localizedDescription]);
failure(task, error);
[MBProgressHUD showMessage:@"网络错误,请检查网络!"];
MBProgressHUD *hud = [MBProgressHUD showMessage:@"网络错误,请检查网络!"];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[MBProgressHUD hideHUD];
[hud hide:YES];
});
}];
}
......@@ -74,10 +74,10 @@
success(task, responseObject);
} failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
[MBProgressHUD showMessage:@"网络错误,请检查网络!"];
MBProgressHUD *hud = [MBProgressHUD showMessage:@"网络错误,请检查网络!"];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[MBProgressHUD hideHUD];
[hud hide:YES];
});
CLog(@"GET请求失败!----->%@", [error localizedDescription]);
......
......@@ -42,7 +42,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.0.0</string>
<string>1.0.04</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>wechat</string>
......
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