module/flk/themes/index/flk_search/index.js
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var app=new Vue({
el:"#app",
data:function(){
return {
pageLoad:false,
pageData:{},
keyword:"",
page:"product"
}
},
created:function(){
this.keyword=keyword;
this.getPage();
},
methods:{
goProduct:function(shopid,id){
window.location="/module.php?m=flk_product&a=show&shopid="+shopid+"&id="+id;
},
goShop:function(shopid){
window.location="/module.php?m=flk_shop&shopid="+shopid;
},
search:function(){
this.getPage();
},
setPage:function(page){
this.page=page;
this.pageLoad=false;
this.pageData={};
this.getPage();
},
getPage:function(){
if(this.page=="product"){
this.getProduct();
}else{
this.getShop();
}
},
getShop:function(){
var that=this;
$.ajax({
url:"/module.php?m=flk_search&a=shop&ajax=1",
data:{
keyword:this.keyword
},
dataType:"json",
success:function(res){
that.pageLoad=true;
that.pageData=res.data;
}
})
},
getProduct:function(){
var that=this;
$.ajax({
url:"/module.php?m=flk_search&a=product&ajax=1",
data:{
keyword:this.keyword
},
dataType:"json",
success:function(res){
后面还有 7 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。