Commit 69ae7ccc by lee

u add service up home bug

parent 23f1b4a7
......@@ -683,7 +683,7 @@ static NSString *const passwordTest = @"9e84aae218c57cdf0762763c4cf5a651";
}
- (NSURLSessionDataTask *)getHomeDataWithSuccess:(void (^)(NSURLSessionDataTask *, KWMHomeDataResult *))success failure:(void (^)(NSURLSessionDataTask *, NSError *))failure {
NSString *apiPath = @"https://ogbgohpla.qnssl.com/App.Home.json?1";
NSString *apiPath = @"https://ogbgohpla.qnssl.com/App.Home.json";
return [self startSessionTask:KWMHTTPMethodGET apiPath:apiPath parameters:nil result:[KWMHomeDataResult class] model:nil success:success failure:failure];
}
......
......@@ -34,7 +34,7 @@
KWMNewProductVC *vc = [KWMNewProductVC getNewInstance];
// KWMProductDetailVC *productDetailVC = (KWMProductDetailVC*)[KWMBaseVC findControllerBy:[KWMProductDetailVC kwmTag] fromStoryboard:@"New"];
// productDetailVC.product = brandCell.leftProduct;
// productDetailVC.handle = parameters[@"id"];
vc.handle = parameters[@"id"];
// NSLog(@"%@",[AppDelegate mainViewController].selectedViewController);
[[AppDelegate mainViewController].selectedViewController pushViewController:vc animated:YES];
return YES;
......
......@@ -43,8 +43,6 @@
[super viewDidLoad];
_dataArr = [NSArray array];
[self requestBlogAPI];
// FIXME: mo to main
[self.api loginWebSuccess:nil failure:nil];
}
- (UITableView *)targetTableView{
......
......@@ -51,6 +51,7 @@
[defaults setBool:NO forKey:KEY_USER_REGISTER];
[defaults synchronize];
}
[[KWMAPIManager sharedManager] loginWebSuccess:nil failure:nil];
}
- (void)initSplash{
......
......@@ -170,6 +170,7 @@ typedef enum{
-(void)kwm_onClickDeliveryMenu{
NSLog(@"deliverymenu");
[self openURLWithString:@"https://www.cemarose.com/blogs/service-description/sd"];
}
#pragma makr - KWMRecommendDelegate KWMClothingSetsDelegate KWMHotSalesDelegate
......@@ -370,7 +371,8 @@ typedef enum{
self.clothingSetsHeader.headerImage = self.homeData.clothing_sets.image;
// self.hotSalesHeader.singleShowArray = testArray;
// self.hotSalesHeader.bannerArray = testArray;
NSArray *clothingParam = [self.homeData.clothing_sets.url arrayOfCaptureComponentsMatchedByRegex:@"collections\\/(.*?)\\/(.*)"];
// self.homeData.clothing_sets.url =@"https://www.cemarose.cn/collections/skirts/girls+spring-summer-2016";
NSArray *clothingParam = [self.homeData.clothing_sets.url arrayOfCaptureComponentsMatchedByRegex:@"collections\\/([^/]*+)\\/?(.*)$"];
if (clothingParam.count) {
clothingParam = clothingParam.firstObject;
NSString *handle = clothingParam.count > 1 ? clothingParam[1] : nil;
......
......@@ -66,8 +66,8 @@
- (void)viewDidLoad {
[super viewDidLoad];
self.productId = @(7436196294);
self.product = nil;
// self.productId = @(7436196294);
// self.product = nil;
[self initView];
}
......
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