Commit 16c64cf9 by 冷斌

fix bug

parent 3291f8b2
...@@ -48,23 +48,34 @@ ...@@ -48,23 +48,34 @@
tab: 0, tab: 0,
loading: true, loading: true,
finished: true, finished: true,
options: [{ options: []
}
},
created:function(){
document.title = "我的收藏";
let _this = this;
$.get("{:U('home/Home/collect2')}", function (res) {
console.log(res);
let exams = video = [];
if (res.exams.data.length > 0) {
exams = res.exams.data;
}
if (res.video.data.length > 0) {
video = res.video.data;
}
_this.options = [{
title: "我的视频", title: "我的视频",
items: [1], items: exams,
page: 0, page: 0,
finished: true finished: true
},{ },{
title: "我的真题", title: "我的真题",
items: [2], items: video,
page: 0, page: 0,
finished: true finished: true
}] }];
}
},
created:function(){
document.title = "我的收藏";
$.get("{:U('home/Home/collect2')}", function (res) {
console.log(res);
}, 'json'); }, 'json');
}, },
methods: { methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment