1. Use uiwebview to load the remote h5 page, and then click on some functions involving transactions to call the native login page to log in. After successful login, enter the h5 page corresponding to the click function
2. Use the h5 page to call the native method Implement
jsContext[@"nativePage"] = ^(){
NSArray *args = [JSContext currentArguments];
NSDictionary *argDic = nil;
if(args.count >=1){
JSValue *value = [args objectAtIndex:0];
argDic = value.toObject;
}
if(argDic!=nil){
NSString *type =[argDic objectForKey:@"type"];
NSString *title =[argDic objectForKey:@"title"];
}
然后根據(jù)獲取的值進(jìn)行頁面跳轉(zhuǎn),遇到需要登錄之后才能操作的時候怎么進(jìn)行判斷,點擊某一個功能,根據(jù)獲取參數(shù)跳轉(zhuǎn)到登錄頁面進(jìn)行登錄,登錄成功之后,跳轉(zhuǎn)到點擊功能二級頁面
返回type為1時跳轉(zhuǎn)原生頁面,為2時跳轉(zhuǎn)h5頁面,一次只獲取一個type登錄成功之后怎么傳遞二級頁面的參數(shù)
認(rèn)證高級PHP講師