Преглед на файлове

增加机构端部分H5跳转

Pq преди 1 година
родител
ревизия
117c7a7c95

+ 8 - 0
institution/src/main/java/com/cooleshow/institution/stu/constants/JGWebConstants.java

@@ -22,6 +22,14 @@ public class JGWebConstants {
 
     //热门专辑
     public static final String STUDENT_MUSIC_ALBUM = getBaseUrlH5() + "/#/music-album";
+    //评测记录
+    public static final String STUDENT_MEMBER_RECORD = getBaseUrlH5() + "/#/memberRecord";
+
+    //商品订单
+    public static final String MALL_GOODS_ORDER = getBaseUrlH5() + "/#/goodsOrder";
+
+    //会员中心
+    public static final String STUDENT_MEMBER_CENTER = getBaseUrlH5() + "/#/memberCenter";
 
     private static String getBaseUrlH5() {
         return BuildConfig.BASE_URL_H5_JG;

+ 20 - 0
institution/src/main/java/com/cooleshow/institution/stu/constants/JGWebStartHelper.java

@@ -79,4 +79,24 @@ public class JGWebStartHelper {
                 .navigation();
     }
 
+    public static void startPracticeRecord(){
+        ARouter.getInstance()
+                .build(RouterPath.WebCenter.ACTIVITY_HTML)
+                .withString(WebConstants.WEB_URL, JGWebConstants.STUDENT_MEMBER_RECORD)
+                .navigation();
+    }
+
+    public static void startOrderInfo(){
+        ARouter.getInstance()
+                .build(RouterPath.WebCenter.ACTIVITY_HTML)
+                .withString(WebConstants.WEB_URL, JGWebConstants.MALL_GOODS_ORDER)
+                .navigation();
+    }
+
+    public static void startVipCenter(){
+        ARouter.getInstance()
+                .build(RouterPath.WebCenter.ACTIVITY_HTML)
+                .withString(WebConstants.WEB_URL, JGWebConstants.STUDENT_MEMBER_CENTER)
+                .navigation();
+    }
 }

+ 24 - 5
institution/src/main/java/com/cooleshow/institution/stu/ui/main/MineFragment.java

@@ -82,7 +82,7 @@ public class MineFragment extends BaseMVPFragment<FgMineLayoutBinding, MinePrese
         mViewBinding.tvVipStatus.setText(vipTip);
 
         String tip = "暂未开放";
-        if(!TextUtils.isEmpty(data.getTenantAlbumEndTime())){
+        if (!TextUtils.isEmpty(data.getTenantAlbumEndTime())) {
             String s = DateUtil.date2Str(DateUtil.str2Date(data.getTenantAlbumEndTime()), "yyyy-MM-dd");
             tip = "至" + s;
         }
@@ -107,26 +107,45 @@ public class MineFragment extends BaseMVPFragment<FgMineLayoutBinding, MinePrese
             return;
         }
 
-        if(id == R.id.tv_feed_back){
+        if (id == R.id.tv_feed_back) {
             //意见反馈
             ARouter.getInstance().build(RouterPath.MineCenter.MINE_FEEDBACK)
                     .navigation();
             return;
         }
 
-        if(id ==R.id.tv_user_protocol){
+        if (id == R.id.tv_user_protocol) {
             JGWebStartHelper.startUserPrivacy();
             return;
         }
-        if(id == R.id.tv_privacy_policy){
+        if (id == R.id.tv_privacy_policy) {
             JGWebStartHelper.startPrivacy();
             return;
         }
 
-        if(id == R.id.tv_about_us){
+        if (id == R.id.tv_about_us) {
             ARouter.getInstance().build(RouterPath.MineCenter.MINE_ABOUT)
                     .navigation();
             return;
         }
+
+        if (id == R.id.tv_mine_track_list) {
+            JGWebStartHelper.startHotMusicSheetList();
+            return;
+        }
+        if (id == R.id.tv_practice_info) {
+            JGWebStartHelper.startPracticeRecord();
+            return;
+        }
+
+        if (id == R.id.tv_order_info) {
+            JGWebStartHelper.startOrderInfo();
+            return;
+        }
+
+        if(id == R.id.view_class_num){
+            JGWebStartHelper.startVipCenter();
+            return;
+        }
     }
 }

+ 2 - 2
institution/src/main/res/layout/pop_modify_header.xml

@@ -40,7 +40,7 @@
                 android:layout_height="@dimen/dp_52"
                 android:gravity="center"
                 android:text="拍照"
-                android:textColor="@color/color_2dc7aa"
+                android:textColor="@color/color_fe2451"
                 android:textSize="@dimen/sp_18"
                 app:layout_constraintLeft_toLeftOf="parent"
                 app:layout_constraintTop_toBottomOf="@+id/view_line1" />
@@ -58,7 +58,7 @@
                 android:layout_height="@dimen/dp_52"
                 android:gravity="center"
                 android:text="相册"
-                android:textColor="@color/color_2dc7aa"
+                android:textColor="@color/color_fe2451"
                 android:textSize="@dimen/sp_18"
                 app:layout_constraintLeft_toLeftOf="parent"
                 app:layout_constraintTop_toBottomOf="@+id/view_line2" />