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.
|
|
|
const app = getApp();
|
|
|
|
Component({
|
|
|
|
properties: {
|
|
|
|
data:Object
|
|
|
|
},
|
|
|
|
data: {
|
|
|
|
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
answer_main_question: function ({detail: {value}, currentTarget: { dataset } }) {
|
|
|
|
console.log("answer_main_question");
|
|
|
|
console.log(value);
|
|
|
|
console.log(dataset);
|
|
|
|
app.api("exercise_questions.exercise_answers")({ question_id: dataset.question_id, answer_text: value })
|
|
|
|
.then(res => { console.log("answer_main_question"); console.log(res); })
|
|
|
|
.catch(e => {
|
|
|
|
console.error(e);
|
|
|
|
app.showError(e);
|
|
|
|
});
|
|
|
|
},
|
|
|
|
}
|
|
|
|
})
|