| | |
| | | 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) |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | override fun loginSuccess() { |
| | | startActivity(Intent(activity, DCMainActivity::class.java)) |
| | | } |
| | | } |