//解析字典套字典
-(void)requestUrl{
NSString *str = [NSString stringWithFormat:@"http://www.aliyueba.com:8080/ci/index.php/api/lists/shop_de?shopid=%@&cateid=%@&userid=%@",self.shopid,self.cateid,@"18"];
AFHTTPRequestOperationManager *manager=[AFHTTPRequestOperationManager manager];
NSURL *url = [NSURL URLWithString:str];
manager.responseSerializer.acceptableContentTypes = [NSSet setWithObject:@"text/html"];
__weak typeof(self) weakSelf=self;
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
MapAroundModle *shopidValue = [[MapAroundModle alloc]init];
// shopidValue.shopid
dict[@"shopid"] = self.shopid;
[manager GET:str parameters:dict success:^(AFHTTPRequestOperation *operation, id responseObject) {
//NSLog(@"++++++%@",responseObject);
flagName=YES;
weakSelf.nameDic=[NSMutableDictionary dictionaryWithDictionary:responseObject[@"result"]];
[weakSelf.tableView reloadData];
// NSLog(@"nameDic---%@",weakSelf.nameDic);
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
NSLog(@"%@",error);
}];
}
//赋值
cell1.howmuchlabel.text=[self.nameDic objectForKey:@"price"];