You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
659 B
25 lines
659 B
const app = getApp();
|
|
Component({
|
|
properties: {
|
|
data:Object
|
|
},
|
|
data: {
|
|
|
|
},
|
|
methods: {
|
|
answer_null_question: function ({ detail: { value }, currentTarget: { dataset:{question_id, exercise_choice_id}} }) {
|
|
console.log("answer_main_question");
|
|
console.log(value);
|
|
console.log(question_id, exercise_choice_id);
|
|
app.api("exercise_questions.exercise_answers")({ question_id, exercise_choice_id, answer_text: value })
|
|
.then(res => {
|
|
console.log("answer_main_question"); console.log(res);
|
|
})
|
|
.catch(e => {
|
|
console.error(e);
|
|
app.showError(e);
|
|
});
|
|
},
|
|
}
|
|
})
|