mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-07 01:46:42 +08:00
提交
This commit is contained in:
@@ -40,8 +40,8 @@ const pageList = function(query) {
|
||||
* 课程的详细信息
|
||||
* @param {String} id
|
||||
*/
|
||||
const detail = function(id) {
|
||||
return ajax.get('/xboe/m/course/portal/detail?id=' + id);
|
||||
const detail = function(id,preview) {
|
||||
return ajax.get(`/xboe/m/course/portal/detail?id=${id}&preview=${preview}`);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -567,7 +567,7 @@ export default {
|
||||
},
|
||||
getDetail() {
|
||||
let $this = this;
|
||||
apiCoursePortal.detail(this.id).then(rs => {
|
||||
apiCoursePortal.detail(this.id,true).then(rs => {
|
||||
if (rs.status == 200) {
|
||||
this.courseInfo = rs.result.course;
|
||||
this.teacherList = rs.result.teachers;
|
||||
|
||||
@@ -607,7 +607,7 @@ export default {
|
||||
this.courseInfo.coverImg = "";
|
||||
},
|
||||
getDetail() {
|
||||
apiCoursePortal.detail(this.id).then(rs => {
|
||||
apiCoursePortal.detail(this.id,true).then(rs => {
|
||||
if (rs.status == 200) {
|
||||
this.courseInfo = rs.result.course;
|
||||
if(rs.result.course.coverImg !== '') {
|
||||
|
||||
@@ -443,7 +443,7 @@ export default {
|
||||
}
|
||||
},
|
||||
getDetail() {
|
||||
apiCoursePortal.detail(this.manageStudyData.id).then(rs => {
|
||||
apiCoursePortal.detail(this.manageStudyData.id,true).then(rs => {
|
||||
if (rs.status == 200) {
|
||||
let treeList = [];
|
||||
if (rs.result.sections.length > 0) {
|
||||
@@ -523,7 +523,7 @@ export default {
|
||||
});
|
||||
},
|
||||
getRecordDetail(id) {
|
||||
apiCoursePortal.detail(id).then(rs => {
|
||||
apiCoursePortal.detail(id,true).then(rs => {
|
||||
if (rs.status == 200) {
|
||||
let treeList = [];
|
||||
if (rs.result.sections.length > 0) {
|
||||
|
||||
@@ -173,7 +173,7 @@ export default {
|
||||
|
||||
let $this=this;
|
||||
//页面只支取一次,所以先直接写在这里面
|
||||
apiCoursePortal.detail(id).then(rs=>{
|
||||
apiCoursePortal.detail(id,false).then(rs=>{
|
||||
if(rs.status==200){
|
||||
if(rs.result.teachers && rs.result.teachers.length > 0){
|
||||
let userIds=[];
|
||||
|
||||
@@ -363,7 +363,7 @@ export default {
|
||||
this.loadResOwners();
|
||||
let $this = this;
|
||||
//页面只支取一次,所以先直接写在这里面
|
||||
apiCoursePortal.detail(id).then(rs => {
|
||||
apiCoursePortal.detail(id,false).then(rs => {
|
||||
if (rs.status == 200) {
|
||||
this.courseInfo = rs.result.course;
|
||||
if(rs.result.course.tags != '') this.tags = rs.result.course.tags.split(",");
|
||||
|
||||
@@ -484,7 +484,7 @@ export default {
|
||||
this.showQrimage();
|
||||
let $this = this;
|
||||
//页面只支取一次,所以先直接写在这里面
|
||||
apiCoursePortal.detail(id).then(rs => {
|
||||
apiCoursePortal.detail(id,true).then(rs => {
|
||||
if (rs.status == 200) {
|
||||
console.log(rs,'2')
|
||||
this.courseInfo = rs.result.course;
|
||||
|
||||
@@ -300,7 +300,7 @@ export default {
|
||||
//console.log("播放结束");
|
||||
},
|
||||
loadData() {
|
||||
apiCoursePortal.detail(this.courseId).then(rs=>{
|
||||
apiCoursePortal.detail(this.courseId,true).then(rs=>{
|
||||
if(rs.status==200){
|
||||
//设置必须的字段
|
||||
rs.result.sections.forEach(sec=>{
|
||||
|
||||
@@ -580,10 +580,9 @@ export default {
|
||||
if(this.contentData.status<9){
|
||||
this.finishStudyItem();
|
||||
}
|
||||
|
||||
},
|
||||
loadData() {
|
||||
apiCoursePortal.detail(this.courseId).then(rs => {
|
||||
apiCoursePortal.detail(this.courseId,false).then(rs => {
|
||||
if (rs.status == 200) {
|
||||
//设置必须的字段
|
||||
rs.result.sections.forEach(sec => {
|
||||
|
||||
Reference in New Issue
Block a user