Commit a23590c4 by 陈超

A

parent 3e1cc3e7
......@@ -225,21 +225,58 @@
return {
active: 1,
tab: 0,
myTab: 0
myTab: 0,
zhenti: [],
download: [],
myYiZuo: [],
myCollect: []
}
},
mounted:function(){
$("#preloader").hide();
this.onTopTab(0)
},
computed: {
currentItems: function() {
if(this.tab == 0) {
return this.zhenti
} else if(this.tab == 1) {
return this.download
} else {
return this.myTab == 0 ? this.myYiZuo : this.myCollect
}
}
},
methods: {
onChange: function(tab) {
},
onTopTab: function(tab) {
onTopTab: function(tab) {
if(this.tab == 0) {
this.loadZhenti()
} else if(this.tab == 1) {
} else {
}
},
onMyTab: function(tab) {
this.myTab = tab
},
//加载真题
loadZhenti: function() {
let that = this
$.ajax({
type: "GET",
url: "{:U('exams/Index/paper')}" + "&api=1,
dataType: "json",
success: function(res) {
console.log(res)
if(res.status == 1) {
}
}
})
}
}
})
......
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