cdts/xdts-ios 3/TreeHole/Code/Features/Bottle/View/THLVTipView.m

36 lines
1.0 KiB
Mathematica
Raw Normal View History

2023-07-27 18:25:18 +08:00
//
// 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