diff --git a/application/admin/controller/Common.php b/application/admin/controller/Common.php
index 89096b4264ae68bf0ae56f92c86fdda1d09dc2c9..c640e4025073bad34ddf5aeaa4bd224030465e5d 100755
--- a/application/admin/controller/Common.php
+++ b/application/admin/controller/Common.php
@@ -10,6 +10,7 @@
// +----------------------------------------------------------------------
namespace app\admin\controller;
+use think\facade\Hook;
use think\Controller;
use app\service\AdminPowerService;
use app\service\ConfigService;
@@ -59,8 +60,40 @@ class Common extends Controller
// 视图初始化
$this->ViewInit();
+
+ // 公共钩子初始化
+ $this->CommonPluginsInit();
}
+ /**
+ * 公共钩子初始化
+ * @author Devil
+ * @blog http://gong.gg/
+ * @version 1.0.0
+ * @date 2018-12-07
+ * @desc description
+ */
+ private function CommonPluginsInit()
+ {
+ // css钩子
+ $this->assign('plugins_admin_css_data', Hook::listen('plugins_admin_css', ['hook_name'=>'plugins_admin_css', 'is_backend'=>false]));
+
+ // js钩子
+ $this->assign('plugins_admin_js_data', Hook::listen('plugins_admin_js', ['hook_name'=>'plugins_admin_js', 'is_backend'=>false]));
+
+ // 公共header内钩子
+ $this->assign('plugins_admin_common_header_data', Hook::listen('plugins_admin_common_header', ['hook_name'=>'plugins_admin_common_header', 'is_backend'=>false, 'admin'=>$this->admin]));
+
+ // 公共页面底部钩子
+ $this->assign('plugins_admin_common_page_bottom_data', Hook::listen('plugins_admin_common_page_bottom', ['hook_name'=>'plugins_admin_common_page_bottom', 'is_backend'=>false, 'admin'=>$this->admin]));
+
+ // 公共顶部钩子
+ $this->assign('plugins_admin_view_common_top_data', Hook::listen('plugins_admin_view_common_top', ['hook_name'=>'plugins_admin_view_common_top', 'is_backend'=>false, 'admin'=>$this->admin]));
+
+ // 公共底部钩子
+ $this->assign('plugins_admin_view_common_bottom_data', Hook::listen('plugins_admin_view_common_bottom', ['hook_name'=>'plugins_admin_view_common_bottom', 'is_backend'=>false, 'admin'=>$this->admin]));
+ }
+
/**
* 系统初始化
* @author Devil
diff --git a/application/admin/view/default/order/index.html b/application/admin/view/default/order/index.html
index d08bc1f3e4b8d3e9ceeb657deb49699d481f0b7e..89e606d60501335a604df7dae995d19464b522b8 100755
--- a/application/admin/view/default/order/index.html
+++ b/application/admin/view/default/order/index.html
@@ -259,6 +259,15 @@
{{if in_array($v['status'], [5,6])}}
{{/if}}
+
+
+ {{if !empty($v['plugins_service_order_handle_operation_html']) and is_array($v['plugins_service_order_handle_operation_html'])}}
+ {{foreach $v.plugins_service_order_handle_operation_html as $hook}}
+ {{if is_string($hook) or is_int($hook)}}
+ {{$hook|raw}}
+ {{/if}}
+ {{/foreach}}
+ {{/if}}
{{/foreach}}
diff --git a/application/admin/view/default/public/footer.html b/application/admin/view/default/public/footer.html
index c74f6b266412e3bdb87b1501f63a01fb5d6f699f..4d5f3fd458a366f344e33b0ba4766743540c11bd 100755
--- a/application/admin/view/default/public/footer.html
+++ b/application/admin/view/default/public/footer.html
@@ -1,5 +1,15 @@
+
+
+{{if !empty($plugins_admin_view_common_bottom_data) and is_array($plugins_admin_view_common_bottom_data) and (!isset($is_footer) or $is_footer eq 1)}}
+ {{foreach $plugins_admin_view_common_bottom_data as $hook}}
+ {{if is_string($hook) or is_int($hook)}}
+ {{$hook|raw}}
+ {{/if}}
+ {{/foreach}}
+{{/if}}
+