themes/pc/search/index.js
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var app=new Vue({
el:"#App",
data:function(){
return {
tableList:[],
tablename:"",
list:[],
keyword:"",
per_page:0,
isFirst:true,
rscount:0
}
},
created:function(){
this.keyword=keyword;
this.getPage();
if(this.keyword!=''){
this.search();
}
},
methods:{
setType:function(t){
this.tablename=t;
this.per_page=0;
this.isFirst=true;
this.getList();
},
getPage:function(){
var that=this;
$.ajax({
url:"/index.php?m=search&a=article&ajax=1",
dataType:"json",
success:function(res){
that.tableList=res.data.tableList;
}
})
},
getList:function(){
var that=this;
$.ajax({
url:"/index.php?m=search&a=article&ajax=1",
dataType:"json",
data:{
keyword:this.keyword
},
success:function(res){
that.list=res.data.list;
that.isFirst=false;
that.rscount=res.data.rscount;
}
})
},
search:function(){
this.per_page=0;
this.isFirst=true;
this.getList();
},
goDetail:function(item){
后面还有 12 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。