From fc5db6ccdbe3a86e87a49fc4f893a46f0f9eff89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=81=A5=E8=BE=89?= <27-hujianhui@users.noreply.gitlab.gitlab.finogeeks.club> Date: Mon, 28 Feb 2022 10:22:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=96=E6=B6=88=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=97=A0=E5=93=8D=E5=BA=94=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Classes/Api/MOP_showBotomSheetModel.m | 4 ++-- ios/Classes/MopPlugin.m | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ios/Classes/Api/MOP_showBotomSheetModel.m b/ios/Classes/Api/MOP_showBotomSheetModel.m index f86728a..522a23c 100644 --- a/ios/Classes/Api/MOP_showBotomSheetModel.m +++ b/ios/Classes/Api/MOP_showBotomSheetModel.m @@ -79,6 +79,7 @@ returnInsets = inset;\ [self.cancelButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal]; [self.contentView addSubview:self.cancelButton]; self.cancelButton.frame = CGRectMake(0, self.contentView.frame.size.height - kFinoSafeAreaBottom - 50, self.contentView.frame.size.width, 50); + [self.cancelButton addTarget:self action:@selector(dismiss) forControlEvents:UIControlEventTouchUpInside]; UIView *line = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.cancelButton.frame.size.width, 0.5)]; line.backgroundColor = [UIColor lightGrayColor]; @@ -106,8 +107,7 @@ returnInsets = inset;\ }]; } -- (void)dismiss -{ +- (void)dismiss { [UIView animateWithDuration:0.25 animations:^{ self.contentView.transform = CGAffineTransformMakeTranslation(0, self.contentView.frame.size.height); self.alpha = 0.5f; diff --git a/ios/Classes/MopPlugin.m b/ios/Classes/MopPlugin.m index 6cef3a3..8d14672 100644 --- a/ios/Classes/MopPlugin.m +++ b/ios/Classes/MopPlugin.m @@ -69,6 +69,12 @@ static MopPlugin *_instance; else if ([@"getAppletInfo" isEqualToString:call.method]) { result([self appInfoDictWithAppId:call.arguments[@"appId"]]); } + else if ([@"getAbsolutePath" isEqualToString:call.method]) { + NSString *path = call.arguments[@"path"]; + NSMutableDictionary *dict = [NSMutableDictionary dictionary]; + dict[@"path"] = [[FATClient sharedClient] fat_absolutePathWithPath:path]; + result(dict); + } else { MOPApiRequest* request = [[MOPApiRequest alloc] init]; request.command = call.method;