// // THLVTipView.m // TreeHole // // Created by iOS on 2023/7/27. // Copyright © 2023 CYH. All rights reserved. // #import "THLVTipView.h" #import "ProfileCardViewController.h" #import "BottleDetialController.h" #import "UserService.h" @implementation THLVTipView - (void)layoutSubviews { [super layoutSubviews]; self.tipBtn.layer.cornerRadius = self.tipBtn.size.height/2; self.tipBtn.superview.layer.cornerRadius = 10; [self.tipBtn addTarget:self action:@selector(btnClick:) forControlEvents:UIControlEventTouchUpInside]; } - (void)btnClick:(UIButton *)btn { if ([btn.titleLabel.text isEqualToString:@"更新形象照"]) { [PYAppService pushViewControllerAnimated:[[ProfileCardViewController alloc] initWithUserID:[UserService currentUserID]]]; } else if ([btn.titleLabel.text isEqualToString:@"查看瓶子"]) { BottleDetialController *deDetial = [[BottleDetialController alloc]init]; [PYAppService pushViewControllerAnimated:deDetial]; } else { [PYAppService showVipVC:@"vip_page"]; } } @end