|
@@ -59,10 +59,14 @@ Page({
|
|
|
})
|
|
|
this.isClass(sessionKey)
|
|
|
} else {
|
|
|
+ wx.hideLoading();
|
|
|
this.setData({
|
|
|
isRz: true
|
|
|
})
|
|
|
}
|
|
|
+ },
|
|
|
+ fail:()=>{
|
|
|
+ wx.hideLoading()
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -88,7 +92,7 @@ Page({
|
|
|
sessionKey
|
|
|
},
|
|
|
success: (res) => {
|
|
|
-
|
|
|
+ wx.hideLoading()
|
|
|
if (res.data.code == 0) {
|
|
|
let classInfo = res.data.data;
|
|
|
classInfo.clasBegin = app.timeFmt(classInfo.clasBegin, "yyyy\/MM\/dd hh:mm ");
|
|
@@ -163,6 +167,9 @@ Page({
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
+ },
|
|
|
+ fail:()=>{
|
|
|
+ wx.hideLoading();
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -1138,10 +1145,11 @@ Page({
|
|
|
|
|
|
|
|
|
onUnload() {
|
|
|
- this.setData({ cardVis: false,pageNum:1,stuInfo:{} });
|
|
|
+ this.setData({ cardVis: false });
|
|
|
},
|
|
|
onHide() {
|
|
|
- this.setData({ cardVis: false,pageNum:1,stuInfo:{} });
|
|
|
+
|
|
|
+ this.setData({ cardVis: false });
|
|
|
},
|
|
|
studentList(page) {
|
|
|
var that = this;
|
|
@@ -1287,12 +1295,16 @@ Page({
|
|
|
// },
|
|
|
async onShow() {
|
|
|
console.log(app.globalData.imgUrl);
|
|
|
+ wx.showLoading({
|
|
|
+ title: '正在加载',
|
|
|
+ })
|
|
|
+ this.setData({ cardVis: false, classVis: false,
|
|
|
+ classErrVis: false,
|
|
|
+ classNVis: false,pageNum:1,stuInfo:{} });
|
|
|
var that = this;
|
|
|
- // wx.showLoading({
|
|
|
- // title: '加载中',
|
|
|
- // mask:true
|
|
|
- // })
|
|
|
+
|
|
|
const sessionKey = await tools.checkSessionAndLogin();
|
|
|
+
|
|
|
this.setData({
|
|
|
sessionKey
|
|
|
});
|