V0.0.9 更新
修正IOS登录错误
This commit is contained in:
1 parent
15c82bdb46
commit
a3c886146a
13 files changed
+105
-69
No files matched your search
@@ -8,13 +8,20 @@ Page({
|
||||
BaseURL:getApp().globalData.BaseURL,
|
||||
hasCourse: false,
|
||||
OwnedCourse: null,
|
||||
intervalId: null
|
||||
intervalId: null,
|
||||
htmlcontent: " "
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
//设置小知识
|
||||
try {
|
||||
var temphtmlcontent= wx.getStorageSync('Tips');
|
||||
this.setData({htmlcontent: temphtmlcontent[0].content});
|
||||
} catch (error) { };
|
||||
|
||||
|
||||
//每10ms获取一次数据,直到获取到个人信息数据为止
|
||||
// 使用箭头函数确保正确的作用域
|
||||
@@ -30,7 +37,7 @@ this.intervalId = setInterval(() => {
|
||||
//计时500次,即5s后如果没有任何获取到已经登录的标志,依然断开计时器
|
||||
if (longtime>=500){
|
||||
clearInterval(this.intervalId);
|
||||
console.log('暂无已购课程!');
|
||||
console.log('暂无课程!');
|
||||
};
|
||||
longtime=longtime+1;
|
||||
|
||||
|
||||
Reference in new issue
Block a user