Commit 446dfbef by zhangxw

自测修改

1 parent 98ad6c54
...@@ -33,16 +33,10 @@ Page({ ...@@ -33,16 +33,10 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
this.getStaticData()
this.getResidueTime()
if (options?.tabIndex) { if (options?.tabIndex) {
this.setData({ this.setData({
tabIndex: Number(options.tabIndex) tabIndex: Number(options.tabIndex)
}, () => {
this.getList()
}) })
} else {
this.getList()
} }
}, },
...@@ -57,7 +51,9 @@ Page({ ...@@ -57,7 +51,9 @@ Page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() { onShow() {
this.getStaticData()
this.getResidueTime()
this.getList()
}, },
// 获取我的课程剩余开单时间 // 获取我的课程剩余开单时间
......
...@@ -78,8 +78,6 @@ Page({ ...@@ -78,8 +78,6 @@ Page({
onLoad(options) { onLoad(options) {
// 判断是否有考试 // 判断是否有考试
this.getExamInfo() this.getExamInfo()
this.getStaticData()
this.getList()
}, },
/** /**
...@@ -100,6 +98,8 @@ Page({ ...@@ -100,6 +98,8 @@ Page({
} }
// 判断是否展示我的任务入口 // 判断是否展示我的任务入口
this.getShowMyTaskMenu() this.getShowMyTaskMenu()
this.getStaticData()
this.getList()
}, },
async getShowMyTaskMenu() { async getShowMyTaskMenu() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!