商品相关接口代码实现
*商品详情界面
自己构建详情界面
-(void)itemDetailPage{
TaeWebViewUISettings *viewSettings =[self getWebViewSetting];
NSNumber *realitemId= [[[NSNumberFormatter alloc]init] numberFromString:_tradeTestData.realItemId];
TaeTaokeParams *taoKeParams=[[TaeTaokeParams alloc] init];
taoKeParams.pid=_tradeTestData.taoKePid;
taoKeParams.unionId =_tradeTestData.taoKeUnionId;
ALBBPage *page=[ALBBPage itemDetailPage:[NSString stringWithFormat:@"%@",realitemId] params:_customParams];
//params 指定isv code等。
[_tradeService show:self.navigationController isNeedPush:YES webViewUISettings:viewSettings page:page taoKeParams:taoKeParams tradeProcessSuccessCallback:_tradeProcessSuccessCallback tradeProcessFailedCallback:_tradeProcessFailedCallback];
}
手机淘宝打开详情页
[[ALBBSDK sharedInstance] setUseTaobaoNativeDetail:YES];//优先使用手淘APP打开商品详
H5打开详情页
[[ALBBSDK sharedInstance] setViewType:ALBB_ITEM_VIEWTYPE_TAOBAO];//使用淘宝H5页面打开商品详情
[[ALBBSDK sharedInstance] setISVCode:@"my_isv_code"];
网友评论