兼容ios系统的调整

This commit is contained in:
liuyuan
2025-03-10 16:45:11 +08:00
parent a7cc147375
commit d6ab23af60
4 changed files with 89 additions and 41 deletions

View File

@@ -115,7 +115,34 @@
export default {
data() {
return {
curriculumList: [
curriculumList: [],
// curriculumList: [
// {
// name: "我的课程",
// url: "/pages/curriculum/index/index",
// imgUrl: require("@/static/icon/home_bg1.png")
// },
// {
// name: "免费课程",
// url: "/pages/curriculum/index/free",
// imgUrl: require("@/static/icon/home_bg2.png")
// },
// {
// name: "VIP情况",
// url: "/pages/vip/index",
// imgUrl: require("@/static/icon/home_bg3.png")
// },
// ],
cateList: [],
noticeList: [], //通知消息
seckillLst: [], //秒杀列表
studyList: [], //正在学习
flashSaleList: [], //欢迎试听
}
},
onLoad() {
if(this.$platform=='android'){
this.curriculumList = [
{
name: "我的课程",
url: "/pages/curriculum/index/index",
@@ -131,16 +158,21 @@ export default {
url: "/pages/vip/index",
imgUrl: require("@/static/icon/home_bg3.png")
},
],
cateList: [],
noticeList: [], //通知消息
seckillLst: [], //秒杀列表
studyList: [], //正在学习
flashSaleList: [], //欢迎试听
]
}else{
this.curriculumList = [
{
name: "我的课程",
url: "/pages/curriculum/index/index",
imgUrl: require("@/static/icon/home_bg1.png")
},
{
name: "免费课程",
url: "/pages/curriculum/index/free",
imgUrl: require("@/static/icon/home_bg2.png")
}
]
}
},
onLoad() {
},
onShow() {
this.getCourseList();