V0.0.9 更新

修正IOS登录错误
This commit is contained in:
Abin committed 2026-01-07 11:01:21 +08:00
1 parent 15c82bdb46
commit a3c886146a
13 files changed
+105 -69

No files matched your search

+9 -2
View File
@@ -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;
+2 -2
View File
@@ -1,6 +1,6 @@
{
"usingComponents": {
"Parser":"/Parser/index"
},
"navigationBarTitleText": "课程"
"navigationBarTitleText": "知识"
}
+5 -1
View File
@@ -1,6 +1,10 @@
<scroll-view class="container" scroll-y enable-flex type="custom">
<block wx:if="{{!hasCourse}}">
<text>暂无信息</text>
<view style="width: 100%;height: 400rpx;" >
<image style="margin-top: 30rpx; margin-left: 20rpx; height: 350rpx; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); width: 710rpx; border-radius: 20rpx; background-color: rgb(0, 255, 255);"
src="{{BaseURL}}/Images/Banner/BGbanner.png" mode="aspectFill" />
</view>
<Parser html="{{htmlcontent}}" />
</block>
<block wx:else>
<view wx:for="{{OwnedCourse}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="kecheng" bind:tap="NavigatorToVideoDetails" data-index="{{index}}">
-1
View File
@@ -18,7 +18,6 @@
}
.kecheng_video_up {
width: 400rpx;
height: 225rpx;