From 5a0fff8095cd5356f57c181b7e7b820e0f7efacf Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 20 一月 2022 16:00:14 +0800
Subject: [PATCH] 将项目拆分为两个子项目,监管和督察

---
 appDucha/src/main/java/com/flightfeather/ducha/module/login/DCCardFragment.kt |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/appDucha/src/main/java/com/flightfeather/ducha/module/login/DCCardFragment.kt b/appDucha/src/main/java/com/flightfeather/ducha/module/login/DCCardFragment.kt
index 14f566e..31ebd21 100644
--- a/appDucha/src/main/java/com/flightfeather/ducha/module/login/DCCardFragment.kt
+++ b/appDucha/src/main/java/com/flightfeather/ducha/module/login/DCCardFragment.kt
@@ -1,14 +1,28 @@
 package com.flightfeather.ducha.module.login
 
+import android.content.Intent
 import android.os.Bundle
 import cn.flightfeather.thirdappmodule.module.login.CardFragment
 import com.flightfeather.ducha.R
+import com.flightfeather.ducha.module.DCMainActivity
 
 /**
  * @author riku
  * Date: 2021/7/29
  */
 class DCCardFragment : CardFragment() {
+
+    companion object {
+        @JvmStatic
+        fun newInstance(type: Int, position: Int): DCCardFragment {
+            val dcCardFragment = DCCardFragment()
+            val bundle = Bundle()
+            bundle.putInt(USER_TYPE, type)
+            bundle.putInt(POSITION, position)
+            dcCardFragment.arguments = bundle
+            return dcCardFragment
+        }
+    }
 
     override fun onCreate(savedInstanceState: Bundle?) {
         super.onCreate(savedInstanceState)
@@ -32,4 +46,8 @@
             }
         }
     }
+
+    override fun loginSuccess() {
+        startActivity(Intent(activity, DCMainActivity::class.java))
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3