|
@@ -38,13 +38,13 @@ Page({
|
|
onInit: that.initChart
|
|
onInit: that.initChart
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ // 学校
|
|
|
|
+ const school = await app.$get(`/rss`, { student_id: res.data.info.id });
|
|
|
|
+ if (school.errcode == '0' && school.total > 0) {
|
|
|
|
+ that.setData({ schoolList: school.data })
|
|
|
|
+ }
|
|
// 模拟请求
|
|
// 模拟请求
|
|
var times = setTimeout(async function () {
|
|
var times = setTimeout(async function () {
|
|
- // 学校
|
|
|
|
- const school = await app.$get(`/rss`, { student_id: res.data.info.id });
|
|
|
|
- if (school.errcode == '0' && school.total > 0) {
|
|
|
|
- that.setData({ schoolList: school.data })
|
|
|
|
- }
|
|
|
|
if (that.data.school_id) {
|
|
if (that.data.school_id) {
|
|
const arr = await app.$get(`/statistics/studentLearning`, { school_id: res.data.info.id, student_id: res.data.info.id });
|
|
const arr = await app.$get(`/statistics/studentLearning`, { school_id: res.data.info.id, student_id: res.data.info.id });
|
|
if (arr.errcode == '0') {
|
|
if (arr.errcode == '0') {
|
|
@@ -108,7 +108,6 @@ Page({
|
|
grid: {
|
|
grid: {
|
|
left: '2%',
|
|
left: '2%',
|
|
right: '2%',
|
|
right: '2%',
|
|
- bottom: '3%',
|
|
|
|
containLabel: true
|
|
containLabel: true
|
|
},
|
|
},
|
|
xAxis: [
|
|
xAxis: [
|