Commit 25a5dec2 authored by 艾娇平's avatar 艾娇平

更改引用方式

parent ecfaba77
......@@ -21,9 +21,8 @@
#import "GMToFacePayPopView.h"
#import "RequestHeader.h"
#import <GMBase/GMBaseTool.h>
#import <GMBaseWeb/GMBaseWeb-Swift.h>
#import <GMBaseWeb/GMWebutil.h>
@import GMBaseWeb;
#define counsellorAllHeight (573 + UIView.safeAreaInsetsBottom)
#define counsellorHalfHeight (366 + UIView.safeAreaInsetsBottom)
#define doctorAllHeight (573 + UIView.safeAreaInsetsBottom)
......
......@@ -13,8 +13,7 @@
#import "GMEndConsultView.h"
#import "RequestHeader.h"
#import "GMToFaceNetworking.h"
#import <GMBaseWeb/GMBaseWeb-Swift.h>
#import <WebKit/WebKit.h>
@import GMBaseWeb;
@import GMHud;
@interface GMTofaceOrderDetailViewController () <WKBaseWebViewDelegate>
@property (nonatomic, strong) GMComplaintObject *complaintObject;
......@@ -72,7 +71,7 @@
view.complaintType = GMComplaintTypeDoctor;
view.complaintFinish = ^(NSInteger complaintStatus) {
NSString *jsStr = [NSString stringWithFormat:@"window.gm&&window.gm.pack&&window.gm.pack.run('notificReportState')"];
[self.webCompent.webView evaluateJavaScript:jsStr completionHandler:nil];
[self.webCompent.webView _safeAsyncEvaluateJavaScript:jsStr completionHandler:nil];
};
[[GMBaseTool getCurrentViewController].view addSubview:view];
}
......
......@@ -12,7 +12,7 @@
#import "NSString+CalculateSize.h"
#import "WMTagObject.h"
#import <GMBase/GMBaseTool.h>
#import <GMBaseWeb/GMWebutil.h>
@import GMBaseWeb;
@import GMHud;
@import GMRouter;
......
......@@ -11,7 +11,6 @@
#import "GMGMDiagnosisWorkingTableScrollView.h"
#import "RequestHeader.h"
#import "GMLibraryHeader.h"
//#import "WMBrowserViewController.h"
@import GMRouter;
@interface GMServiceDataItemView()
@property (nonatomic, strong) UILabel *line;
......
......@@ -12,10 +12,9 @@
#import "GMComplaintResultView.h"
#import "GMComplaintObject.h"
#import "RequestHeader.h"
#import <GMBaseWeb/GMBaseWeb-Swift.h>
#import <GMFoundation/GMFoundation-umbrella.h>
@import GMBaseWeb;
@import GMNetworking;
@import WebKit.WKWebView;
@interface GMBusinessReportListController () <WKBaseWebViewDelegate>
@end
......@@ -42,7 +41,7 @@
@"state" : @(1)
};
NSString *jsStr = [NSString stringWithFormat:@"window.gm&&window.gm.pack&&window.gm.pack.run('notificReportState','%@')", [NSString convertToBriefJsonString:params]];
[self.webCompent.webView evaluateJavaScript:jsStr completionHandler:nil];
[self.webCompent.webView _safeAsyncEvaluateJavaScript:jsStr completionHandler:nil];
}
- (NSString *)moreQueryParameters {
......@@ -60,7 +59,7 @@
@"state" : @(complaintStatus)
};
NSString *jsStr = [NSString stringWithFormat:@"window.gm&&window.gm.pack&&window.gm.pack.run('notificReportState','%@')", [NSString convertToBriefJsonString:params]];
[self.webCompent.webView evaluateJavaScript:jsStr completionHandler:nil];
[self.webCompent.webView _safeAsyncEvaluateJavaScript:jsStr completionHandler:nil];
};
[[GMBaseTool getCurrentViewController].view addSubview:view];
} else {
......
......@@ -11,9 +11,9 @@
#import "RequestHeader.h"
#import "GMAIUploadImagesManager.h"
//#import "GMUploadImagesManager.h"
#import <GMBaseWeb/GMBaseWeb-Swift.h>
#import <GMbase/GMBaseTool.h>
@import GMBaseWeb;
@import GMHud;
@import GMNetworking;
@import GMFoundation;
......
......@@ -9,7 +9,6 @@
#import "GMEditQuesPartViewModel.h"
#import "GMBusinessReportListController.h"
#import <GMBase/GMBaseTool.h>
//#import "WMBrowserViewController.h"
#import "RequestHeader.h"
@import GMHud;
@import GMRouter;
......
......@@ -6,7 +6,7 @@
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
#import "GMWebViewController.h"
@import GMBaseWeb;
NS_ASSUME_NONNULL_BEGIN
......
......@@ -15,12 +15,12 @@
#import "GMToFaceOrderInfoModel.h"
#import "GMToFaceNetworking.h"
#import "NSString+AIJsonData.h"
#import <GMBase/GMBase-Swift.h>
//#import <GMBase/GMBase-Swift.h>
#import "RequestHeader.h"
#import <GMBaseWeb/GMBaseWeb-Swift.h>
@import GMBase;
@import WebKit.WKWebView;
@import GMBaseWeb;
@interface GMViewEvaluateModel: GMObject
//面诊id
@property (nonatomic, copy) NSString *consultationId;
......@@ -31,6 +31,7 @@
//页面名称
@property (nonatomic, copy) NSString *tabName;
@end
@implementation GMViewEvaluateModel @end
@interface GMDiagnoseRecordWebViewController () <WKBaseWebViewDelegate>
......@@ -103,7 +104,7 @@
}
NSString *str = [NSDictionary dictionaryToJson:dict];
NSString *jsStr = [NSString stringWithFormat:@"window.gm&&window.gm.pack&&window.gm.pack.run('evaluateCallback',%@)", str];
[weakSelf.webCompent.webView evaluateJavaScript:jsStr completionHandler:nil];
[weakSelf.webCompent.webView _safeAsyncEvaluateJavaScript:jsStr completionHandler:nil];
};
view.showComplaint = model.showComplaint;
view.recordId = model.consultationId;
......@@ -160,7 +161,7 @@
NSDictionary *dict = @{@"type":@(type),@"star":@(star),@"desc":desc};
NSString *str = [NSDictionary dictionaryToJson:dict];
NSString *jsStr = [NSString stringWithFormat:@"window.gm&&window.gm.pack&&window.gm.pack.run('confirmCallback',%@)", str];
[weakSelf.webCompent.webView evaluateJavaScript:jsStr completionHandler:nil];
[weakSelf.webCompent.webView _safeAsyncEvaluateJavaScript:jsStr completionHandler:nil];
};
popView.infoModel = infoModel;
[[GMBaseTool mainWindow] addSubview:popView];
......
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