From 53db2315467bdc36904dfed5ef10f0309601d1ec Mon Sep 17 00:00:00 2001 From: gongfuxiang <2499232802@qq.com> Date: Sun, 14 Apr 2019 23:16:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/controller/Common.php | 8 +- .../index/view/default/public/user_menu.html | 4 +- application/plugins/petscms/Pets.php | 29 +++ application/plugins/petscms/Service.php | 27 +++ .../plugins/view/petscms/pets/detail.html | 167 +++++++++++++++++ .../plugins/view/petscms/pets/index.html | 4 +- .../plugins/view/petscms/pets/saveinfo.html | 23 ++- config/shopxo.sql | 40 ++-- public/static/plugins/css/petscms/pets.css | 2 +- .../plugins/css/petscms/pets.detail.css | 174 ++++++++++++++++++ 10 files changed, 442 insertions(+), 36 deletions(-) create mode 100644 application/plugins/view/petscms/pets/detail.html create mode 100644 public/static/plugins/css/petscms/pets.detail.css diff --git a/application/index/controller/Common.php b/application/index/controller/Common.php index ef47824dc..8a54bb9a0 100755 --- a/application/index/controller/Common.php +++ b/application/index/controller/Common.php @@ -212,10 +212,10 @@ class Common extends Controller $default_theme = strtolower(MyC('common_default_theme', 'default', true)); $this->assign('default_theme', $default_theme); - // 当前操作名称, 兼容插件模块名称 - $module_name = empty($params['pluginsname']) ? strtolower(request()->module()) : $params['pluginsname']; - $controller_name = empty($params['pluginscontrol']) ? strtolower(request()->controller()) : $params['pluginscontrol']; - $action_name = empty($params['pluginsaction']) ? strtolower(request()->action()) : $params['pluginsaction']; + // 当前操作名称, 兼容插件模块名称 + $module_name = strtolower(request()->module()); + $controller_name = strtolower(request()->controller()); + $action_name = strtolower(request()->action()); // 当前操作名称 $this->assign('module_name', $module_name); diff --git a/application/index/view/default/public/user_menu.html b/application/index/view/default/public/user_menu.html index a7df6f021..19b4a3dd6 100755 --- a/application/index/view/default/public/user_menu.html +++ b/application/index/view/default/public/user_menu.html @@ -6,7 +6,7 @@ {{foreach $user_left_menu as $k=>$v}} {{if $v.is_show eq 1}} {{if empty($v['item'])}} -
  • +
  • {{if !empty($v['icon'])}}{{/if}} {{$v.name}}
  • {{else /}} @@ -15,7 +15,7 @@