|
|
@@ -27,7 +27,9 @@
|
|
|
@property(weak, nonatomic) IBOutlet UIImageView *avatarView;
|
|
|
@property(weak, nonatomic) IBOutlet UIButton *promoteBtn;
|
|
|
@property (weak, nonatomic) IBOutlet MineItemView *shop;
|
|
|
+@property (weak, nonatomic) IBOutlet MineItemView *videoOrder;
|
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *consHeight;
|
|
|
+@property (weak, nonatomic) IBOutlet NSLayoutConstraint *videoOrderHeight;
|
|
|
@property (weak, nonatomic) IBOutlet UIView *inviteView;
|
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *inviteHeight;
|
|
|
|
|
|
@@ -49,7 +51,7 @@
|
|
|
self.avatarView.layer.cornerRadius = 35;
|
|
|
self.avatarView.layer.masksToBounds = YES;
|
|
|
self.avatarView.userInteractionEnabled = YES;
|
|
|
-
|
|
|
+
|
|
|
self.promoteBtn.layer.backgroundColor = [UIColor colorWithRed:255 / 255.0 green:255 / 255.0 blue:255 / 255.0 alpha:1.0].CGColor;
|
|
|
self.promoteBtn.layer.cornerRadius = 17;
|
|
|
self.promoteBtn.layer.shadowColor = [UIColor colorWithRed:0 / 255.0 green:0 / 255.0 blue:0 / 255.0 alpha:0.08].CGColor;
|
|
|
@@ -60,11 +62,13 @@
|
|
|
|
|
|
AppDelegate *myDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
|
|
|
if (myDelegate.audit) {
|
|
|
- self.shop.hidden = YES;
|
|
|
- self.consHeight.constant = 0.f;
|
|
|
- self.inviteView.hidden = YES;
|
|
|
- self.inviteHeight.constant = 0.f;
|
|
|
- [self.shop layoutIfNeeded];
|
|
|
+ self.shop.hidden = YES;
|
|
|
+ self.videoOrder.hidden = YES;
|
|
|
+ self.consHeight.constant = 0.f;
|
|
|
+ self.videoOrderHeight.constant = 0.f;
|
|
|
+ self.inviteView.hidden = YES;
|
|
|
+ self.inviteHeight.constant = 0.f;
|
|
|
+ [self.shop layoutIfNeeded];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -82,7 +86,7 @@
|
|
|
gl.colors = @[(__bridge id) [UIColor colorWithRed:251 / 255.0 green:92 / 255.0 blue:163 / 255.0 alpha:1].CGColor, (__bridge id) [UIColor colorWithRed:253 / 255.0 green:127 / 255.0 blue:141 / 255.0 alpha:1].CGColor];
|
|
|
gl.locations = @[@(0), @(1.0f)];
|
|
|
[self.headView.layer addSublayer:gl];
|
|
|
-
|
|
|
+
|
|
|
UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:self.bgView.bounds byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight cornerRadii:CGSizeMake(30, 30)];
|
|
|
CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
|
|
|
maskLayer.frame = self.bgView.bounds;
|
|
|
@@ -103,22 +107,22 @@
|
|
|
}
|
|
|
NSString *str = [NSString stringWithFormat:@"%@memberInfo?action=getuserinfo&PK=%@", webURL, [Helper sharedAccount].accid];
|
|
|
[[AHHttpManager sharedManager]
|
|
|
- POST:str
|
|
|
- parameters:nil
|
|
|
- success:^(id responseObject) {
|
|
|
- NSLog(@"%@", responseObject);
|
|
|
- if ([[responseObject objectForKey:@"msg"] isEqualToString:@"success"]) {
|
|
|
- NSDictionary *data = responseObject[@"data"];
|
|
|
- self.nameLabel.text = data[@"pet"];
|
|
|
- [self.avatarView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@", imageURl, data[@"hphoto"]]] placeholderImage:[UIImage imageNamed:@"default_avatar"]];
|
|
|
- } else {
|
|
|
- [MBProgressHUD showTextHUD:@"超时" inView:self.view hideAfterDelay:1];
|
|
|
- }
|
|
|
- }
|
|
|
- failure:^(NSError *error) {
|
|
|
- NSLog(@"error = %@", error);
|
|
|
- [MBProgressHUD showTextHUD:@"超时" inView:self.view hideAfterDelay:1];
|
|
|
- }];
|
|
|
+ POST:str
|
|
|
+ parameters:nil
|
|
|
+ success:^(id responseObject) {
|
|
|
+ NSLog(@"%@", responseObject);
|
|
|
+ if ([[responseObject objectForKey:@"msg"] isEqualToString:@"success"]) {
|
|
|
+ NSDictionary *data = responseObject[@"data"];
|
|
|
+ self.nameLabel.text = data[@"pet"];
|
|
|
+ [self.avatarView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@", imageURl, data[@"hphoto"]]] placeholderImage:[UIImage imageNamed:@"default_avatar"]];
|
|
|
+ } else {
|
|
|
+ [MBProgressHUD showTextHUD:@"超时" inView:self.view hideAfterDelay:1];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ failure:^(NSError *error) {
|
|
|
+ NSLog(@"error = %@", error);
|
|
|
+ [MBProgressHUD showTextHUD:@"超时" inView:self.view hideAfterDelay:1];
|
|
|
+ }];
|
|
|
}
|
|
|
|
|
|
- (IBAction)handelTap:(id)sender {
|
|
|
@@ -135,9 +139,9 @@
|
|
|
break;
|
|
|
}
|
|
|
case 2: {
|
|
|
-// ChargeViewController *chargeVc = [[ChargeViewController alloc] init];
|
|
|
-// chargeVc.hidesBottomBarWhenPushed = YES;
|
|
|
-// [self.navigationController pushViewController:chargeVc animated:YES];
|
|
|
+ // ChargeViewController *chargeVc = [[ChargeViewController alloc] init];
|
|
|
+ // chargeVc.hidesBottomBarWhenPushed = YES;
|
|
|
+ // [self.navigationController pushViewController:chargeVc animated:YES];
|
|
|
if (![delegate isLogin]) {
|
|
|
[delegate showLoginAlert];
|
|
|
return;
|