module/flk/themes/index/flk_queue_log/index.js
(完整代码) 1KBvar app=new Vue({
el:"#App",
data:function(){
return {
list:{},
isFirst:true,
per_page:0
}
},
created:function(){
this.getPage();
},
methods:{
getPage:function(){
var that=this;
$.ajax({
url:"/module.php?m=flk_queue_log&ajax=1",
dataType:"json",
success:function(res){
if(res.error){
skyToast(res.message);
return false;
}
that.list=res.data.list;
that.isFirst=false;
that.per_page=res.data.per_page;
}
})
},
getList:function(){
var that=this;
if(this.per_page==0 && !this.isFirst){
return false;
}
$.ajax({
url:"/module.php?m=flk_queue_log&ajax=1",
dataType:"json",
data:{
per_page:that.per_page
},
success:function(res){
if(res.error){
skyToast(res.message);
return false;
}
if(that.isFirst){
that.list=res.data.list;
}else{
for(var i in res.data.list){
that.list.push(res.data.list[i]);
}
}
that.per_page=res.data.per_page;
}
})
},
}
})
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。