riku
2022-01-20 5a0fff8095cd5356f57c181b7e7b820e0f7efacf
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))
    }
}