V0.0.9 更新
修正IOS登录错误
This commit is contained in:
+14
-2
@@ -14,7 +14,7 @@ Page({
|
||||
FreeCourseList: [],
|
||||
webPageCount: 1,
|
||||
hasTouchBottom:false,
|
||||
bannerImgName:[]
|
||||
bannerImgName:[],
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -129,7 +129,19 @@ updateManager.onUpdateFailed(function () {
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
//逻辑同onLoad()一样,略有修改\
|
||||
//逻辑同onLoad()一样,略有修改
|
||||
//获取小知识
|
||||
MyApi.ApiGetTips()
|
||||
.then(result => {
|
||||
// 将信息存储到本地缓存中
|
||||
wx.setStorageSync('Tips', result);
|
||||
})
|
||||
.catch(err => {
|
||||
// 失败后执行的代码
|
||||
console.error("请求失败:"+err);
|
||||
});
|
||||
|
||||
|
||||
//获取首页banner图片
|
||||
MyApi.ApiGetBannerImg()
|
||||
.then(result => {
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
<!-- 新课上线 -->
|
||||
<view class="shouyetupianlist">
|
||||
<view class="biaoti01">
|
||||
<view wx:if="{{CourseList.length > 0}}" class="biaoti01">
|
||||
<image class="biaoti01img" src="{{BaseURL}}/Images/Icon/xinke.png" mode="aspectFill" />
|
||||
<text decode> 新课上线</text>
|
||||
</view>
|
||||
@@ -35,11 +35,11 @@
|
||||
</view>
|
||||
|
||||
|
||||
<!-- 免费课程 -->
|
||||
<!-- 自我学习 -->
|
||||
<view class="shouyetupianlist">
|
||||
<view class="biaoti01">
|
||||
<image class="biaoti01img" src="{{BaseURL}}/Images/Icon/xinke.png" mode="aspectFill" />
|
||||
<text decode> 免费课程</text>
|
||||
<view wx:if="{{FreeCourseList.length > 0}}" class="biaoti01">
|
||||
<image class="biaoti01img" src="{{BaseURL}}/Images/Icon/ziwoxuexi.png" mode="aspectFill" />
|
||||
<text decode> 自我学习</text>
|
||||
</view>
|
||||
<view class="shouyetupianlistcontent" wx:for="{{FreeCourseList}}" wx:for-item="item" wx:for-index="index" wx:key="index" data-number="{{item['序号']}}" bind:tap="NavigatorToIndexFreeCourseDetails">
|
||||
<view class="hengxianglist" key="{{index}}">
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
<!-- 知识速通 -->
|
||||
<view class="shouyetupianlist">
|
||||
<view class="biaoti01">
|
||||
<view wx:if="{{WebPages.length > 0}}" class="biaoti01">
|
||||
<image class="biaoti01img" src="{{BaseURL}}/Images/Icon/sutong.png" mode="aspectFill" />
|
||||
<text decode> 知识速通</text>
|
||||
</view>
|
||||
|
||||
@@ -62,7 +62,7 @@ page {
|
||||
padding: 0;
|
||||
margin: 20rpx;
|
||||
height: 260rpx;
|
||||
width: 100%;
|
||||
width: 730rpx;
|
||||
overflow: hidden;
|
||||
border-radius: 20rpx;
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
|
||||
@@ -82,7 +82,7 @@ page {
|
||||
|
||||
.biaoti01 {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
width: 750rpx;
|
||||
height: 60rpx;
|
||||
align-items: center;
|
||||
padding-left: 20rpx;
|
||||
|
||||
Reference in New Issue
Block a user