|
|
@@ -10,12 +10,14 @@ import com.yingyangfly.baselib.base.BaseFragment
|
|
|
import com.yingyangfly.baselib.db.QuestionsBean
|
|
|
import com.yingyangfly.baselib.ext.setOnSingleClickListener
|
|
|
import com.yingyangfly.baselib.ext.toast
|
|
|
+import com.yingyangfly.baselib.mvvm.BaseMVVMFragment
|
|
|
import com.yingyangfly.mmse.adapter.ChoiceAdapter
|
|
|
|
|
|
/**
|
|
|
* 多选
|
|
|
*/
|
|
|
-class MultipleChoiceFragment : BaseFragment<FragmentMultipleChoiceBinding>() {
|
|
|
+class MultipleChoiceFragment :
|
|
|
+ BaseMVVMFragment<FragmentMultipleChoiceBinding, MultipleChoiceViewModel>() {
|
|
|
|
|
|
/**
|
|
|
* 问题id
|
|
|
@@ -170,6 +172,11 @@ class MultipleChoiceFragment : BaseFragment<FragmentMultipleChoiceBinding>() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ viewModel.submitQuestions(questionsBeans!!, fail = {
|
|
|
+ it.toast()
|
|
|
+ }, success = {
|
|
|
+
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|