Commit 159e0c9f by houweibin

1,清关信息相关

parent 39541fe2
......@@ -218,6 +218,8 @@
C084F4571D6D975400A0625D /* KWMSearchBar.m in Sources */ = {isa = PBXBuildFile; fileRef = C084F4561D6D975400A0625D /* KWMSearchBar.m */; };
C084F4591D6D976F00A0625D /* KWMSearchBar.xib in Resources */ = {isa = PBXBuildFile; fileRef = C084F4581D6D976F00A0625D /* KWMSearchBar.xib */; };
C08827A61E28B4AF006A8B91 /* KWMPageControl.m in Sources */ = {isa = PBXBuildFile; fileRef = C08827A51E28B4AF006A8B91 /* KWMPageControl.m */; };
C08870E81F0342B000C9C1C8 /* KWMCustomsClearanceVC.m in Sources */ = {isa = PBXBuildFile; fileRef = C08870E71F0342B000C9C1C8 /* KWMCustomsClearanceVC.m */; };
C08870EB1F03481C00C9C1C8 /* KWMCustomsClearance.m in Sources */ = {isa = PBXBuildFile; fileRef = C08870EA1F03481C00C9C1C8 /* KWMCustomsClearance.m */; };
C08FDA271D9A5F3400EBDB0D /* KWMAddGiftCardVC.m in Sources */ = {isa = PBXBuildFile; fileRef = C08FDA261D9A5F3400EBDB0D /* KWMAddGiftCardVC.m */; };
C08FDA2A1D9B583400EBDB0D /* KWMGiftCardVC.m in Sources */ = {isa = PBXBuildFile; fileRef = C08FDA291D9B583400EBDB0D /* KWMGiftCardVC.m */; };
C091EE331DDB1FC500A382B9 /* KWMAppVersion.m in Sources */ = {isa = PBXBuildFile; fileRef = C091EE321DDB1FC500A382B9 /* KWMAppVersion.m */; };
......@@ -715,6 +717,10 @@
C084F4581D6D976F00A0625D /* KWMSearchBar.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KWMSearchBar.xib; sourceTree = "<group>"; };
C08827A41E28B4AF006A8B91 /* KWMPageControl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KWMPageControl.h; sourceTree = "<group>"; };
C08827A51E28B4AF006A8B91 /* KWMPageControl.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KWMPageControl.m; sourceTree = "<group>"; };
C08870E61F0342B000C9C1C8 /* KWMCustomsClearanceVC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KWMCustomsClearanceVC.h; sourceTree = "<group>"; };
C08870E71F0342B000C9C1C8 /* KWMCustomsClearanceVC.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KWMCustomsClearanceVC.m; sourceTree = "<group>"; };
C08870E91F03481C00C9C1C8 /* KWMCustomsClearance.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KWMCustomsClearance.h; sourceTree = "<group>"; };
C08870EA1F03481C00C9C1C8 /* KWMCustomsClearance.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KWMCustomsClearance.m; sourceTree = "<group>"; };
C08FDA251D9A5F3400EBDB0D /* KWMAddGiftCardVC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KWMAddGiftCardVC.h; sourceTree = "<group>"; };
C08FDA261D9A5F3400EBDB0D /* KWMAddGiftCardVC.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KWMAddGiftCardVC.m; sourceTree = "<group>"; };
C08FDA281D9B583400EBDB0D /* KWMGiftCardVC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KWMGiftCardVC.h; sourceTree = "<group>"; };
......@@ -1031,6 +1037,8 @@
C08FDA291D9B583400EBDB0D /* KWMGiftCardVC.m */,
C0392DBB1DCC786F0051AC8E /* KWMShippingVC.h */,
C0392DBC1DCC786F0051AC8E /* KWMShippingVC.m */,
C08870E61F0342B000C9C1C8 /* KWMCustomsClearanceVC.h */,
C08870E71F0342B000C9C1C8 /* KWMCustomsClearanceVC.m */,
);
path = ShopCart;
sourceTree = "<group>";
......@@ -1277,6 +1285,8 @@
C048B8E11EF3C04B000DA7AF /* KWMBeforePayData.m */,
9B18C11D1EF1270A001DD59B /* BUYProductVariant+Currency.h */,
9B18C11E1EF1270A001DD59B /* BUYProductVariant+Currency.m */,
C08870E91F03481C00C9C1C8 /* KWMCustomsClearance.h */,
C08870EA1F03481C00C9C1C8 /* KWMCustomsClearance.m */,
);
path = Model;
sourceTree = "<group>";
......@@ -2395,6 +2405,7 @@
C0A6B3C41F01FC5300D85673 /* KWMSecondDetailView.m in Sources */,
9B8298E61EF237FC00743438 /* NSDecimalNumber+Currency.m in Sources */,
C034E6F51D6AF197006EE129 /* KWMPickView.m in Sources */,
C08870EB1F03481C00C9C1C8 /* KWMCustomsClearance.m in Sources */,
C034E8651D6B10A0006EE129 /* PhotoImageView.m in Sources */,
C034E6C81D6AED1F006EE129 /* KWMUser.m in Sources */,
C034E6F01D6AF13A006EE129 /* KWMBaseVC.m in Sources */,
......@@ -2450,6 +2461,7 @@
C0CC14081D7823B0007B5986 /* KWMSizeCell.m in Sources */,
C06665121D767A0A00F02EF4 /* KWMContactUsVC.m in Sources */,
C034E6CF1D6AEE39006EE129 /* KWMUserDao.m in Sources */,
C08870E81F0342B000C9C1C8 /* KWMCustomsClearanceVC.m in Sources */,
C0DD530F1EE54A9E002D1E0C /* KWMBarandSelectView.m in Sources */,
C034E8551D6B10A0006EE129 /* UIImageView+SD.m in Sources */,
C034E85E1D6B10A0006EE129 /* PhotoBroswerLayout.m in Sources */,
......
......@@ -8,6 +8,7 @@
#import <Foundation/Foundation.h>
#import <Buy/Buy.h>
#import "KWMCustomsClearance.h"
@class KWMUser;
@class KWMRequestResult;
......@@ -20,6 +21,8 @@
@property (nonatomic, strong) NSString *currencyCode;
@property (nonatomic, strong) KWMCustomsClearance *customsClearance;
+ (KWMUserDao *)shareDao;
- (BOOL)checkSession;
- (KWMUser *)loginUser;
......
......@@ -42,6 +42,7 @@ static NSString *kwmKeySavedAccountPassword = @"savedAccountPassword";
NSDecimalNumber *_exchangeRate;
}
@synthesize customsClearance = _customsClearance;
@synthesize currencyCode = _currencyCode;
+ (KWMUserDao *)shareDao {
......@@ -459,4 +460,17 @@ static NSString *kwmKeySavedAccountPassword = @"savedAccountPassword";
[[NSUserDefaults standardUserDefaults] synchronize];
}
-(KWMCustomsClearance *)customsClearance{
if(!_customsClearance){
_customsClearance = [[NSUserDefaults standardUserDefaults] objectForKey:@"_customs_clearance"];
}
return _customsClearance;
}
-(void)setCustomsClearance:(KWMCustomsClearance *)customsClearance{
_customsClearance = customsClearance;
[[NSUserDefaults standardUserDefaults]setObject:customsClearance forKey:@"_customs_clearance"];
[[NSUserDefaults standardUserDefaults] synchronize];
}
@end
//
// KWMCustomsClearance.h
// iCemarose
//
// Created by HouWeiBin on 2017/6/28.
// Copyright © 2017年 kollway. All rights reserved.
//
#import "KWMBaseModel.h"
@interface KWMCustomsClearance : KWMBaseModel
//清关姓名
@property (nonatomic) NSString *name;
//清关身份证号
@property (nonatomic) NSString *idCode;
@end
//
// KWMCustomsClearance.m
// iCemarose
//
// Created by HouWeiBin on 2017/6/28.
// Copyright © 2017年 kollway. All rights reserved.
//
#import "KWMCustomsClearance.h"
@implementation KWMCustomsClearance
-(NSString *)name{
if(!_name){
return @"";
}
return _name;
}
-(NSString *)idCode{
if(!_idCode){
return @"";
}
return _idCode;
}
@end
......@@ -44,10 +44,15 @@
@property (weak, nonatomic) IBOutlet UILabel *lbShippingRate;
//清关信息
@property (weak, nonatomic) IBOutlet UILabel *lbCustomsClearance;
@property (weak, nonatomic) IBOutlet UIView *vPayType;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *heightPayType;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *heightCustomsClearance;
@property (nonatomic) BUYAddress *address;
//创建订单异步请求
......@@ -80,6 +85,8 @@
- (IBAction)onClickShipping:(id)sender;
- (IBAction)onClickCustomsClearance:(id)sender;
@end
......@@ -9,6 +9,7 @@
#import "KWMBeforePayVC.h"
#import "KWMDiscountVC.h"
#import "KWMSelectAddressVC.h"
#import "KWMCustomsClearanceVC.h"
#import "KWMPaySuccessVC.h"
#import "KWMShopCartModel.h"
#import "KWMStringUtil.h"
......@@ -392,6 +393,11 @@
[self.navigationController pushViewController:giftCardVC animated:YES];
}
//清关信息填写页面
-(void)onClickCustomsClearance:(id)sender{
}
//选择配送方式页面
-(void)onClickShipping:(id)sender{
if(self.checkout == nil){
......
//
// KWMCustomsClearanceVC.h
// iCemarose
//
// Created by HouWeiBin on 2017/6/28.
// Copyright © 2017年 kollway. All rights reserved.
//
#import "KWMBaseVC.h"
#import "KWMCustomsClearance.h"
@protocol KWMCustomsClearanceDelegate <NSObject>
- (void)kwm_customsClearance:(KWMCustomsClearance *)customsClearance;
@end
@interface KWMCustomsClearanceVC : KWMBaseVC<UITextFieldDelegate>
@property (weak, nonatomic) id<KWMCustomsClearanceDelegate>delegate;
@property (nonatomic) KWMCustomsClearance *customsClearance;
@end
//
// KWMCustomsClearanceVC.m
// iCemarose
//
// Created by HouWeiBin on 2017/6/28.
// Copyright © 2017年 kollway. All rights reserved.
//
#import "KWMCustomsClearanceVC.h"
#import "KWMStringUtil.h"
@interface KWMCustomsClearanceVC ()
@property (weak, nonatomic) IBOutlet UITextField *tfName;
@property (weak, nonatomic) IBOutlet UITextField *tfIdCode;
@end
@implementation KWMCustomsClearanceVC
- (void)viewDidLoad {
[super viewDidLoad];
[self initView];
}
-(void)initView{
[self initTitle];
[self initTf];
}
-(void)initTitle{
UIBarButtonItem *leftButton = [[UIBarButtonItem alloc] initWithTitle:@"取消" style:UIBarButtonItemStylePlain target:self action:@selector(onClickLeftButton)];
self.navigationItem.leftBarButtonItem = leftButton;
UIBarButtonItem *rightButton = [[UIBarButtonItem alloc] initWithTitle:@"存储" style:UIBarButtonItemStylePlain target:self action:@selector(onClickRightButton)];
self.navigationItem.rightBarButtonItem = rightButton;
}
-(void)initTf{
self.tfName.borderStyle = UITextBorderStyleNone;
self.tfIdCode.borderStyle = UITextBorderStyleNone;
self.tfIdCode.delegate = self;
self.customsClearance = [KWMCustomsClearance new];
self.customsClearance.name = @"侯卫彬";
self.customsClearance.idCode = @"445222199211153557";
if(self.customsClearance){
self.tfName.text = self.customsClearance.name;
self.tfIdCode.text = self.customsClearance.idCode;
if(self.customsClearance.idCode.length >10){
self.tfIdCode.text = [self halfSecretCode:self.customsClearance.idCode];
}
}else{
self.customsClearance = [KWMCustomsClearance new];
}
}
-(void)onClickLeftButton{
[self.navigationController popViewControllerAnimated:YES];
}
-(void)onClickRightButton{
NSString *name = self.tfName.text;
NSString *idCode = self.tfIdCode.text;
if([KWMStringUtil isEmpty:name]){
[self showToast:@"请填写姓名"];
}else if([KWMStringUtil isEmpty:idCode]){
[self showToast:@"请填写身份证号"];
}else{
//身份证是否为没有编辑过--如果是且仍为半密文状态.
BOOL noEdited = [self.tfIdCode.text rangeOfString:@"***"].location != NSNotFound;
self.customsClearance.name = self.tfName.text;
self.customsClearance.idCode = noEdited?self.customsClearance.idCode:self.tfIdCode.text;
if(self.delegate){
[self.delegate kwm_customsClearance:self.customsClearance];
}
[self.navigationController popViewControllerAnimated:YES];
}
}
#pragma mark -- idCode StringUtil
//替换字符串 445555199011123333 => 44555************3
-(NSString *)halfSecretCode:(NSString *)idCode{
NSString *mIdCode = self.customsClearance.idCode;
NSMutableString *secretCode = [[NSMutableString alloc] init];
for (NSInteger i = 0; i < idCode.length - 6; i++) {
[secretCode appendString:@"*"];
}
NSString *halfSecretCode = [mIdCode stringByReplacingCharactersInRange:NSMakeRange(5, mIdCode.length-6) withString:secretCode];
return halfSecretCode;
}
#pragma mark -- UITextFiledDelegate
-(void)textFieldDidBeginEditing:(UITextField *)textField{
textField.clearsOnBeginEditing = NO;
}
//简单的输入限制 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{
NSCharacterSet *cs = [[NSCharacterSet characterSetWithCharactersInString:ALPHANUM] invertedSet];
NSString *filtered = [[string componentsSeparatedByCharactersInSet:cs] componentsJoinedByString:@""];
return [string isEqualToString:filtered];
}
@end
......@@ -745,6 +745,69 @@
<constraint firstAttribute="trailing" secondItem="1ep-3i-rAZ" secondAttribute="trailing" id="q6K-5w-m6s"/>
</constraints>
</view>
<view hidden="YES" clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="p5p-5f-gFk" userLabel="清关信息">
<rect key="frame" x="0.0" y="240" width="374" height="0.0"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="eN3-dd-3jc">
<rect key="frame" x="0.0" y="0.0" width="374" height="55"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="清关信息" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gW6-WV-Q3G">
<rect key="frame" x="30" y="22" width="60" height="21"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="15"/>
<color key="textColor" red="0.21960784310000001" green="0.21960784310000001" blue="0.21960784310000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="gW6-WV-Q3G" firstAttribute="top" secondItem="eN3-dd-3jc" secondAttribute="top" constant="22" id="0kp-zQ-pGv"/>
<constraint firstItem="gW6-WV-Q3G" firstAttribute="leading" secondItem="eN3-dd-3jc" secondAttribute="leading" constant="30" id="Qsq-bz-vUO"/>
<constraint firstAttribute="height" constant="55" id="drC-mW-4tf"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="eY2-I2-WUD" userLabel="v清关信息">
<rect key="frame" x="0.0" y="55" width="374" height="40"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="请填写清关信息" textAlignment="natural" lineBreakMode="characterWrap" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="n4b-gy-dbB">
<rect key="frame" x="30" y="12" width="314" height="17"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="12"/>
<color key="textColor" red="0.22352941179999999" green="0.22352941179999999" blue="0.22352941179999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ntN-Fj-urT">
<rect key="frame" x="324" y="10" width="20" height="20"/>
<constraints>
<constraint firstAttribute="width" constant="20" id="BKa-fD-vyt"/>
<constraint firstAttribute="height" constant="20" id="Wmk-jC-t1t"/>
</constraints>
<state key="normal" image="button_order_deit"/>
<connections>
<action selector="onClickCustomsClearance:" destination="96G-49-ueh" eventType="touchUpInside" id="fFv-QT-uEa"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" red="0.95686274510000002" green="0.96078431369999995" blue="0.96862745100000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="n4b-gy-dbB" secondAttribute="trailing" constant="30" id="89H-Hg-tIy"/>
<constraint firstItem="n4b-gy-dbB" firstAttribute="top" secondItem="eY2-I2-WUD" secondAttribute="top" constant="12" id="8lc-WI-YDk"/>
<constraint firstAttribute="height" constant="40" id="FRz-Ey-rHR"/>
<constraint firstItem="n4b-gy-dbB" firstAttribute="leading" secondItem="eY2-I2-WUD" secondAttribute="leading" constant="30" id="JSX-sL-4v9"/>
<constraint firstItem="ntN-Fj-urT" firstAttribute="top" secondItem="eY2-I2-WUD" secondAttribute="top" constant="10" id="OeL-TO-88q"/>
<constraint firstAttribute="trailing" secondItem="ntN-Fj-urT" secondAttribute="trailing" constant="30" id="dm7-Zk-Cbg"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="eY2-I2-WUD" secondAttribute="trailing" id="42F-df-ist"/>
<constraint firstAttribute="trailing" secondItem="eN3-dd-3jc" secondAttribute="trailing" id="Ekj-iL-nev"/>
<constraint firstItem="eY2-I2-WUD" firstAttribute="leading" secondItem="p5p-5f-gFk" secondAttribute="leading" id="HhO-Jf-Gq5"/>
<constraint firstItem="eN3-dd-3jc" firstAttribute="top" secondItem="p5p-5f-gFk" secondAttribute="top" id="RSi-TH-d9h"/>
<constraint firstItem="eN3-dd-3jc" firstAttribute="leading" secondItem="p5p-5f-gFk" secondAttribute="leading" id="UFn-tR-gQQ"/>
<constraint firstAttribute="height" id="s99-VF-fm4"/>
<constraint firstItem="eY2-I2-WUD" firstAttribute="top" secondItem="eN3-dd-3jc" secondAttribute="bottom" id="wup-7V-iMi"/>
</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="Hsl-7w-xKW" userLabel="配送">
<rect key="frame" x="30" y="262" width="60" height="21"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="15"/>
......@@ -864,19 +927,22 @@
<constraint firstAttribute="bottom" secondItem="Wga-vh-5gr" secondAttribute="bottom" id="9mb-Gf-9QV"/>
<constraint firstItem="LpT-uQ-5JS" firstAttribute="leading" secondItem="BlA-Cz-DcE" secondAttribute="leading" constant="30" id="AJZ-cD-G5p"/>
<constraint firstItem="Wga-vh-5gr" firstAttribute="leading" secondItem="BlA-Cz-DcE" secondAttribute="leading" id="Db6-Ap-r5f"/>
<constraint firstItem="p5p-5f-gFk" firstAttribute="top" secondItem="Yux-Ro-p2d" secondAttribute="bottom" id="FVi-pQ-u1e"/>
<constraint firstItem="BOf-h7-67C" firstAttribute="top" secondItem="Hsl-7w-xKW" secondAttribute="bottom" constant="12" id="Hsf-NW-m1u"/>
<constraint firstItem="Hsl-7w-xKW" firstAttribute="top" secondItem="p5p-5f-gFk" secondAttribute="bottom" constant="22" id="IRd-q5-wuq"/>
<constraint firstItem="BOf-h7-67C" firstAttribute="leading" secondItem="BlA-Cz-DcE" secondAttribute="leading" id="JAc-2L-MKm"/>
<constraint firstItem="LpT-uQ-5JS" firstAttribute="top" secondItem="3g3-iU-dSA" secondAttribute="bottom" constant="22" id="LDa-RL-PlM"/>
<constraint firstAttribute="trailing" secondItem="p5p-5f-gFk" secondAttribute="trailing" id="NNU-SM-phL"/>
<constraint firstItem="meM-14-BFw" firstAttribute="leading" secondItem="BlA-Cz-DcE" secondAttribute="leading" constant="30" id="Rzq-h1-6xo"/>
<constraint firstItem="Yux-Ro-p2d" firstAttribute="leading" secondItem="BlA-Cz-DcE" secondAttribute="leading" id="alr-MV-DC8"/>
<constraint firstAttribute="trailing" secondItem="Wga-vh-5gr" secondAttribute="trailing" id="bib-a1-w42"/>
<constraint firstItem="qFl-Qx-3nj" firstAttribute="leading" secondItem="BlA-Cz-DcE" secondAttribute="leading" id="dLM-dh-XZx"/>
<constraint firstAttribute="trailing" secondItem="Yux-Ro-p2d" secondAttribute="trailing" id="fCv-Vu-IYq"/>
<constraint firstItem="Hsl-7w-xKW" firstAttribute="leading" secondItem="BlA-Cz-DcE" secondAttribute="leading" constant="30" id="fQy-rP-Nqj"/>
<constraint firstItem="Hsl-7w-xKW" firstAttribute="top" secondItem="Yux-Ro-p2d" secondAttribute="bottom" constant="22" id="io7-tf-nUD"/>
<constraint firstItem="qFl-Qx-3nj" firstAttribute="top" secondItem="MY5-C7-Kcb" secondAttribute="bottom" constant="12" id="kMy-Hh-QZG"/>
<constraint firstItem="MY5-C7-Kcb" firstAttribute="leading" secondItem="BlA-Cz-DcE" secondAttribute="leading" constant="30" id="kuG-ew-ToU"/>
<constraint firstAttribute="trailing" secondItem="3g3-iU-dSA" secondAttribute="trailing" id="pxn-17-mEF"/>
<constraint firstItem="p5p-5f-gFk" firstAttribute="leading" secondItem="BlA-Cz-DcE" secondAttribute="leading" id="pzH-Ff-e1F"/>
<constraint firstItem="Wga-vh-5gr" firstAttribute="top" secondItem="LpT-uQ-5JS" secondAttribute="bottom" constant="12" id="rVq-zr-coh"/>
<constraint firstItem="3g3-iU-dSA" firstAttribute="top" secondItem="meM-14-BFw" secondAttribute="bottom" constant="12" id="t17-FU-6R8"/>
<constraint firstItem="meM-14-BFw" firstAttribute="top" secondItem="BOf-h7-67C" secondAttribute="bottom" constant="22" id="w8n-u5-5vI"/>
......@@ -961,9 +1027,11 @@
</constraints>
</view>
<connections>
<outlet property="heightCustomsClearance" destination="s99-VF-fm4" id="5e1-GB-6Ei"/>
<outlet property="heightPayType" destination="CG5-Ai-UwP" id="QPf-PX-6P9"/>
<outlet property="lbAddress" destination="z0p-CX-h3t" id="Imu-6N-5GL"/>
<outlet property="lbAddressDetail" destination="pnS-J7-TEY" id="kvk-bc-pgl"/>
<outlet property="lbCustomsClearance" destination="n4b-gy-dbB" id="gCj-lc-dpW"/>
<outlet property="lbDiscount" destination="7E5-kf-ON8" id="fYS-Bf-nSI"/>
<outlet property="lbGiftCard" destination="2lC-1w-Lfh" id="qgB-lu-d2a"/>
<outlet property="lbName" destination="DOa-mI-Adp" id="dCI-ct-wcu"/>
......@@ -1763,6 +1831,151 @@
</objects>
<point key="canvasLocation" x="2173" y="170"/>
</scene>
<!--清关信息-->
<scene sceneID="Tna-li-6BE">
<objects>
<viewController storyboardIdentifier="KWMCustomsClearanceVC" title="清关信息" useStoryboardIdentifierAsRestorationIdentifier="YES" id="UTL-Uv-CSE" userLabel="清关信息" customClass="KWMCustomsClearanceVC" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="zj8-m5-58e"/>
<viewControllerLayoutGuide type="bottom" id="N1I-CJ-3uZ"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="aHB-nI-Ztp">
<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="aer-9d-grV">
<rect key="frame" x="0.0" y="20" width="375" height="647"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fH5-vI-MZg" userLabel="line">
<rect key="frame" x="0.0" y="0.0" width="375" height="1"/>
<color key="backgroundColor" red="0.84705882349999995" green="0.85882352939999995" blue="0.87058823529999996" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="aBy-fV-RRG"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="lvW-47-TQx" userLabel="姓名">
<rect key="frame" x="0.0" y="30" width="375" height="45"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="姓名" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="CxY-8X-HkX">
<rect key="frame" x="34" y="12" width="60" height="21"/>
<constraints>
<constraint firstAttribute="width" constant="60" id="f1T-zl-2J6"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="15"/>
<color key="textColor" red="0.2196078431372549" green="0.2196078431372549" blue="0.2196078431372549" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" clipsSubviews="YES" contentMode="center" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="justified" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="ePN-nD-l3b" customClass="KWMTextFieldUtil">
<rect key="frame" x="113" y="0.0" width="252" height="45"/>
<constraints>
<constraint firstAttribute="height" constant="45" id="1ZM-e7-OzE"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="7PZ-3l-iAt" userLabel="line">
<rect key="frame" x="34" y="44" width="341" height="1"/>
<color key="backgroundColor" red="0.84705882349999995" green="0.85882352939999995" blue="0.87058823529999996" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="XyU-i4-9mM"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="7PZ-3l-iAt" secondAttribute="bottom" id="9MW-w3-FIq"/>
<constraint firstAttribute="trailing" secondItem="7PZ-3l-iAt" secondAttribute="trailing" id="Foc-Rb-1tt"/>
<constraint firstItem="ePN-nD-l3b" firstAttribute="centerY" secondItem="lvW-47-TQx" secondAttribute="centerY" id="HDE-bb-Jer"/>
<constraint firstAttribute="height" constant="45" id="OwV-Db-UEJ"/>
<constraint firstAttribute="trailing" secondItem="ePN-nD-l3b" secondAttribute="trailing" constant="10" id="VqR-ud-QDh"/>
<constraint firstItem="ePN-nD-l3b" firstAttribute="leading" secondItem="CxY-8X-HkX" secondAttribute="trailing" constant="19" id="ZtB-mI-aF1"/>
<constraint firstItem="7PZ-3l-iAt" firstAttribute="leading" secondItem="CxY-8X-HkX" secondAttribute="leading" id="k3R-hb-bNW"/>
<constraint firstItem="CxY-8X-HkX" firstAttribute="centerY" secondItem="lvW-47-TQx" secondAttribute="centerY" id="kkV-Fg-UyF"/>
<constraint firstItem="CxY-8X-HkX" firstAttribute="leading" secondItem="lvW-47-TQx" secondAttribute="leading" constant="34" id="vJq-Bj-6ba"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="7dU-eU-gV9" userLabel="身份证号">
<rect key="frame" x="0.0" y="75" width="375" height="45"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="身份证号" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WvS-b2-KId">
<rect key="frame" x="34" y="12" width="60" height="21"/>
<constraints>
<constraint firstAttribute="width" constant="60" id="xl6-es-gh0"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="15"/>
<color key="textColor" red="0.2196078431372549" green="0.2196078431372549" blue="0.2196078431372549" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" clipsSubviews="YES" contentMode="center" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="justified" clearsOnBeginEditing="YES" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="z6I-cd-kKJ" customClass="KWMTextFieldUtil">
<rect key="frame" x="113" y="0.0" width="252" height="45"/>
<constraints>
<constraint firstAttribute="height" constant="45" id="mfO-p1-LuM"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Z0h-dq-CHX" userLabel="line">
<rect key="frame" x="34" y="44" width="341" height="1"/>
<color key="backgroundColor" red="0.84705882349999995" green="0.85882352939999995" blue="0.87058823529999996" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="mco-w4-PvQ"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="Z0h-dq-CHX" firstAttribute="leading" secondItem="WvS-b2-KId" secondAttribute="leading" id="9dc-a1-LpI"/>
<constraint firstItem="z6I-cd-kKJ" firstAttribute="leading" secondItem="WvS-b2-KId" secondAttribute="trailing" constant="19" id="A3u-JS-F2K"/>
<constraint firstAttribute="bottom" secondItem="Z0h-dq-CHX" secondAttribute="bottom" id="GXu-Ho-Lgb"/>
<constraint firstAttribute="trailing" secondItem="Z0h-dq-CHX" secondAttribute="trailing" id="O4M-Hg-sJG"/>
<constraint firstAttribute="height" constant="45" id="UvG-mL-cdb"/>
<constraint firstItem="WvS-b2-KId" firstAttribute="leading" secondItem="7dU-eU-gV9" secondAttribute="leading" constant="34" id="eEK-0d-s6Q"/>
<constraint firstItem="WvS-b2-KId" firstAttribute="centerY" secondItem="7dU-eU-gV9" secondAttribute="centerY" id="hUE-ez-Cb0"/>
<constraint firstItem="z6I-cd-kKJ" firstAttribute="centerY" secondItem="7dU-eU-gV9" secondAttribute="centerY" id="nLc-Js-qdH"/>
<constraint firstAttribute="trailing" secondItem="z6I-cd-kKJ" secondAttribute="trailing" constant="10" id="v9O-UG-AYv"/>
</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="cDR-Ni-88I">
<rect key="frame" x="35" y="137" width="320" height="20"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="14"/>
<color key="textColor" red="0.94509803921568625" green="0.5725490196078431" blue="0.60392156862745094" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="lvW-47-TQx" secondAttribute="trailing" id="0rq-ms-mYs"/>
<constraint firstAttribute="trailing" secondItem="fH5-vI-MZg" secondAttribute="trailing" id="0ui-ac-s6G"/>
<constraint firstItem="lvW-47-TQx" firstAttribute="top" secondItem="aer-9d-grV" secondAttribute="top" constant="30" id="9Cy-V5-7YU"/>
<constraint firstItem="7dU-eU-gV9" firstAttribute="leading" secondItem="aer-9d-grV" secondAttribute="leading" id="NFA-6R-1Sn"/>
<constraint firstItem="cDR-Ni-88I" firstAttribute="leading" secondItem="aer-9d-grV" secondAttribute="leading" constant="35" id="SwZ-gq-1x0"/>
<constraint firstItem="fH5-vI-MZg" firstAttribute="top" secondItem="aer-9d-grV" secondAttribute="top" id="UJh-Tp-mF2"/>
<constraint firstItem="lvW-47-TQx" firstAttribute="leading" secondItem="aer-9d-grV" secondAttribute="leading" id="UVV-rU-Fg9"/>
<constraint firstItem="7dU-eU-gV9" firstAttribute="top" secondItem="lvW-47-TQx" secondAttribute="bottom" id="dVM-ho-FQR"/>
<constraint firstAttribute="trailing" secondItem="cDR-Ni-88I" secondAttribute="trailing" constant="20" id="euw-cm-937"/>
<constraint firstItem="cDR-Ni-88I" firstAttribute="top" secondItem="7dU-eU-gV9" secondAttribute="bottom" constant="17" id="j4c-Zv-fk4"/>
<constraint firstItem="fH5-vI-MZg" firstAttribute="leading" secondItem="aer-9d-grV" secondAttribute="leading" id="rGb-u2-xdB"/>
<constraint firstAttribute="trailing" secondItem="7dU-eU-gV9" secondAttribute="trailing" id="zOr-2h-7xW"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="aer-9d-grV" firstAttribute="leading" secondItem="aHB-nI-Ztp" secondAttribute="leading" id="Lpq-3O-iiN"/>
<constraint firstAttribute="bottom" secondItem="aer-9d-grV" secondAttribute="bottom" id="Vma-Zx-eyT"/>
<constraint firstItem="aer-9d-grV" firstAttribute="top" secondItem="zj8-m5-58e" secondAttribute="bottom" id="cIw-gV-lVH"/>
<constraint firstAttribute="trailing" secondItem="aer-9d-grV" secondAttribute="trailing" id="h9J-Bd-DPQ"/>
</constraints>
</view>
<connections>
<outlet property="tfIdCode" destination="z6I-cd-kKJ" id="lql-gg-fyc"/>
<outlet property="tfName" destination="ePN-nD-l3b" id="a9v-dC-flx"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="kWW-jI-tm8" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="2828" y="170"/>
</scene>
<!--网页支付-->
<scene sceneID="CDv-Du-isG">
<objects>
......
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