|
@@ -104,7 +104,7 @@ NSString *const new_AesKey = @"mGlAgnIBB8bx2nch";
|
|
|
config.preferences.javaScriptCanOpenWindowsAutomatically = YES;
|
|
|
//添加消息处理,注意:self指代的是需要遵守WKScriptMessageHandler协议,结束时需要移除
|
|
|
NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
|
|
|
- config.applicationNameForUserAgent = [NSString stringWithFormat:@" jianyuapp %@",version];
|
|
|
+ config.applicationNameForUserAgent = [NSString stringWithFormat:@" jianyuapp/%@",version];
|
|
|
config.userContentController = [[WKUserContentController alloc] init];
|
|
|
//声明协议
|
|
|
NSArray *jsArr = @[@"loginByWeixin",
|
|
@@ -583,13 +583,13 @@ NSString *const new_AesKey = @"mGlAgnIBB8bx2nch";
|
|
|
//监听购买结果
|
|
|
[[SKPaymentQueue defaultQueue] addTransactionObserver:self];
|
|
|
|
|
|
-
|
|
|
// UIButton *btn = [ZKControl createButtonWithFrame:CGRectMake(100, 100, 100, 100) title:@"点我点我" imageName:nil bgImageName:nil target:self method:@selector(click)];
|
|
|
// [self.view addSubview:btn];
|
|
|
|
|
|
}
|
|
|
//-(void)click{
|
|
|
// [self jsGetPhoneBind:@{}];
|
|
|
+// [self jsOpenOtherAppLinks:@{@"appLink":@"weixin://scanqrcode",@"appName":@"微信"}];
|
|
|
//}
|
|
|
|
|
|
#pragma mark - WKNavigationDelegate
|