课程说明云点播

This commit is contained in:
@fawn-nine
2024-06-19 16:10:36 +08:00
parent 93dd4dfd41
commit de7e4fb7d7
11 changed files with 4291 additions and 261 deletions

View File

@@ -190,7 +190,8 @@
'Content-Type': 'application/json'
},
}).then(res => {
if (res.code == 0 && res.page.records.length > 0) {
if (res.code == 0) {
if(res.page.records.length > 0){
var _list = res.page.records
this.productList = this.productList.concat(_list)
if (res.page.pages > this.pObj.page) {
@@ -199,7 +200,9 @@
// 加载完毕
this.pObj.status = 2
}
}else{
this.pObj.status = 3
}
}
this.pObj.pFlag = true
}).catch(e => {
@@ -225,7 +228,8 @@
'Content-Type': 'application/json'
},
}).then(res => {
if (res.code == 0 && res.page.records.length > 0) {
if (res.code == 0) {
if( res.page.records.length > 0){
var _list = res.page.records
this.newsList = this.newsList.concat(_list)
if (res.page.pages > this.nObj.page) {
@@ -234,7 +238,9 @@
// 加载完毕
this.nObj.status = 2
}
}else{
this.nObj.status = 3
}
}
this.nObj.nFlag = true
}).catch(e => {
@@ -249,6 +255,7 @@
}
this.tabId = e.id
console.log(e, '点击')
// this.getnewsData()
}
},
};