Commit ce77d8f6 authored by admin's avatar admin

修复bug

parent 4cd76b1f
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
#define Url_h #define Url_h
// url 测试环境 // url 测试环境
#define kRedStarURL @"http://218.244.151.129:7580/" // #define kRedStarURL @"http://218.244.151.129:7580/"
// 正式环境 // 正式环境
//#define kRedStarURL @"http://219.235.234.225:7580/" #define kRedStarURL @"http://219.235.234.225:7580/"
// 检查更新 // 检查更新
......
...@@ -89,6 +89,7 @@ ...@@ -89,6 +89,7 @@
PictureViewController *pic = [[PictureViewController alloc] init]; PictureViewController *pic = [[PictureViewController alloc] init];
pic.come = @"首页"; pic.come = @"首页";
pic.category = @"store"; pic.category = @"store";
pic.titleStr = @"商场风采";
nav = [[UINavigationController alloc] initWithRootViewController:pic]; nav = [[UINavigationController alloc] initWithRootViewController:pic];
} else { } else {
return; return;
......
...@@ -116,6 +116,7 @@ ...@@ -116,6 +116,7 @@
{ {
PictureViewController *sopVC = [[PictureViewController alloc] init]; PictureViewController *sopVC = [[PictureViewController alloc] init];
sopVC.come = @"图说"; sopVC.come = @"图说";
sopVC.titleStr = _titleArray[indexPath.section];
if (indexPath.section == 0) { if (indexPath.section == 0) {
sopVC.category = @"store"; sopVC.category = @"store";
[self.navigationController pushViewController:sopVC animated:YES]; [self.navigationController pushViewController:sopVC animated:YES];
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
} else { } else {
self.dateLabel.text = [[NSString stringWithFormat:@"%@",pictureList.submitTime] substringToIndex:10]; self.dateLabel.text = [[NSString stringWithFormat:@"%@",pictureList.submitTime] substringToIndex:10];
} }
self.adressLabel.text = [NSString stringWithFormat:@"%@", pictureList.storePath]; self.adressLabel.text = [NSString stringWithFormat:@"%@", pictureList.store_name];
if (pictureList.hotspot) { if (pictureList.hotspot) {
self.hotLabel.hidden = NO; self.hotLabel.hidden = NO;
......
...@@ -11,4 +11,6 @@ ...@@ -11,4 +11,6 @@
@interface PictureViewController : UIViewController @interface PictureViewController : UIViewController
@property (nonatomic, strong) NSString *come; @property (nonatomic, strong) NSString *come;
@property (nonatomic, strong) NSString *category; @property (nonatomic, strong) NSString *category;
@property (nonatomic, strong) NSString *titleStr;
@end @end
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
{ {
UILabel *customLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 40, 30)]; UILabel *customLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 40, 30)];
[customLab setTextColor:[UIColor whiteColor]]; [customLab setTextColor:[UIColor whiteColor]];
[customLab setText:@"商场风采"]; [customLab setText:self.titleStr];
customLab.font = [UIFont boldSystemFontOfSize:19]; customLab.font = [UIFont boldSystemFontOfSize:19];
self.navigationItem.titleView = customLab; self.navigationItem.titleView = customLab;
......
...@@ -596,6 +596,7 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2); ...@@ -596,6 +596,7 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
PictureViewController *pic = [[PictureViewController alloc] init]; PictureViewController *pic = [[PictureViewController alloc] init];
pic.come = @"首页"; pic.come = @"首页";
pic.category = @"store"; pic.category = @"store";
pic.titleStr = @"商场风采";
nav = [[UINavigationController alloc] initWithRootViewController:pic]; nav = [[UINavigationController alloc] initWithRootViewController:pic];
} }
......
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