Steven 2 年 前
コミット
ced4ae8873

BIN
KulexiuForStudent/KulexiuForStudent.xcworkspace/xcuserdata/wangzhi.xcuserdatad/UserInterfaceState.xcuserstate


+ 5 - 4
KulexiuForStudent/KulexiuForStudent/Module/Home/Controller/HomeViewController.m

@@ -1698,7 +1698,7 @@
         _qualityMusicView = [HomeQualityMusic shareInstance];
         MJWeakSelf;
         [_qualityMusicView homeMusicMore:^{
-            [weakSelf moreHotMusic];
+            [weakSelf moreHotMusic:YES];
         }];
         [_qualityMusicView.musicContentView addSubview:self.qualityMusicCollectionView];
         [self.qualityMusicCollectionView mas_makeConstraints:^(MASConstraintMaker *make) {
@@ -1740,7 +1740,7 @@
         _hotMusicView = [HomeHotMusicView shareInstance];
         MJWeakSelf;
         [_hotMusicView homeMusicMore:^{
-            [weakSelf moreHotMusic];
+            [weakSelf moreHotMusic:NO];
         }];
         [_hotMusicView.musicContentView addSubview:self.musicCollectionView];
         [self.musicCollectionView mas_makeConstraints:^(MASConstraintMaker *make) {
@@ -1751,9 +1751,10 @@
 }
 
 
-- (void)moreHotMusic {
+- (void)moreHotMusic:(BOOL)isQuality {
+    NSString *type = isQuality ? @"?type=fine " : @"?type=list";
     KSBaseWKWebViewController *ctrl = [[KSBaseWKWebViewController alloc] init];
-    ctrl.url = [NSString stringWithFormat:@"%@%@", WEBHOST, @"/#/music-list"];
+    ctrl.url = [NSString stringWithFormat:@"%@%@%@", WEBHOST, @"/#/music-list",type];
     [self.navigationController pushViewController:ctrl animated:YES];
 }