mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-06 20:18:10 +08:00
将 v6 中直接放在本地 app 的后台与微信能力迁移为 v8 插件组件,并把运行时基础能力沉淀到独立插件包。 主要内容: - 新增 think-library、system、worker、static、install 等基础插件包。 - 新增 account、payment、wechat-client、wechat-service、wemall、wuma 等业务插件包。 - 移除 v6 的 app/admin 与 app/wechat 本地应用实现,改由插件分发接管。 - 将 Helper 能力彻底并入 System,统一为 plugin\system\helper\* 命名空间。 - 同步插件迁移发布清单与根 route 占位,保证安装发布流程可复现。
47 lines
1.9 KiB
PHP
47 lines
1.9 KiB
PHP
// +----------------------------------------------------------------------
|
||
// | Static Plugin for ThinkAdmin
|
||
// +----------------------------------------------------------------------
|
||
// | 官方网站: https://thinkadmin.top
|
||
// +----------------------------------------------------------------------
|
||
// | 版权所有 2014~2025 ThinkAdmin [ thinkadmin.top ]
|
||
// +----------------------------------------------------------------------
|
||
// | 开源协议 ( https://mit-license.org )
|
||
// | 免责声明 ( https://thinkadmin.top/disclaimer )
|
||
// +----------------------------------------------------------------------
|
||
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-static
|
||
// | github 代码仓库:https://github.com/zoujingli/think-plugs-static
|
||
// +----------------------------------------------------------------------
|
||
// | 自定义后台扩展脚本,需要在加载 system.js 后载入
|
||
// | 使用 composer require zoujingli/think-plugs-static 时不会更新此文件
|
||
// +----------------------------------------------------------------------
|
||
|
||
$(function () {
|
||
window.$body = $('body');
|
||
|
||
/*! 初始化异步加载的内容扩展动作 */
|
||
// $body.on('reInit', function (evt, $dom) {
|
||
// console.log('Event.reInit', $dom);
|
||
// });
|
||
|
||
/*! 追加模块加载示例 */
|
||
// $.module.use(['vue', 'md5'], function (vue, md5) {
|
||
// console.log(vue)
|
||
// console.log(md5.hash('content'))
|
||
// });
|
||
|
||
/*! 其他 javascript 脚本代码 */
|
||
|
||
// 显示表格图片
|
||
window.showTableImage = function (image, circle, size, title) {
|
||
return $.layTable.showImage(image, circle, size, title);
|
||
};
|
||
|
||
// 显示商品规格
|
||
window.showSpec = function (spec) {
|
||
let names = [];
|
||
return layui.each(spec.split(';;'), function (i, vv) {
|
||
names.push(vv.split('::').pop());
|
||
}), names.join(' ');
|
||
}
|
||
});
|