|
@@ -21,6 +21,7 @@ import com.yingyangfly.baselib.ext.*
|
|
|
import com.yingyangfly.baselib.mvvm.BaseMVVMActivity
|
|
|
import com.yingyangfly.baselib.player.VoicePlayer
|
|
|
import com.yingyangfly.baselib.router.RouterUrlCommon
|
|
|
+import com.yingyangfly.baselib.utils.JumpUtil
|
|
|
import com.yingyangfly.baselib.utils.LiveEventBusUtil
|
|
|
import com.yingyangfly.baselib.utils.RxBusCodes
|
|
|
import com.yingyangfly.baselib.utils.User
|
|
@@ -223,6 +224,27 @@ class GameIntroductionActivity :
|
|
|
val exitGameDialog = ExitGameDialog()
|
|
|
exitGameDialog.onDialogClickListener = {
|
|
|
runOnUiThread {
|
|
|
+ if (gameBean != null) {
|
|
|
+ val url =
|
|
|
+ gameBean!!.gameUrl + "?startLv=" + gameBean!!.gameLevel + "&maxLv=" + gameBean!!.totalNum + "&gameSetTime=" + gameBean!!.gameDuration + "&difficultyRate=" + gameBean!!.gameDifficultyRate + "&totalTime=" + gameBean!!.gameTotalTime + "&totalScore=" + gameBean!!.gameTotalScore + "&playClass=" + playClass
|
|
|
+ ARouter.getInstance().build(RouterUrlCommon.playGame)
|
|
|
+ .withString("gameCode", gameCode).withString("id", id)
|
|
|
+ .withString("playClass", playClass).withString("url", url)
|
|
|
+ .withString("gameType", gameBean!!.gameType)
|
|
|
+ .withString("gameTotalScore", gameBean!!.gameTotalScore)
|
|
|
+ .withString("gameTotalLevel", gameBean!!.totalNum)
|
|
|
+ .withBoolean("isPlayGameJump", isPlayGameJump)
|
|
|
+ .withString("gameInbetweenImage", gameBean!!.gameInbetweenImage)
|
|
|
+ .withString(
|
|
|
+ "gameBackgroundImage", gameBean!!.gameBackgroundImage
|
|
|
+ ).withString("gameShortDesn", gameBean!!.gameShortDesn)
|
|
|
+ .withString("fullFlag", gameBean!!.fullFlag)
|
|
|
+ .withString("frameImg", gameBean!!.frameImg)
|
|
|
+ .withString("gameName", gameBean!!.gameName)
|
|
|
+ .withTransition(R.anim.leftin, R.anim.leftout)
|
|
|
+ .navigation(mContext)
|
|
|
+ isPlayGameJump = true
|
|
|
+ }
|
|
|
if (loadingOver) {
|
|
|
LiveEventBusUtil.send(RxBusCodes.CALLQUITGAME, "")
|
|
|
finish()
|