Commit 181f9f14 authored by lmj_521aiau@163.com's avatar lmj_521aiau@163.com

no message

parent cca23281
......@@ -35,11 +35,11 @@
_beiJingView.backgroundColor = [UIColor whiteColor];
[self addSubview:_beiJingView];
[_beiJingView mas_makeConstraints:^(MASConstraintMaker *make) {
// make.top.equalTo(self).mas_offset(KScaleWidth(139.5) + StatusBarDif);
make.top.equalTo(self).mas_offset(KScaleWidth(139.5) + StatusBarDif);
make.centerX.equalTo(self);
make.centerY.equalTo(self);
make.size.mas_offset(CGSizeMake(KScaleWidth(302), KScaleWidth(361)));
// make.width.mas_offset(KScaleWidth(302));
// make.size.mas_offset(CGSizeMake(KScaleWidth(302), KScaleWidth(361)));
make.width.mas_offset(KScaleWidth(302));
}];
_beiJingView.layer.cornerRadius = KScaleWidth(10);
_beiJingView.layer.masksToBounds = YES;
......@@ -80,7 +80,7 @@
}];
// label
NSString *str = @"您接收本邀请,视为您已经充分理解并遵守《用户协议、《隐私协议》内容,同意授权平台按照隐私政策内容合法收集、储存和使用您的个人信息";
NSString *str = @"您接受本邀请,视为您已经充分理解并遵守《用户协议》、《隐私协议》内容,同意授权平台按照隐私政策内容合法收集、储存和使用您的个人信息";
_label = [UILabel labelWithtext:str font:[UIFont systemFontOfSize:KFont(12)] textColor:[UIColor colorWithHex:0x999999] alignment:NSTextAlignmentCenter];
[_beiJingView addSubview:_label];
_label.numberOfLines = 0;
......
......@@ -401,12 +401,12 @@
NSArray *results = response[@"result"][@"data"];
for (NSDictionary *dict in results) {
ZJLocationModel *coordinate = [[ZJLocationModel alloc] init];
coordinate.latitude = [dict[@"lat"] doubleValue]; //[latitude doubleValue];
coordinate.longitude = [dict[@"lon"] doubleValue]; //[longitude doubleValue];
if ([response[@"result"][@"data"][@"lat"] isMemberOfClass:[NSNull class]] || [response[@"result"][@"data"][@"lon"] isMemberOfClass:[NSNull class]]) {
if ([dict[@"lat"] isMemberOfClass:[NSNull class]] || [dict[@"lon"] isMemberOfClass:[NSNull class]]) {
}else{
ZJLocationModel *coordinate = [[ZJLocationModel alloc] init];
coordinate.latitude = [dict[@"lat"] doubleValue]; //[latitude doubleValue];
coordinate.longitude = [dict[@"lon"] doubleValue]; //[longitude doubleValue];
[_self.locations addObject:coordinate];
}
}
......
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