初始化项目:添加后端代码、ThinkPHP框架、前端资源

This commit is contained in:
amb
2026-09-03 12:42:39 +08:00
commit 482bece22e
3726 changed files with 416708 additions and 0 deletions
@@ -0,0 +1,21 @@
define(['jquery', 'bootstrap', 'frontend', 'template', 'form'], function ($, undefined, Frontend, Template, Form) {
var Controller = {
index: function () {
$(document).on('click', '.btn-delete', function () {
var that = this;
var url = $(that).data("url");
var id = $(that).data("id");
Fast.api.ajax({
url: url,
data: {id: id}
}, function (data) {
setTimeout(function () {
location.reload();
}, 1500);
});
return false;
});
},
};
return Controller;
});