|
@@ -2,17 +2,14 @@ package com.yingyangfly.mmse.fragment
|
|
|
|
|
|
|
|
import android.os.Bundle
|
|
import android.os.Bundle
|
|
|
import android.text.TextUtils
|
|
import android.text.TextUtils
|
|
|
-import android.util.Log
|
|
|
|
|
import androidx.core.os.bundleOf
|
|
import androidx.core.os.bundleOf
|
|
|
import androidx.navigation.Navigation
|
|
import androidx.navigation.Navigation
|
|
|
-import com.alibaba.fastjson.JSON
|
|
|
|
|
import com.yingyang.mmse.R
|
|
import com.yingyang.mmse.R
|
|
|
import com.yingyang.mmse.databinding.FragmentMultipleChoiceBinding
|
|
import com.yingyang.mmse.databinding.FragmentMultipleChoiceBinding
|
|
|
import com.yingyangfly.baselib.base.BaseFragment
|
|
import com.yingyangfly.baselib.base.BaseFragment
|
|
|
import com.yingyangfly.baselib.db.QuestionsBean
|
|
import com.yingyangfly.baselib.db.QuestionsBean
|
|
|
import com.yingyangfly.baselib.ext.setOnSingleClickListener
|
|
import com.yingyangfly.baselib.ext.setOnSingleClickListener
|
|
|
import com.yingyangfly.baselib.ext.toast
|
|
import com.yingyangfly.baselib.ext.toast
|
|
|
-import com.yingyangfly.baselib.utils.GsonUtil
|
|
|
|
|
import com.yingyangfly.mmse.adapter.ChoiceAdapter
|
|
import com.yingyangfly.mmse.adapter.ChoiceAdapter
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -168,9 +165,10 @@ class MultipleChoiceFragment : BaseFragment<FragmentMultipleChoiceBinding>() {
|
|
|
questionsBeans?.forEach {
|
|
questionsBeans?.forEach {
|
|
|
if (TextUtils.equals("0", it.correct)) {
|
|
if (TextUtils.equals("0", it.correct)) {
|
|
|
it.score = "0"
|
|
it.score = "0"
|
|
|
|
|
+ } else {
|
|
|
|
|
+ it.score = it.reviewScore
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- Log.e("wpp", JSON.toJSONString(questionsBeans))
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|