|
@@ -1,6 +1,7 @@
|
|
|
// pages/mistakes/mistakes.js
|
|
|
const APIClient = require('../../utils/APIClient.js');
|
|
|
const login = require('../../utils/loginSchedule.js');
|
|
|
+const util = require('../../utils/util.js');
|
|
|
Page({
|
|
|
|
|
|
/**
|
|
@@ -13,7 +14,9 @@ Page({
|
|
|
exponentData: [],
|
|
|
course: ['语文', '数学'],
|
|
|
courseIndex: 0,
|
|
|
- flag: true
|
|
|
+ flag: true,
|
|
|
+ switchs: true,
|
|
|
+ errorData: {}
|
|
|
},
|
|
|
|
|
|
particulars: function (e) {
|
|
@@ -77,7 +80,7 @@ Page({
|
|
|
})
|
|
|
|
|
|
for(let item of res.data.data.list) {
|
|
|
- this.data.flag.push(false);
|
|
|
+ //this.data.flag.push(false);
|
|
|
}
|
|
|
this.setData({
|
|
|
flag: this.data.flag
|
|
@@ -99,11 +102,31 @@ Page({
|
|
|
});
|
|
|
},
|
|
|
|
|
|
+ closeDialog: function () {
|
|
|
+ this.setData({
|
|
|
+ switchs: true
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
/**
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
|
onLoad: function (options) {
|
|
|
-
|
|
|
+ const qid = util.convertObject(decodeURIComponent(options.scene)).i || '';
|
|
|
+ console.log('qid:' + qid);
|
|
|
+ if(qid) {
|
|
|
+ APIClient.getScheduleErr(qid).success(res => {
|
|
|
+ console.log(res.data.data)
|
|
|
+ this.setData({
|
|
|
+ errorData: res.data.data
|
|
|
+ })
|
|
|
+ this.setData({
|
|
|
+ switchs: false
|
|
|
+ })
|
|
|
+ }).fail(res => {
|
|
|
+ console.log(res)
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
/**
|