diff --git a/.gitignore b/.gitignore index 143aabd80..d64e0577e 100755 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ *.log *.lock .tea +.idea .htaccess *payment_*_respond.php *payment_*_notify.php \ No newline at end of file diff --git a/application/.htaccess b/application/.htaccess deleted file mode 100755 index 3418e55a6..000000000 --- a/application/.htaccess +++ /dev/null @@ -1 +0,0 @@ -deny from all \ No newline at end of file diff --git a/application/index/controller/Goods.php b/application/index/controller/Goods.php index 3ef648f25..73753b282 100755 --- a/application/index/controller/Goods.php +++ b/application/index/controller/Goods.php @@ -250,6 +250,16 @@ class Goods extends Common 'goods_id' => $goods_id, 'goods' => &$goods, ])); + + // 商品页面基础信息购买小导航里面钩子 + $hook_name = 'plugins_view_goods_detail_base_buy_nav_min_inside'; + $this->assign($hook_name.'_data', Hook::listen($hook_name, + [ + 'hook_name' => $hook_name, + 'is_backend' => false, + 'goods_id' => $goods_id, + 'goods' => &$goods, + ])); } /** diff --git a/application/index/view/default/goods/index.html b/application/index/view/default/goods/index.html index f76aad4c5..c418b39e5 100755 --- a/application/index/view/default/goods/index.html +++ b/application/index/view/default/goods/index.html @@ -317,18 +317,39 @@ {{if $goods['inventory'] gt 0}}