|
|
@@ -5,9 +5,11 @@ import android.os.Bundle
|
|
|
import android.view.MotionEvent
|
|
|
import android.view.View
|
|
|
import com.alibaba.android.arouter.facade.annotation.Route
|
|
|
+import com.alibaba.android.arouter.launcher.ARouter
|
|
|
import com.yingyangfly.baselib.bean.Record
|
|
|
import com.yingyangfly.baselib.ext.getEndAnimation
|
|
|
import com.yingyangfly.baselib.ext.getScaleAnimation
|
|
|
+import com.yingyangfly.baselib.ext.toast
|
|
|
import com.yingyangfly.baselib.mvvm.BaseMVVMActivity
|
|
|
import com.yingyangfly.baselib.router.RouterUrlCommon
|
|
|
import com.yingyangfly.baselib.utils.JumpUtil
|
|
|
@@ -58,7 +60,7 @@ class GameIntroductionActivity :
|
|
|
*/
|
|
|
private fun getGameDetailByCode() {
|
|
|
viewModel.getGameDetailByCode(gameCode, playClass, fail = {
|
|
|
-
|
|
|
+ it.toast()
|
|
|
}, success = {
|
|
|
if (it != null) {
|
|
|
binding.data = it
|
|
|
@@ -86,7 +88,11 @@ class GameIntroductionActivity :
|
|
|
if (v.id == R.id.homeImage) {
|
|
|
JumpUtil.jumpActivity(RouterUrlCommon.home, mContext)
|
|
|
} else if (v.id == R.id.btnStartGame) {
|
|
|
-// JumpUtil.jumpActivityWithUrl(RouterUrlCommon.playGame, id, mContext)
|
|
|
+ ARouter.getInstance().build(RouterUrlCommon.playGame)
|
|
|
+ .withString("gameCode", gameCode)
|
|
|
+ .withString("playClass", playClass)
|
|
|
+ .withTransition(R.anim.leftin, R.anim.leftout)
|
|
|
+ .navigation(mContext)
|
|
|
}
|
|
|
}
|
|
|
MotionEvent.ACTION_CANCEL -> {
|