module/flk/themes/admin/flk_cbd_shop/index.js

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

var app=new Vue({
	el:"#app",
	data:function(){
		return {
			pageData:{},
			pageLoad:false,
			page:"index",
			keyword:""
		}
	},
	created:function(){
		this.getPage();
	},
	methods:{
		
		search:function(){
			this.getPage();
		},
		setPage:function(page){
			this.page=page;
			this.pageLoad=false;
			this.pageData={};
			this.getPage();
		},
		getIndex:function(){
			var that=this;
			$.ajax({
				url:"/moduleadmin.php?m=flk_cbd_shop&a=list&ajax=1&cbdid="+cbdid,
				data:{
					keyword:this.keyword
				},
				dataType:"json",
				success:function(res){
					that.pageData=res.data;
					that.pageLoad=true;
				}
			})
		},
		getPage:function(){
			if(this.page=='index'){
				this.getIndex();
			}else{
				this.getShop();
			}
		},
		getShop:function(){
			var that=this;
			$.ajax({
				url:"/moduleadmin.php?m=flk_cbd_shop&a=shop&ajax=1&cbdid="+cbdid,
				data:{
					keyword:this.keyword
				},
				dataType:"json",
				success:function(res){
					that.pageData=res.data;
					that.pageLoad=true;
				}
			})
		},
		toggleAdd:function(shopid){
后面还有 35 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。