Browse Source

增加学生端首页精品曲目更多跳转

Pq 2 years ago
parent
commit
12c3cf8554

+ 2 - 0
BaseLibrary/src/main/java/com/cooleshow/base/common/WebConstants.java

@@ -68,6 +68,8 @@ public abstract class WebConstants {
     public static final String STUDENT_LIVE_SHOP_CAR_URL = getBaseUrlH5() + "/#/liveActiveList";
     //热门曲目
     public static final String HOT_MUSIC_SHEET_LIST = getBaseUrlH5() + "/#/music-list";
+    //精品曲目
+    public static final String GOOD_MUSIC_SHEET_LIST = getBaseUrlH5() + "/#/music-list?type=fine";
 
 
     //注册协议

+ 10 - 0
BaseLibrary/src/main/java/com/cooleshow/base/utils/helper/WebStartHelper.java

@@ -122,6 +122,16 @@ public class WebStartHelper {
     }
 
     /**
+     * 热门曲目
+     */
+    public static void startGoodMusicSheetList(){
+        ARouter.getInstance()
+                .build(RouterPath.WebCenter.ACTIVITY_HTML)
+                .withString(WebConstants.WEB_URL, WebConstants.GOOD_MUSIC_SHEET_LIST)
+                .navigation();
+    }
+
+    /**
      * 打开隐私协议页面
      */
     public static void startSearch(){

+ 7 - 0
student/src/main/java/com/cooleshow/student/ui/main/NewHomeFragment.java

@@ -137,6 +137,7 @@ public class NewHomeFragment extends BaseMVPFragment<FragmentNewHomeLayoutBindin
         mViewBinding.viewTalentStyleClick.setOnClickListener(this);
         mViewBinding.viewHotNewsClick.setOnClickListener(this);
         mViewBinding.viewSearchBg.setOnClickListener(this);
+        mViewBinding.tvGoodTrackMore.setOnClickListener(this);
     }
 
     @Override
@@ -844,6 +845,12 @@ public class NewHomeFragment extends BaseMVPFragment<FragmentNewHomeLayoutBindin
             mViewBinding.viewPagerBottom.setCurrentItem(1);
             return;
         }
+
+        if(id == R.id.tv_good_track_more){
+            //精品曲目更多
+            WebStartHelper.startGoodMusicSheetList();
+            return;
+        }
     }
 
     /**