Skip to content

Commit

Permalink
手机号默认 +86
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghengheng committed Jun 6, 2016
1 parent 7860c5c commit a5a4b7a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Coding_iOS/Controllers/MeSetting/SettingPhoneViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@interface SettingPhoneViewController ()<UITableViewDataSource, UITableViewDelegate>
@property (strong, nonatomic) TPKeyboardAvoidingTableView *myTableView;
@property (strong, nonatomic) NSString *phone, *code, *phone_country_code, *country, *verifyStr;
@property (strong, nonatomic) NSString *phone, *code, *phone_country_code, *verifyStr;
@property (strong, nonatomic) NSString *phoneCodeCellIdentifier;
@property (assign, nonatomic) VerifyType verifyType;
@end
Expand All @@ -27,8 +27,7 @@ - (void)viewDidLoad {
// Do any additional setup after loading the view.
self.title = @"绑定手机号码";
self.phone = [Login curLoginUser].phone;
self.country = [Login curLoginUser].country;
self.phone_country_code = [Login curLoginUser].phone_country_code;
self.phone_country_code = [Login curLoginUser].phone_country_code.length > 0? [Login curLoginUser].phone_country_code: @"+86";

// 添加myTableView
self.phoneCodeCellIdentifier = [Input_OnlyText_Cell randomCellIdentifierOfPhoneCodeType];
Expand Down Expand Up @@ -166,7 +165,6 @@ - (void)goToCountryCodeVC{
__weak typeof(self) weakSelf = self;
CountryCodeListViewController *vc = [CountryCodeListViewController new];
vc.selectedBlock = ^(NSDictionary *countryCodeDict){
weakSelf.country = countryCodeDict[@"iso_code"];
weakSelf.phone_country_code = [NSString stringWithFormat:@"+%@", countryCodeDict[@"country_code"]];
[weakSelf.myTableView reloadData];
};
Expand Down

0 comments on commit a5a4b7a

Please sign in to comment.